Hi all,
I know that HAPI has the built in _elements parameter for every resource so if I want to do a Patient Search or Read and only get back the name, photo and address then the HAPI server will only return those top level elements in the returned JSON but I was wondering if the same thing can be done with a returned Bundle per a scenario like this:
Bundle
Patient (_elements=name,address)
Coverage(_element=type, etc)
Account(_elements=status, etc)
In other words, I want to be able to Bundle any resources (e.g. Patient, Coverage, Account, etc) that are requested but with the added capability of only returning the requested elements from each resource within the Bundle. Kind of GraphQL-ish.
Is this possible using HAPI?
Any help on this would be greatly appreciated.
Thank you,
SEZ