Skip to content

Commit

Permalink
Updated delivery form in Standard
Browse files Browse the repository at this point in the history
Related to #3825 and #4115
  • Loading branch information
abbyad authored and alxndrsn committed May 23, 2018
1 parent a9ca0d9 commit d0d8bfd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 7 additions & 2 deletions standard/app_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,11 @@
"property": "delivery_code",
"rule": "regex('^(F|f|S|s|Ns|NS|ns|nS)$')",
"translation_key": "messages.d.validation.delivery_code"
},
{
"property": "days_since_birth",
"rule": "lenMin(1) ? (integer && between(0,365)) : optional",
"translation_key": "messages.d.validation.days_since_birth"
}
]
},
Expand Down Expand Up @@ -3702,10 +3707,10 @@
}
},
"position": 2,
"type": "string",
"type": "integer",
"length": [
1,
20
3
],
"required": false
}
Expand Down
4 changes: 3 additions & 1 deletion standard/translations/messages-en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ messages.schedule.postnatal.week_6 = Please see that {{patient_name}} ({{patient
messages.schedule.postnatal.week_6_overdue = Did {{patient_name}} ({{patient_id}}) go to their week-6 postnatal visit? Let us know with 'M {{patient_id}}'. Thanks!

report.delivery.delivery_code_label = Delivery Code
report.delivery.pregnancy_outcome_label = Pregnancy Outcome
report.delivery.pregnancy_outcome_label = Pregnancy Outcome

messages.d.validation.days_since_birth = The delivery report for {{patient_id}} is incorrect. Please ensure that the days since delivery is a number of days between 0 and 365, or left blank.

0 comments on commit d0d8bfd

Please sign in to comment.