diff --git a/.env.sample b/.env.sample index 56766850..8f51038e 100644 --- a/.env.sample +++ b/.env.sample @@ -33,4 +33,5 @@ REDCAP_URL_BASE=https://redcap.vanderbilt.edu/api/ REDCAP_APPLICATION_TOKEN=faketoken DATA_DICTIONARY_INPUT_FILE_PATH=./redcap_data_dictionary_export.json DOWNLOAD_REDCAP_DATA_DICTIONARY=0 +CREATE_TABLES=1 LOCAL_ENV=true diff --git a/api/templates/study-profiles-template.csv b/api/templates/study-profiles-template.csv index 3058122b..46fcd692 100644 --- a/api/templates/study-profiles-template.csv +++ b/api/templates/study-profiles-template.csv @@ -1,3 +1,3 @@ -Proposal ID,Network,Proposal Type,Does this proposal have any linked studies?,Study Design,Randomized?,Randomization Unit,Randomization Feature,Ascertainment,Observations,Is this a pilot study?,isRegistry,EHR Data Transfer?,EHR Data Transfer Option,Is consent required?,EFIC?,IRB Type,Regulatory Classification,ClinicalTrials.gov ID,Is DSMB/DMC Required?,Number of Initial Participating Sites,Enrollment Goal,Initial Projected Enrollment Duration,Lead PIs,Awardee Site Acronym,Primary funding type,Is this study funded primarily by infrastructure?,Was this study previously funded? -ProposalID,network,type,linkedStudies,design,isRandomized,randomizationUnit,randomizationFeature,ascertainment,observations,isPilot,isRegistry,ehrDataTransfer,ehrDatatransferOption,isConsentRequired,isEfic,irbType,regulatoryClassification,clinicalTrialsGovId,isDsmbDmcRequired,initialParticipatingSiteCount,enrollmentGoal,initialProjectedEnrollmentDuration,leadPIs,awardeeSiteAcronym,primaryFundingType,isFundedPrimarilyByInfrastructure,isPreviouslyFunded +Proposal ID,Network,Proposal Type,Does this proposal have any linked studies?,Study Design,Randomized?,Randomization Unit,Randomization Feature,Ascertainment,Observations,Is this a pilot study?,isRegistry,EHR Data Transfer?,EHR Data Transfer Option,Is consent required?,EFIC?,IRB Type,Regulatory Classification,ClinicalTrials.gov ID,Is DSMB/DMC Required?,Number of Initial Participating Sites,Enrollment Goal,Initial Projected Enrollment Duration,Lead PIs,Awardee Site Acronym,Primary funding type,Is this study funded primarily by infrastructure?,Was this study previously funded?, Contract Type,Number of Fields per Casebook +ProposalID,network,type,linkedStudies,design,isRandomized,randomizationUnit,randomizationFeature,ascertainment,observations,isPilot,isRegistry,ehrDataTransfer,ehrDatatransferOption,isConsentRequired,isEfic,irbType,regulatoryClassification,clinicalTrialsGovId,isDsmbDmcRequired,initialParticipatingSiteCount,enrollmentGoal,initialProjectedEnrollmentDuration,leadPIs,awardeeSiteAcronym,primaryFundingType,isFundedPrimarilyByInfrastructure,isPreviouslyFunded,contractType,fieldsPerCasebook ,,,,,,,,,,,,,,,,,,,,,,,,,,, \ No newline at end of file diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index bab8f49e..36954cf7 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -48,6 +48,7 @@ services: PAUSE: $PAUSE DATA_INPUT_FILE_PATH: $DATA_INPUT_FILE_PATH DOWNLOAD_REDCAP_DATA: $DOWNLOAD_REDCAP_DATA + CREATE_TABLES: $CREATE_TABLES GLOBAL_WRITE_PERMISSIONS: $GLOBAL_WRITE_PERMISSIONS volumes: - $POSTGRES_DUMP_PATH:/backup diff --git a/docker-compose.yml b/docker-compose.yml index 11caa3bd..7413ad46 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -48,6 +48,7 @@ services: PAUSE: $PAUSE DATA_INPUT_FILE_PATH: $DATA_INPUT_FILE_PATH DOWNLOAD_REDCAP_DATA: $DOWNLOAD_REDCAP_DATA + CREATE_TABLES: $CREATE_TABLES GLOBAL_WRITE_PERMISSIONS: $GLOBAL_WRITE_PERMISSIONS LOCAL_ENV: 'true' volumes: diff --git a/mapping.json b/mapping.json index b5e7c41d..03cc387c 100644 --- a/mapping.json +++ b/mapping.json @@ -7847,6 +7847,54 @@ "Comments": "", "InitializeField": "no" }, + { + "Fieldname_CTMD": "contractType", + "Fieldname_redcap": "n/a", + "Data Type": "text", + "Randomization_feature": "", + "Dropdown Options": "", + "Lookup Needed": "", + "Lookup Information": "", + "Algorithm": "", + "Key": "", + "Primary": "", + "Foreign": "", + "FK_tablename": "", + "Cardinality (Table_CTMD--FK_tablename)": "", + "Table_CTMD": "StudyProfile", + "Table_phase1": "n/a", + "NOT NULL": "FALSE", + "Default Value": "", + "Field Status": "New", + "Instrument": "n/a", + "Description": "The contract type for the study", + "Comments": "", + "InitializeField": "no" + }, + { + "Fieldname_CTMD": "fieldsPerCasebook", + "Fieldname_redcap": "n/a", + "Data Type": "int", + "Randomization_feature": "", + "Dropdown Options": "", + "Lookup Needed": "", + "Lookup Information": "", + "Algorithm": "", + "Key": "", + "Primary": "", + "Foreign": "", + "FK_tablename": "", + "Cardinality (Table_CTMD--FK_tablename)": "", + "Table_CTMD": "StudyProfile", + "Table_phase1": "n/a", + "NOT NULL": "FALSE", + "Default Value": "", + "Field Status": "New", + "Instrument": "n/a", + "Description": "Number of fields per casebook", + "Comments": "", + "InitializeField": "no" + }, { "Fieldname_CTMD": "ProposalID", "Fieldname_redcap": "proposal_id",