Closed gmaloneccg closed 4 years ago
exec in to the running container:
docker exec -it rdrf_runserver_1 /app/docker-entrypoint.sh bash
run the command:
django-admin export registry --registry-code ICHOMCRC
exported_ICHOMCRC_with_data.zip will be saved in data/dev
The registry_definition folder in the exported zip will have rdrf_customaction.json:
[
{
"model": "rdrf.customaction",
"pk": 1,
"fields": {
"registry": [
"ICHOMCRC"
],
"code": "completion",
"name": "Completion Report",
"action_type": "SR",
"data": "{\"columns\": [\n{\"type\": \"demographics\",\n\"label\": \"Patient ID\",\n\"name\": \"id\"},\n{\"type\": \"demographics\",\n\"label\": \"Sex\",\n\"name\": \"sex\"},\n{\"type\": \"demographics\",\n\"label\": \"Given Names\",\n\"name\": \"given_names\"},\n{\"type\": \"demographics\",\n\"label\": \"Family Name\",\n\"name\": \"family_name\"},\n{\"type\": \"cde\",\n\"label\": \"Hospital Record Number\",\n\"name\": \"Patientinformation/PtIdentifiers1/PMI\"},\n{\"type\": \"demographics\",\n\"label\": \"DOB\",\n\"name\": \"date_of_birth\"},\n{\"type\": \"consent\",\n\"label\": \"Consent\",\n\"name\": \"promsconsentsection/promsconsent\"\n},\n{\"type\": \"consent_date\",\n\"label\": \"Consent Date\",\n\"name\": \"promsconsentsection/promsconsent\"\n},\n{\"type\": \"cde\",\n\"label\": \"Diagnosis Date\",\n\"name\": \"DIAGDATE\"},\n{\"type\": \"cde\",\n\"label\":\"Treating Clinician\",\n\"name\": \"Patientinformation/Consultants/Treating_clinician\"},\n{\"name\": \"Patientinformation/Consultants/Treatment_speciality\",\n\"label\": \"Treatment Speciality\",\n\"type\": \"cde\"},\n{\"type\": \"%\",\n\"name\": \"BaselineTreatmentForm\"},\n{\"type\": \"%\",\n\"name\": \"Pathology\"},\n{\"type\": \"%\",\n\"name\": \"Patientinformation\"},\n{\"type\": \"%\",\n\"name\": \"BaselineProms\"},\n{\"type\": \"%\",\n\"name\": \"BCCA\"},\n{\"type\": \"%\",\n\"name\": \"SurvivalFollowup\"},\n{\"type\": \"%\",\n\"name\": \"BaselineClinicalForm\"},\n{\"label\": \"Baseline Treatment - All patients\",\n\"name\": \"BaselineTreatmentForm/BASELINETREATMENTCRC/TREATMENTCRC\",\n\"type\": \"cde\"},\n\n{\"label\": \"Did the patient undergo surgery in the last year\",\n\"name\": \"BaselineTreatmentForm/BASELINETREATMENTSURGERY/SURGERYCRC\",\n\"type\": \"cde\"},\n{\"label\": \"Did the patient receive a stoma (ileostomy/colostomy)\",\n\"name\": \"BaselineTreatmentForm/BASELINETREATMENTSURGERY/STOMA\",\n\"type\": \"cde\"},\n{\"label\": \"Did the patient receive radiotherapy during the last year\",\n\"name\": \"BaselineTreatmentForm/BASELINETREATMENTRTX/RADIOTXCRC\",\n\"type\": \"cde\"},\n{\"label\": \"Did the patient receive chemotherapy during the last year\",\n\"name\": \"BaselineTreatmentForm/BASELINETREATMENTCTX/CHEMOTXCRC\",\n\"type\": \"cde\"},\n{\"label\": \"Did the patient receive targeted therapy during the last year\",\n\"name\": \"BaselineTreatmentForm/BASELINETREATMENTTARGET/TARGETTXCRC\",\n\"type\": \"cde\"},\n{\"label\": \"Did the patient experience complications while on treatment or within 90 days following treatment (select all that apply)\",\n\"name\": \"BaselineTreatmentForm/BASELINETREATMENTCOMPLICATIONS/CRCCOMPLIMPACT\",\n\"type\": \"cde\"},\n{\"label\": \"Date of Last Follow Up\",\n\"type\": \"cde\",\n\"name\": \"SurvivalFollowup/FollowUp/Followup_date\"},\n{\"label\": \"Follow Up Status\",\n\"type\": \"cde\",\n\"name\": \"SurvivalFollowup/FollowUp/STATUS\"},\n{\"label\": \"Is there evidence of local, regional or distant recurrence\",\n\"type\": \"cde\",\n\"name\": \"SurvivalFollowup/DiseaseRecurrenceProgression/RECUR\"},\n{\"label\": \" Is there evidence of disease progression\",\n\"type\": \"cde\",\n\"name\": \"SurvivalFollowup/DiseaseRecurrenceProgression/PROGRESS\"},\n{\"label\": \"Did the patient undergo any of the following treatments for recurrence or progression (select all that apply)\",\n\"type\": \"cde\",\n\"name\": \"SurvivalFollowup/DiseaseRecurProgRx/R_TREATMENT\"},\n{\"label\": \"Discharge Date\",\n\"type\": \"cde\",\n\"name\": \"BCCA/BCCAPostoperative/BCCAdischarge_date\"},\n{\"label\": \"Death Date\",\n\"type\": \"cde\",\n\"name\": \"SurvivalFollowup/DIED/DEATHDATE\"}\n],\n\"context_form_group\": \"Modules\"\n}",
"scope": "P",
"groups_allowed": [
[
"Clinical Staff"
]
]
}
}
]
When attempting to export the ICHOMCRC registry to zip, for Aloe testing.
The exported YAML from staging refers to custom_actions, and a fresh locally-hosted version of RDRF shows the Completion Report options when the staging YAML is imported. After exporting local to zip, none of the JSON files within the zip refer to custom_actions or Completion Report.
This suggests that exporting to zip is not capturing the custom action.