Rescheduled appointment

90 views
Skip to first unread message
Assigned to rlcer...@gmail.com by me

Dhanya joy

unread,
Mar 18, 2021, 4:59:31 PM3/18/21
to Cerner FHIR Developers

I have a background service that queries the API (eg: every 1 hour) https://fhir.cerner.com/millennium/dstu2/scheduling/appointment/#search that returns the scheduled appointments.

How will I differentiate a new appointment vs rescheduled appointment from the response?

Thanks for your input

Richard Leaf

unread,
Mar 23, 2021, 6:37:44 PM3/23/21
to Cerner FHIR Developers
Hi there,

We do not include any history for appointments, so the easiest way for you to differentiate between an appointment that is new vs. one that is rescheduled would be to compare between your background calls.  When an appointment in Millennium is rescheduled it retains the Appointment identifier you are already familiar with.

If the versionId has changed, then you know something has been modified - but many actions inside Millennium can increment the version so that must be used in association with some additional logic on your side.

Since the Appointment ID remains the same, you could tell if a particular Appointment is rescheduled based on if the version is different AND the status is booked AND one ore more of the following are true
  • Appointment Start has changed
  • Appointment End has changed
  • Appointment Duration has changed
  • Appointment Service Type 
  • A non-patient actor has changed (Location, Practitioner)
Note: The Slot resource tied to an appointment may change between the time that an appointment is booked, and when it is subsequently retrieved, so you should not use that element in any diff operations.

Hope this is helpful!

Richard
Reply all
Reply to author
Forward
0 new messages