I have a use case where I retrieve a bundle of different objects (DocumentReference and QuestionnaireResponse). Each of those object has an organization: for DocumentReference, the organization is defined by the “author” attribute whereas it is defined by the attribute “owner” of the object Device set as “author” of the QuestionnaireResponse.
The problem here is I want to retrieve the information concerning just one of those object. For example, I want to retrieve a QuestionnaireResponse stored in organization “B”. So, in the semantic of the URL, how do I do?
- Should I use the by-id URL type in which I create a custom GET parameter (Is that even allowed?)? Something like:
- Should I use the Bundle-way where the URL, generated by HAPI FHIR is something like:
Note that I already posted this message in the HAPI FHIR Google Group, too, if you are interested: https://groups.google.com/forum/#!topic/hapi-fhir/mnJqXktaTQU