diff --git a/api/src/main/java/org/openmrs/module/ugandaemr/api/deploy/bundle/CommonMetadataBundle.java b/api/src/main/java/org/openmrs/module/ugandaemr/api/deploy/bundle/CommonMetadataBundle.java index 38aa34f33..731da147e 100644 --- a/api/src/main/java/org/openmrs/module/ugandaemr/api/deploy/bundle/CommonMetadataBundle.java +++ b/api/src/main/java/org/openmrs/module/ugandaemr/api/deploy/bundle/CommonMetadataBundle.java @@ -109,6 +109,7 @@ public void install() throws Exception { install(EncounterTypes.PROCEDURE_RESULTS_ENCOUNTER); install(EncounterTypes.HIV_SELF_TESTING_ENCOUNTER); install(EncounterTypes.HTS_CONTACT_TRACING_ENCOUNTER); + install(EncounterTypes.GENERAL_CLINICAL_ASSESSMENT_ENCOUNTER); //installing programs metadata diff --git a/api/src/main/java/org/openmrs/module/ugandaemr/metadata/core/EncounterTypes.java b/api/src/main/java/org/openmrs/module/ugandaemr/metadata/core/EncounterTypes.java index b1d243103..364baed02 100644 --- a/api/src/main/java/org/openmrs/module/ugandaemr/metadata/core/EncounterTypes.java +++ b/api/src/main/java/org/openmrs/module/ugandaemr/metadata/core/EncounterTypes.java @@ -658,4 +658,20 @@ public String uuid() { return "3849c43c-f14d-40ab-80d7-670cf251e525"; } }; + + public static EncounterTypeDescriptor GENERAL_CLINICAL_ASSESSMENT_ENCOUNTER = new EncounterTypeDescriptor() { + @Override + public String name() { + return "General Clinical Assessment"; + } + + @Override + public String description() { + return "This is a general cinical assessment encounter type"; + } + + public String uuid() { + return "7b2eed30-59cb-4a0e-9741-a568952b3d76"; + } + }; } \ No newline at end of file diff --git a/omod/src/main/webapp/resources/jsonforms/General-Clinical-Assessment.json b/omod/src/main/webapp/resources/jsonforms/General-Clinical-Assessment.json new file mode 100644 index 000000000..64f728939 --- /dev/null +++ b/omod/src/main/webapp/resources/jsonforms/General-Clinical-Assessment.json @@ -0,0 +1,649 @@ +{ + "name": "General Clinical Assessment Form", + "uuid": "10ed5964-6f0b-4fac-86ea-45ffcaf11316", + "version": "4.1.0", + "processor": "EncounterForm", + "encounterType": "7b2eed30-59cb-4a0e-9741-a568952b3d76", + "pages": [ + { + "label": "General Clinical Assessment", + "sections": [ + { + "label": "Presenting Signs and Symptoms", + "isExpanded": true, + "questions": [ + { + "id": "rosHeentGroup", + "label": "REVIEW OF SYSTEMS", + "type": "obsGroup", + "questionOptions": { + "rendering": "group", + "concept": "159615AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "questions": [ + { + "id": "generalComplaints", + "label": "General Complaints", + "type": "obs", + "questionOptions": { + "rendering": "multiCheckbox", + "concept": "dc971347-30ab-102d-86b0-7a5022ba4115", + "answers": [ + { + "label": "Chills", + "concept": "dc8da01e-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Night sweats", + "concept": "dcd4bde5-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Weight loss", + "concept": "832AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Vomiting", + "concept": "dccfffa9-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Rash", + "concept": "512AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Irritability", + "concept": "dcd497cd-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Fatigue", + "concept": "dccf483e-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Fever", + "concept": "dccf3652-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Other specify", + "concept": "dcd68a88-30ab-102d-86b0-7a5022ba4115" + } + ] + } + }, + { + "id": "otherGeneralComplaints", + "label": "Other general complaints", + "type": "obs", + "questionOptions": { + "rendering": "textarea", + "concept": "e7f0575a-a83d-11ed-afa1-0242ac120002" + }, + "hide": { + "hideWhenExpression": "isEmpty(generalComplaints) || generalComplaints !== 'dc971347-30ab-102d-86b0-7a5022ba4115'" + } + }, + { + "id": "heentComplaints", + "label": "HEENT complaints", + "type": "obs", + "questionOptions": { + "rendering": "multiCheckbox", + "concept": "dc97178e-30ab-102d-86b0-7a5022ba4115", + "answers": [ + { + "label": "Hearing Difficulties", + "concept": "dc8da01e-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Otorrhea", + "concept": "dc8dda64-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Ear Discharge", + "concept": "dc8dda64-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Oral Sores", + "concept": "dcb24847-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Candidias, Oral/Thrush", + "concept": "dcb5dbbb-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Vision Difficulties", + "concept": "dccf6a36-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Swallowing Difficulties", + "concept": "dccf7385-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Nasal Discharge", + "concept": "dcd47720-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Negative", + "concept": "dc85aa72-30ab-102d-86b0-7a5022ba4115" + } + ] + } + }, + { + "id": "cardioplumonaryComplaints", + "label": "Cardiopulmonary complaints", + "type": "obs", + "questionOptions": { + "rendering": "multiCheckbox", + "concept": "dc971bd5-30ab-102d-86b0-7a5022ba4115", + "answers": [ + { + "label": "TB", + "concept": "dc6527eb-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Cough", + "concept": "dc6625ec-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Chest Pain", + "concept": "dc66e797-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Tachypnea", + "concept": "dc888f11-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "History of Pneumonia", + "concept": "dc995103-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Productive cough", + "concept": "dccf8b23-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Shortness of breath", + "concept": "dccfa115-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Shortness of breath at rest", + "concept": "dccfa561-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Shortness of breath at exertion", + "concept": "dccfae22-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Other specify", + "concept": "dcd68a88-30ab-102d-86b0-7a5022ba4115" + } + ] + } + }, + { + "id": "otherCardiopulmonaryComplaints", + "label": "Other cardioplumonary complaints", + "type": "obs", + "questionOptions": { + "rendering": "textarea", + "concept": "e7f0575a-a83d-11ed-afa1-0242ac120002" + }, + "hide": { + "hideWhenExpression": "isEmpty(cardioplumonaryComplaints) || cardioplumonaryComplaints !== 'dc971347-30ab-102d-86b0-7a5022ba4115'" + } + }, + { + "id": "gastrointestinalComplaints", + "label": "Gastrointestinal complaints", + "type": "obs", + "questionOptions": { + "rendering": "multiCheckbox", + "concept": "dc974220-30ab-102d-86b0-7a5022ba4115", + "answers": [ + { + "label": "Diarrhoea", + "concept": "dc54722c-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Abdominal Pain", + "concept": "dc685df9-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Nausea", + "concept": "dccff72c-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Vomiting", + "concept": "dccfffa9-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "History of Jaundice", + "concept": "dcd01935-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Refusal to feed", + "concept": "dcd47b5c-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Abdominal Swelling", + "concept": "dcd48632-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Poor Appetite", + "concept": "dcd4c71b-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Hepatic Disease", + "concept": "dcd4cb79-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Other specify", + "concept": "dcd68a88-30ab-102d-86b0-7a5022ba4115" + } + ] + } + }, + { + "id": "otherGastrointestinalComplaints", + "label": "Other gastrointestinal complaints", + "type": "obs", + "questionOptions": { + "rendering": "textarea", + "concept": "e7f0575a-a83d-11ed-afa1-0242ac120002" + }, + "hide": { + "hideWhenExpression": "isEmpty(gastrointestinalComplaints) || gastrointestinalComplaints !== 'dc971347-30ab-102d-86b0-7a5022ba4115'" + } + }, + { + "id": "genitourinaryComplaints", + "label": "Genitourinary complaints", + "type": "obs", + "questionOptions": { + "rendering": "multiCheckbox", + "concept": "dc974aef-30ab-102d-86b0-7a5022ba4115", + "answers": [ + { + "label": "UTI", + "concept": "dc651994-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Hematuria", + "concept": "840AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Menstrauting", + "concept": "dcd0283c-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Menopause", + "concept": "dcd02c78-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Vaginal Discharge", + "concept": "dcd03934-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Urethral Discharge", + "concept": "dcd041e4-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Dysuria", + "concept": "dcd48a93-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Oliguria", + "concept": "dcd48f0c-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Renal Discharge", + "concept": "dcd4d521-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Other specify", + "concept": "dcd68a88-30ab-102d-86b0-7a5022ba4115" + } + ] + } + }, + { + "id": "otherGenitourinaryComplaints", + "label": "Other genitourinary complaints", + "type": "obs", + "questionOptions": { + "rendering": "textarea", + "concept": "e7f0575a-a83d-11ed-afa1-0242ac120002" + }, + "hide": { + "hideWhenExpression": "isEmpty(genitourinaryComplaints) || genitourinaryComplaints !== 'dc971347-30ab-102d-86b0-7a5022ba4115'" + } + }, + { + "id": "musculoskeletalComplaints", + "label": "Musculoskeletal complaints", + "type": "obs", + "questionOptions": { + "rendering": "multiCheckbox", + "concept": "dc974f60-30ab-102d-86b0-7a5022ba4115", + "answers": [ + { + "label": "Joint Pain", + "concept": "dc658ee1-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Edema, Legs", + "concept": "dc7f4fb9-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Joint Swelling", + "concept": "dcb5704c-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Muscle Pain", + "concept": "dcd4d9c7-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Pain, Lower Extremities", + "concept": "dcd4de19-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Other specify", + "concept": "dcd68a88-30ab-102d-86b0-7a5022ba4115" + } + ] + } + }, + { + "id": "otherMusculoskeletalComplaints", + "label": "Other genitourinary complaints", + "type": "obs", + "questionOptions": { + "rendering": "textarea", + "concept": "e7f0575a-a83d-11ed-afa1-0242ac120002" + }, + "hide": { + "hideWhenExpression": "isEmpty(musculoskeletalComplaints) || musculoskeletalComplaints !== 'dc971347-30ab-102d-86b0-7a5022ba4115'" + } + }, + { + "id": "centralNervousComplaints", + "label": "Central Nervous complaints", + "type": "obs", + "questionOptions": { + "rendering": "multiCheckbox", + "concept": "dc9753a4-30ab-102d-86b0-7a5022ba4115", + "answers": [ + { + "label": "Mental Disorder", + "concept": "dc657b8b-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Seizure", + "concept": "206AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Depression", + "concept": "dc6979b9-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Headache", + "concept": "dc7fdcd0-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Paresthesia", + "concept": "dcd43de4-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Focal Weakness", + "concept": "dcd44273-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Confusion", + "concept": "dcd446b5-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Memory Problems", + "concept": "dcd5103b-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Other specify", + "concept": "dcd68a88-30ab-102d-86b0-7a5022ba4115" + } + ] + } + }, + { + "id": "otherCentralNervousComplaints", + "label": "Other central nervous complaints", + "type": "obs", + "questionOptions": { + "rendering": "textarea", + "concept": "e7f0575a-a83d-11ed-afa1-0242ac120002" + }, + "hide": { + "hideWhenExpression": "isEmpty(musculoskeletalComplaints) || musculoskeletalComplaints !== 'dc971347-30ab-102d-86b0-7a5022ba4115'" + } + }, + { + "id": "developmentComplaints", + "label": "Development complaints", + "type": "obs", + "questionOptions": { + "rendering": "multiCheckbox", + "concept": "dc9b484f-30ab-102d-86b0-7a5022ba4115", + "answers": [ + { + "label": "Learning Problems", + "concept": "dcbddb5c-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Delayed Milestones", + "concept": "dcd49359-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Regressed Milestones", + "concept": "dcd4a05b-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Memory Problems", + "concept": "dcd5103b-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Other specify", + "concept": "dcd68a88-30ab-102d-86b0-7a5022ba4115" + } + ] + } + }, + { + "id": "otherDevlopmentComplaints", + "label": "Other development complaints", + "type": "obs", + "questionOptions": { + "rendering": "textarea", + "concept": "e7f0575a-a83d-11ed-afa1-0242ac120002" + }, + "hide": { + "hideWhenExpression": "isEmpty(developmentComplaints) || developmentComplaints !== 'dc971347-30ab-102d-86b0-7a5022ba4115'" + } + }, + { + "id": "obstetricalComplaints", + "label": "Obstetrical/Pregnancy complaints", + "type": "obs", + "questionOptions": { + "rendering": "multiCheckbox", + "concept": "159614AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "label": "Nausea and Vomiting", + "concept": "133473AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Weight Gain", + "concept": "dcbdc2d6-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Abdominal Pain", + "concept": "dc685df9-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Feotal Distress", + "concept": "118256AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Amenorrhea", + "concept": "148989AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Decreased feotal movements", + "concept": "113377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Poor Fetal Growth", + "concept": "118246AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Vaginal Bleeding", + "concept": "147232AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Other specify", + "concept": "dcd68a88-30ab-102d-86b0-7a5022ba4115" + } + ] + } + }, + { + "id": "otherObstetricalComplaints", + "label": "Other obstetrical complaints", + "type": "obs", + "questionOptions": { + "rendering": "textarea", + "concept": "e7f0575a-a83d-11ed-afa1-0242ac120002" + }, + "hide": { + "hideWhenExpression": "isEmpty(obstetricalComplaints) || obstetricalComplaints !== 'dc971347-30ab-102d-86b0-7a5022ba4115'" + } + } + ] + } + ] + }, + { + "label": "Chief Complaint/Pain Details", + "isExpanded": false, + "questions": [ + { + "id": "chiefCompliant", + "label": "Chief complaint", + "type": "obs", + "validators": [], + "questionOptions": { + "rendering": "radio", + "concept": "dcb1a6e1-30ab-102d-86b0-7a5022ba4115", + "answers": [ + { + "label": "Symptomatic", + "concept": "dc970efd-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Asymptomatic", + "concept": "dca2d49c-30ab-102d-86b0-7a5022ba4115" + } + ] + } + }, + { + "id": "painSeverity", + "label": "Pain Severity", + "type": "obs", + "validators": [], + "questionOptions": { + "rendering": "select", + "concept": "dce0d9c2-30ab-102d-86b0-7a5022ba4115", + "answers": [ + { + "label": "Mild Severity", + "concept": "dcde529a-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Moderate Severity", + "concept": "dcde56ba-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Severe Sverity", + "concept": "dcde670d-30ab-102d-86b0-7a5022ba4115" + }, + { + "label": "Life Threatening Severity", + "concept": "dca2882a-30ab-102d-86b0-7a5022ba4115" + } + ] + } + }, + { + "id": "painSite", + "label": "Pain Site", + "type": "obs", + "questionOptions": { + "rendering": "text", + "concept": "9c78a74a-6c28-4c83-89e5-2ced9fec78d4" + } + } + ] + }, + { + "label": "Clinical Notes", + "isExpanded": false, + "questions": [ + { + "id": "clinical_notes", + "label": "Clinical notes", + "type": "obs", + "questionOptions": { + "rendering": "textarea", + "concept": "REPLACE_WITH_CONCEPT_CLINICAL_NOTES", + "rows": 3 + } + } + ] + }, + { + "label": "Encounter Details", + "isExpanded": true, + "questions": [ + { + "label": "Visit Date", + "type": "encounterDatetime", + "id": "encDate", + "questionOptions": { + "rendering": "datetime", + "allowFutureDates": "false" + } + }, + { + "id": "encounterLocation", + "label": "Location", + "type": "encounterLocation", + "questionOptions": { + "rendering": "encounter-location", + "locationTag": "b8bbf83e-645f-451f-8efe-a0db56f09676" + } + }, + { + "id": "encounterProvider", + "label": "Provider", + "type": "encounterProvider", + "questionOptions": { + "rendering": "encounter-provider" + } + } + ] + } + ] + } + ], + "formOptions": { + "usePreviousValueDisabled": false + }, + "description": "A form used for screening for a general body review." +}