Skip to content

Commit

Permalink
Merge pull request #54 from Herobiam/updates-OHRI-1751
Browse files Browse the repository at this point in the history
correction of the check
  • Loading branch information
Herobiam authored Aug 23, 2023
2 parents 839fdea + fee38d5 commit 1b8d6f2
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 3 deletions.
2 changes: 1 addition & 1 deletion distro/configuration/ampathforms/pmtct_antenatal_v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
{
"intent":"*",
"required":"true",
"readonly": "mode == 'edit' && !isEmpty(latest_hiv_test_result) || !isEmpty(latest_hiv_test_status) ? true : false",
"readonly": "mode == 'edit' && isEmpty(latest_hiv_test_status) && isEmpty(hiv_test) ? true : false",
"hide":{
"hideWhenExpression":"latest_hiv_test_result == '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || latest_hiv_test_status == '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' || latest_art_initiation == '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || latest_art_initiation == '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,52 @@
{
"intent":"*",
"required":"true",
"readonly": "mode == 'edit' && !isEmpty(anc_latest_hiv_test_result) ? true : false",
"readonly": "mode == 'edit' && isEmpty(latest_hiv_test_status) || isEmpty(anc_hiv_test_status) ? true : false",
"hide":{
"hideWhenExpression":"anc_latest_hiv_test_result == '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || latest_art_initiation == '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || latest_art_initiation == '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
}
]
},
{
"label": "Latest HIV Test Status",
"type": "obs",
"id": "latest_hiv_test_status",
"questionOptions": {
"concept": "164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "fixed-value",
"calculate": {
"calculateExpression": "resolve(api.getLatestObs(patient.id, '164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '2678423c-0523-4d76-b0da-18177b439eed'))?.valueCodeableConcept?.coding[0]?.code"
},
"answers": [
{
"concept": "6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f",
"label": "Tested for HIV during this visit"
},
{
"concept": "8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8",
"label": "Previously known positive"
},
{
"concept": "d18fa331-f158-47d0-b344-cf147c7125a4",
"label": "Not tested for HIV during this visit"
},
{
"concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351",
"label": "Missing"
}
]
},
"behaviours":[
{
"intent":"*",
"required":"false",
"hide":{
"hideWhenExpression":"true"
}
}
]
},
{
"label": "HIV Test Status at maternity/delivery",
"type": "obs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
{
"intent":"*",
"required":"true",
"readonly": "mode == 'edit' !isEmpty(ancHivTestResult) ? true : false",
"readonly": "mode == 'edit' && !isEmpty(latest_hiv_test_status) || isEmpty(hiv_test_status_pnc) ? true : false",
"hide":{
"hideWhenExpression":"testStatusAtANC == '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' || ancHivTestResult == '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || latest_art_initiation == '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || latest_art_initiation == '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
},
Expand All @@ -249,6 +249,45 @@
}
]
},
{
"label": "Latest HIV Test Status",
"type": "obs",
"id": "latest_hiv_test_status",
"questionOptions": {
"concept": "164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "fixed-value",
"calculate": {
"calculateExpression": "resolve(api.getLatestObs(patient.id, '164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '269bcc7f-04f8-4ddc-883d-7a3a0d569aad'))?.valueCodeableConcept?.coding[0]?.code"
},
"answers": [
{
"concept": "6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f",
"label": "Tested for HIV during this visit"
},
{
"concept": "8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8",
"label": "Previously known positive"
},
{
"concept": "d18fa331-f158-47d0-b344-cf147c7125a4",
"label": "Not tested for HIV during this visit"
},
{
"concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351",
"label": "Missing"
}
]
},
"behaviours":[
{
"intent":"*",
"required":"false",
"hide":{
"hideWhenExpression":"true"
}
}
]
},
{
"label":"HIV Test Result",
"type":"obs",
Expand Down

0 comments on commit 1b8d6f2

Please sign in to comment.