Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

O3-4185: Add Admission Request configs and concepts #40

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"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",
"published": true,
"retired": false
}
4 changes: 4 additions & 0 deletions configs/openmrs/initializer_config/concepts/ipd_concepts.csv
Original file line number Diff line number Diff line change
@@ -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,,,,,,,,,,,
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is being brought in by the Ref App distro so that it doesn't have to apart of this distro.

{
"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": []
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ 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,
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,,,
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,,,
3 changes: 3 additions & 0 deletions configs/openmrs/initializer_config/locations/locations.csv
Original file line number Diff line number Diff line change
@@ -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,,,,,,,,,,,
Original file line number Diff line number Diff line change
@@ -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,
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,