[%- # some vars: reg_date = request_history.registered.datetime.strftime('%d.%m.%Y'); reg_time = request_history.registered.datetime.strftime('%H:%M'); report_date = request_history.reported.datetime.strftime('%d.%m.%Y'); auth_date = request_history.authorised.datetime.strftime('%d.%m.%Y'); -%] 02|$$$|[% organisation_code %]| 03|[% sex %]|[% last_name | upper %]|[% first_name | ucfirst %]|[% nhs_number %]|[% unit_number %]|[% dob %]|[% patient_id %]||||| 04|||||[% referrer_code %]|[% referrer %] 05|[% labno %]||[% specimen_summary %]|[% reg_date %]|[% reg_time %]|HMDS||[% reg_date %]|[% reg_time %]| 06|||Y 07|Request Details: 07|[% clinical_details %] 07| 07|Specimen Type: 07|[% specimen_details %] 07| 07|Anatomical site: 07|[% biopsy_site %] 07| 07|Specimen Quality: 07|[% specimen_quality %] 07| 07|Gross Description: 07|[% gross_description %] 07| 07|Results Summary: 07|[% results_summary %] 07| 07|Morphology: 07|[% morphology %] 07| 07|Comment: 07|[% comment %] 07| 07|Diagnosis: 07|[% diagnosis; IF diagnosis2 %] 07|[% diagnosis2; END %] 07| 07|Reported by:[% # manual indent setting: %] 07| [% request_history.reported.user_name %] on [% report_date %] 07| 07|Authorised by:[% # manual indent setting: %] 07| [% request_history.authorised.user_name %] on [% auth_date %] 08|^^^|[% request_history.reported.user_code %]|[% request_history.authorised.user_code %]