Patient case data:

[% IF patient_cases.size; # PROCESS dumper.tt dump = patient_cases %]

Select a previous record or edit current record:

[% FOREACH entry IN patient_cases %] [% END %]
Unit number Location
« select
[% END %] [% this_case = request_data.data.patient_case %] [% PROCESS request/edit/single_record_data.tt %] [% IF record_count > 1 %] [% default_setting = this_case.unit_number.match('UNKNOWN') ? 'all' : 'one' %]

Apply change to:
this record only
all [% record_count %] records

[% ELSE # flag to delete this patient_case after edit %] [% END %]

[% site.html.reset %]