Dynamic Questionnaires and Scheduling via External...
# support
k
Hi team, We manage a number of integrations with external organizations for which we do passthrough scheduling (we retrieve their availability, provide it to the end user, and then allow the user to select, and we book on their behalf). I'm looking for a way that we might be able to provide these dynamic options to the questionnaire and/or scheduling components in Medplum. I've noticed that Adaptive Questionnaires are still an open item, and this is possibly part of what I am looking for here? Alternatively, is there another way to expose this data for use in Medplum? It would seem that we could potentially develop custom functionality/components/app embedded in Medplum, that would separate the retrieval of the availability from another system with the submission of the information to then submit the appointment/similar resource information to a questionnaire which could then handle the information/automation via Bots? Though I'm wondering if there is another solution. Similarly, and this may be a departure from FHIR, we have questionnaires which involve a form of scheduling and I'm wondering the best way to resolve this (e.g. step 1 choose a service, step 2 choose a Slot) Thanks for your help in advance.
r
There are several ways to do this - depending on the workflow you want. If you (for example) have all the schedules and slots in the system you can filter slots by schedule and show them to the patient as you wish based on whatever filter (geographic, service type) they need
Here's a sample questionnaire that has some conditional logic: https://storybook.medplum.com/?path=/story/medplum-questionnaireform--lab-ordering
Here's a react component that shows how to display the slots on a schedule in a "Calendly like" format
k
Unfortunately, we wouldn't have the Slots in the system because they are updating based on the external Organization's Availability & the parameters we send them to request Availability such as Location. So unfortunately, while these definitely represent the right components to use in the workflow, this is the part that I am struggling with understanding whether we have to work around Medplum a bit to integrate or can find a more native way to support.
Following up on this - is there any way to enable this? Still looking for a way to provide dynamic options in a questionnaire based on previous step answers in the questionnaire if at all possible. E.g. Provide a location in the first step, be able to programmatically retrieve Availability from an external source
r
This is a potentially complicated scenario - do you want to meet and discuss? https://cal.com/medplum/office-hours
k
Can do, just set up thanks
150 Views