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

  1. doctor id
  2. organization id
  3. location id
  4. date of slot

will below considered valid slot query using fhir :

http://localhost:8080/context/fhir/slot?practitioner=practitioner/123456789&organization=organization/1234&location=location/2&start=2016-07-25

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

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -