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

IPA generator removes references to contained resources #6708

Open
xmhorsehead opened this issue Feb 13, 2025 · 0 comments
Open

IPA generator removes references to contained resources #6708

xmhorsehead opened this issue Feb 13, 2025 · 0 comments

Comments

@xmhorsehead
Copy link

Describe the bug
In the IPS generator, the references are cleared out when it's pointing to resources that are not included in the bundle. However, this clears out resources that are contained as well. This creates a problem when Medication[x].medicationReference points to a contained Medication resource (which I assume is a common approach?).

To Reproduce
Steps to reproduce the behavior:

  1. Turn on IPA generation in HAPI JPA Server.
  2. Add a Medication[x] resource eg. MedicationStatement with medicationReference point to a contained Medication resource to a Patient.
  3. Call $summary operation on the patient.
  4. In the response, the reference to the contained Medication resource has been removed. This also made them inaccessible in narrative generation.

Expected behavior
The reference to contained resource should not be removed, as they are included in the bundle.

Environment:

  • Current master of HAPI JPA STARTER project and HAPI FHIR
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