FirelyTeam / firely-validator-api

Firely's official FHIR validator API for validating HL7 FHIR resources against profiles.
Other
7 stars 2 forks source link

Unexplainable error in current and new validator on Observation.valueQuantity[0] #314

Open MatthijsvdWielen opened 4 months ago

MatthijsvdWielen commented 4 months ago

I made a simple reproduction of an error reported by a user. The error occurs when adding the extensions to the elements.

1 extension is made for Observation.value[x] 1 extension is made for Quantity

This leads to the following 2 profiles: Profile with extension on Observation.value[x]

[Profile with extension on slices on Observation.value[x]

2 identical examples result in an error for the example on the profile with the extension on Observation.value[x]

Example with error

Example without error

Other than the Extension StructureDefinition.context, both extensions only have the following constraint. image