Stream: implementers
Topic: Restictions on $everything?
David Pyke (Oct 22 2021 at 16:35):
For those implementing the $everything Patient operation, are you truly returning EVERYTHING or do you limit the response even if _type or other parameters aren't supplied?
Alexander Zautke (Oct 22 2021 at 17:41):
Firely Server will return everything that can be found within the Patient compartment and all additional resources that might be relevant for the context (e.g. Practitioners linked to any resources of the result set). So yes, no limits.
René Spronk (Oct 23 2021 at 08:48):
The answer IMHO would be: it's up to the server to determine the scope of what's returned, and/or to any FHIR IGs that the server adheres to. Firely Server is a universal tool, and as such their generic approach would seem to be correct - constraints can always be added if circumstances require.
dsh (Nov 11 2021 at 20:26):
Using HAPI JPA-Server with no profile or IG's is there a way to return everything without any restrictions? Currently I am using version 5.3 and $everything only returns Patient resource nothing else is returned.
dsh (Nov 12 2021 at 13:59):
dsh said:
Using HAPI JPA-Server with no profile or IG's is there a way to return everything without any restrictions? Currently I am using version 5.3 and $everything only returns Patient resource nothing else is returned.
It turns out I had to escape the $
in$everything
for it to be a meaningful request.
dsh (Nov 12 2021 at 14:04):
But now I am running into another problem, following is my request using _type
to only fetch Condition resource
http://hapi-fhir-server-prod.local/fhir/Patient/120164110/$everything?_count=200&_sort=_lastUpdated&_type=Condition
but it's returning everything including Observation, Encounter etc
So is there any way to restrict $everything
to return only certain types?
René Spronk (Nov 12 2021 at 14:17):
Yes, that's _type. But a server doesn't have to support that parameter. So you'd better rephrase that search to search for "all conditions related to patient x" ..
Daniel Venton (Nov 12 2021 at 15:01):
As René said, if you only want conditions then you'd probably be better off doing /Condition?patient=120164110
Requesting specific resources allows for a finer grain of control than $everything does. Perhaps you only want "active" condtions, you can't do that with $everything.
$everything essentially == "take this chart to the copy machine"
As you've learned not all servers will limit the response the the resources you want and it's possible that some resources you want aren't available in the $everything (I'm thinking DocumentReference perhaps).
Last updated: Apr 12 2022 at 19:14 UTC