Skip to content

Commit 093dfa7

Browse files
authored
Correct calculation expression of presumptive TB (#840)
1 parent 851834b commit 093dfa7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

omod/src/main/webapp/resources/jsonforms/HMIS-MCH-005-IntegratedAntenatalRegister.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "HMIS 005 Integrated Antenatal Register",
3-
"version": "4.1.3",
3+
"version": "4.1.4",
44
"description": "Entry form for patients enrolled for ANC services",
55
"encounterType": "044daI6d-f80e-48fe-aba9-037f241905Pe",
66
"encounter": "ANC - Encounter",
@@ -676,7 +676,7 @@
676676
"rendering": "date",
677677
"concept": "0b434cfa-b11c-4d14-aaa2-9aed6ca2da88",
678678
"calculate": {
679-
"calculateExpression": "resolve(api.getLatestObs(patient.id, '0b434cfa-b11c-4d14-aaa2-9aed6ca2da88')).then(obs => obs.valueDateTime)"
679+
"calculateExpression": "resolve(api.getLatestObs(patient.id, '0b434cfa-b11c-4d14-aaa2-9aed6ca2da88')).then(obs => obs?.valueDateTime)"
680680
},
681681
"conceptMappings": [],
682682
"answers": []
@@ -859,7 +859,7 @@
859859
"rendering": "text",
860860
"concept": "2e2ec250-f5d3-4de7-8c70-a458f42441e6",
861861
"calculate": {
862-
"calculateExpression": "resolve(api.getLatestObs(patient.id, '2e2ec250-f5d3-4de7-8c70-a458f42441e6')).then(obs => obs.valueCodeableConcept?.coding[0]?.code)"
862+
"calculateExpression": "resolve(api.getLatestObs(patient.id, '2e2ec250-f5d3-4de7-8c70-a458f42441e6')).then(obs => obs.valueString)"
863863
},
864864
"conceptMappings": [],
865865
"answers": []
@@ -1511,6 +1511,4 @@
15111511
]
15121512
}
15131513
]
1514-
}
1515-
1516-
1514+
}

0 commit comments

Comments
 (0)