From 66f087ad017777e3cd1130934f1a0e48edc004c3 Mon Sep 17 00:00:00 2001 From: kazlaw Date: Fri, 8 Nov 2024 12:40:45 +0300 Subject: [PATCH 1/3] O3-4185: Add Admission Request configs and concepts --- .../ampathforms/admission_request.json | 62 +++++++++++++++++++ .../concepts/ipd_concepts.csv | 4 ++ .../additionalEncountertypes.csv | 3 +- .../locations/locations.csv | 3 + 4 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 configs/openmrs/initializer_config/ampathforms/admission_request.json create mode 100644 configs/openmrs/initializer_config/concepts/ipd_concepts.csv diff --git a/configs/openmrs/initializer_config/ampathforms/admission_request.json b/configs/openmrs/initializer_config/ampathforms/admission_request.json new file mode 100644 index 0000000..c75c20d --- /dev/null +++ b/configs/openmrs/initializer_config/ampathforms/admission_request.json @@ -0,0 +1,62 @@ +{ + "name": "Admission form IPD", + "pages": [ + { + "label": "IPD Request", + "sections": [ + { + "label": "Patient Details", + "isExpanded": "true", + "questions": [ + { + "type": "obsGroup", + "id": "inpatientDispositionConstruct", + "questionOptions": { + "concept": "CIEL:169405", + "rendering": "group" + }, + "questions": [ + { + "id": "disposition", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "required": true, + "concept": "CIEL:169402", + "answers": [ + { + "concept": "CIEL:168619" + } + ] + }, + "validators": [] + }, + { + "id": "admitToLocation", + "type": "obs", + "questionOptions": { + "rendering": "ui-select-extended", + "required": true, + "concept": "CIEL:169403", + "datasource": { + "name": "location_datasource", + "config": { + "tag": "Admission Location" + } + } + } + } + ] + } + ] + } + ] + } + ], + "processor": "EncounterFormProcessor", + "encounterType": "b2c4d5e6-7f8a-4e9b-8c1d-2e3f8e4a3b8f", + "referencedForms": [], + "uuid": "604d025b-7c5c-49b1-a2ae-90753eef9efc", + "description": "Admission form IPD", + "version": "1.0.0" +} \ No newline at end of file diff --git a/configs/openmrs/initializer_config/concepts/ipd_concepts.csv b/configs/openmrs/initializer_config/concepts/ipd_concepts.csv new file mode 100644 index 0000000..dbe2f99 --- /dev/null +++ b/configs/openmrs/initializer_config/concepts/ipd_concepts.csv @@ -0,0 +1,4 @@ +Uuid,Void/Retire,Same as mappings,Fully specified name:en,Fully specified name:fr,Short name:en,Short name:fr,Description:en,Description:fr,Data class,Data type,Complex data handler,Answers,Members,Allow decimals,Units,Normal low,Normal high,Absolute low,Absolute high,_version:1,_order:500 +77eafb3f-58d3-4397-a6dc-d2c06e9062f3,,CIEL:168619,Admit to hospital,Admit to hospital,Admit to hospital,Admit to hospital,Admit to hospital,Admit to hospital,Procedure,N/A,,,,,,,,,,, +ce085d74-323c-4c9a-9fdf-051de81dd020,,CIEL:169402,Inpatient patient disposition,Inpatient patient disposition,Inpatient patient disposition,Inpatient patient disposition,Inpatient patient disposition,Inpatient patient disposition,Question,Coded,,Admit to hospital,,,,,,,,, +b9cd9e47-da43-4a46-8f3c-e30ec9209cc7,,CIEL:169403,Admitted to location (text/code),Admitted to location (text/code),Admitted to location (text/code),Admitted to location (text/code),Admitted to location (text/code),Admitted to location (text/code),Question,Text,,,,,,,,,,, diff --git a/configs/openmrs/initializer_config/encountertypes/additionalEncountertypes.csv b/configs/openmrs/initializer_config/encountertypes/additionalEncountertypes.csv index eea92ad..869092f 100644 --- a/configs/openmrs/initializer_config/encountertypes/additionalEncountertypes.csv +++ b/configs/openmrs/initializer_config/encountertypes/additionalEncountertypes.csv @@ -5,4 +5,5 @@ ad368054-1610-4377-8785-2885757f763e,,Motif de consultation,Motif de consultatio 648adf26-bb2f-4b73-bc7a-466437d558b3,,Examen obstétrical,Examen obstétrical,Examen obstétrical,,View Examen obstétrical encounters,Edit Examen obstétrical encounters, 5238458f-1505-44c6-9be9-bfcd4e9991ca,,Historique de santé,Historique de santé,Historique de santé,,View Historique de santé encounters,Edit Historique de santé encounters, f1b49ab9-66de-4cb5-bdc6-4cbebf81cfa5,,Examen physique,Examen physique,Examen physique,,View Examen physique encounters,Edit Examen physique encounters, -3f47549a-1bca-4836-87d1-9d422657fdf4,,Examen des systèmes,Examen des systèmes,Examen des systèmes,,View Examen des systemes encounters,Edit Examen des systemes encounters, \ No newline at end of file +3f47549a-1bca-4836-87d1-9d422657fdf4,,Examen des systèmes,Examen des systèmes,Examen des systèmes,,View Examen des systemes encounters,Edit Examen des systemes encounters, +b2c4d5e6-7f8a-4e9b-8c1d-2e3f8e4a3b8f,,Transfer Request,Transfer Request,Transfer Request,A stand-alone encounter type for a transfer request not part of a larger note,,, \ No newline at end of file diff --git a/configs/openmrs/initializer_config/locations/locations.csv b/configs/openmrs/initializer_config/locations/locations.csv index b5c6aa9..fae2a27 100644 --- a/configs/openmrs/initializer_config/locations/locations.csv +++ b/configs/openmrs/initializer_config/locations/locations.csv @@ -1,2 +1,5 @@ Uuid,Void/Retire,Name,Description,Parent,Tags,Address 1,Address 2,Address 3,Address 4,Address 5,Address 6,City/Village,County/District,State/Province,Postal Code,Country 47816337-9fbe-4b09-821f-8690dc8031c0,,Hôpital Sacré-Coeur,,,Login Location; Visit Location; Admission Location; Appointment Location,,,,,,,,,,, +184ac7d9-225a-41f8-bac7-c87b1327e1b0,,Ward 1,,,Admission Location,,,,,,,,,,, +5a7f3c53-6bb4-448b-a966-5e65b397b9f3,,Ward 2,,,Admission Location,,,,,,,,,,, +2272b8cd-b690-4878-a50c-40d22235b3f3,,Ward 3,,,Admission Location,,,,,,,,,,, From 261811b77faa766c7795f03b738148877fc04d1c Mon Sep 17 00:00:00 2001 From: kazlaw Date: Fri, 8 Nov 2024 13:43:45 +0300 Subject: [PATCH 2/3] Fix --- .../initializer_config/ampathforms/admission_request.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/openmrs/initializer_config/ampathforms/admission_request.json b/configs/openmrs/initializer_config/ampathforms/admission_request.json index c75c20d..3ec51e5 100644 --- a/configs/openmrs/initializer_config/ampathforms/admission_request.json +++ b/configs/openmrs/initializer_config/ampathforms/admission_request.json @@ -58,5 +58,7 @@ "referencedForms": [], "uuid": "604d025b-7c5c-49b1-a2ae-90753eef9efc", "description": "Admission form IPD", - "version": "1.0.0" + "version": "1.0.0", + "published": true, + "retired": false } \ No newline at end of file From 53f41c1369956fd4e0d7d68e2d05aab56c2247e4 Mon Sep 17 00:00:00 2001 From: kazlaw Date: Mon, 11 Nov 2024 11:08:30 +0300 Subject: [PATCH 3/3] Added missing configs --- .../dispositions/dispositionConfig.json | 26 +++++++++++++++++++ .../additionalEncountertypes.csv | 4 ++- .../metadatatermmappings.csv | 8 +++++- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 configs/openmrs/initializer_config/dispositions/dispositionConfig.json diff --git a/configs/openmrs/initializer_config/dispositions/dispositionConfig.json b/configs/openmrs/initializer_config/dispositions/dispositionConfig.json new file mode 100644 index 0000000..c36d873 --- /dev/null +++ b/configs/openmrs/initializer_config/dispositions/dispositionConfig.json @@ -0,0 +1,26 @@ +[ + { + "uuid": "66de7f60-b73a-11e2-9e96-0800200c9a66", + "name": "disposition.admit", + "type": "ADMIT", + "conceptCode": "CIEL:168619", + "actions": [], + "additionalObs": [] + }, + { + "uuid": "8297651b-4046-11ef-ba6a-0242ac120002", + "name": "disposition.transfer", + "type": "TRANSFER", + "conceptCode": "CIEL:167731", + "actions": [], + "additionalObs": [] + }, + { + "uuid": "12129630-b698-11e2-9e96-0800200c9a66", + "name": "disposition.discharge", + "type": "DISCHARGE", + "conceptCode": "CIEL:169401", + "actions": [], + "additionalObs": [] + } +] diff --git a/configs/openmrs/initializer_config/encountertypes/additionalEncountertypes.csv b/configs/openmrs/initializer_config/encountertypes/additionalEncountertypes.csv index 869092f..41270d6 100644 --- a/configs/openmrs/initializer_config/encountertypes/additionalEncountertypes.csv +++ b/configs/openmrs/initializer_config/encountertypes/additionalEncountertypes.csv @@ -6,4 +6,6 @@ ad368054-1610-4377-8785-2885757f763e,,Motif de consultation,Motif de consultatio 5238458f-1505-44c6-9be9-bfcd4e9991ca,,Historique de santé,Historique de santé,Historique de santé,,View Historique de santé encounters,Edit Historique de santé encounters, f1b49ab9-66de-4cb5-bdc6-4cbebf81cfa5,,Examen physique,Examen physique,Examen physique,,View Examen physique encounters,Edit Examen physique encounters, 3f47549a-1bca-4836-87d1-9d422657fdf4,,Examen des systèmes,Examen des systèmes,Examen des systèmes,,View Examen des systemes encounters,Edit Examen des systemes encounters, -b2c4d5e6-7f8a-4e9b-8c1d-2e3f8e4a3b8f,,Transfer Request,Transfer Request,Transfer Request,A stand-alone encounter type for a transfer request not part of a larger note,,, \ No newline at end of file +b2c4d5e6-7f8a-4e9b-8c1d-2e3f8e4a3b8f,,Transfer Request,Transfer Request,Transfer Request,A stand-alone encounter type for a transfer request not part of a larger note,,, +d3b07384-8d1c-4e6b-9b8e-2f3b8e4a1c9f,,Transfer,Transfer,Transfer,Indicates that a patient is being transferred into a different department within the hospital. (Transfers out of the hospital should not use this encounter type.),,, +a1f5c3d2-4b6e-4e8a-9f2d-1b3e8e4a2d7f,,Inpatient Note,Inpatient Note,Inpatient Note,A short free-text note written by a clinician about an inpatient during their stay,,, \ No newline at end of file diff --git a/configs/openmrs/initializer_config/metadatatermmappings/metadatatermmappings.csv b/configs/openmrs/initializer_config/metadatatermmappings/metadatatermmappings.csv index 353362f..fefd07a 100644 --- a/configs/openmrs/initializer_config/metadatatermmappings/metadatatermmappings.csv +++ b/configs/openmrs/initializer_config/metadatatermmappings/metadatatermmappings.csv @@ -1,3 +1,9 @@ Uuid,Void/Retire,Mapping code,Mapping source,Metadata class name,Metadata Uuid,_order:2000 b7c8adf5-c875-4e78-bb4b-fea391b1de55,,emr.primaryIdentifierType,org.openmrs.module.emrapi,org.openmrs.PatientIdentifierType,b303f207-a094-457f-9833-f1cdc7b5d184, -d5b1abfd-3f1c-4489-bc48-318018407b47,,emr.extraPatientIdentifierTypes,org.openmrs.module.emrapi,org.openmrs.module.metadatamapping.MetadataSet,f0ebcb99-7618-41b7-b0bf-8ff93de67b9e, \ No newline at end of file +d5b1abfd-3f1c-4489-bc48-318018407b47,,emr.extraPatientIdentifierTypes,org.openmrs.module.emrapi,org.openmrs.module.metadatamapping.MetadataSet,f0ebcb99-7618-41b7-b0bf-8ff93de67b9e, +e1a1b2c3-d4e5-6789-0abc-def123456789,,emr.admissionEncounterType,org.openmrs.module.emrapi,org.openmrs.EncounterType,e22e39fd-7db2-45e7-80f1-60fa0d5a4378, +f2b3c4d5-e6f7-8901-2bcd-ef3456789012,,emr.exitFromInpatientEncounterType,org.openmrs.module.emrapi,org.openmrs.EncounterType,181820aa-88c9-479b-9077-af92f5364329, +a3c4d5e6-f7g8-9012-3cde-f45678901234,,emr.transferWithinHospitalEncounterType,org.openmrs.module.emrapi,org.openmrs.EncounterType,d3b07384-8d1c-4e6b-9b8e-2f3b8e4a1c9f, +b4d5e6f7-g8h9-0123-4def-567890123456,,emr.inpatientNoteEncounterType,org.openmrs.module.emrapi,org.openmrs.EncounterType,a1f5c3d2-4b6e-4e8a-9f2d-1b3e8e4a2d7f, +c5e6f7g8-h9i0-1234-5ef0-678901234567,,emr.transferRequestEncounterType,org.openmrs.module.emrapi,org.openmrs.EncounterType,b2c4d5e6-7f8a-4e9b-8c1d-2e3f8e4a3b8f, +c9d6f8e2-3b4a-4e6b-9f8e-1a2b3c4d5e6f,,emr.clinicianEncounterRole,org.openmrs.module.emrapi,org.openmrs.EncounterRole,240b26f9-dd88-4172-823d-4a8bfeb7841f, \ No newline at end of file