FHIR Chat · Relative references from-to contained Resources · conformance

Stream: conformance

Topic: Relative references from-to contained Resources


view this post on Zulip Michael Lawley (Nov 19 2019 at 11:28):

I have a Resource A, which contains Resources B, C, & D. Resource D has references to both B & C but I'm getting the validation error:

ref-1: SHALL have a contained resource if a local reference is provided ( (url: 1; ids: )) [reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))]

I'm assuming this is because %resource resolves to D rather than A, but D cannot contain B & C because that would be nested containment.

view this post on Zulip Eric Haas (Nov 19 2019 at 18:34):

I'm getting a similar error too.

view this post on Zulip Michael Lawley (Nov 19 2019 at 20:11):

Ah, I now see that the correct constraint uses %rootResource not %resource;
I think this is a HAPI issue.


Last updated: Apr 12 2022 at 19:14 UTC