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

Renderer behaves unexpectedly with extension on repeating element. #1053

Open RichardTON opened 1 week ago

RichardTON commented 1 week ago

Describe the bug I think that CSIRO renderer has one instance of an extension for ALL instances of a repeating item. while the LHC renderer has one instance for EACH instance

To Reproduce See https://chat.fhir.org/#narrow/channel/179255-questionnaire/topic/Definition-based.20extraction/near/482940370

Expected behavior Consistence between renderers

fongsean commented 1 week ago

Hi @RichardTON, thanks for raising this!

It's a known issue and is a core functionality of how FHIR questionnaire renderers are supposed to behave, but it's not an easy one to fix - I imagine there would be an overhaul of how the renderer processes FHIRPath expressions with repeating items/groups.

I'll tackle this eventually, but at the meantime you can refer to LHC-Forms for the correct rendering.