FHIR Chat · Id required for a contained "Provenance" · implementers

Stream: implementers

Topic: Id required for a contained "Provenance"


view this post on Zulip Constantin Corman (Jun 25 2021 at 14:38):

While trying to create an AllergyIntolerance with a contained "Provenance" resource, we found out (using FHIR validators) that an "id" is required. In this page (http://hl7.org/fhir/r4/references.html#contained) it is mentioned that "no id necessary (though still allowed)" for the exact case that we need: a resource that references the container.
The validators used are the ones present at http://clinfhir.com/validateResource.html and a local version of HAPI FHIR validator, configured using https://confluence.hl7.org/display/FHIR/Using+the+FHIR+Validator
Could someone, please, confirm if there is an issue with the validators? Maybe those validators don't consider this case: a resource that references the container?
Thanks in advance!

view this post on Zulip Rik Smithies (Jun 25 2021 at 15:18):

Is it the same issue as this:
https://chat.fhir.org/#narrow/stream/179165-committers/topic/Build.20example.20failing.20with.20contained

view this post on Zulip Daniel Venton (Jun 25 2021 at 15:30):

The only place that say's "(though still allowed)" is in an example, generally we don't code to examples we code to conformance statements.
I see nothing conformance-wise that says one way or the other (quick scan). Since the id value has no meaning outside of the resource it's in and the container... whether the validator is right or wrong, I'd put in a dummy value to make the validator happy and move on.

view this post on Zulip Constantin Corman (Jun 29 2021 at 08:36):

Thanks for your replies!

view this post on Zulip Constantin Corman (Jun 29 2021 at 08:41):

Rik Smithies said:

Is it the same issue as this:
https://chat.fhir.org/#narrow/stream/179165-committers/topic/Build.20example.20failing.20with.20contained

I think it's a bit different. The error thrown in my case is related specifically to the missing Id " Resource has contained child resource with no ID"

view this post on Zulip Richard Townley-O'Neill (Jul 02 2021 at 05:11):

The specification is unclear here. See FHIR-33008


Last updated: Apr 12 2022 at 19:14 UTC