Skip to content

Commit

Permalink
Update MAT Patient Treatment Form to the one in revised tools branch (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatheka authored Jan 28, 2025
1 parent 8f89900 commit 6afa7a5
Showing 1 changed file with 48 additions and 23 deletions.
71 changes: 48 additions & 23 deletions configuration/ampathforms/MAT_Patient_Treatment_Form.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"retired": false,
"uuid": "350d93cd-66da-4b7e-ae9a-fdfdc9195add",
"referencedForms": [],
"version": "1.0",
"version": "2.0",
"encounter": "MAT Treatment Encounter",
"pages": [
{
Expand Down Expand Up @@ -105,14 +105,50 @@
"isExpanded": "true",
"questions": [
{
"label": " Current Methadone/Buprenorphine dose(Mgs)",
"label": "Opioid Substitution Therapy",
"type": "obs",
"id": "currentDose",
"id": "opioidTherapy",
"questionOptions": {
"rendering": "radio",
"concept": "160575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"answers": [
{
"concept": "72510AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Buprenorphine"
},
{
"concept": "79661AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Methadone"
}
]
}
},
{
"label": " Current Methadone dose(Mls)",
"type": "obs",
"id": "currentMethDose",
"questionOptions": {
"concept": "167369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "number",
"min": "0",
"max": "500"
},
"hide": {
"hideWhenExpression": "opioidTherapy !== '79661AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
},
{
"label": " Current Buprenorphine dose(Mgs)",
"type": "obs",
"id": "currentBupDose",
"questionOptions": {
"concept": "167369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "number",
"min": "0",
"max": "500"
},
"hide": {
"hideWhenExpression": "opioidTherapy !== '72510AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
},
{
Expand Down Expand Up @@ -448,7 +484,7 @@
"type": "obs",
"id": "gbvResults",
"questionOptions": {
"concept": "161141AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"concept": "162725AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "text"
}
}
Expand Down Expand Up @@ -527,26 +563,15 @@
}
},
{
"label": "Date of Next Visit",
"type": "obs",
"id": "nectVisitdate",
"required": "true",
"label": "Next review date:",
"required": false,
"id": "appointmentWorkspaceLauncher",
"questionOptions": {
"concept": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
},
"validators": [
{
"type": "date",
"allowFutureDates": "true"
},
{
"type": "js_expression",
"failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')",
"message": "Date of Next Visit should be greater than the encounter date."
}
]
}
"rendering": "workspace-launcher",
"buttonLabel": "Add appointments",
"workspaceName": "appointments-form-workspace"
}
}
]
}
]
Expand Down

0 comments on commit 6afa7a5

Please sign in to comment.