S-SCH-04 · W02 Scheduling · fit: unknown
Search for an open slot across days
As a scheduler, I want to search a clinic for open slots of the right length over a range of dates, by time of day or access type, so that I can offer the patient the first time that fits instead of paging through the calendar.
| Persona | scheduler |
|---|---|
| Journey | An appointment is booked and the patient checks in |
| Step | Finds an open slot and books the patient Task_02_FindsAnOpenSlotAndBooksThePa |
Scenarios
| S-SCH-04.1 | Given a clinic whose resource in BSDX RESOURCE (#9002018.1) has access blocks in BSDX ACCESS BLOCK (#9002018.3) over a week, When I search for slots of the clinic's appointment length between two dates, Then every slot returned starts inside one of those blocks on a day in the range, no earlier than the clinic's display start hour in HOSPITAL LOCATION (#44), ends within the block, and the block has fewer active appointments (scheduled, checked in or checked out) over that time than its slot count. |
|---|---|
| S-SCH-04.2 | Given an access block whose access type in BSDX ACCESS TYPE (#9002018.35) prevents access, When I search, Then no slot inside it is returned. |
| S-SCH-04.3 | Given a date in HOLIDAY (#40.5) and a clinic that does not schedule on holidays in HOSPITAL LOCATION (#44), When I search across it, Then no slot on that date is returned; a clinic that schedules on holidays returns its slots as usual. |
| S-SCH-04.4 | Given dates beyond the clinic's maximum days for future booking, or inside its inactive period, in HOSPITAL LOCATION (#44), When I search, Then no slot on those dates is returned. |
| S-SCH-04.5 | Given I restrict the search to mornings or to afternoons, When I search, Then only slots starting before noon, or from noon, are returned. |
| S-SCH-04.6 | Given I restrict the search to one access type, When I search, Then only slots in blocks of that type are returned. |
| S-SCH-04.7 | Given a slot found by the search, When I pick it and name a registered patient, Then the appointment is filed as in S-SCH-01.1 at that time with the slot's length. |