Stream: implementers
Topic: Getting all references to a patient
Brendan Keeler (Nov 26 2021 at 17:50):
Suppose I want to find all information linked to a patient, without retrieving all resources (i.e. have a patient view that links out to correlated clinical information). Is there a way to do this?
$everything will actually just go get everything. A bunch of _include operations also retrieve the information (and I have to make multiple calls / chain together a bunch of _includes)
Lloyd McKenzie (Nov 26 2021 at 20:52):
You could use _summary=text - that'd be pretty minimalist. You could also propose a new _summary value of "meta" that returns only the meta element (and any root level mandatories). Not sure that anyone who supports $everything would allow that as a parameter. Should work for the _include/_revinclude approach though.
Brendan Keeler (Nov 30 2021 at 19:28):
Tested this. A patient with 35 resources goes from 2424 to 1768 JSON lines. So a 27% reduction
Grahame Grieve (Nov 30 2021 at 19:29):
depends on what's in the resource
Brendan Keeler (Nov 30 2021 at 19:41):
Sure, just baslining in case someone is interested
Brendan Keeler (Nov 30 2021 at 19:46):
I lied. That was with summary=true.
summary=text slims it down to 1014. Nice
Lee Surprenant (Dec 13 2021 at 19:54):
you could also propose a new _summary value of "meta" that returns only the meta element (and any root level mandatories).
could use _elements instead for this today, right?
Lloyd McKenzie (Dec 13 2021 at 23:02):
Yes, though _elements is still supposed to return mandatories.
René Spronk (Dec 14 2021 at 07:31):
There's the $meta operations if one's just interested in meta data..
Last updated: Apr 12 2022 at 19:14 UTC