FHIR Chat · Contained resources referencing containing resources · implementers

Stream: implementers

Topic: Contained resources referencing containing resources


view this post on Zulip Benjamin Flessner (Aug 13 2018 at 15:56):

A question about what is allowed to go in contained. From the constraints: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource. But this precludes including a resource that references back to the containing resource.

An example - we have a system that records patient-level insurance and guarantor information, but not accounts. As far as I understand, the FHIR way to represent this is to have a patient-level Account resource that references the coverage and guarantor resources. However, since we don't actually store account information, the account resource is not identifiable. Storing the unidentifiable account resource in patient.contained seems in-line with storing an unidentifiable generalPractitioner in patient.contained, but it is not allowed since there is no direct line of reference from Patient -> Account.

Is there an alternative to creating standalone, unidentifiable Account resources or sticking an extension on Patient to point to Account, so it can be included in contained?


Last updated: Apr 12 2022 at 19:14 UTC