Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support referencing container resources from contained resources #1542

Open
jafeltra opened this issue Dec 5, 2024 · 0 comments
Open

Support referencing container resources from contained resources #1542

jafeltra opened this issue Dec 5, 2024 · 0 comments

Comments

@jafeltra
Copy link
Collaborator

jafeltra commented Dec 5, 2024

When a contained resource references its own container, the reference it uses is just #. SUSHI should allow specifying # from within the Reference() keyword.

See FHIR documentation here: https://www.hl7.org/fhir/references.html#contained. Relevant snippet is:

For a resource that references the container, the reference is "#", like this:

<Patient xmlns="http://hl7.org/fhir">
 <id value="something"/>
 <contained>
   <Provenance>
     <!-- no id necessary (though still allowed) -->
     <target>
       <reference value="#"/>
     </target>
   </Provenance>
 </contained>
 <!-- other attributes -->
</Patient>

An example of what the FSH for this could look like is here: FSH Online Link.

This was brought up in Zulip here: https://chat.fhir.org/#narrow/channel/215610-shorthand/topic/Contained.20resource.20can't.20reference.20back.20to.20containing/near/486328555

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant