S-SCH-11 · W02 Scheduling · fit: unknown

Print appointment letters

As a scheduler, I want to print the reminder, cancellation and no-show letters for a clinic's patients, or for one appointment, so that the patient knows when to come, or that the clinic cancelled, or that they were missed.

Personascheduler
JourneyAn appointment is booked and the patient checks in
StepPrints the appointment letter Task_07_PrintsTheAppointmentLetter

Scenarios

S-SCH-11.1Given a clinic whose pre-appointment letter in HOSPITAL LOCATION (#44) names a template in LETTER (#407.5), and patients with scheduled appointments in a date range, When I print the clinic's pre-appointment letters for that range, Then one letter per patient is produced with their name, address and health record number, the template's opening and closing text, and each of their appointments in the range with clinic and time; cancelled, no-show and checked-in appointments and deceased patients are left out.
S-SCH-11.2Given a template that greets the parents and a patient under 18, When I print, Then that patient's letter is addressed to their parents.
S-SCH-11.3Given appointments in the range cancelled by the clinic, cancelled by the patient, and marked no-show in PATIENT (#2.98), When I print letters of one of those three kinds, Then only the patients with appointments of that kind get a letter, on the clinic's template of that kind.
S-SCH-11.4Given a clinic with no template of the chosen kind in HOSPITAL LOCATION (#44) and none chosen by hand, or no appointments of that kind in the range, When I print, Then no letter is produced and I am told which of the two it was.
S-SCH-11.5Given one appointment that is scheduled, cancelled or a no-show, When I print its letter from the appointment, Then only that patient's letter of the matching kind is produced.