Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSEMR-423 Uncaught runtime erros when opening the forms for the very … #344

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@
"type": "obs",
"required": false,
"id": "whoClinicalStage",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('a90652b2-f2c7-471f-a287-64495d2a6791')) ? undefined : HD.getObject('prevEnc').getValue('a90652b2-f2c7-471f-a287-64495d2a6791')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('a90652b2-f2c7-471f-a287-64495d2a6791')) ? '' : HD.getObject('prevEnc').getValue('a90652b2-f2c7-471f-a287-64495d2a6791')",
"questionOptions": {
"rendering": "select",
"concept": "a90652b2-f2c7-471f-a287-64495d2a6791",
Expand Down
2 changes: 1 addition & 1 deletion distro/configuration/ampathforms/high_viral_load.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
"label": "Date of Initiation:",
"type": "obs",
"id": "dateInitiation",
"historicalExpression": "HD.getObject('prevEnc')?.getValue('30f1f347-d72c-4920-9962-6d55d138e8e5') || undefined",
"historicalExpression": "HD.getObject('prevEnc')?.getValue('30f1f347-d72c-4920-9962-6d55d138e8e5') || ''",
"questionOptions": {
"concept": "30f1f347-d72c-4920-9962-6d55d138e8e5",
"rendering": "date",
Expand Down
12 changes: 6 additions & 6 deletions distro/configuration/ampathforms/hiv_and_art_care.json
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@
"label": "At Start of ART Date",
"id": "mileStonesDate",
"required": true,
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('73779d67-7e8f-46fe-b723-8879838da5f8')) ? undefined : HD.getObject('prevEnc').getValue('73779d67-7e8f-46fe-b723-8879838da5f8')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('73779d67-7e8f-46fe-b723-8879838da5f8')) ? '' : HD.getObject('prevEnc').getValue('73779d67-7e8f-46fe-b723-8879838da5f8')",
"questionOptions": {
"answers": [],
"concept": "73779d67-7e8f-46fe-b723-8879838da5f8",
Expand All @@ -991,7 +991,7 @@
"label": "WHO Stage",
"id": "whoStage",
"required": true,
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('e38e6ce2-92d9-4382-927b-5555ff9fa850')) ? undefined : HD.getObject('prevEnc').getValue('e38e6ce2-92d9-4382-927b-5555ff9fa850')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('e38e6ce2-92d9-4382-927b-5555ff9fa850')) ? '' : HD.getObject('prevEnc').getValue('e38e6ce2-92d9-4382-927b-5555ff9fa850')",
"questionOptions": {
"concept": "e38e6ce2-92d9-4382-927b-5555ff9fa850",
"rendering": "select",
Expand Down Expand Up @@ -1022,7 +1022,7 @@
"label": "Weight(Kg)",
"id": "weight",
"required": false,
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')) ? undefined : HD.getObject('prevEnc').getValue('5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')) ? '' : HD.getObject('prevEnc').getValue('5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')",
"questionOptions": {
"answers": [],
"concept": "5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand All @@ -1035,7 +1035,7 @@
"label": "Height(cm)",
"id": "height",
"required": false,
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')) ? undefined : HD.getObject('prevEnc').getValue('5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')) ? '' : HD.getObject('prevEnc').getValue('5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')",
"questionOptions": {
"answers": [],
"concept": "5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand Down Expand Up @@ -1153,7 +1153,7 @@
"label": "ART Readiness Confirmation Date",
"id": "artReadiness",
"required": true,
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('436e5ca5-a5ad-42e3-9a73-4325b82693ca')) ? undefined : HD.getObject('prevEnc').getValue('436e5ca5-a5ad-42e3-9a73-4325b82693ca')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('436e5ca5-a5ad-42e3-9a73-4325b82693ca')) ? '' : HD.getObject('prevEnc').getValue('436e5ca5-a5ad-42e3-9a73-4325b82693ca')",
"questionOptions": {
"answers": [],
"concept": "436e5ca5-a5ad-42e3-9a73-4325b82693ca",
Expand All @@ -1171,7 +1171,7 @@
"label": "Initial ART regimen",
"id": "intialArtRegimen",
"required": true,
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('23322fd6-3dbb-410e-8bee-6210dfcd5f71')) ? undefined : HD.getObject('prevEnc').getValue('23322fd6-3dbb-410e-8bee-6210dfcd5f71')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('23322fd6-3dbb-410e-8bee-6210dfcd5f71')) ? '' : HD.getObject('prevEnc').getValue('23322fd6-3dbb-410e-8bee-6210dfcd5f71')",
"questionOptions": {
"concept": "23322fd6-3dbb-410e-8bee-6210dfcd5f71",
"rendering": "select",
Expand Down
22 changes: 11 additions & 11 deletions distro/configuration/ampathforms/hiv_care_follow_up_form.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"type": "obs",
"required": true,
"id": "dateScheduled",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('494915d8-4cf3-4c24-9efa-371710992cb3')) ? undefined : HD.getObject('prevEnc').getValue('494915d8-4cf3-4c24-9efa-371710992cb3')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('494915d8-4cf3-4c24-9efa-371710992cb3')) ? '' : HD.getObject('prevEnc').getValue('494915d8-4cf3-4c24-9efa-371710992cb3')",
"questionOptions": {
"rendering": "date",
"concept": "494915d8-4cf3-4c24-9efa-371710992cb3"
Expand Down Expand Up @@ -99,7 +99,7 @@
"label": "Weight (Kg)",
"id": "weight",
"required": false,
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')) ? undefined : HD.getObject('prevEnc').getValue('5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')) ? '' : HD.getObject('prevEnc').getValue('5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')",
"questionOptions": {
"concept": "5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "numeric",
Expand All @@ -114,7 +114,7 @@
"label": "Height(cm)",
"id": "height",
"required": false,
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')) ? undefined : HD.getObject('prevEnc').getValue('5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')) ? '' : HD.getObject('prevEnc').getValue('5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')",
"questionOptions": {
"answers": [],
"concept": "5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand Down Expand Up @@ -305,7 +305,7 @@
]
},
"hide": {
"hideWhenExpression": "sex === 'M' || age < 15 || clientRepresented === '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression": "sex === 'M' || age < 15"
},
"validators": []
},
Expand Down Expand Up @@ -371,7 +371,7 @@
]
},
"hide": {
"hideWhenExpression": "sex === 'M' || age < 15 || clientRepresented === '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' "
"hideWhenExpression": "sex === 'M' || age < 15"
},
"validators": []
},
Expand Down Expand Up @@ -416,7 +416,7 @@
"type": "obs",
"required": true,
"id": "currentlyOnTBTreatment",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('58ab89cd-6674-480b-95a0-5b761b0275cb')) ? undefined : HD.getObject('prevEnc').getValue('58ab89cd-6674-480b-95a0-5b761b0275cb')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('58ab89cd-6674-480b-95a0-5b761b0275cb')) ? '' : HD.getObject('prevEnc').getValue('58ab89cd-6674-480b-95a0-5b761b0275cb')",
"questionOptions": {
"rendering": "select",
"concept": "58ab89cd-6674-480b-95a0-5b761b0275cb",
Expand Down Expand Up @@ -1211,7 +1211,7 @@
"label": "WHO Stage",
"id": "whoStage",
"required": true,
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('e38e6ce2-92d9-4382-927b-5555ff9fa850')) ? undefined : HD.getObject('prevEnc').getValue('e38e6ce2-92d9-4382-927b-5555ff9fa850')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('e38e6ce2-92d9-4382-927b-5555ff9fa850')) ? '' : HD.getObject('prevEnc').getValue('e38e6ce2-92d9-4382-927b-5555ff9fa850')",
"questionOptions": {
"concept": "e38e6ce2-92d9-4382-927b-5555ff9fa850",
"rendering": "select",
Expand Down Expand Up @@ -1257,7 +1257,7 @@
"type": "obs",
"required": false,
"id": "clientCTX",
"historicalExpression": "HD.getObject('prevEnc')?.getValue('6e259aec-edea-4ee0-8aa8-4e03f266cd60') || undefined",
"historicalExpression": "HD.getObject('prevEnc')?.getValue('6e259aec-edea-4ee0-8aa8-4e03f266cd60') || ''",
"questionOptions": {
"rendering": "radio",
"concept": "6e259aec-edea-4ee0-8aa8-4e03f266cd60",
Expand Down Expand Up @@ -1607,7 +1607,7 @@
"type": "obs",
"required": false,
"id": "clientDapsone",
"historicalExpression": "HD.getObject('prevEnc')?.getValue('0cb0b2c1-6609-4d98-9ebf-72ba3f33118d') || undefined",
"historicalExpression": "HD.getObject('prevEnc')?.getValue('0cb0b2c1-6609-4d98-9ebf-72ba3f33118d') || ''",
"questionOptions": {
"rendering": "radio",
"concept": "0cb0b2c1-6609-4d98-9ebf-72ba3f33118d",
Expand Down Expand Up @@ -2217,7 +2217,7 @@
"label": "Number of Days Dispensed",
"required": true,
"id": "artRegimenNoOfDaysDispensed",
"historicalExpression": "HD.getObject('prevEnc')?.getValue('417625de-7d5e-45e4-bec7-60d72c94e657') || undefined",
"historicalExpression": "HD.getObject('prevEnc')?.getValue('417625de-7d5e-45e4-bec7-60d72c94e657') || ''",
"questionOptions": {
"rendering": "select",
"concept": "417625de-7d5e-45e4-bec7-60d72c94e657",
Expand Down Expand Up @@ -2333,7 +2333,7 @@
"type": "obs",
"required": true,
"id": "adherenceARV",
"historicalExpression": "HD.getObject('prevEnc')?.getValue('e126652c-8d02-4c4b-a49d-5bac03eb4d03') || undefined",
"historicalExpression": "HD.getObject('prevEnc')?.getValue('e126652c-8d02-4c4b-a49d-5bac03eb4d03') || ''",
"questionOptions": {
"rendering": "radio",
"concept": "e126652c-8d02-4c4b-a49d-5bac03eb4d03",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,7 @@
"type": "obs",
"required": false,
"id": "whoClinicalStage",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('a90652b2-f2c7-471f-a287-64495d2a6791')) ? undefined : HD.getObject('prevEnc').getValue('a90652b2-f2c7-471f-a287-64495d2a6791')",
"historicalExpression": "_.isEmpty(HD.getObject('prevEnc').getValue('a90652b2-f2c7-471f-a287-64495d2a6791')) ? '' : HD.getObject('prevEnc').getValue('a90652b2-f2c7-471f-a287-64495d2a6791')",
"questionOptions": {
"rendering": "select",
"concept": "a90652b2-f2c7-471f-a287-64495d2a6791",
Expand Down
Loading