Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ohri into develop
  • Loading branch information
aman-icap committed Aug 2, 2024
2 parents a81c718 + 309c99e commit 11f06c8
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 119 deletions.
11 changes: 4 additions & 7 deletions src/forms/family-members.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down
92 changes: 66 additions & 26 deletions src/forms/followup.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,31 +191,70 @@
"id": "eligibleDate"
},
{
"label": "Why eligible (TI)",
"label": "Transferred-In (check this for all TI cases)",
"type": "obs",
"questionOptions": {
"calculate": {
"calculateExpression": "resolve(api.getLatestObs(patient.id, '613718f1-ecf2-4228-b9c2-6157d574bd0b', '136b2ded-22a3-4831-a39a-088d35a50ef5'))?.valueCodeableConcept?.coding?"
"calculate": {
"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"

"concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Yes"
},
{
"concept": "dfec38ad-238a-4f4a-a52f-c96b6becdd26",
"label": "Clinical Staging"
"concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "No"
}
]
},
"behaviours": [
{
"intent": "edit",
"questionOptions": {
"rendering": "radio",
"concept": "cc2dfcbd-e099-47d5-b01c-74caa296ba3c",
"answers": [
{
"concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Yes"
},
{
"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": []
}
]
},
Expand All @@ -224,25 +263,23 @@
{
"intent": "edit",
"questionOptions": {
"rendering": "select",
"concept": "613718f1-ecf2-4228-b9c2-6157d574bd0b",
"rendering": "checkbox",
"concept": "b7b1da64-22f4-4357-9eb8-493b43c02581",
"answers": [
{
"concept": "163329AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Test and Treatment"

"concept": "b52413a8-cc05-4ce3-8af9-b4a8deda0d1b",
"label": "Test and Treat",
"conceptMappings": []
},
{
"concept": "dfec38ad-238a-4f4a-a52f-c96b6becdd26",
"label": "Clinical Staging"
},
{
"concept": "160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Transfer in (Check this for all TI cases)"
"label": "Clinical Staging",
"conceptMappings": []
},
{
"concept": "0b4ec9d0-d86a-4978-b3ad-0add037232d7",
"label": "Other (like TB, HBV, Pregnant)"
"label": "Other(like TB, HBV, Pregnant)",
"conceptMappings": []
}
]
}
Expand Down Expand Up @@ -5725,8 +5762,7 @@
"type": "obs",
"questionOptions": {
"rendering": "radio",
"concept": "159859AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",

"concept": "8ecc6d15-26dd-4840-8667-a517a93bea5f",
"answers": [
{
"concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand All @@ -5736,6 +5772,10 @@
{
"concept": "5e4fc757-0b14-49ae-b3b7-419666f41e15",
"label": "Negative"
},
{
"concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Unknown"
}
]
},
Expand Down
57 changes: 22 additions & 35 deletions src/forms/hei-enrollment.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
},
{
Expand Down Expand Up @@ -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"
}
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/forms/intake-a.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
Expand Down
25 changes: 10 additions & 15 deletions src/forms/intake-b.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"label": "Toxoplasmosis of Brain"
},
{
"concept": "d02a4fc0-8ef9-47f6-85d6-88c85a471baa",
"concept": "feba334d-46af-4ea6-a82c-fc5cde1ec9bf",
"label": "Wasting Syndrome"
},
{
Expand Down Expand Up @@ -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": []
},
{
Expand Down Expand Up @@ -3589,7 +3594,7 @@
"label": "HIV encephalopathy"
},
{
"concept": "17e3f152-863b-4778-b7ed-341a5b1c907b",
"concept": "feba334d-46af-4ea6-a82c-fc5cde1ec9bf",
"label": "HIV Wasting Syndrome"
},
{
Expand Down Expand Up @@ -3858,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",
Expand Down
2 changes: 1 addition & 1 deletion src/forms/pre-exposure-followup.json
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@
"label": "TO"
},
{
"concept": "160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"concept": "cc2dfcbd-e099-47d5-b01c-74caa296ba3c",
"label": "Transfer in (Started in other Facility)"
}
]
Expand Down
42 changes: 9 additions & 33 deletions src/forms/pre-exposure-screening.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
}
]
Expand Down Expand Up @@ -1825,22 +1808,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"
}
]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
},
},
{
Expand Down

0 comments on commit 11f06c8

Please sign in to comment.