FHIR Chat · Patients without Appointments · hapi

Stream: hapi

Topic: Patients without Appointments


view this post on Zulip Soraya Aguilar (Jan 15 2021 at 17:37):

I need to do a search for all Patients that are not referenced in Appointments, on a HAPI server
Any suggestions on how to do this?

view this post on Zulip Lin Zhang (Jan 16 2021 at 00:11):

Possibly need to use negation in a search:
http://hl7.org/fhir/search.html

view this post on Zulip Lin Zhang (Jan 16 2021 at 02:05):

Response for
/Appointment?patient:not=120
is the same as
the response for
/Appointment?patient=120

view this post on Zulip Lin Zhang (Jan 16 2021 at 02:07):

Server: HAPI-FHIR/5.1.0

view this post on Zulip René Spronk (Jan 16 2021 at 09:25):

GET /Patient?_has:Appointment:patient (all patients that have or have had an appointment) is easy, adding negation to that isn't. I'd suggest you define an operation or a _query named query to deal with this - but you'd have to add support to it on your server.

view this post on Zulip Lin Zhang (Jan 16 2021 at 09:47):

@René Spronk Thanks.

view this post on Zulip Soraya Aguilar (Jan 18 2021 at 11:56):

@René Spronk @Lin Zhang Thanks


Last updated: Apr 12 2022 at 19:14 UTC