[% META title="Error Codes » Configure " %]
<!-- BEGIN admin/config/errorcodes/config.tt -->
[% # PROCESS dumper.tt dump = config_map %]
<h3>Configure error codes for request/patient edits:</h3>
[% error_codes_config_dfv_js %]
<div class="indent">
<h4>1) Codes for patient edit:
[% div_name = 'patient'; INCLUDE site/snippets/toggleview.tt %]
</h4>
<div class="itemhidden" id="[% div_name %]">
<form method="post" action="[% app_url %]/config/error-codes/update_assignments"
[% error_codes_config_onsubmit %] name="patient_edit" id="patient_edit">
<input type="hidden" name="type" value="patient" />
<table class="indent">
[% FOREACH code IN error_codes %]
[% NEXT UNLESS code.active.match('yes') %]
<tr>
<td>[% code.code | upper %]: [% code.description | html %]</td>
<td>
<input type="checkbox" name="error_code_id" value="[% code.id %]"
[% 'checked' IF config_map.patient.item(code.id) %] />
</td>
</tr>
[% END %]
<tr>
<td class="borderless" colspan="2" align="center">
[% site.html.submit %]
</td>
</tr>
</table>
</form>
</div>
<h4>2) Codes for request edit:
[% div_name = 'request'; INCLUDE site/snippets/toggleview.tt %]
</h4>
<div class="itemhidden" id="[% div_name %]">
<form method="post" action="[% app_url %]/config/error-codes/update_assignments"
[% error_codes_config_onsubmit %] name="request_edit" id="request_edit">
<input type="hidden" name="type" value="request" />
<table class="indent">
[% FOREACH code IN error_codes %]
[% NEXT UNLESS code.active.match('yes') %]
<tr>
<td>[% code.code | upper %]: [% code.description | html %]</td>
<td>
<input type="checkbox" name="error_code_id" value="[% code.id %]"
[% 'checked' IF config_map.request.item(code.id) %] />
</td>
</tr>
[% END %]
<tr>
<td class="borderless" colspan="2" align="center">
[% site.html.submit %]
</td>
</tr>
</table>
</form>
</div>
<h4>3) Codes for direct entry:
[% div_name = 'direct'; INCLUDE site/snippets/toggleview.tt %]
</h4>
<div class="itemhidden" id="[% div_name %]">
<form method="post" action="[% app_url %]/config/error-codes/update_assignments"
[% error_codes_config_onsubmit %] name="errors" id="errors">
<input type="hidden" name="type" value="errors" />
<table class="indent">
[% FOREACH code IN error_codes %]
[% NEXT UNLESS code.active.match('yes') %]
<tr>
<td>[% code.code | upper %]: [% code.description | html %]</td>
<td>
<input type="checkbox" name="error_code_id" value="[% code.id %]"
[% 'checked' IF config_map.errors.item(code.id) %] />
</td>
</tr>
[% END %]
<tr>
<td class="borderless" colspan="2" align="center">
[% site.html.submit %]
</td>
</tr>
</table>
</form>
</div>
</div>
<!-- END admin/config/errorcodes/config.tt -->