FHIR Chat · Validator can't resolve contained resources in bundle entry · conformance

Stream: conformance

Topic: Validator can't resolve contained resources in bundle entry


view this post on Zulip Patrick Werner (Mar 30 2020 at 19:47):

When trying to validate a document bundle (r3) which has a contained element in the Composition Resource, and is referencing the contained resource inside the same resource i get this validation error: Error @ Bundle.entry[1].resource.author[1].reference (line 44, col17) : Can't find "#531077aed3314c3d8038dd7b85db7e0d" in the bundle (Composition.author)

view this post on Zulip Patrick Werner (Mar 30 2020 at 19:48):

apparently the validator thinks this is a bundle reference, and doesn't check contained resources.

view this post on Zulip Patrick Werner (Mar 30 2020 at 19:48):

Example to recreate the error:
https://gist.github.com/patrick-werner/6a3a0a56ee6872db2a89b98db21152de

view this post on Zulip Patrick Werner (Mar 30 2020 at 19:49):

(modified the standard document r3 example)

view this post on Zulip Patrick Werner (Mar 30 2020 at 19:50):

validation command to reproduce: java -jar org.hl7.fhir.validator.jar https://gist.githubusercontent.com/patrick-werner/6a3a0a56ee6872db2a89b98db21152de/raw/ffa869f5f8620802c8df8431976101992b7091da/containedResourceInCompositionBundle.xml -version 3.0

view this post on Zulip Grahame Grieve (Mar 30 2020 at 21:41):

fixed next release


Last updated: Apr 12 2022 at 19:14 UTC