S-SCH-14 · W02 Scheduling · fit: unknown
Set a clinic's hours
As a scheduling supervisor, I want to set the hours each clinic can be booked, by weekday and over a range of dates, so that schedulers are offered real times and a clinic is ready before its first booking.
| Persona | scheduler |
|---|---|
| Journey | The scheduler keeps the schedule current |
| Step | Sets the clinic's hours by weekday over a range of dates Task_12_SetsTheClinicsHours |
Scenarios
| S-SCH-14.1 | Given a clinic whose resource is in BSDX RESOURCE (#9002018.1), When I set its hours for chosen weekdays (a start time, an end time, the appointments each slot takes and an access type) from a first date through a last date, Then BSDX ACCESS BLOCK (#9002018.3) holds one block for each chosen day in that range with those values, and no day outside it changes. |
|---|---|
| S-SCH-14.2 | Given hours set for a clinic, When a scheduler searches its open times or books it, Then the times offered are those blocks, the same in every interface that reads BSDX ACCESS BLOCK. |
| S-SCH-14.3 | Given an end time not after the start time, fewer than one appointment per slot, no access type or an inactive one, or a last date before the first, When I save, Then it is refused, names the value, and nothing is filed. |
| S-SCH-14.4 | Given a day in the range that already has blocks, When I set hours over it again, Then its old blocks are replaced by the new ones, not added to. |
| S-SCH-14.5 | Given an active appointment (not cancelled, not a no-show) on a day whose blocks I would replace, at a time the new hours no longer cover, When I save, Then it is refused and names that appointment's date and time, and the blocks and the appointment are unchanged. (BSDX CANCEL AV BY DATE does not check: `AVDELDT^BSDX13` deletes every block in the range, and its appointment check `APTINBLK` is commented out as not called in the current version.) |
| S-SCH-14.6 | Given I hold neither SDZSUP nor SDZMENU, When I open scheduling, Then I cannot set a clinic's hours. |