Hello team.
I am testing Scheduler component - https://storybook.medplum.com/?path=/story/medplum-scheduler--basic.
my goal is to let patient select the time slot and schedule the appointment.
Schedule component is rendered correct with the time slots available .
What I really don't understand now to get the selected time slots values and questions answered.
Schedule component expecting properties to be passed , but I can't find any option to get the value selected by user from outside of the component.
this is a code from Schedule component but it is just a placeholder. Actually there is no communication with the server, it is just a message , right?
https://github.com/medplum/medplum/blob/e9eae8d537d49488bc5f9b6c9eef60de9323a8d5/packages/react/src/Scheduler/Scheduler.tsx#L91C9-L96C11
{date && slot && response && (
You're all set!Check your email for a calendar invite.
)}
I checked also foomedical but it is the same sutuation.
Question: can you please share how to get values (time slot and questions answered) selected by user. Actually how to use properly the component to schedule the meeting on the server?
here is my code, my Idea was to grab the values selected and pass it to the bot -> bot will update the server.
https://gist.github.com/olegruchovets/ab7d094240dd746b272a334991bf32f0
If it is a wrong forum please let me know.
Thanks
Oleg.