Skip to content

Commit

Permalink
Update tb_case_enrollment_v1.0.json (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
WamathagaUCSF authored Dec 19, 2023
1 parent ff5cb4b commit 45be763
Showing 1 changed file with 37 additions and 28 deletions.
65 changes: 37 additions & 28 deletions distro/configuration/ampathforms/tb_case_enrollment_v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"behaviours": [
{
"intent": "*",
"required": "false",
"required": "true",
"unspecified": "false",
"hide": {},
"validators": []
Expand Down Expand Up @@ -225,7 +225,7 @@
"answers": [
{
"concept": "159977AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Newly diagnosed TB without prior treatment"
"label": "Newly diagnosed no prior treatment"
},
{
"concept": "160033AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand Down Expand Up @@ -383,19 +383,19 @@
},
{
"concept": "164366AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Rifampicin resistant mycobacterium tuberculosis"
"label": "Rifampicin resistant TB"
},
{
"concept": "164367AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Poly-resistance mycobacterium tuberculosis"
"label": "Poly-resistance TB"
},
{
"concept": "159345AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Multi-drug resistant tuberculosis infection"
"label": "Multi-drug resistant TB"
},
{
"concept": "159346AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Extremely drug-resistant tuberculosis infection"
"label": "Extremely drug-resistant TB"
}
]
},
Expand Down Expand Up @@ -482,8 +482,9 @@
"intent": "*",
"unspecified": "false",
"required": "false",
"hide": {
"hideWhenExpression": "isEmpty(everTestedForHIV) || everTestedForHIV === '1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"},
"hide": {
"hideWhenExpression": "isEmpty(everTestedForHIV) || everTestedForHIV === '1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
},
"validators": [
{
"type": "date",
Expand Down Expand Up @@ -643,15 +644,15 @@
"answers": [
{
"concept": "160049AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "standard treatment"
"label": "Standard treatment"
},
{
"concept": "160050AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Individualized treatment"
},
{
"concept": "160048AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "empiric treatment"
"label": "Empiric treatment"
}
]
},
Expand Down Expand Up @@ -730,7 +731,7 @@
"required": "false",
"unspecified": "false",
"hide": {
"hideWhenExpression": "isEmpty(tbProgramType) || tbProgramType !== '160052AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression": "isEmpty(drRegimenType) || isEmpty(tbProgramType) || tbProgramType !== '160052AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || drRegimenType !== '160049AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
}
]
Expand All @@ -757,7 +758,7 @@
"required": "false",
"unspecified": "false",
"hide": {
"hideWhenExpression": "isEmpty(tbProgramType) || tbProgramType !== '160052AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression": "isEmpty(drRegimenType) || isEmpty(tbProgramType) || tbProgramType !== '160052AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || drRegimenType === '160049AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
}
]
Expand Down Expand Up @@ -795,6 +796,11 @@
{
"type": "date",
"allowFutureDates": "false"
},
{
"type": "js_expression",
"failsWhenExpression": "myValue < useFieldValue('tbRegDate')",
"message": "Treatment before enrolment"
}
]
}
Expand Down Expand Up @@ -986,6 +992,11 @@
{
"type": "date",
"allowFutureDates": "false"
},
{
"type": "js_expression",
"failsWhenExpression": "myValue < useFieldValue('tbRegDate')",
"message": "Outcome is before enrolment"
}
]
}
Expand All @@ -994,7 +1005,6 @@
{
"label": "TB Treatment Outcome",
"type": "obs",
"required": false,
"id": "tbRxOutcome",
"questionOptions": {
"rendering": "radio",
Expand Down Expand Up @@ -1159,7 +1169,6 @@
}
]
}

]
}
],
Expand All @@ -1174,22 +1183,22 @@
"postSubmissionActions": [
{
"actionId": "ProgramEnrollmentSubmissionAction",
"enabled":"tbProgramType === '160541AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'",
"enabled": "tbProgramType === '160541AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'",
"config": {
"enrollmentDate": "tbRegDate",
"programUuid": "58005eb2-4560-4ada-b7bb-67a5cffa0a27",
"completionDate": "outcomeTBRx"
}
},
{
"actionId": "ProgramEnrollmentSubmissionAction",
"enabled": "tbProgramType === '160052AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'",
"config": {
"enrollmentDate": "tbRegDate",
"programUuid": "58005eb2-4560-4ada-b7bb-67a5cffa0a27",
"completionDate": "outcomeTBRx"
"enrollmentDate": "tbRegDate",
"programUuid": "00f37871-0578-4ebc-af1d-e4b3ce75310d",
"completionDate": "outcomeTBRx"
}
}
},
{
"actionId": "ProgramEnrollmentSubmissionAction",
"enabled":"tbProgramType === '160052AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'",
"config": {
"enrollmentDate": "tbRegDate",
"programUuid": "00f37871-0578-4ebc-af1d-e4b3ce75310d",
"completionDate": "outcomeTBRx"
}
}
],
"encounter": "TB Program Enrolment",
"referencedForms": [],
Expand Down

0 comments on commit 45be763

Please sign in to comment.