Skip to content

Commit

Permalink
(chore): Update the hiv forms (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
NethmiRodrigo authored Aug 1, 2024
1 parent c354aa5 commit 104c054
Show file tree
Hide file tree
Showing 6 changed files with 9,367 additions and 94 deletions.
43 changes: 12 additions & 31 deletions distro/configuration/ampathforms/ct_cd4_lab_results_v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,20 @@
{
"label": "Test Result Date",
"type": "obs",
"required": false,
"id": "testResultDate",
"datePickerFormat": "both",
"questionOptions": {
"rendering": "date",
"concept": "163724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"weeksList": ""
},
"id": "testResultDate",
"behaviours": [
{
"intent": "*",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "false"
},
"validators": [
{
"type": "date",
"allowFutureDates": "false"
},
{
"type": "js_expression",
"failsWhenExpression": "isDateBefore(myValue, '1980-01-01') || myValue >= today()"
}
]
},
{
"intent": "CD4_LAB_RESULTS_EMBED",
"required": "true",
"unspecified": "true",
"hide": {
"hideWhenExpression": "false"
"conceptMappings": [
{
"relationship": "SAME-AS",
"type": "CIEL",
"value": "163724"
}
}
]
]
}
},
{
"label": "CD4 count",
Expand Down Expand Up @@ -182,5 +162,6 @@
"referencedForms": [],
"encounterType": "96adb28e-e417-43a3-8f7d-682f8af5e912",
"encounter": "CD4 Lab results",
"allowUnspecifiedAll": true
"allowUnspecifiedAll": true,
"description": "A form used to collect CD4 lab results"
}
Loading

0 comments on commit 104c054

Please sign in to comment.