Skip to content

Patient-everything operation didn't return related devices and patients referenced by "seealso" links #2816

Open
@Alan-Kuan

Description

@Alan-Kuan

Describe the bug
I was trying the patient-everything feature, but I encountered some unexpected behaviors.

  1. 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.
  2. 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 value Device 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".

AB#95696

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions