Skip to content

Commit

Permalink
Fix validation on delivery form (#192)
Browse files Browse the repository at this point in the history
Co-authored-by: Makombe <makombe>
  • Loading branch information
makombe authored Sep 7, 2023
1 parent 5dff9e2 commit d45e9eb
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions configuration/ampathforms/Delivery.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@
"label": "Provider:",
"type": "encounterProvider",
"questionOptions": {
"rendering": "text"
"rendering": "ui-select-extended"
},
"id": "encProvider "
},
{
"label": "Location:",
"type": "encounterLocation",
"questionOptions": {
"rendering": "encounter-location",
"locationTag": "8d4626ca-7abd-42ad-be48-56767bbcf272"
"rendering": "ui-select-extended"
},
"id": "encLocation"
}
Expand Down Expand Up @@ -124,6 +123,7 @@
"label": "Estimated date of Delivery",
"type": "obs",
"id": "lastDeliveryDate",
"required":"true",
"questionOptions": {
"concept": "5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
Expand All @@ -139,6 +139,7 @@
"label": "Placenta complete?",
"type": "obs",
"id": "placentaComplete",
"required":"true",
"questionOptions": {
"concept": "163454AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "radio",
Expand All @@ -162,6 +163,7 @@
"label": "Vagina Examination?",
"type": "obs",
"id": "vaginalExamination",
"required":"true",
"questionOptions": {
"concept": "160704AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "radio",
Expand Down Expand Up @@ -193,6 +195,7 @@
"label": "Uterotonic given?",
"type": "obs",
"id": "uterotonicGiven",
"required":"true",
"questionOptions": {
"concept": "1282AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "radio",
Expand Down Expand Up @@ -281,7 +284,7 @@
"id": "bloodLoss",
"questionOptions": {
"concept": "161928AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "text"
"rendering": "number"
}
},
{
Expand Down Expand Up @@ -524,6 +527,7 @@
"label": "Chlorhexidine applied on cord stump:",
"type": "obs",
"id": "deliveryOutcome",
"required":"true",
"questionOptions": {
"concept": "159369AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "select",
Expand Down Expand Up @@ -661,6 +665,7 @@
"label": "Given Vitamin K :",
"type": "obs",
"id": "vitaminK",
"required":"true",
"questionOptions": {
"concept": "984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "select",
Expand All @@ -680,6 +685,7 @@
"label": "Kangaroo Mother care given:",
"type": "obs",
"id": "kangarooMotherCare",
"required":"true",
"questionOptions": {
"concept": "161094AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "select",
Expand Down Expand Up @@ -925,12 +931,20 @@
"rendering": "select",
"answers": [
{
"concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Yes"
"concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Positive"
},
{
"concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "No"
"concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Negative"
},
{
"concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Unknown"
},
{
"concept": "164817AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Known Positive"
}
]
}
Expand Down Expand Up @@ -962,17 +976,18 @@
"concept": "1436AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "select",
"answers": [
{
"concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Unknown"
},

{
"concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "HIV Positive"
},
{
"concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "HIV Negative"
},
{
"concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Unknown"
}
]
},
Expand Down

0 comments on commit d45e9eb

Please sign in to comment.