From 0710e4ffb52e056d39b48b1c568bd7f2ffc00ace Mon Sep 17 00:00:00 2001 From: mmatheka <99263785+mmatheka@users.noreply.github.com> Date: Mon, 30 Sep 2024 18:34:54 +0300 Subject: [PATCH] Update Delivery Form with revised changes (#809) --- configuration/ampathforms/Delivery.json | 1953 +++++++++++++++++------ 1 file changed, 1455 insertions(+), 498 deletions(-) diff --git a/configuration/ampathforms/Delivery.json b/configuration/ampathforms/Delivery.json index 23a7ca74..273cf996 100644 --- a/configuration/ampathforms/Delivery.json +++ b/configuration/ampathforms/Delivery.json @@ -8,7 +8,7 @@ "encounter": "MCH Mother Consultation", "pages": [ { - "label": "Delivery", + "label": "Visit Details", "sections": [ { "label": "Encounter Details", @@ -72,13 +72,18 @@ } } ] - }, + } + ] + }, + { + "label": "Patient History", + "sections": [ { - "label": "Delivery and Baby Observations", + "label": "Pregnancy History", "isExpanded": "true", "questions": [ { - "label": "Date of Last Menstrual Period(LMP)", + "label": "Date of Last Normal Menstrual Period(LNMP)", "type": "obs", "id": "lastLmpDate", "questionOptions": { @@ -97,29 +102,6 @@ } ] }, - { - "label": "VDRL/RPR Results:", - "type": "obs", - "id": "vdrlResults", - "questionOptions": { - "concept": "299AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Positive" - }, - { - "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Negative" - }, - { - "concept": "1118AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not Done" - } - ] - } - }, { "label": "Estimated date of Delivery", "type": "obs", @@ -127,7 +109,10 @@ "required": "true", "questionOptions": { "concept": "5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" + "rendering": "date", + "calculate": { + "calculateExpression": "moment(lastLmpDate).isValid() ? moment(lastLmpDate).add(280, 'days').toDate() : ''" + } }, "validators": [ { @@ -136,103 +121,6 @@ } ] }, - { - "label": "Placenta complete?", - "type": "obs", - "id": "placentaComplete", - "required": "true", - "questionOptions": { - "concept": "163454AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1501AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Baby born before arrival" - } - ] - } - }, - { - "label": "Vagina Examination?", - "type": "obs", - "id": "vaginalExamination", - "required": "true", - "questionOptions": { - "concept": "160704AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "132681AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Normal" - }, - { - "concept": "5577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Episiotomy" - }, - { - "concept": "159264AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Vaginal tear" - }, - { - "concept": "118935AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "FGM" - }, - { - "concept": "139505AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Vaginal warts" - } - ] - } - }, - { - "label": "Uterotonic given?", - "type": "obs", - "id": "uterotonicGiven", - "required": "true", - "questionOptions": { - "concept": "1282AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "81369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Oxytocin" - }, - { - "concept": "104590AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Carbetocin" - }, - { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Other" - }, - { - "concept": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "None" - } - ] - } - }, - { - "label": "Other Uterotonic Specify", - "type": "obs", - "id": "otherUterotonicSpecify", - "questionOptions": { - "concept": "bae7d54d-4944-4be0-93fa-021b4a70cb0b", - "rendering": "text" - }, - "validators": [], - "hide": { - "hideWhenExpression": "isEmpty(uterotonicGiven) || uterotonicGiven !== ('5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" - } - }, { "label": "Gestation at birth (in weeks):", "type": "obs", @@ -240,7 +128,7 @@ "questionOptions": { "concept": "1789AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "number", - "min": "0", + "min": "24", "max": "50" } }, @@ -280,13 +168,16 @@ "label": "Assisted vaginal delivery(AVD)" } ] + }, + "hide": { + "hideWhenExpression": "" } }, { "label": "Date of Delivery:", "type": "encounterDatetime", "questionOptions": { - "rendering": "ui-select-extended", + "rendering": "date", "concept": "5599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" }, "id": "deliveryDateTime", @@ -301,72 +192,150 @@ { "label": "Time of Delivery", "type": "obs", - "required": true, "id": "TtakEn", + "required": "true", "datePickerFormat": "timer", "questionOptions": { "concept": "162140AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "date" + }, + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + } + ] + }, + { + "label": "Place of Delivery:", + "type": "obs", + "id": "placeOfDelivery", + "questionOptions": { + "concept": "1572AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "select", + "answers": [ + { + "concept": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Home" + }, + { + "concept": "1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Facility" + }, + { + "concept": "1601AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Born Before Arrival" + } + ] } }, { - "label": "Blood loss during delivery in millilitres (mls):", + "label": "Delivery Conducted By:", "type": "obs", - "id": "bloodLoss", + "id": "deliveryConductedBy", "questionOptions": { - "concept": "aaec1d06-d034-48d3-9bb1-ac351ff31732", - "rendering": "number", - "min": "0", - "max": "1000" + "concept": "1473AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" } }, { - "label": "Condition of Mother after delivery:", + "label": "Cadre :", "type": "obs", - "id": "maternalOutcome", + "id": "deliveryFaciliTy", "questionOptions": { - "concept": "1856AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "1573AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "select", "answers": [ { - "concept": "160429AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Alive" + "concept": "1574AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Clinical officer/Doctor" }, { - "concept": "134612AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Dead" + "concept": "1578AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Midwife" + }, + { + "concept": "1577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Nurse" + }, + { + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other" } ] + }, + "hide": { + "hideWhenExpression": "isEmpty(placeOfDelivery) || placeOfDelivery !== '1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } }, { - "label": "Resuscitation Done:", + "label": "Cadre :", "type": "obs", - "id": "resuscitation", + "id": "deliveryHomeBBA", "questionOptions": { - "concept": "162131AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", + "concept": "1573AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "select", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1574AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Clinical officer/Doctor" }, { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" + "concept": "1578AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Midwife" + }, + { + "concept": "1577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Nurse" + }, + { + "concept": "1575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Traditional Birth Attendant" + }, + { + "concept": "1555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Community Health Care Promoter" + }, + { + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other" } ] }, "hide": { - "hideWhenExpression": "isEmpty(maternalOutcome) || maternalOutcome === '160429AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(placeOfDelivery) || placeOfDelivery === '1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Specify:", + "type": "obs", + "id": "OtheRcadRes", + "questionOptions": { + "concept": "161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" + }, + "hide": { + "hideWhenExpression": "deliveryFaciliTy !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Specify:", + "type": "obs", + "id": "OtheRcadResHome", + "questionOptions": { + "concept": "161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" + }, + "hide": { + "hideWhenExpression": "deliveryHomeBBA !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } }, { - "label": "Maternal death audited?", + "label": "Initiated BF in less than 1 hour:", "type": "obs", - "id": "maternalDeathAudited", + "id": "babyInitiatedBF", "questionOptions": { - "concept": "1602AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "161543AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "radio", "answers": [ { @@ -380,96 +349,528 @@ ] }, "hide": { - "hideWhenExpression": "isEmpty(maternalOutcome) || maternalOutcome === '160429AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(babyCondition) || babyCondition !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } - }, + } + ] + } + ] + }, + { + "label": "Patient Examination", + "sections": [ + { + "label": "Mother's Examination", + "isExpanded": "true", + "questions": [ { - "label": "Delivery complications ?", + "label": "VDRL/RPR Results:", "type": "obs", - "id": "deliveryComplications", + "id": "vdrlResults", "questionOptions": { - "concept": "120216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "299AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Positive" + }, + { + "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Negative" + }, + { + "concept": "1118AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Not Done" + } + ] + } + }, + { + "label": "Date placenta expelled", + "type": "obs", + "id": "dateExpelled", + "questionOptions": { + "concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + } + ] + }, + { + "label": "Time placenta expelled", + "type": "obs", + "id": "timeExpelled", + "datePickerFormat": "timer", + "questionOptions": { + "concept": "162869AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "validators": [ + { + "type": "js_expression", + "failsWhenExpression": "!moment(myValue).isBefore(moment(TtaKen).add(1, 'day'))", + "message": "Should be within 24hrs after delivery" + }, + { + "type": "date", + "allowFutureDates": "false" + } + ] + }, + { + "label": "Placenta complete?", + "type": "obs", + "id": "placentaComplete", + "required": "true", + "questionOptions": { + "concept": "163454AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Yes" }, { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "No" }, { - "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Unknown" + "concept": "1501AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Baby born before arrival" } ] } }, { - "label": "Select delivery complications ?", + "label": "Vagina Examination?", "type": "obs", - "id": "specificComplications", + "id": "vaginalExamination", + "required": "true", "questionOptions": { - "concept": "1576AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "select", + "concept": "160704AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", "answers": [ { - "concept": "113195AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Ruptured Uterus" + "concept": "132681AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Normal" }, { - "concept": "118744AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Eclampsia" + "concept": "5577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Episiotomy" }, { - "concept": "228AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "APH" + "concept": "159264AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Vaginal tear" }, { - "concept": "230AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "PPH" + "concept": "118935AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "FGM" }, { - "concept": "115036AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Obstructed Labor" + "concept": "139505AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Vaginal warts" }, { - "concept": "130AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Puerperal sepsis" + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Others" + } + ] + } + }, + { + "label": "Specify:", + "type": "obs", + "id": "OtheRvaGinal", + "questionOptions": { + "concept": "161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" + }, + "hide": { + "hideWhenExpression": "vaginalExamination !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + } + ] + }, + { + "label": "Cervix Examination", + "isExpanded": "true", + "questions": [ + { + "label": "Position", + "type": "obs", + "id": "cervPosition", + "questionOptions": { + "concept": "159633AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "label": "Anterior", + "concept": "540AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" }, { - "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Unknown" + "label": "Posterior", + "concept": "541AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Central", + "concept": "145956AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + ] + } + }, + { + "label": "Consistency", + "type": "obs", + "id": "cervConsistent", + "questionOptions": { + "concept": "159633AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "label": "Firm", + "concept": "160399AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Soft", + "concept": "155753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + ] + } + }, + { + "label": "Effacement", + "type": "obs", + "id": "EffConsistent", + "questionOptions": { + "concept": "160968AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text", + "rows": "15" + } + }, + { + "label": "Dilation", + "type": "obs", + "id": "cervDilation", + "questionOptions": { + "concept": "162261AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number", + "max": "10", + "min": "0" + } + }, + { + "label": "Membrane/Liquor", + "type": "obs", + "id": "membraNecerVix", + "questionOptions": { + "concept": "0054aae2-d945-47fd-8fba-8b515e780f41", + "rendering": "radio", + "answers": [ + { + "label": "Intact", + "concept": "164839AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Ruptured", + "concept": "127252AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + ] + } + }, + { + "label": "Choose an option (Intact)", + "type": "obs", + "id": "iNtactOptions", + "questionOptions": { + "concept": "1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "label": "Flat", + "concept": "167105AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Forming", + "concept": "150841AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Bulging", + "concept": "146848AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + ] + }, + "hide": { + "hideWhenExpression": "isEmpty(membraNecerVix) || !arrayContains(['164839AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'], membraNecerVix)" + } + }, + { + "label": "Choose an option (Rupture)", + "type": "obs", + "id": "ruptureOptions", + "questionOptions": { + "concept": "1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "label": "Odour", + "concept": "141937AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Color", + "concept": "d8021de4-83d7-4e8d-9ab7-27b613224316" + } + ] + }, + "hide": { + "hideWhenExpression": "isEmpty(membraNecerVix) || !arrayContains(['127252AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'], membraNecerVix)" + } + }, + { + "label": "Choose an option (Color)", + "type": "obs", + "id": "colorOptions", + "questionOptions": { + "concept": "1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "label": "Clear", + "concept": "159484AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Blood stained", + "concept": "1077AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Meconium", + "concept": "134488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + ] + }, + "hide": { + "hideWhenExpression": "isEmpty(ruptureOptions) || ruptureOptions !== 'd8021de4-83d7-4e8d-9ab7-27b613224316'" + } + }, + { + "label": "Date of rupture", + "type": "obs", + "id": "dateRupTure", + "questionOptions": { + "concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + }, + { + "type": "js_expression", + "failsWhenExpression": "(new moment(deliveryDateTime)).isBefore((new moment(myValue)), 'day')", + "message": "Date of Rupture date should not be greater than the delivery date." + } + ], + "hide": { + "hideWhenExpression": "isEmpty(membraNecerVix) || !arrayContains(['127252AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'], membraNecerVix)" + } + }, + { + "label": "Time of rupture", + "type": "obs", + "id": "timeRupTure", + "datePickerFormat": "timer", + "questionOptions": { + "concept": "162869AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + }, + { + "type": "js_expression", + "failsWhenExpression": "(new moment(deliveryDateTime)).isBefore((new moment(myValue)), 'day')", + "message": "Date of Rupture date should not be greater than the delivery date." + } + ], + "hide": { + "hideWhenExpression": "isEmpty(membraNecerVix) || !arrayContains(['127252AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'], membraNecerVix)" + } + }, + { + "label": "Moulding/Caput", + "type": "obs", + "id": "mOuldingOptions", + "questionOptions": { + "concept": "166527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "select", + "answers": [ + { + "concept": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "0" + }, + { + "concept": "1362AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "+" + }, + { + "concept": "1363AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "++" + }, + { + "concept": "1364AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "+++" + } + ] + } + } + ] + }, + { + "label": "Clinical Impression", + "isExpanded": "true", + "questions": [ + { + "label": "Clinical Diagnosis", + "id": "clinicalDiagnosisId", + "type": "diagnosis", + "questionOptions": { + "rendering": "repeating", + "dataSource": "diagnoses", + "rank": 1 + }, + "hide": { + "hideWhenExpression": "" + } + }, + { + "label": "Uterotonic given?", + "type": "obs", + "id": "uterotonicGiven", + "required": "true", + "questionOptions": { + "concept": "1282AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "None" + }, + { + "concept": "81369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Oxytocin" + }, + { + "concept": "104590AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Carbetocin" }, { "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Other" } ] + } + }, + { + "label": "Other Uterotonic Specify", + "type": "obs", + "id": "otherUterotonicSpecify", + "questionOptions": { + "concept": "bae7d54d-4944-4be0-93fa-021b4a70cb0b", + "rendering": "text" }, + "validators": [], "hide": { - "hideWhenExpression": "isEmpty(deliveryComplications) || deliveryComplications !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(uterotonicGiven) || uterotonicGiven !== ('5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" } }, { - "label": "Other delivery complications", + "label": "Blood loss during delivery in millilitres (mls):", "type": "obs", - "id": "otherComplications", + "id": "bloodLoss", "questionOptions": { - "concept": "162093AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" + "concept": "161928AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number", + "min": "0", + "max": "500" + }, + "alert": { + "alertWhenExpression": "myValue && (myValue >=501)", + "message": "This is beyond the normal range" }, "hide": { - "hideWhenExpression": "isEmpty(specificComplications) || specificComplications !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(deliveryMode) || deliveryMode === '1171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } }, { - "label": "Counselled on infant feeding?", + "label": "Blood loss during delivery in millilitres (mls):", "type": "obs", - "id": "infantFeeding", + "id": "bloodLossCS", "questionOptions": { - "concept": "162091AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "161928AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number", + "min": "0", + "max": "1000" + }, + "alert": { + "alertWhenExpression": "myValue && (myValue >=1001)", + "message": "This is beyond the normal range" + }, + "hide": { + "hideWhenExpression": "isEmpty(deliveryMode) || deliveryMode !== '1171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Perineum Examination", + "type": "obs", + "id": "perIneUmExam", + "questionOptions": { + "concept": "160084AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "select", + "answers": [ + { + "label": "Intact", + "concept": "164899AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Episiotomy", + "concept": "5577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Laceration", + "concept": "114244AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Tear 1st Degree", + "concept": "140113AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Tear 2nd Degree", + "concept": "127016AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Tear 3rd Degree", + "concept": "124858AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "label": "Tear 4th Degree", + "concept": "139914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + ] + } + }, + { + "label": "Repair", + "type": "obs", + "id": "rePairpeRinium", + "questionOptions": { + "concept": "c67be9a5-f497-4082-af81-11753f65ed4b", "rendering": "radio", "answers": [ { @@ -479,87 +880,113 @@ { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "No" - }, - { - "concept": "1175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not applicable" } ] + }, + "hide": { + "hideWhenExpression": "isEmpty(perIniUmExam) || perIniUmExam === (['164899AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA','114244AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'])" } }, { - "label": "Place of Delivery:", + "label": "Condition of Mother after delivery:", "type": "obs", - "id": "placeOfDelivery", + "id": "maternalOutcome", "questionOptions": { - "concept": "1572AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "1856AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "select", "answers": [ { - "concept": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Home" - }, - { - "concept": "1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Facility" + "concept": "160429AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Alive" }, { - "concept": "1601AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Born Before Arrival" + "concept": "134612AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Dead" } ] } }, { - "label": "Delivery Conducted By:", + "label": "Delivery complications?", "type": "obs", - "id": "deliveryConductedBy", + "id": "deliveryComplications", "questionOptions": { - "concept": "1473AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "text" + "concept": "120216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, + { + "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Unknown" + } + ] } }, { - "label": "Cadre :", + "label": "Select delivery complications?", "type": "obs", - "id": "deliveryConductedByCadre", + "id": "specificComplications", "questionOptions": { - "concept": "1573AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "1576AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "select", "answers": [ { - "concept": "1574AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Clinical officer/Doctor" + "concept": "113195AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Ruptured Uterus" }, { - "concept": "1578AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Midwife" + "concept": "118744AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Eclampsia" }, { - "concept": "1577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Nurse" + "concept": "228AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "APH" }, { - "concept": "1575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Traditional Birth Attendant" + "concept": "230AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "PPH" }, { - "concept": "1555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Community Health Care Worker" + "concept": "115036AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Obstructed Labor" + }, + { + "concept": "130AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Puerperal sepsis" + }, + { + "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Unknown" }, { "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Other" } ] + }, + "hide": { + "hideWhenExpression": "isEmpty(deliveryComplications) || deliveryComplications !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } - } - ] - }, - { - "label": "Delivery Outcome & Baby details", - "isExpanded": "true", - "questions": [ + }, + { + "label": "Other delivery complications", + "type": "obs", + "id": "otherComplications", + "questionOptions": { + "concept": "162093AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "textarea" + }, + "hide": { + "hideWhenExpression": "isEmpty(specificComplications) || specificComplications !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, { "label": "Delivery Outcome", "type": "obs", @@ -579,30 +1006,24 @@ { "concept": "159915AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Triplets" - } - ] - } - }, - { - "label": "Chlorhexidine applied on cord stump:", - "type": "obs", - "id": "chlorhexidine", - "required": "true", - "questionOptions": { - "concept": "159369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ + }, { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "113450AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Quadruplets" }, { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" + "concept": "113440AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Quintuplets" } ] } - }, + } + ] + }, + { + "label": "Baby Examination", + "isExpanded": "true", + "questions": [ { "label": "Baby details", "type": "obsGroup", @@ -612,6 +1033,29 @@ "rendering": "repeating" }, "questions": [ + { + "label": "Condition of the baby:", + "type": "obs", + "id": "babyCondition", + "questionOptions": { + "concept": "159917AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "select", + "answers": [ + { + "concept": "151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Live birth" + }, + { + "concept": "159916AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Fresh still birth" + }, + { + "concept": "135436AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Macerated still birth" + } + ] + } + }, { "label": "Baby's name:", "type": "obs", @@ -619,6 +1063,9 @@ "questionOptions": { "concept": "1586AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "text" + }, + "hide": { + "hideWhenExpression": "isEmpty(babyCondition) || babyCondition === (['159916AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA','135436AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'])" } }, { @@ -646,32 +1093,27 @@ "id": "birthWeight", "questionOptions": { "concept": "5916AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number" + } + }, + { + "label": "Birth length (cm) :", + "type": "obs", + "id": "birthLength", + "questionOptions": { + "concept": "1503AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "number", - "min": "0", - "max": "10" + "min": "20", + "max": "200" } }, { - "label": "Condition of the baby:", + "label": "Head Circumference", "type": "obs", - "id": "babyCondition", + "id": "heaDcIrcumference", "questionOptions": { - "concept": "159917AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "select", - "answers": [ - { - "concept": "151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Live birth" - }, - { - "concept": "159916AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Fresh still birth" - }, - { - "concept": "135436AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Macerated still birth" - } - ] + "concept": "5314AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number" } }, { @@ -724,197 +1166,436 @@ ] }, "hide": { - "hideWhenExpression": "isEmpty(babyDeformed) || babyDeformed !== '155871AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(babyDeformed) || babyDeformed !== '155871AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Chlorhexidine applied on cord stump:", + "type": "obs", + "id": "chlorhexidine", + "required": "true", + "questionOptions": { + "concept": "159369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + } + }, + { + "label": "Apgar Score (1 min):", + "type": "obs", + "id": "babyApgarScore1Min", + "required": "true", + "questionOptions": { + "concept": "159603AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number", + "min": "0", + "max": "10" + }, + "hide": { + "hideWhenExpression": "isEmpty(babyCondition) || babyCondition !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Apgar Score (5 min):", + "type": "obs", + "id": "babyAScore5Min", + "required": "true", + "questionOptions": { + "concept": "159604AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number", + "min": "0", + "max": "10" + }, + "hide": { + "hideWhenExpression": "isEmpty(babyCondition) || babyCondition !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Apgar Score (10 min):", + "type": "obs", + "id": "babyApgarScore10Min", + "required": "true", + "questionOptions": { + "concept": "159605AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number", + "min": "0", + "max": "10" + }, + "hide": { + "hideWhenExpression": "isEmpty(babyCondition) || babyCondition !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + } + ], + "id": "babyDetails" + } + ] + }, + { + "label": "HIV Testing", + "isExpanded": "true", + "questions": [ + { + "label": "Has consent been given? ", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "1710AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "true", + "label": "Yes" + }, + { + "concept": "false", + "label": "No" + } + ] + }, + "id": "consentGiven", + "required": "true" + }, + { + "label": "Client tested as? ", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "b61c1482-1697-404c-ab96-fd698d5fd317", + "answers": [ + { + "concept": "147082f4-0662-4bfa-a54c-914f1db97373", + "label": "Individual" + }, + { + "concept": "c3eba392-6f4d-4990-809f-91000503afbc", + "label": "Couple" + } + ] + }, + "id": "testedAs", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true'" + } + }, + { + "label": "HIV Test", + "type": "obsGroup", + "questionOptions": { + "rendering": "group", + "concept": "164410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "id": "hivTest1", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true'" + }, + "questions": [ + { + "label": "Kit 1 Name", + "type": "obs", + "questionOptions": { + "rendering": "select", + "concept": "214c83f9-435d-44f5-9ae6-d5757b7b4c7f", + "answers": [ + { + "concept": "9c4011c2-2579-49cf-ab53-93d009f03e7b", + "label": "Trinscreen" + }, + { + "concept": "7cf927f8-e734-474f-b71a-1459bb566aa2", + "label": "Determine" + } + ] + }, + "id": "kitName", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true' || sex != 'M'" + } + }, + { + "label": "Kit 1 Name", + "type": "obs", + "questionOptions": { + "rendering": "select", + "concept": "214c83f9-435d-44f5-9ae6-d5757b7b4c7f", + "answers": [ + { + "concept": "9c4011c2-2579-49cf-ab53-93d009f03e7b", + "label": "Trinscreen" + }, + { + "concept": "7cf927f8-e734-474f-b71a-1459bb566aa2", + "label": "Determine" + } + ] + }, + "id": "kitNameFe", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true' || sex != 'F' || (age > 9)" + } + }, + { + "label": "Kit 1 Name", + "type": "obs", + "questionOptions": { + "rendering": "select", + "concept": "214c83f9-435d-44f5-9ae6-d5757b7b4c7f", + "answers": [ + { + "concept": "9c4011c2-2579-49cf-ab53-93d009f03e7b", + "label": "Trinscreen" + }, + { + "concept": "7cf927f8-e734-474f-b71a-1459bb566aa2", + "label": "Determine" + }, + { + "concept": "2f5a80fa-6f26-4832-b8a8-f47649bb60de", + "label": "Dual Kit" + } + ] + }, + "id": "kitNameA", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true' || sex != 'F' || (age < 9)" + } + }, + { + "label": "Lot Number", + "type": "obs", + "questionOptions": { + "rendering": "text", + "concept": "3d4f9e8e-46cc-4024-a1c4-d0167f2c84a4" + }, + "id": "lotNumber", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(kitName) && isEmpty(kitNameA) && isEmpty(kitNameFe)" } }, { - "label": "TEO given at birth ?", + "label": "Expiry Date", "type": "obs", - "id": "babyTEOAtBirth", + "validators": [ + { + "type": "date", + "allowFutureDates": "true" + }, + { + "type": "js_expression", + "failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')", + "message": "Expiry date should be greater than the encounter date." + } + ], "questionOptions": { - "concept": "1282AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "84893AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "N/A" - } - ] + "rendering": "date", + "concept": "162502AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "weeksList": "" }, + "id": "expiryDate", "hide": { - "hideWhenExpression": "isEmpty(babyCondition) || babyCondition !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(kitName) && isEmpty(kitNameA) && isEmpty(kitNameFe)" } }, { - "label": "Given Vitamin K :", + "label": "HIV Test 1 Results:", "type": "obs", - "id": "vitaminK", - "required": "true", "questionOptions": { - "concept": "984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", + "rendering": "select", + "concept": "1040AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Positive" }, { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" + "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Negative" + }, + { + "concept": "163611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Invalid" } ] + }, + "id": "testResults", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(kitName) && isEmpty(kitNameA) && isEmpty(kitNameFe)" } }, { - "label": "Kangaroo Mother care given:", + "label": "Syphilis Results:", "type": "obs", - "id": "kangarooMotherCare", - "required": "true", + "id": "syphilisTestResults", "questionOptions": { - "concept": "161094AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", + "concept": "299AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "select", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1229AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Negative" }, { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" + "concept": "1228AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Positive" }, { - "concept": "1175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "N/A" + "concept": "1304AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Poor Sample quality" } ] }, "hide": { - "hideWhenExpression": "isEmpty(birthWeight) || birthWeight > 2.4" + "hideWhenExpression": "isEmpty(kitNameA) || kitNameA !== '2f5a80fa-6f26-4832-b8a8-f47649bb60de'" } - }, + } + ] + }, + { + "label": "HIV Test(s)", + "type": "obsGroup", + "questionOptions": { + "rendering": "group", + "concept": "164410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "id": "hivTest2", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true'" + }, + "questions": [ { - "label": "Initiated BF in less than 1 hour:", + "label": "Kit 2 Name", "type": "obs", - "id": "babyInitiatedBF", "questionOptions": { - "concept": "161543AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", + "rendering": "select", + "concept": "214c83f9-435d-44f5-9ae6-d5757b7b4c7f", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "3de9db8a-32a2-4518-8887-c8f25208dade", + "label": "One Step" }, { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" + "concept": "59ef8c87-eb66-4f9e-a459-7227c01f682e", + "label": "First Response" } ] }, + "id": "kitNameB", + "validators": [], "hide": { - "hideWhenExpression": "isEmpty(babyCondition) || babyCondition !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(testResults) || testResults !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } }, { - "label": "Apgar Score (1 min):", + "label": "Lot Number", "type": "obs", - "id": "babyApgarScore1Min", - "required": "true", "questionOptions": { - "concept": "159603AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "number", - "min": "0", - "max": "10" + "rendering": "text", + "concept": "3d4f9e8e-46cc-4024-a1c4-d0167f2c84a4" }, + "id": "lotNumberB", + "validators": [], "hide": { - "hideWhenExpression": "isEmpty(babyCondition) || babyCondition !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(kitNameB)" } }, { - "label": "Apgar Score (5 min):", + "label": "Expiry Date", "type": "obs", - "id": "babyAScore5Min", - "required": "true", + "validators": [ + { + "type": "date", + "allowFutureDates": "true" + }, + { + "type": "js_expression", + "failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')", + "message": "Expiry date should be greater than the encounter date." + } + ], "questionOptions": { - "concept": "159604AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "number", - "min": "0", - "max": "10" + "rendering": "date", + "concept": "162502AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "weeksList": "" }, + "id": "expiryDateB", "hide": { - "hideWhenExpression": "isEmpty(babyCondition) || babyCondition !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(kitNameB)" } }, { - "label": "Apgar Score (10 min):", + "label": "HIV Test 2 Results:", "type": "obs", - "id": "babyApgarScore10Min", - "required": "true", "questionOptions": { - "concept": "159605AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "number", - "min": "0", - "max": "10" + "rendering": "select", + "concept": "1326AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Positive" + }, + { + "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Negative" + }, + { + "concept": "163611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Invalid" + } + ] }, + "id": "testResultsB", + "validators": [], "hide": { - "hideWhenExpression": "isEmpty(babyCondition) || babyCondition !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(kitNameB)" } } - ], - "id": "babyDetails" - } - ] - } - ] - }, - { - "label": "Other Delivery Details", - "sections": [ - { - "label": "HIV Testing", - "isExpanded": "true", - "questions": [ + ] + }, { - "label": "HIV Test(s)", + "label": "HIV Test", "type": "obsGroup", "questionOptions": { "rendering": "group", "concept": "164410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" }, - "id": "hivTest", + "id": "hivTestA2", "validators": [], "hide": { "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true'" }, "questions": [ { - "label": "Kit Name", + "label": "Kit 1 Name", "type": "obs", "questionOptions": { "rendering": "select", "concept": "214c83f9-435d-44f5-9ae6-d5757b7b4c7f", "answers": [ { - "concept": "7cf927f8-e734-474f-b71a-1459bb566aa2", - "label": "Determine" - }, - { - "concept": "2f5a80fa-6f26-4832-b8a8-f47649bb60de", - "label": "Dual Kit" + "concept": "9c4011c2-2579-49cf-ab53-93d009f03e7b", + "label": "Trinscreen" } ] }, - "id": "kitName", + "id": "kitNameD", "validators": [], "hide": { - "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true'" + "hideWhenExpression": "isEmpty(testResultsB) || testResultsB !== '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || kitName ==='7cf927f8-e734-474f-b71a-1459bb566aa2' && kitNameB === '59ef8c87-eb66-4f9e-a459-7227c01f682e' || kitNameA ==='2f5a80fa-6f26-4832-b8a8-f47649bb60de' && kitNameB === '59ef8c87-eb66-4f9e-a459-7227c01f682e'" } }, { @@ -924,10 +1605,10 @@ "rendering": "text", "concept": "3d4f9e8e-46cc-4024-a1c4-d0167f2c84a4" }, - "id": "lotNumber", + "id": "lotNumberD", "validators": [], "hide": { - "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true'" + "hideWhenExpression": "isEmpty(kitNameD)" } }, { @@ -937,6 +1618,11 @@ { "type": "date", "allowFutureDates": "true" + }, + { + "type": "js_expression", + "failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')", + "message": "Expiry date should be greater than the encounter date." } ], "questionOptions": { @@ -944,17 +1630,17 @@ "concept": "162502AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "weeksList": "" }, - "id": "expiryDate", + "id": "expiryDateD", "hide": { - "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true'" + "hideWhenExpression": "isEmpty(kitNameD)" } }, { - "label": "HIV Test Results:", + "label": "HIV Test 3 Results:", "type": "obs", "questionOptions": { "rendering": "select", - "concept": "1040AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "1326AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "answers": [ { "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -970,40 +1656,29 @@ } ] }, - "id": "testResults", + "id": "testResultsD", "validators": [], "hide": { - "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true'" - } - }, - { - "label": "Syphilis Results:", - "type": "obs", - "id": "syphilisTestResults", - "questionOptions": { - "concept": "299AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "select", - "answers": [ - { - "concept": "1229AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Negative" - }, - { - "concept": "1228AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Positive" - }, - { - "concept": "1304AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Poor Sample quality" - } - ] - }, - "hide": { - "hideWhenExpression": "isEmpty(kitName) || kitName !== '2f5a80fa-6f26-4832-b8a8-f47649bb60de'" + "hideWhenExpression": "isEmpty(kitNameD)" } - }, + } + ] + }, + { + "label": "HIV Test", + "type": "obsGroup", + "questionOptions": { + "rendering": "group", + "concept": "164410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "id": "hivTest3", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true'" + }, + "questions": [ { - "label": "Kit Name", + "label": "Kit 3 Name", "type": "obs", "questionOptions": { "rendering": "select", @@ -1015,10 +1690,10 @@ } ] }, - "id": "kitNameB", + "id": "kitNameC", "validators": [], "hide": { - "hideWhenExpression": "isEmpty(testResults) || testResults !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(testResultsB) || testResultsB !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || kitName ==='7cf927f8-e734-474f-b71a-1459bb566aa2' || kitNameB === '59ef8c87-eb66-4f9e-a459-7227c01f682e'" } }, { @@ -1028,10 +1703,10 @@ "rendering": "text", "concept": "3d4f9e8e-46cc-4024-a1c4-d0167f2c84a4" }, - "id": "lotNumberB", + "id": "lotNumberC", "validators": [], "hide": { - "hideWhenExpression": "isEmpty(testResults) || testResults !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(kitNameC)" } }, { @@ -1041,6 +1716,11 @@ { "type": "date", "allowFutureDates": "true" + }, + { + "type": "js_expression", + "failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')", + "message": "Expiry date should be greater than the encounter date." } ], "questionOptions": { @@ -1048,17 +1728,17 @@ "concept": "162502AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "weeksList": "" }, - "id": "expiryDateB", + "id": "expiryDateC", "hide": { - "hideWhenExpression": "isEmpty(testResults) || testResults !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(kitNameC)" } }, { - "label": "HIV Test Results:", + "label": "HIV Test 3 Results:", "type": "obs", "questionOptions": { "rendering": "select", - "concept": "1040AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "83038d41-e832-498b-928f-974ec5bb23dc", "answers": [ { "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -1074,13 +1754,43 @@ } ] }, - "id": "testResultsB", - "validators": [], - "hide": { - "hideWhenExpression": "isEmpty(testResults) || testResults !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "id": "testResultsC", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(kitNameC)" + } + } + ] + }, + { + "label": "Final Results:", + "type": "obs", + "questionOptions": { + "rendering": "select", + "concept": "159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculate": { + "calculateExpression": "String(testResults) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsB) === '163611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsB) === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) || String(testResultsB) === '163611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" + }, + "answers": [ + { + "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Positive" + }, + { + "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Negative" + }, + { + "concept": "1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Inconclusive" } - } - ] + ] + }, + "id": "hivFinalResultOld", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true' || kitName === '9c4011c2-2579-49cf-ab53-93d009f03e7b' || kitNameFe === '9c4011c2-2579-49cf-ab53-93d009f03e7b' || kitNameA === '9c4011c2-2579-49cf-ab53-93d009f03e7b'" + } }, { "label": "Final Results:", @@ -1089,7 +1799,7 @@ "rendering": "select", "concept": "159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "calculate": { - "calculateExpression": "String(testResults) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsB) === '163611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsB) === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) || String(testResultsB) === '163611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" + "calculateExpression": "String(testResults) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsB) === '163611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsB) === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsD) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsB) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsC) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsB) === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsC) === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsB) === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsD) === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsB) === '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && String(testResultsC) === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : String(testResults) === '163611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || String(testResultsB) === '163611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || String(testResultsC) === '163611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || String(testResultsD) === '163611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" }, "answers": [ { @@ -1108,17 +1818,159 @@ }, "id": "hivFinalResult", "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true' || kitName ==='7cf927f8-e734-474f-b71a-1459bb566aa2' || kitNameB === '59ef8c87-eb66-4f9e-a459-7227c01f682e' || kitNameA === '2f5a80fa-6f26-4832-b8a8-f47649bb60de' && testResults === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || testResults === '163611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || kitNameA === '7cf927f8-e734-474f-b71a-1459bb566aa2' && testResults === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Results given to client?", + "type": "obs", + "required": "true", + "questionOptions": { + "rendering": "select", + "concept": "164848AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes", + "conceptMappings": [ + { + "type": "PIH", + "value": "1065" + }, + { + "type": "SNOMED CT", + "value": "CT: 373066001" + }, + { + "type": "PIH Malawi", + "value": "Malawi: 1065" + }, + { + "type": "CIEL", + "value": "1065" + }, + { + "type": "AMPATH", + "value": "1065" + } + ] + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No", + "conceptMappings": [ + { + "type": "PIH", + "value": "1066" + }, + { + "type": "PIH Malawi", + "value": "Malawi: 1066" + }, + { + "type": "AMPATH", + "value": "1066" + }, + { + "type": "CIEL", + "value": "1066" + }, + { + "type": "SNOMED CT", + "value": "CT: 373067005" + } + ] + } + ] + }, + "id": "resultsGiven", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true'" + } + }, + { + "label": "Couple is discordant:", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "6096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculate": { + "calculateExpression": "String(testedAs) === '147082f4-0662-4bfa-a54c-914f1db97373' ? '1175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" + }, + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes", + "conceptMappings": [ + { + "type": "PIH", + "value": "1065" + }, + { + "type": "SNOMED CT", + "value": "CT: 373066001" + }, + { + "type": "PIH Malawi", + "value": "Malawi: 1065" + }, + { + "type": "CIEL", + "value": "1065" + }, + { + "type": "AMPATH", + "value": "1065" + } + ] + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No", + "conceptMappings": [ + { + "type": "PIH", + "value": "1066" + }, + { + "type": "PIH Malawi", + "value": "Malawi: 1066" + }, + { + "type": "AMPATH", + "value": "1066" + }, + { + "type": "CIEL", + "value": "1066" + }, + { + "type": "SNOMED CT", + "value": "CT: 373067005" + } + ] + }, + { + "concept": "1175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "N/A" + } + ] + }, + "id": "coupleDiscordant", + "validators": [], "hide": { "hideWhenExpression": "isEmpty(consentGiven) || consentGiven !== 'true'" } }, { - "label": "Has the client's partner been tested for HIV? Partner HIV Status:", + "label": "Has the client's partner been tested for HIV?", "type": "obs", "id": "partnerTested", "questionOptions": { "concept": "161557AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "select", + "rendering": "radio", "answers": [ { "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -1134,7 +1986,7 @@ { "label": "Partner HIV Status:", "type": "obs", - "id": "partnerHIVStatus", + "id": "partnerHivStatus", "questionOptions": { "concept": "1436AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "select", @@ -1154,47 +2006,92 @@ ] }, "hide": { - "hideWhenExpression": "isEmpty(partnerTested) || partnerTested === '1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(partnerTested) || partnerTested !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] - }, + } + ] + }, + { + "label": "Patient Management", + "sections": [ { - "label": "ART & Prophylaxis", + "label": "Delivery Management", "isExpanded": "true", "questions": [ { - "label": "Mother's prophylaxis given during this visit?", + "label": "Was Resuscitation done:", + "type": "obs", + "id": "resuscitation", + "questionOptions": { + "concept": "162131AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "hide": { + "hideWhenExpression": "" + } + }, + { + "label": "Was Stimulation done:", "type": "obs", - "id": "prophylaxisUsed", + "id": "StiMulationdOne", "questionOptions": { - "concept": "1109AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "17b47d52-eb47-4199-91f5-27dc78c95adf", "rendering": "radio", "answers": [ { - "concept": "105281AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Cotrimoxazole" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { - "concept": "74250AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Dapsone" + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "hide": { + "hideWhenExpression": "" + } + }, + { + "label": "Was Suction done:", + "type": "obs", + "id": "SuctIonDOne", + "questionOptions": { + "concept": "1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { - "concept": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "None" + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" } ] }, "hide": { - "hideWhenExpression": "isEmpty(hivFinalResult) || hivFinalResult !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "" } }, { - "label": "Mother started on HAART at maternity ?", + "label": "Was Oxygen given:", "type": "obs", - "id": "startedHaartAnc", + "id": "OxyGenDOne", "questionOptions": { - "concept": "166665AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "113316AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "radio", "answers": [ { @@ -1204,23 +2101,41 @@ { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "No" + } + ] + }, + "hide": { + "hideWhenExpression": "" + } + }, + { + "label": "Was Bag and Mask ventilation provided:", + "type": "obs", + "id": "BGprovided", + "questionOptions": { + "concept": "165647AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { - "concept": "1175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "N/A" + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" } ] }, "hide": { - "hideWhenExpression": "isEmpty(hivFinalResult) || hivFinalResult !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "" } }, { - "label": "Was mother on HAART during ANC?", + "label": "Was Induction done", "type": "obs", - "id": "wasOnHaartAnc", + "id": "iNductIonprovided", "questionOptions": { - "concept": "163783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "113602AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "radio", "answers": [ { @@ -1230,27 +2145,79 @@ { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "No" + } + ] + }, + "hide": { + "hideWhenExpression": "" + } + }, + { + "label": "If yes indication for induction", + "type": "obs", + "id": "TextiNduction", + "questionOptions": { + "concept": "", + "rendering": "textarea", + "rows": "10" + }, + "hide": { + "hideWhenExpression": "iNductIonprovided !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Was Artificial Rapture of membrane(ARM) done", + "type": "obs", + "id": "ARMprovided", + "questionOptions": { + "concept": "163445AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { - "concept": "1175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "N/A" + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" } ] }, "hide": { - "hideWhenExpression": "isEmpty(hivFinalResult) || hivFinalResult !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "" } }, { - "label": "AZT for the baby dispensed?", + "label": "Given Vitamin K :", "type": "obs", - "id": "aztDispensed", + "id": "vitaminK", + "required": "true", "questionOptions": { - "concept": "1282AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + } + }, + { + "label": "TEO given at birth ?", + "type": "obs", + "id": "babyTEOAtBirth", + "required": "true", + "questionOptions": { + "concept": "1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "radio", "answers": [ { - "concept": "160123AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "84893AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Yes" }, { @@ -1264,19 +2231,19 @@ ] }, "hide": { - "hideWhenExpression": "isEmpty(hivFinalResult) || hivFinalResult !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "" } }, { - "label": "NVP for the baby dispensed?", + "label": "Counselled on infant feeding?", "type": "obs", - "id": "nvpDispensed", + "id": "infantFeeding", "questionOptions": { - "concept": "1282AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "162091AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "radio", "answers": [ { - "concept": "80586AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Yes" }, { @@ -1285,12 +2252,9 @@ }, { "concept": "1175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "N/A" + "label": "Not applicable" } ] - }, - "hide": { - "hideWhenExpression": "isEmpty(hivFinalResult) || hivFinalResult !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -1299,94 +2263,86 @@ "label": "Referrals", "isExpanded": "true", "questions": [ + { + "label": "Reffered For?", + "type": "obs", + "id": "refferalsOrderd", + "questionOptions": { + "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "textarea" + } + }, { "label": "Referred from?", "type": "obs", - "id": "referredFrom", + "id": "referralfrom", "questionOptions": { - "concept": "160481AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "163145AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "select", "answers": [ { - "concept": "1537AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Another Health Facility" + "concept": "164407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other health facility" }, { - "concept": "163488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "4fcf003e-71cf-47a5-a967-47d24aa61092", "label": "Community Unit" - }, - { - "concept": "1175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "N/A" } ] } }, - { - "label": "Reason for referral", - "type": "obs", - "id": "reasonReferralfrom", - "questionOptions": { - "concept": "164359AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" - }, - "hide": { - "hideWhenExpression": "isEmpty(referredFrom) || referredFrom !== '1537AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && referredFrom !== '163488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, { "label": "Referred to?", "type": "obs", - "id": "referredTo", + "id": "referralTo", "questionOptions": { "concept": "163145AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "select", "answers": [ { - "concept": "1537AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Another Health Facility" - }, - { - "concept": "c9404c8f-cf83-4bfe-acc0-4881599c78ba", - "label": "HIV Preventive services" + "concept": "4fcf003e-71cf-47a5-a967-47d24aa61092", + "label": "Community Unit" }, { - "concept": "163488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Community Unit" + "concept": "164407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other health facility" }, { - "concept": "1175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "N/A" + "concept": "c9404c8f-cf83-4bfe-acc0-4881599c78ba", + "label": "HIV Preventive Services" } ] } }, { - "label": "Reason for referral", + "label": "Transfer to Facility:", "type": "obs", - "id": "reasonReferral", + "id": "transferToFacility", "questionOptions": { - "concept": "164359AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" + "concept": "159495AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "encounterLocation" }, "hide": { - "hideWhenExpression": "isEmpty(referredTo) || referredTo !== '1537AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && referredTo !== 'c9404c8f-cf83-4bfe-acc0-4881599c78ba' && referredTo !== '163488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "referralTo !=='164407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] }, { - "label": "Clinical Notes", + "label": "Next Review and Clinical Notes", "isExpanded": "true", "questions": [ { - "label": "Next review date:", + "label": "Appointments", "required": false, "id": "appointmentWorkspaceLauncher", "questionOptions": { "rendering": "workspace-launcher", "buttonLabel": "Add appointments", "workspaceName": "appointments-form-workspace" + }, + "hide": { + "hideWhenExpression": "outcomePatient !=='160429AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } }, { @@ -1395,7 +2351,8 @@ "id": "clinicalNotes", "questionOptions": { "concept": "159395AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" + "rendering": "textarea", + "rows": "15" } } ]