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

0
    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  
asked
1 answers
0

you can easily do something like that. 

Let's say you have an entity "booking", with a date as attribute, link to another entity "doctor".

association will be : one doctor can have several booking.

 

Now you simply need to do a retrieve in your microflow of every booking where the association of booking-doctor = the doctor selected by the current user.

then you filter on the date to be equal current day. Then a count of the filtered object. If >10 you display an error message.

 

good luck.

 

answered