aehrc / smart-forms

React-based form renderer implementing Structured Data Capture (SDC) FHIR specification

Home Page:https://smartforms.csiro.au

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repeat item/group's add item button does not take item.initial into account

fongsean opened this issue · comments

A vaguely related issue to #705, hitting the "Add Item" button in a repeat item or repeat group does not take item.initial values into account when creating a new instance of the item/group.

Based on https://build.fhir.org/questionnaire-definitions.html#Questionnaire.item.initial,
There is no need to initialise the item.initial value when hitting the "Add Item" button.

If there are multiple values in item.initial, they are currently already being initialised by the renderer. Will close issue.