From 28c9f29a4ebc05d97c3ff0bb8aaf0373f1ac8f80 Mon Sep 17 00:00:00 2001 From: melkam-mekonnen Date: Thu, 1 Aug 2024 12:48:44 +0300 Subject: [PATCH 1/8] Wasting syndrome fix --- src/forms/intake-b.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forms/intake-b.json b/src/forms/intake-b.json index a834dc8..67d40f9 100644 --- a/src/forms/intake-b.json +++ b/src/forms/intake-b.json @@ -197,7 +197,7 @@ "label": "Toxoplasmosis of Brain" }, { - "concept": "d02a4fc0-8ef9-47f6-85d6-88c85a471baa", + "concept": "feba334d-46af-4ea6-a82c-fc5cde1ec9bf", "label": "Wasting Syndrome" }, { @@ -3589,7 +3589,7 @@ "label": "HIV encephalopathy" }, { - "concept": "17e3f152-863b-4778-b7ed-341a5b1c907b", + "concept": "feba334d-46af-4ea6-a82c-fc5cde1ec9bf", "label": "HIV Wasting Syndrome" }, { From 3d00d95003c6a60c6c0d1bac9b5c8f43fea2b3ed Mon Sep 17 00:00:00 2001 From: melkam-mekonnen Date: Thu, 1 Aug 2024 14:40:10 +0300 Subject: [PATCH 2/8] Correcting dysphagia and swallowing pain concepts --- src/forms/intake-b.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/forms/intake-b.json b/src/forms/intake-b.json index 67d40f9..4461103 100644 --- a/src/forms/intake-b.json +++ b/src/forms/intake-b.json @@ -2176,9 +2176,14 @@ "label": "STI Symptoms", "conceptMappings": [] }, + { + "concept": "118789AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Dysphagia", + "conceptMappings": [] + }, { "concept": "125225AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Dysphagia/Odynophagia, Swallowing Painful", + "label": "Odynophagia, Swallowing Painful", "conceptMappings": [] }, { From e116430e4f6a0baa1a67d0f8153e546b288ff4de Mon Sep 17 00:00:00 2001 From: melkam-mekonnen Date: Thu, 1 Aug 2024 14:52:18 +0300 Subject: [PATCH 3/8] Minor fix --- src/forms/family-members.json | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/forms/family-members.json b/src/forms/family-members.json index bda0458..975cbf0 100644 --- a/src/forms/family-members.json +++ b/src/forms/family-members.json @@ -637,13 +637,10 @@ "type": "obs", "questionOptions": { "rendering": "text", - "concept": "164402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "type": "CIEL", - "value": "164402" - } - ] + "calculate": { + "calculateExpression": "getIdentifier(patient, 'UAN')" + }, + "concept": "162054AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" }, "hide": { "hideWhenExpression": "artStarted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" From 222fde8ef41916944f11dda4782fb6a35f745da0 Mon Sep 17 00:00:00 2001 From: melkam-mekonnen Date: Thu, 1 Aug 2024 15:12:24 +0300 Subject: [PATCH 4/8] Updates for HPV DNA screening result --- src/forms/followup.json | 80 ++++++++++++++++++++++++++++++----------- 1 file changed, 60 insertions(+), 20 deletions(-) diff --git a/src/forms/followup.json b/src/forms/followup.json index 5502fc3..1eb5e84 100644 --- a/src/forms/followup.json +++ b/src/forms/followup.json @@ -169,7 +169,7 @@ "label": "Why eligible (TI)", "type": "obs", "questionOptions": { - "calculate": { + "calculate": { "calculateExpression": "resolve(api.getLatestObs(patient.id, '613718f1-ecf2-4228-b9c2-6157d574bd0b', '136b2ded-22a3-4831-a39a-088d35a50ef5'))?.valueCodeableConcept?.coding?" }, "rendering": "select", @@ -10849,25 +10849,7 @@ "type": "obs", "questionOptions": { "rendering": "radio", - "concept": "159859AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "type": "CIEL", - "value": "159859" - }, - { - "type": "AMPATH", - "value": "2322" - }, - { - "type": "SNOMED-MVP", - "value": "1598591000105006" - }, - { - "type": "SNOMED-CT", - "value": "9718006" - } - ], + "concept": "8ecc6d15-26dd-4840-8667-a517a93bea5f", "answers": [ { "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -10927,6 +10909,64 @@ "concept": "5e4fc757-0b14-49ae-b3b7-419666f41e15", "label": "Negative", "conceptMappings": [] + }, + { + "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Unknown", + "conceptMappings": [ + { + "type": "SNOMED CT", + "value": "CT: 261665006" + }, + { + "type": "ANC-DAK", + "value": "ANC.B6.DE2" + }, + { + "type": "CIEL", + "value": "1067" + }, + { + "type": "PIH", + "value": "1067" + }, + { + "type": "HL7-MedicationDispenseStatus", + "value": "unknown" + }, + { + "type": "org.openmrs.module.mdrtb", + "value": "UNKNOWN" + }, + { + "type": "AMPATH", + "value": "1067" + }, + { + "type": "AMPATH", + "value": "1067" + }, + { + "type": "PIH", + "value": "1067" + }, + { + "type": "SNOMED-CT", + "value": "261665006" + }, + { + "type": "CIEL", + "value": "1067" + }, + { + "type": "SNOMED-CT", + "value": "261665006" + }, + { + "type": "org.openmrs.module.mdrtb", + "value": "UNKNOWN" + } + ] } ] }, From 481856e86722ae36fae56f53dad6216065881b60 Mon Sep 17 00:00:00 2001 From: melkam-mekonnen Date: Thu, 1 Aug 2024 16:39:10 +0300 Subject: [PATCH 5/8] Minor trying --- src/forms/followup.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/forms/followup.json b/src/forms/followup.json index 1eb5e84..0d8e321 100644 --- a/src/forms/followup.json +++ b/src/forms/followup.json @@ -168,6 +168,7 @@ { "label": "Why eligible (TI)", "type": "obs", + "id": "whyEligible", "questionOptions": { "calculate": { "calculateExpression": "resolve(api.getLatestObs(patient.id, '613718f1-ecf2-4228-b9c2-6157d574bd0b', '136b2ded-22a3-4831-a39a-088d35a50ef5'))?.valueCodeableConcept?.coding?" @@ -206,7 +207,7 @@ } ] }, - "id": "whyEligible" + "validators": [] }, { "label": "UAN", From cd0fea3196c572a239500d2c94694fca3f8e91fc Mon Sep 17 00:00:00 2001 From: melkam-mekonnen Date: Thu, 1 Aug 2024 17:44:59 +0300 Subject: [PATCH 6/8] Work on why eligible in followup --- src/forms/followup.json | 53 +++++++++++++++++++++++------------------ src/forms/intake-b.json | 14 ++--------- 2 files changed, 32 insertions(+), 35 deletions(-) diff --git a/src/forms/followup.json b/src/forms/followup.json index 0d8e321..46cb56b 100644 --- a/src/forms/followup.json +++ b/src/forms/followup.json @@ -166,48 +166,55 @@ "id": "eligibleDate" }, { - "label": "Why eligible (TI)", + "label": "Transferred-In (check this for all TI cases)", "type": "obs", - "id": "whyEligible", "questionOptions": { "calculate": { - "calculateExpression": "resolve(api.getLatestObs(patient.id, '613718f1-ecf2-4228-b9c2-6157d574bd0b', '136b2ded-22a3-4831-a39a-088d35a50ef5'))?.valueCodeableConcept?.coding?" + "calculateExpression": "resolve(api.getLatestObs(patient.id, 'cc2dfcbd-e099-47d5-b01c-74caa296ba3c', '136b2ded-22a3-4831-a39a-088d35a50ef5'))?.valueCodeableConcept?.coding[0]?.code" }, - "rendering": "select", - "concept": "613718f1-ecf2-4228-b9c2-6157d574bd0b", + "rendering": "radio", + "concept": "cc2dfcbd-e099-47d5-b01c-74caa296ba3c", "answers": [ { - "concept": "163329AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Test and Treatment", - "conceptMappings": [ - { - "type": "CIEL", - "value": "163329" - }, - { - "type": "CIEL", - "value": "163329" - } - ] + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { - "concept": "dfec38ad-238a-4f4a-a52f-c96b6becdd26", - "label": "Clinical Staging", + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "id": "transferredInCase" + }, + { + "label": "Why Eligible?", + "type": "obs", + "questionOptions": { + "calculate": { + "calculateExpression": "resolve(api.getLatestObs(patient.id, 'b7b1da64-22f4-4357-9eb8-493b43c02581', '136b2ded-22a3-4831-a39a-088d35a50ef5'))?.valueCodeableConcept?.coding?" + }, + "rendering": "checkbox", + "concept": "b7b1da64-22f4-4357-9eb8-493b43c02581", + "answers": [ + { + "concept": "b52413a8-cc05-4ce3-8af9-b4a8deda0d1b", + "label": "Test and Treat", "conceptMappings": [] }, { - "concept": "160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Transfer in (Check this for all TI cases)", + "concept": "dfec38ad-238a-4f4a-a52f-c96b6becdd26", + "label": "Clinical Staging", "conceptMappings": [] }, { "concept": "0b4ec9d0-d86a-4978-b3ad-0add037232d7", - "label": "Other (like TB, HBV, Pregnant)", + "label": "Other(like TB, HBV, Pregnant)", "conceptMappings": [] } ] }, - "validators": [] + "id": "whyEligible" }, { "label": "UAN", diff --git a/src/forms/intake-b.json b/src/forms/intake-b.json index 4461103..2d51f24 100644 --- a/src/forms/intake-b.json +++ b/src/forms/intake-b.json @@ -3863,18 +3863,8 @@ "readonly": "true", "answers": [ { - "concept": "163329AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Test and Treatment", - "conceptMappings": [ - { - "type": "CIEL", - "value": "163329" - }, - { - "type": "CIEL", - "value": "163329" - } - ] + "concept": "b52413a8-cc05-4ce3-8af9-b4a8deda0d1b", + "label": "Test and Treatment" }, { "concept": "cd52d9c3-23b5-4394-872e-9e70c4e66728", From 953ed38852140d21cb1f8076c5cdeb3aeadb50e4 Mon Sep 17 00:00:00 2001 From: melkam-mekonnen Date: Thu, 1 Aug 2024 17:53:11 +0300 Subject: [PATCH 7/8] UAN concept updates on forms --- src/forms/hei-enrollment.json | 57 +++++++++++---------------- src/forms/pre-exposure-screening.json | 21 ++++------ 2 files changed, 29 insertions(+), 49 deletions(-) diff --git a/src/forms/hei-enrollment.json b/src/forms/hei-enrollment.json index eb53b6b..75edd05 100644 --- a/src/forms/hei-enrollment.json +++ b/src/forms/hei-enrollment.json @@ -940,29 +940,23 @@ ] }, { - "label": "Unique ART number", - "type": "obs", - "required": false, - "id": "artNumber", - "questionOptions": { - "rendering": "text", - "concept": "164402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "relationship": "SAME-AS", - "type": "CIEL", - "value": "164402" - } - ], + "label": "Unique ART number", + "type": "obs", + "questionOptions": { + "rendering": "text", + "calculate": { + "calculateExpression": "getIdentifier(patient, 'UAN')" + }, + "concept": "162054AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "hide": { "hideWhenExpression": "mothersPmtct !== '1a259ed4-15b5-4e23-8382-972f89be84c8'" } - }, + }, "hide": { "hideWhenExpression": "mothersStatus != '6691e136-0289-4d2f-80bf-50ec816e121a'" }, - "validators": [] - } + "id": "artNumber" + } ] }, { @@ -1067,27 +1061,20 @@ "validators": [] }, { - "label": "If on ART, Unique ART number", - "type": "obs", - "required": false, - "id": "ifOnArt", + "label": "If on ART, Unique ART number", + "type": "obs", + "questionOptions": { + "rendering": "text", + "calculate": { + "calculateExpression": "getIdentifier(patient, 'UAN')" + }, + "concept": "162054AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, "hide": { "hideWhenExpression": "ifPositive != '95daa4f8-b45d-4dee-b5d0-5f9446d22c19' || fathersStatus == '160432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, - "questionOptions": { - "rendering": "text", - "concept": "164402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "relationship": "SAME-AS", - "type": "CIEL", - "value": "164402" - } - ], - "answers": [] - }, - "validators": [] - } + "id": "ifOnArt" + } ] }, { diff --git a/src/forms/pre-exposure-screening.json b/src/forms/pre-exposure-screening.json index ab6b961..51cdd85 100644 --- a/src/forms/pre-exposure-screening.json +++ b/src/forms/pre-exposure-screening.json @@ -1825,22 +1825,15 @@ { "label": "Unique identification code (UIC)", "type": "obs", - "required": false, - "id": "uniqueIdentificaitonCode", "questionOptions": { - "rendering": "number", - "concept": "164402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "relationship": "SAME-AS", - "type": "CIEL", - "value": "164402" - } - ], - "answers": [] + "rendering": "text", + "calculate": { + "calculateExpression": "getIdentifier(patient, 'UAN')" + }, + "concept": "162054AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" }, - "validators": [] - } + "id": "uniqueIdentificaitonCode" + } ] } ] From 309c99ecc674ef227722deefdaf4303cd0e9e347 Mon Sep 17 00:00:00 2001 From: melkam-mekonnen Date: Fri, 2 Aug 2024 10:08:21 +0300 Subject: [PATCH 8/8] Updates for transfer in and type of client concepts --- src/forms/intake-a.json | 2 +- src/forms/pre-exposure-followup.json | 2 +- src/forms/pre-exposure-screening.json | 21 ++----------------- .../tabs/pre-exposure-screening.component.tsx | 2 +- 4 files changed, 5 insertions(+), 22 deletions(-) diff --git a/src/forms/intake-a.json b/src/forms/intake-a.json index dd3d63e..2dfcf40 100644 --- a/src/forms/intake-a.json +++ b/src/forms/intake-a.json @@ -1236,7 +1236,7 @@ "label": "To be enrolled as new Pre-ART client" }, { - "concept": "160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "cc2dfcbd-e099-47d5-b01c-74caa296ba3c", "label": "To be enrolled as transferred in Pre-ART client" } ] diff --git a/src/forms/pre-exposure-followup.json b/src/forms/pre-exposure-followup.json index 73f58f3..02a3cf1 100644 --- a/src/forms/pre-exposure-followup.json +++ b/src/forms/pre-exposure-followup.json @@ -1029,7 +1029,7 @@ "label": "TO" }, { - "concept": "160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "cc2dfcbd-e099-47d5-b01c-74caa296ba3c", "label": "Transfer in (Started in other Facility)" } ] diff --git a/src/forms/pre-exposure-screening.json b/src/forms/pre-exposure-screening.json index 51cdd85..0117891 100644 --- a/src/forms/pre-exposure-screening.json +++ b/src/forms/pre-exposure-screening.json @@ -1666,31 +1666,14 @@ "id": "typeOfClient", "questionOptions": { "rendering": "select", - "concept": "166597AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "relationship": "NARROWER-THAN", - "type": "SNOMED-CT", - "value": "363787002" - }, - { - "relationship": "SAME-AS", - "type": "CIEL", - "value": "166597" - }, - { - "relationship": "SAME-AS", - "type": "KenyaEMR", - "value": "164932" - } - ], + "concept": "da8c5265-2ab4-43f8-af66-ec1c9c8e9d4f", "answers": [ { "concept": "164144AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Newly Started (started in the facility)" }, { - "concept": "160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "cc2dfcbd-e099-47d5-b01c-74caa296ba3c", "label": "Transfer In (started in another facility)" } ] diff --git a/src/views/pre-exposure/tabs/pre-exposure-screening.component.tsx b/src/views/pre-exposure/tabs/pre-exposure-screening.component.tsx index 0a28796..f09df32 100644 --- a/src/views/pre-exposure/tabs/pre-exposure-screening.component.tsx +++ b/src/views/pre-exposure/tabs/pre-exposure-screening.component.tsx @@ -59,7 +59,7 @@ const columns = [ key: "typeOfClient", header: "Type of Client", getValue: (encounter) => { - return getData(encounter, "166597AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); + return getData(encounter, "da8c5265-2ab4-43f8-af66-ec1c9c8e9d4f"); }, }, {