Skip to content

Commit

Permalink
KHP3-3757 Add program discontinuation section in vmmc discontinuation… (
Browse files Browse the repository at this point in the history
  • Loading branch information
CynthiaKamau authored Jul 12, 2023
1 parent b16e05a commit 8bd90f1
Showing 1 changed file with 131 additions and 124 deletions.
255 changes: 131 additions & 124 deletions configuration/ampathforms/VMMC_Discontinuation.json
Original file line number Diff line number Diff line change
@@ -1,125 +1,132 @@
{
"name": "VMMC Discontinuation Form",
"description": "VMMC Discontinuation Form",
"version": "1",
"published": true,
"uuid": "bc6a9e7d-58f7-43c0-8334-d8011fef4000",
"retired": false,
"encounter": "VMMC Discontinuation",
"pages": [
{
"label": "VMMC Discontinuation Form",
"sections": [
{
"label": "Encounter Details",
"isExpanded": "true",
"questions": [
{
"label": "Date:",
"type": "encounterDatetime",
"questionOptions": {
"rendering": "ui-select-extended"
},
"id": "encDate",
"validators": [
{
"type": "date",
"allowFutureDates": "false"
}
]
},
{
"label": "Provider:",
"type": "encounterProvider",
"questionOptions": {
"rendering": "ui-select-extended"
},
"id": "encProvider "
},
{
"label": "Location:",
"type": "encounterLocation",
"questionOptions": {
"rendering": "ui-select-extended"
},
"id": "encLocation"
}
]
},
{
"label": "Details",
"isExpanded": "true",
"questions": [
{
"label": "Discontinuation date",
"type": "obs",
"questionOptions": {
"rendering": "date",
"concept": "164384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"id": "discontinue-date",
"validators": [
{
"type": "date",
"allowFutureDates": "false"
},
{
"type": "js_expression",
"failsWhenExpression": "(new moment(encDate)).isBefore((new moment(myValue)), 'day'))",
"message": "Discontinuation date should not be before the encounter date."
}
],
"required": "true"
},
{
"label": "Reason:",
"type": "obs",
"questionOptions": {
"rendering": "select",
"concept": "161555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"answers": [
{
"concept": "162130AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Patient has healed"
},
{
"concept": "112992AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "STI"
},
{
"concept": "159766AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Client has condition hindering them from going through VMMC"
},
{
"concept": "159808AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Consent is not provided"
},
{
"concept": "159492AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Transferred Out"
},
{
"concept": "160034AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Died"
},
{
"concept": "138405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Newly Diagnosed HIV"
},
{
"concept": "160067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Assent is not provided"
}
]
},
"id": "idReason",
"required": "true"
}
]
}
]
}
],
"processor": "EncounterFormProcessor",
"referencedForms": []
}
"name": "VMMC Discontinuation Form",
"description": "VMMC Discontinuation Form",
"version": "1",
"published": true,
"uuid": "bc6a9e7d-58f7-43c0-8334-d8011fef4000",
"retired": false,
"encounter": "VMMC Discontinuation",
"meta": {
"programs": {
"uuid": "228538f4-cad9-476b-84c3-ab0086150bcc",
"isEnrollment": false,
"discontinuationDateQuestionId": "discontinueDate"
}
},
"pages": [
{
"label": "VMMC Discontinuation Form",
"sections": [
{
"label": "Encounter Details",
"isExpanded": "true",
"questions": [
{
"label": "Date:",
"type": "encounterDatetime",
"questionOptions": {
"rendering": "ui-select-extended"
},
"id": "encDate",
"validators": [
{
"type": "date",
"allowFutureDates": "false"
}
]
},
{
"label": "Provider:",
"type": "encounterProvider",
"questionOptions": {
"rendering": "ui-select-extended"
},
"id": "encProvider "
},
{
"label": "Location:",
"type": "encounterLocation",
"questionOptions": {
"rendering": "ui-select-extended"
},
"id": "encLocation"
}
]
},
{
"label": "Details",
"isExpanded": "true",
"questions": [
{
"label": "Discontinuation date",
"type": "obs",
"questionOptions": {
"rendering": "date",
"concept": "164384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"id": "discontinueDate",
"validators": [
{
"type": "date",
"allowFutureDates": "false"
},
{
"type": "js_expression",
"failsWhenExpression": "(new moment(encDate)).isBefore((new moment(myValue)), 'day'))",
"message": "Discontinuation date should not be before the encounter date."
}
],
"required": "true"
},
{
"label": "Reason:",
"type": "obs",
"questionOptions": {
"rendering": "select",
"concept": "161555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"answers": [
{
"concept": "162130AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Patient has healed"
},
{
"concept": "112992AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "STI"
},
{
"concept": "159766AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Client has condition hindering them from going through VMMC"
},
{
"concept": "159808AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Consent is not provided"
},
{
"concept": "159492AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Transferred Out"
},
{
"concept": "160034AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Died"
},
{
"concept": "138405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Newly Diagnosed HIV"
},
{
"concept": "160067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Assent is not provided"
}
]
},
"id": "idReason",
"required": "true"
}
]
}
]
}
],
"processor": "EncounterFormProcessor",
"referencedForms": []
}

0 comments on commit 8bd90f1

Please sign in to comment.