Skip to content

Commit

Permalink
Allow history section to expand by default for cancer screening and e…
Browse files Browse the repository at this point in the history
…arly diagnosis form (#275)
  • Loading branch information
makombe authored Nov 20, 2023
1 parent 437d2be commit 995f5d0
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"sections": [
{
"label": "History section",
"isExpanded": true,
"isExpanded": "true",
"questions": [
{
"label": "Do you smoke cigarattes",
Expand Down Expand Up @@ -2221,7 +2221,12 @@
"validators": [
{
"type": "date",
"allowFutureDate": "true"
"allowFutureDates": "true"
},
{
"type": "js_expression",
"failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')",
"message": "Follow up date should be greater than the encounter date."
}
]
},
Expand Down

0 comments on commit 995f5d0

Please sign in to comment.