Reputation: 404
We have a use case where we need resources related to a single resource. In the front end part of our application, we have a requirement where we have a dashboard which showcases list of patient information
This list of Patient information includes display of CarePlan info too. We thought of using Bundle however, the bundle can simply list resources with resourceType field.
Question is how to logically put patient and related careplan as related resources in single object. We also have had a look at the compartment search, but fhir site does not show any examples how the sample response will be.
If anyone can tell us a way to group related resources with data(not just references) using fhir models it would be of a great help
Upvotes: 0
Views: 761
Reputation: 6803
The only way to bring back multiple resource instances is with Bundle - other grouping mechanisms like List will only do references. If you want to query for a patient and bring back their care plans too, you can use _revinclude to retrieve all care plans tied to that patient.
Upvotes: 2