Stream: hapi
Topic: Patients without Appointments
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?
Lin Zhang (Jan 16 2021 at 00:11):
Possibly need to use negation in a search:
http://hl7.org/fhir/search.html
Lin Zhang (Jan 16 2021 at 02:05):
Response for
/Appointment?patient:not=120
is the same as
the response for
/Appointment?patient=120
Lin Zhang (Jan 16 2021 at 02:07):
Server: HAPI-FHIR/5.1.0
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.
Lin Zhang (Jan 16 2021 at 09:47):
@René Spronk Thanks.
Soraya Aguilar (Jan 18 2021 at 11:56):
@René Spronk @Lin Zhang Thanks
Last updated: Apr 12 2022 at 19:14 UTC