Skip to content

Commit 9a6c7dc

Browse files
committed
add encounter date on HMIS ACP 002: Viral Load Request Form
1 parent 9d483b3 commit 9a6c7dc

File tree

1 file changed

+116
-107
lines changed

1 file changed

+116
-107
lines changed

configuration/backend_configuration/ampathforms/HMIS-ACP-002-ViralLoadRequestForm.json

Lines changed: 116 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,113 @@
1414
{
1515
"label": "Viral Load Request Form",
1616
"sections": [
17+
{
18+
"label": "Orders",
19+
"isExpanded": "true",
20+
"questions": [
21+
{
22+
"label": "Order Test",
23+
"type": "testOrder",
24+
"id": "vlTestOrder",
25+
"questionOptions": {
26+
"rendering": "repeating",
27+
"orderSettingUuid": "OUTPATIENT",
28+
"orderType": "testorder",
29+
"answers": [
30+
{
31+
"concept": "1eb05918-f50c-4cad-a827-3c78f296a10a",
32+
"label": "VL",
33+
"conceptMappings": []
34+
}
35+
],
36+
"selectableOrders": [
37+
{
38+
"concept": "1eb05918-f50c-4cad-a827-3c78f296a10a",
39+
"label": "VL"
40+
},
41+
{
42+
"concept": "cbbc116a-a7e2-11ed-afa1-0242ac120002",
43+
"label": "HIV DRUG RESITANCE"
44+
}
45+
]
46+
},
47+
"validators": []
48+
},
49+
{
50+
"label": "Indication for viral load testing",
51+
"type": "obs",
52+
"id": "indicationVlTesting",
53+
"required": "true",
54+
"questionOptions": {
55+
"rendering": "select",
56+
"concept": "59f36196-3ebe-4fea-be92-6fc9551c3a11",
57+
"calculate": {
58+
"calculateExpression": "resolve(api.getLatestObs(patient.id, '59f36196-3ebe-4fea-be92-6fc9551c3a11')).then(obs => obs.valueCodeableConcept?.coding[0]?.code)"
59+
},
60+
"conceptMappings": [],
61+
"answers": [
62+
{
63+
"concept": "67fab588-d3b0-4aa5-a165-ebd3b00b285b",
64+
"label": "12 months after ART initiation",
65+
"conceptMappings": []
66+
},
67+
{
68+
"concept": "224c94e0-2b8b-4deb-892c-04151ee0e885",
69+
"label": "6 months after ART initiation",
70+
"conceptMappings": []
71+
},
72+
{
73+
"concept": "f3cdf0b6-321a-493d-a7e8-9a2b2a077f72",
74+
"label": "Suspected treatment failure",
75+
"conceptMappings": []
76+
},
77+
{
78+
"concept": "bab153f4-7679-4040-9716-6879dffef905",
79+
"label": "Special Considerations",
80+
"conceptMappings": []
81+
},
82+
{
83+
"concept": "20ab2ec5-5390-4461-b85f-69bf650ce992",
84+
"label": "Repeat (after IAC)",
85+
"conceptMappings": []
86+
},
87+
{
88+
"concept": "68b58a80-af4e-43a5-a70d-113747a6cbb7",
89+
"label": "Routine",
90+
"conceptMappings": []
91+
},
92+
{
93+
"concept": "588ac57f-a4d0-47c2-9852-92502194ec4a",
94+
"label": "1st ANC visit",
95+
"conceptMappings": []
96+
}
97+
]
98+
},
99+
"hide": {
100+
"hideWhenExpression": "isEmpty(vlTestOrder)"
101+
}
102+
},
103+
{
104+
"label": "Date of Sample Collection",
105+
"type": "obs",
106+
"required": "true",
107+
"id": "sampleCollectionDate",
108+
"questionOptions": {
109+
"rendering": "date",
110+
"concept": "0b434cfa-b11c-4d14-aaa2-9aed6ca2da88"
111+
},
112+
"validators": [
113+
{
114+
"type": "date",
115+
"allowFutureDates": "false"
116+
}
117+
],
118+
"hide": {
119+
"hideWhenExpression": "isEmpty(vlTestOrder)"
120+
}
121+
}
122+
]
123+
},
17124
{
18125
"label": "Treatment Information",
19126
"isExpanded": "true",
@@ -547,120 +654,22 @@
547654
}
548655
]
549656
},
550-
{
551-
"label": "Orders",
552-
"isExpanded": "true",
553-
"questions": [
554-
{
555-
"label": "Order Test",
556-
"type": "testOrder",
557-
"id": "vlTestOrder",
558-
"questionOptions": {
559-
"rendering": "repeating",
560-
"orderSettingUuid": "OUTPATIENT",
561-
"orderType": "testorder",
562-
"answers": [
563-
{
564-
"concept": "1eb05918-f50c-4cad-a827-3c78f296a10a",
565-
"label": "VL",
566-
"conceptMappings": []
567-
}
568-
],
569-
"selectableOrders": [
570-
{
571-
"concept": "1eb05918-f50c-4cad-a827-3c78f296a10a",
572-
"label": "VL"
573-
},
574-
{
575-
"concept": "cbbc116a-a7e2-11ed-afa1-0242ac120002",
576-
"label": "HIV DRUG RESITANCE"
577-
}
578-
]
579-
},
580-
"validators": []
581-
},
582-
{
583-
"label": "Indication for viral load testing",
584-
"type": "obs",
585-
"id": "indicationVlTesting",
586-
"required": "true",
587-
"questionOptions": {
588-
"rendering": "select",
589-
"concept": "59f36196-3ebe-4fea-be92-6fc9551c3a11",
590-
"calculate": {
591-
"calculateExpression": "resolve(api.getLatestObs(patient.id, '59f36196-3ebe-4fea-be92-6fc9551c3a11')).then(obs => obs.valueCodeableConcept?.coding[0]?.code)"
592-
},
593-
"conceptMappings": [],
594-
"answers": [
595-
{
596-
"concept": "67fab588-d3b0-4aa5-a165-ebd3b00b285b",
597-
"label": "12 months after ART initiation",
598-
"conceptMappings": []
599-
},
600-
{
601-
"concept": "224c94e0-2b8b-4deb-892c-04151ee0e885",
602-
"label": "6 months after ART initiation",
603-
"conceptMappings": []
604-
},
605-
{
606-
"concept": "f3cdf0b6-321a-493d-a7e8-9a2b2a077f72",
607-
"label": "Suspected treatment failure",
608-
"conceptMappings": []
609-
},
610-
{
611-
"concept": "bab153f4-7679-4040-9716-6879dffef905",
612-
"label": "Special Considerations",
613-
"conceptMappings": []
614-
},
615-
{
616-
"concept": "20ab2ec5-5390-4461-b85f-69bf650ce992",
617-
"label": "Repeat (after IAC)",
618-
"conceptMappings": []
619-
},
620-
{
621-
"concept": "68b58a80-af4e-43a5-a70d-113747a6cbb7",
622-
"label": "Routine",
623-
"conceptMappings": []
624-
},
625-
{
626-
"concept": "588ac57f-a4d0-47c2-9852-92502194ec4a",
627-
"label": "1st ANC visit",
628-
"conceptMappings": []
629-
}
630-
]
631-
},
632-
"hide": {
633-
"hideWhenExpression": "isEmpty(vlTestOrder)"
634-
}
635-
},
636-
{
637-
"label": "Date of Sample Collection",
638-
"type": "obs",
639-
"required": "true",
640-
"id": "sampleCollectionDate",
641-
"questionOptions": {
642-
"rendering": "date",
643-
"concept": "0b434cfa-b11c-4d14-aaa2-9aed6ca2da88"
644-
},
645-
"validators": [
646-
{
647-
"type": "date",
648-
"allowFutureDates": "false"
649-
}
650-
],
651-
"hide": {
652-
"hideWhenExpression": "isEmpty(vlTestOrder)"
653-
}
654-
}
655-
]
656-
},
657657
{
658658
"label": "Results",
659659
"isExpanded": "false",
660660
"hide": {
661661
"hideWhenExpression": "vlTestOrder == '1eb05918-f50c-4cad-a827-3c78f296a10a' || vlTestOrder == 'cbbc116a-a7e2-11ed-afa1-0242ac120002'"
662662
},
663663
"questions": [
664+
{
665+
"type": "encounterDatetime",
666+
"questionOptions": {
667+
"rendering": "date"
668+
},
669+
"id": "dateResultsEntered",
670+
"label": "Date Results Entered (Visit)",
671+
"datePickerFormat": "calendar"
672+
},
664673
{
665674
"type": "obsGroup",
666675
"questionOptions": {

0 commit comments

Comments
 (0)