[% content_only = 1 # no html wrappers %] [% # shared by print_record - called by outreach/report.tt & print_run - called direct %] [% data = request.data; # PROCESS dumper.tt dump = data.data.as_tree; patient = data.patient_case.patient; outreach = request.outreach; # PROCESS dumper.tt dump = outreach; history = request.history; %]

Haematological Malignancy Diagnostic Service

[% c.cfg('settings').service_address %] [% c.cfg('settings').service_telno %]

Outreach Report on Ref. [% PROCESS site/lab_number.tt; want_url=0 %]

Patient details:

Name: [% patient.last_name | upper %], [% patient.first_name | ucfirst %] [% patient.middle_name | ucfirst %] DoB: [% patient.dob.strftime('%d.%b.%Y') %] NHS No: [% INCLUDE site/nhs_number.tt nhs_number = patient.nhs_number %]
Address: [% outreach.demographics.address | html %], [% outreach.demographics.post_code %]
GP: [% outreach.demographics.practitioner || 'UNKNOWN' %], [% outreach.demographics.display_name | html %]

Laboratory results:

[% img_url = app_url _ '/chart/outreach/' _ data.patient_case.patient_id; # append "?CGISESSION=c.session.id" to pass session from URL IF use_file_sessions; # eg called from cron script img_url = img_url _ '?USE_FILE_SESSIONS=1'; END; %]
[% INCLUDE outreach/data_summary.tt skip_url = 1 # switches off td hrefs %]

Comment:

[% formatted_comment = symbolise(data.request_report.comment); formatted_comment | html_line_break; %]
[% follow_opt_id = outreach.followup.followup_option_id; option = outreach.menu_options.followup_options.item(follow_opt_id).option; label = outreach.menu_options.followup_options.item(follow_opt_id).label; %] [% IF option.match('month') %] Suitable for community monitoring: a pack will be sent out [% UNLESS option.match('zero') %]in[% END %] [% label %]. [% ELSIF option.match('clinic_return') %] Currently unsuitable for community monitoring: an appointment will be made at the haematology clinic. [% END %]

Diagnosis:

[% data.request_report.diagnosis.name | html %]

Reported by: [% history.reported.user.first_name | ucfirst %] [% history.reported.user.last_name | ucfirst %] on [% history.reported.time.strftime('%d.%b.%Y at %H:%M') %]
[% IF history.authorised %]
Authorised by: [% history.authorised.user.first_name | ucfirst %] [% history.authorised.user.last_name | ucfirst %] on [% history.authorised.time.strftime('%d.%b.%Y at %H:%M') %]
[% END %]