[% BLOCK url %] [% ref.request_number %]/[% ref.year - 2000 %] [% END %]

Diagnoses [% date.strftime('%b %Y') %] Requiring Follow-up [[% data.size %]]

a) requests with follow-up sample:

[% i = 0 %] [% FOREACH ref IN data; NEXT UNLESS ref.followup.size; %] [% FOREACH f IN ref.followup %] [% END %] [% END %]
name nhs no lab no specimen presentation source diagnosis date
[% i = i + 1; i %] [% ref.last_name.upper %], [% ref.first_name.ucfirst %] [% ref.nhs_number %] [% INCLUDE url %] [% ref.specimen %] [% ref.presentation %] [% ref.location %] [% ref.diagnosis %] [% ref.authorised %]
{ follow-up +[% f.delta %]d } [% INCLUDE url ref = f %] [% f.specimen %] [% f.presentation %] [% f.location %] [% f.diagnosis %] [% f.registered %]

b) requests without follow-up sample:

[% i = 0 %] [% FOREACH ref IN data; NEXT IF ref.followup.size; %] [% END %]
name nhs no lab no specimen presentation source diagnosis date
[% i = i + 1; i %] [% ref.last_name.upper %], [% ref.first_name.ucfirst %] [% ref.nhs_number %] [% INCLUDE url %] [% ref.specimen %] [% ref.presentation %] [% ref.location %] [% ref.diagnosis %] [% ref.authorised %]