Subscribe to other users’ calendars
# support
g
Hi @reshma @rahul1 , Hope this post finds you well! I working with the calendar page on the Medplum provider portal and am currently implementing the subscription function where providers can subscribe to other users’ calendars. I am exploring the possibility of integrating this feature with the Medplum backend to store subscription information, Is it possible to interact with the Medplum backend for storing and managing subscription data? If so, could you provide some guidance or point me to the relevant documentation or APIs? Thank you! I am really appreciated!
r
Hi Guoyi! You mean FHIR subscriptions right?
These enable notifications for any resource
g
Thank you @reshma for your prompt response. I have reviewed the FHIR subscription documentation, but I am uncertain if it fully addresses my concern. Specifically, in the context of the provider portal, we need a solution where one provider can subscribe to another provider's calendar. One possible approach is to store the subscription state in the local session, but I am curious if there is a way to store this state in the Medplum backend instead. Could FHIR subscriptions be utilized for this purpose, or is there another recommended method to achieve this within the Medplum framework? Your guidance would be greatly appreciated! Thank you!
r
So to support subscriptions to another's calendar - I would create a Subscription to the Appointment resource - and yes - I would use subscriptions. Subscriptions support criteria, so you could set up very customized subscriptions to different use cases
g
Thanks for pointing the direction! @reshma That's really helpful!
150 Views