Skip to content

enabledWhen in repeatable groups outside group always relies on the first item #20

@ruscoder

Description

@ruscoder

Example:

resourceType: Questionnaire
id: test-repeatable-group-1
status: draft
item:
  - linkId: group
    type: group
    repeats: true
    item:
      - linkId: first
        type: string
        text: first
  - linkId: second
    type: string
    text: second
    enableWhen:
      - question: first
        operator: =
        answerString: ok
      
meta:
  profile:
    - https://emr-core.beda.software/StructureDefinition/fhir-emr-questionnaire
  extension:
    - url: ex:createdAt
      valueInstant: '2025-05-29T15:22:50.345605Z'
  1. Add two group items
  2. Fill the first with 'not ok'
  3. Fill the second with 'ok'
  4. The conditional item is not shown

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions