Doctor should be able to see 10 patients a day (Allow 10 bookings for a doctor)?

-1
Doctor should be able to see 10 patients a day (Allow 10 bookings for a doctor)? Example:- Doctor Only need to see 10 patient per day if any patient trying to book means at time it need to show like can’t able to book appointment for today like a message   This domain model i have created this is page where patient booking for appiontment in save button i need call microflow?    
asked
1 answers
2

I dont know the specifics since we only see part of a Domain Model, but what you can do is

 

- Set the Save action to Call a Microflow

- In the microflow, retrieve the appointments for that docter on that specific day

- Count them

- If the count is 10, show a message to the user and dont save/commit the appointment

- If the count is lower than 10, save/commit the appointment

answered