[% content_only = 1 # no html wrappers %] [% # PROCESS dumper.tt dump = data %] [% # PROCESS dumper.tt dump = notifications %] [% USE date(format = '%d/%m/%Y', locale = 'en_GB') %] [% BLOCK format_letter %]
[% INCLUDE worklist/local/outreach/address.tt %]
[% IF entry.delta_days >= 90; # return to GP: INCLUDE worklist/local/outreach/return_to_gp.tt; ELSIF entry.delta_days >= 30; # patient 30 & 60 day letter: INCLUDE worklist/local/outreach/patient_letter.tt; END; %]

Yours,

Dr. Andy C. Rawstron
Consultant Clinical Scientist
[% END %] Outreach Pack Overdue Notifications [% FOREACH entry IN requests; # PROCESS dumper.tt dump = entry.delta_days; IF entry.delta_days >= 60 AND entry.delta_days < 90; gp_copy = 1; INCLUDE format_letter; # GP gets copy of 60-day letter gp_copy = 0; INCLUDE format_letter; # copy to patient ELSE; INCLUDE format_letter; END; END %]