[% META title="Sample storage" %] [% # PROCESS dumper.tt dump = request.as_tree %] [% # PROCESS dumper.tt dump = specimen_map %] [% # PROCESS dumper.tt dump = storage %] [% # PROCESS dumper.tt dump = c.stash.errs %] [% # PROCESS dumper.tt dump = menu_options %] [% # PROCESS dumper.tt dump = lab_tests %] [% # PROCESS dumper.tt dump = lab_sections %] [% # PROCESS dumper.tt dump = request_lab_tests %] [% # PROCESS dumper.tt dump = menu_options %] [% # define some data structures: # c.debug('##############'); # to reveal any db calls from templates patient = request.patient_case.patient; # not as_tree - preserve datetime objects; sample_codes = specimen_map.item(request.id).sample_code; %] [% INCLUDE record/patient_summary.tt %]
Number of vials in store: [% available.size %]
[% IF storage.size %]| Specimen | Vial ID | Sample | Part Num | Source | Volume | Concn | Method | Location | In | Out | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| [% loop.count %] | [% item.specimen.sample_code %] | [% item.vialId %] | [% item.sample %] | [% item.part_number %] | [% item.source || site.html.grey_null %] | [% IF item.volume; item.volume; 'µL'; ELSE; site.html.grey_null; END %] | [% IF item.concentration; item.concentration; 'ng/µL'; ELSE; site.html.grey_null; END %] | [% item.method || site.html.grey_null %] | [% IF item.vial_location; item.rack.plateId _ '/' _ item.vial_location; END %] | [% item.created_at.strftime('%d.%b.%Y') %] | [% item.signed_out.strftime('%d.%b.%Y') %] | [edit] | [ [% IF item.rack_id; 'x'; ELSE # cannot delete vial if already allocated %] x [% END %] ] |
[% c.cfg('msg').dfv_errors %]
[% END %]ERROR: [% error %]
[% END %]