FirelyTeam / firely-validator-api

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

Seemingly incorrect error thrown in the new validator. #298

Open MatthijsvdWielen opened 5 months ago

MatthijsvdWielen commented 5 months ago

Validating the following example gives the error below. Although the profile looks correct. See attached example and base profile.

There is a reproduction project on our staging environment: https://staging.simplifier.net/bellucciengenir/hc40-orderentry.observation

Overall result: FAILURE [WARNING] Cannot resolve reference ServiceRequest/IHUB.1-284679-202209051330-10-0.65045 (at Observation.basedOn[0], element Observation(https://eng.it/fhir/StructureDefinition/Observation_Eng).basedOn) [WARNING] Cannot resolve reference Patient/1 (at Observation.subject[0], element Observation(https://eng.it/fhir/StructureDefinition/Observation_Eng).subject) [WARNING] Cannot resolve reference Encounter/HC40-ER.b829db56-8a2f-4c6b-9949-38c4de0664e0 (at Observation.encounter[0], element Observation(https://eng.it/fhir/StructureDefinition/Observation_Eng).encounter) [ERROR] Encountered unknown child elements 'value','unit','system','code' (at Observation.valueQuantity[0], element Observation(https://eng.it/fhir/StructureDefinition/Observation_Eng).value[x]) [WARNING] Cannot resolve reference Specimen/IHUB.28467901 (at Observation.specimen[0], element Observation(https://eng.it/fhir/StructureDefinition/Observation_Eng).specimen)

mmsmits commented 1 month ago

@MatthijsvdWielen has this been tested with the new validator?

MatthijsvdWielen commented 1 month ago

@mmsmits yes

mmsmits commented 1 month ago

It's even in the title I see 🙈