FHIR Search Slots request -
i implementing fhir server , un-avoidable reason not have access doctor's schedule, however, have access slots available appointment booking.
i can slots 4 parameters using
- doctor id
- organization id
- location id
- date of slot
will below considered valid slot query using fhir :
also, in response above query, since reference schedule absolutely necessary (slot has card=1..1 schedule reference), can pass reference value :
"schedule": { "reference": "schedule/notrequired" }
in slot response ?
unfortunately, right now, have expose schedule, there isn't reason has "real". way have implemented slot searching exposing dummy schedule data element being link actor. example:
<schedule xmlns="http://hl7.org/fhir"> <id value="1234" /> <actor> <display value="cooper thompson, md" /> <reference value="http://host/api/fhir/dstu2/practitioner/1234" /> </actor>
our slot search ends looking (with edits brevity , clarity, around slottype):
http://host/api/fhir/dstu2/slot?schedule.actor:practitioner=1234&schedule.actor:patient=5678&slottype=urn:oid:1.2.3|cardiology&start=2016-07-21
note technically invalid, slot can have 1 schedule, , including multiple chained search parameters schedule. make use of extensions send patient, practitioner, , location associated slot, since slot.schedule 1:1. "intentional misuse" best option i've found without forcing client become scheduling system , deal lining slots each resource.
there tracker items (9989, 9208) in fhir gforge making updates slot more friendly "simple clients". we'd appreciate input :).
Comments
Post a Comment