How to check if the appointment is already taken ?

86 views
Skip to first unread message
Assigned to rlcer...@gmail.com by eric.s...@gmail.com

nitin m

unread,
May 18, 2021, 1:52:19 PM5/18/21
to Cerner FHIR Developers
Hi,

Is there any way to check if the appointment slot is already taken in cerner ?

We have below scenarios 

  • We book an appointment with valid details and the appointment gets booked x-Request-Id is  6bcae805-1f0c-4235-afc8-6d81d22d1d23

  • We again book an appointment with same details used in step 1 but with details of other user we get 422 response error  Unprocessable Entity and X-Request-Id for the same is  65a238f1-cf87-4977-ba47-ac575fb6e07c

  • Now we have a third scenario where we put wrong person id details in valid slots where we again get 422  Unprocessable Entity X-Request-Id from the same is  74ef7d31-1c05-4218-bb51-9b3975eb3987

So the question again here is how do we check if the appointment is already taken ?


Regards,
Nitin

Richard Leaf

unread,
May 19, 2021, 11:28:39 AM5/19/21
to Cerner FHIR Developers
If you're trying to see if a slot has been booked, you can query it by ID - you will get back the status and if it is BUSY then you know the slot is no longer available.  If you are unable to book an appointment and the slot still says that it is free then there are other things which could be preventing the appointment from being booked like duplicate appointment checking, patient conflicts, etc. Since our Slot search doesn't take in schedule.patient on the searching, we're not able to filter out results specific to a given patient.  You might try an appointment search for the patient ID to see if they have any existing appointments at the time you tried to book the appointment.

Your third bullet point is because you used an patient id that did not exist. I'm not really able to tell much from the second x-request-id other than the appointment book did not succeed.

-Richard
Reply all
Reply to author
Forward
0 new messages