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
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:
However, the equivalent ternary expression works as expected: