[% content_only = 1 # no html wrappers %] [% # PROCESS dumper.tt dump = cases %] HMRN Data Collection Templates [% FOREACH case IN cases; # PROCESS dumper.tt dump = case.as_tree; authorisation_date = case.request_history.0 # for duplicate actions ? case.request_history.0.time : case.request_history.time; age = calculate_age(case.patient_case.patient.dob, authorisation_date); # NEXT IF age < 18; # skip under-18's # don't !! INCLUDE 'hmrn/data/collection/common.tt'; # common fields %]
Presentation data:
[% category = case.request_report.diagnosis.diagnostic_category.description; IF category.match('[BT]-lymphoproliferative'); # B- or T- INCLUDE 'hmrn/data/collection/lymphoproliferative.tt'; ELSIF category.match('Myeloproliferative'); INCLUDE 'hmrn/data/collection/myeloproliferative.tt'; ELSIF category.match('Myelodysplastic'); INCLUDE 'hmrn/data/collection/myelodysplastic.tt'; ELSIF category.match('Plasma cell'); INCLUDE 'hmrn/data/collection/plasmacell.tt'; ELSIF category.match('Precursor cell'); INCLUDE 'hmrn/data/collection/precursor.tt'; ELSE; %]

Error - could not assign a disease category to '[% case.request_report.diagnosis.name %]'. Please alert admin.

[% END %]
[% END %]