Skip to content

Commit

Permalink
Merge pull request #40 from kajambiya/dev
Browse files Browse the repository at this point in the history
OHRI-1648 fix lab order sub form in covid case assessment form
  • Loading branch information
kajambiya authored Jul 20, 2023
2 parents 328f815 + 89bfada commit 1d8e0c8
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 78 deletions.
69 changes: 68 additions & 1 deletion distro/configuration/ampathforms/covid_case_assessment_v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -1970,6 +1970,65 @@
]
}
]
},
{
"label": "Lab Order Details",
"isExpanded": "true",
"questions": [
{
"label": "Add Covid Lab Order?",
"type": "obs",
"questionOptions": {
"rendering": "toggle",
"concept": "2dbf01ab-77f6-4b35-aa2c-46dfc14b0af0",
"toggleOptions": {
"labelTrue": "Yes",
"labelFalse": "No"
},
"conceptMappings": [
{
"type": "OCT",
"value": "LabOrdered"
}
],
"answers": [
{
"concept": "cf82933b-3f3f-45e7-a5ab-5d31aaee3da3",
"label": "Yes",
"conceptMappings": [
{
"type": "CIEL",
"value": "1065"
},
{
"type": "AMPATH",
"value": "1065"
},
{
"type": "PIH",
"value": "1065"
},
{
"type": "SNOMED CT",
"value": "CT: 373066001"
}
]
},
{
"concept": "488b58ff-64f5-4f8a-8979-fa79940b1594",
"label": "No",
"conceptMappings": []
}
]
},
"id": "labOrderToggle",
"behaviours": [
{
"intent": "*",
"required": "false"
}
]
}]
}
]
},
Expand All @@ -1992,7 +2051,15 @@
"readonly": "true"
}
]
}
},
"behaviours": [
{
"intent": "*",
"hide": {
"hideWhenExpression": "labOrderToggle == '488b58ff-64f5-4f8a-8979-fa79940b1594'"
}
}
]
}
],
"availableIntents": [
Expand Down
83 changes: 6 additions & 77 deletions distro/configuration/ampathforms/covid_lab_order_v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,77 +11,6 @@
"label": "Lab Order Details",
"isExpanded": "true",
"questions": [
{
"label": "Order Labs",
"type": "obs",
"questionOptions": {
"rendering": "toggle",
"concept": "2dbf01ab-77f6-4b35-aa2c-46dfc14b0af0",
"toggleOptions": {
"labelTrue": "Yes",
"labelFalse": "No"
},
"conceptMappings": [
{
"type": "OCT",
"value": "LabOrdered"
}
],
"answers": [
{
"concept": "cf82933b-3f3f-45e7-a5ab-5d31aaee3da3",
"label": "Yes",
"conceptMappings": [
{
"type": "CIEL",
"value": "1065"
},
{
"type": "AMPATH",
"value": "1065"
},
{
"type": "PIH",
"value": "1065"
},
{
"type": "SNOMED CT",
"value": "CT: 373066001"
}
]
},
{
"concept": "488b58ff-64f5-4f8a-8979-fa79940b1594",
"label": "No",
"conceptMappings": []
}
]
},
"id": "orderLabs",
"behaviours": [
{
"intent": "*",
"required": "false",
"hide": {
"hideWhenExpression": "true"
}
},
{
"intent": "COVID_LAB_ORDER_EMBED",
"required": "false",
"hide": {
"hideWhenExpression": "false"
}
},
{
"intent": "COVID_LAB_ORDER_RESULT_EMBED",
"required": "false",
"hide": {
"hideWhenExpression": "true"
}
}
]
},
{
"label": "Order date",
"type": "obs",
Expand Down Expand Up @@ -116,7 +45,7 @@
"intent": "COVID_LAB_ORDER_EMBED",
"required": "false",
"hide": {
"hideWhenExpression": "orderLabs == '488b58ff-64f5-4f8a-8979-fa79940b1594'"
"hideWhenExpression": "false"
}
}
]
Expand Down Expand Up @@ -211,7 +140,7 @@
"intent": "COVID_LAB_ORDER_EMBED",
"required": "false",
"hide": {
"hideWhenExpression": "orderLabs == '488b58ff-64f5-4f8a-8979-fa79940b1594'"
"hideWhenExpression": "false"
}
}
]
Expand Down Expand Up @@ -264,7 +193,7 @@
"intent": "COVID_LAB_ORDER_EMBED",
"required": "false",
"hide": {
"hideWhenExpression": "orderLabs == '488b58ff-64f5-4f8a-8979-fa79940b1594'"
"hideWhenExpression": "false"
}
}
]
Expand Down Expand Up @@ -391,7 +320,7 @@
"intent": "COVID_LAB_ORDER_EMBED",
"required": "false",
"hide": {
"hideWhenExpression": "orderLabs == '488b58ff-64f5-4f8a-8979-fa79940b1594'"
"hideWhenExpression": "false"
}
}
]
Expand Down Expand Up @@ -436,7 +365,7 @@
"intent": "COVID_LAB_ORDER_EMBED",
"required": "false",
"hide": {
"hideWhenExpression": "orderLabs == '488b58ff-64f5-4f8a-8979-fa79940b1594'"
"hideWhenExpression": "false"
}
}
]
Expand Down Expand Up @@ -512,7 +441,7 @@
{
"intent": "COVID_LAB_ORDER_EMBED",
"hide": {
"hideWhenExpression": "orderLabs == '488b58ff-64f5-4f8a-8979-fa79940b1594'"
"hideWhenExpression": "false"
}
}
]
Expand Down

0 comments on commit 1d8e0c8

Please sign in to comment.