We have some fields (age, visit type, insurance type, city) and some rules:
- Some doctors that define weekly schedule template like as:
Doctor D1 works on Monday 7-9 pm , Thursday 7-9 pm.
- Some type of Visit Type like as:
Doctor D1 accept Follow up- Laser- Rhinoplasty.
- Some type of counters rule in specific time range for doctor:
Doctor D1 accept only 50 patient with insurance type A in 18 to 30 April.
- Some type of specific rule:
D1 Accept patient for laser type on Mondays
or for example:
D1 Accept patient only 15-aged patient from New York city
My question is what is the best way for handling this combination of rule for provider (medical) scheduling? (I should combine 4 with 2 in Defining Visit Type form, or maybe firs should define working hour template (1) in one form and then mixing (2, 3, 4) and then add to working hour template?
How I can handle this complex situation for rule based Online appointment booking? I means patient with 16 years not seen time slot that has rule for 15-years patient.
My goal is very simple. just any patient that satisfy rules (that defined in time slots by provider) can see correspond time slot, not all time slots. for reaching to this goal how I can handle this rules (which orders)?