[% META title="Initial Screen" %]
<!-- BEGIN [% template.name %] -->
[% # PROCESS dumper.tt dump = s.as_tree FOREACH s IN screen_categories %]
[% # PROCESS dumper.tt dump = s.as_tree FOREACH s IN screens %]
[% # PROCESS dumper.tt dump = audit_categories %]
[% # PROCESS dumper.tt dump = haem_data.as_tree %]
[% # PROCESS dumper.tt dump = data.as_tree %]
[% INCLUDE record/patient_summary.tt request = data %]
[% IF dfv_errors %]
<p class="error">[% c.config('msg').dfv_errors %]</p>
[% END %]
[% # PROCESS site/js/jquery.tt # already loaded in html_wrapper %]
<script type="text/javascript" src="/js/jquery.textarea-expander.js"></script>
<h3 class="header">Screen record:</h3>
[% # PROCESS request/summary_display.tt # tmpl can be deleted now %]
[% IF haem_data %]
<h4 class="indent">Haematology</h4>
[% INCLUDE result/haem_data.tt function = 'screen' %]
[% END %]
[% initial_screen_dfv_js %]
[% INCLUDE site/previous_requests.tt # don't use PROCESS or 'data' gets clobbered %]
[% INCLUDE site/previous_lab_tests.tt IF previous_requests.size %]
[% patient = data.patient_case.patient %]
<form method="post" name="patientNotes" id="patientNotes" action="[%
app_url %]/patient/patient_notes/[% data.id %]/[% patient.id %]">
<p class="title">
Patient notes: <textarea name="patient_notes" rows="1" cols="70"
style="vertical-align: middle" class="expand20-200"
id="patient_notes">[% patient.patient_note.detail %]</textarea>
<input type="hidden" name="fwd_to" value="[% c.query.url(path_info=1) %]" />
<input class="button" type="submit" value="Update" />
</p>
</form>
<form action="[% app_url %]/request/general_notes/[% data.id %]" method="post"
name="notes" id="notes">
<p class="title">Request notes:
[% notes = data.request_general_note.detail %]
<textarea name="general_notes" rows="1" cols="70" class="expand"
[% site.html.onfocus %] style="vertical-align: middle">[% notes %]</textarea>
<input type="hidden" name="rm" value="screen" />
<input class="button" type="submit" value="Update" />
</p>
</form>
<form method="post" action="[% app_url %]/screen/do_initial_screen/[% data.id %]"
[% initial_screen_onsubmit %] name="initialScreen" id="initialScreen">
<table class="indent">
<tr>
<td class="label">Screen select:</td>
<td class="content">
[% INCLUDE screen/screen_select.tt %]
[% error_screen_id %]
</td>
<td rowspan="2" class="borderless">
[% site.html.submit %] [% site.html.reset %]
</td>
</tr>
[% # only if settings.have_request_audit
INCLUDE screen/audit_categories.tt IF audit_categories.size;
%]
</table>
</form>
<!-- END [% template.name %] -->