Open
Description
Describe the bug
I was trying the patient-everything feature, but I encountered some unexpected behaviors.
- I got only the same patient in the returned bundle as I sepcified when performing
GET /Patient/{{ patient.id }}/$everything
. I could retrieve more resources with the provided "next" link; however, I was not sure whether this was a normal behavior. - As mentioned here, devices that reference the patient and resources (except "RelatedPerson") that are directly referenced by the patient with "seealso" links will also be returned in the bundle. However, I didn't see them after I sent the request. Nonetheless, I could retrieve the devices by adding the parameter
_type
with the valueDevice
to the GET request (GET /Patient/{{ patient.id }}/$everything?_type=Device
).
FHIR Version?
R4
Data provider?
SQL Server
To Reproduce
These are resources in my DB:
- Patient 1
- reference Patient 2 with a "seealso" link
- Patient 2
- referenced by Patient 1
- RelatedPerson
- reference Patient 1
- CarePlan
- reference Patient 1
- Procedure
- reference Patient 1
- Device
- reference Patient 1
I sent a request with the returned "next" link (GET /Patient/{{ patient.id }}/$everything?ct={{ continuation token }}
).
Expected behavior
The returned bundle contained Patient 2, the RelatedPerson, the CarePlan, the Procedure, and the Device.
Actual behavior
The returned bundle contained only the RelatedPerson, the CarePlan, and the Procedure, which were all "Patient Compartment".