FHIR Chat · Is a compartment identity resource in its own compartment? · implementers

Stream: implementers

Topic: Is a compartment identity resource in its own compartment?


view this post on Zulip Lee Surprenant (Jan 27 2022 at 22:34):

I've always wondered about this but I don't think I've ever asked...
If you do a compartment search like GET [base]/Patient/123/Patient, should the result set have only Patient resources that have a link to that patient, or should the result set also include Patient/123 as well?

view this post on Zulip Lee Surprenant (Jan 27 2022 at 22:39):

in our current implementation, we do not return the identity resource (because you obviously already know the resource, why would you need to search for it), but this seems to be a source of common confusion...perhaps due to this definition of "membership":

The patient compartment includes any resources where the subject of the resource is the patient

view this post on Zulip Josh Mandel (Jan 27 2022 at 22:39):

This came up in the bulk export discussion for sure -- I don't think the FHIR spec formally states that the "compartment identity resource" (as you nicely put it!) is part of the compartment, but I think we should say this. Do you want to open a ticket?

view this post on Zulip Lee Surprenant (Jan 27 2022 at 22:40):

yes. i'm sick of it causing confusion and am considering updating our impl so that it returns the identity resource in the search result...will be great to have consensus and clarity on it

view this post on Zulip Lee Surprenant (Jan 27 2022 at 22:40):

thanks josh

view this post on Zulip Lee Surprenant (Jan 27 2022 at 22:48):

FHIR#35888


Last updated: Apr 12 2022 at 19:14 UTC