Skip to content

Coalescing operator (??) not working inside flash blocks #61

@benny779

Description

@benny779

Description:

The null-coalescing operator (??) does not behave as expected when used inside FSH assignment rules (flash blocks), while the equivalent ternary expression works correctly.


FHIR Instance / Context:

Profile:
http://hdp.fhir.health.gov.il/StructureDefinition/il-hdp-allergy-intolerance


Reproduction:

The following rule does not work:

* code.coding.code = a ?? b

However, the equivalent ternary expression works as expected:

* code.coding.code = a ? a : b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions