FHIR Chat · How to signal that an 'Appointment' cant be cancelled? · implementers

Stream: implementers

Topic: How to signal that an 'Appointment' cant be cancelled?


view this post on Zulip Jakob Lindblad (Oct 04 2019 at 07:37):

Hi,

Long story short. Im working on a web api and have an endpoint /Appointment. One thing that it supports is GET on all Appointments for a certain Patient. The frontend guy in the other end now want to know if any of the Appointments hes reciving is available for cancellation. Basically we have a set of rules, "Cant cancel within 24 hours" etc.

After looking at the Appointment resource i cant find any way of describing this? So my question is how can i do this?
I was thinking that a simple status code like "cancellation-not-available" would do it but cant find anything like that. Im guessing im missing something around the idea of working with Appointment in Fhir?

Thank you,

view this post on Zulip Brian Postlethwaite (Oct 04 2019 at 09:17):

There are many situations like this, and you might still be able to cancel, but will incur charges, or need further actions if it occurs. Many of these are not standardised, so what we have included is a cancellation reason that can be used to indicate what happened, then other back end rules can take it from there.

view this post on Zulip Brian Postlethwaite (Oct 04 2019 at 09:18):

(can't recall if it's an extension or prop going into R5)

view this post on Zulip Jakob Lindblad (Oct 04 2019 at 11:57):

There are many situations like this, and you might still be able to cancel, but will incur charges, or need further actions if it occurs. Many of these are not standardised, so what we have included is a cancellation reason that can be used to indicate what happened, then other back end rules can take it from there.

Not sure if we are on the same page here. What i am trying to achive is some sort of indication to frontend that this Appointment cant be cancelled. Basically the frontend will list all current Appointment for the specific patient with a button to each one -> "Cancel booking". I will decide based on business rules if this Appointment can be cancelled or not and frontend should be able to "toggle" on this status. So the reason for the cancellation is irrelevant since the Appointment never should be cancelled in the first place :-)

This leads me to my question if there is any thought around this scenario or maybe i should do some profiling? Like: "AppointmentCanBeCancelled : true" etcetc...

view this post on Zulip Brian Postlethwaite (Oct 04 2019 at 12:38):

You can do that, but I would suspect that you'll then get the questions on how do I cancel this appointment, the patient has moved interstate, was deceased, the appointment is no longer possible as the patient took a medication that prevents it from being done, the practitioner is unable to attend for various reasons...

view this post on Zulip Jean Duteau (Oct 04 2019 at 12:54):

This attribute doesn't exist, so you would create a profile on Appointment and add a field via an extension. That field can be a boolean like you suggested. Or you can give it a code if you want to convey more information than a simple yes/no.

view this post on Zulip Lloyd McKenzie (Oct 04 2019 at 15:29):

If you go the extension route, you'll also have to work within your community to ensure that client systems support it. Obviously, in the event a system doesn't support it and tries to cancel anyhow, you'd return a business error

view this post on Zulip Jakob Lindblad (Oct 08 2019 at 07:44):

Thank you for all the answers. After looking at the options i was thinking about using the "Tag" with some defined codes. Since im not very keen on going the extension route in this case.


Last updated: Apr 12 2022 at 19:14 UTC