aehrc / smart-forms

React-based form renderer implementing Structured Data Capture (SDC) FHIR specification
https://smartforms.csiro.au
Apache License 2.0
36 stars 16 forks source link

Initial.valueBoolean crashing form #866

Closed liambarnes closed 4 months ago

liambarnes commented 4 months ago

Describe the bug Questionnaire with an Intial.valueBoolean set seems to be preventing the form from loading and crashing the form. See https://smartforms.csiro.au/api/fhir/Questionnaire/QITesting/_history/5 (e.g. line 175 and 190)

To Reproduce From https://ehr.smartforms.io/ launch Questionnaire QITesting (https://smartforms.csiro.au/ig/Questionnaire/QITesting)

Expected behavior Form is launched with boolean values "false" prepopulated.

fongsean commented 4 months ago

Fixed. Try it out with https://ehr.smartforms.io/ launch Questionnaire QITestingv5 (https://smartforms.csiro.au/ig/Questionnaire/QITestingv5).

liambarnes commented 4 months ago

Thanks. Looking good.