Stream: implementers
Topic: calendar
Yagami L (Mar 31 2021 at 14:26):
Hi all. We are migrating outlook events to fhir appointments. But we need to model the concept of the doctor's calendar (sometimes there are several outlook calendars for the same doctor). We plan to use the Schedule resource to model this calendar concept (with a 1-1 relationship). The problem is that we do not want to use, for now, the Slot resource (intermediate between Schedule and Appointment) because in this case we do not want to model the reservation process (we don't need it currently). We plan to link the appointments with their Schedule using an extension in the appointment. What do you think of this idea? Use Schedule as a representation of the calendar concept? and link the appointments with the Schedule with 1 extension? Any advice, thanks
Lloyd McKenzie (Mar 31 2021 at 16:30):
@Brian Postlethwaite
Brian Postlethwaite (Mar 31 2021 at 20:13):
I think that the relationship with the practitioner (through participants) in the appt is more relevant than the specific schedule resource. The schedule resource is really more about the reservation slot part (think Free-Busy information in outlook) rather than the appointments themselves.
When we render our calendar, the schedule gives the slots available, and the appt's are the real bookings - but they aren't all bookings, some are reservations of time marked out.
Vassil Peytchev (Mar 31 2021 at 20:38):
How are you going to adjust if in the future you need the Slot resource? In my opinion, it is better to account for the intermediary Slot from the get-go, than to later try to handle two different ways to do the same things.
Yagami L (Mar 31 2021 at 21:06):
Thanks @Brian Postlethwaite @Vassil Peytchev . The specific situation is that for example, we have a Practitioner with 3 PractitionerRole. We extract the medical appointments of two of the PractitionerRole from one of their outlook calendars and that of another PractitionerRole from another calendar. The problem is that in the first case we cannot always determine which of the 2 PractitionerRole corresponds to it. That is why we always use the Practitioner as a participant in the appointment (and not the PractitionerRole). The situation is that we need to be able to express the membership of an appointment to a calendar both to be able to define how the migration is from outlook, and when it comes to displaying it in our UI. And the resource that seemed closest to us was Schedule although in reality it is more related to booking. What other resource or idea could we use to express this relationship with a calendar?
Brian Postlethwaite (Mar 31 2021 at 22:27):
You've exactly described the problem, and whtly fhir hasn't defined anything tighter. There are just so many ways people run their calendars, and many don't have just one (as you've shown)
And given with your description you don't know which rlthey belong to, don't know how a fhir representation could help you here.
You correctly have prac, PracRole, appt and schedule.
Remebering that schedule just points back to the resource too, which would either be prac or PracRole (or location too if you were considering rooms or equipment in the mix too)
Last updated: Apr 12 2022 at 19:14 UTC