RSS Git Download  Clone
Raw Blame History
  [% META title = 'Resources » Diagnoses' -%]
<!-- BEGIN [% template.title %] -->
  
  [% # PROCESS dumper.tt dump = diagnoses %]
  [% # PROCESS dumper.tt dump = sub_categories %]

	[% # PROCESS admin/request_nav.tt page = 'diagnoses' %]

	<h2 align="center">Diagnostic Terms</h2>

	[% IF diagnoses.size # only empty if new db %]
        [% PROCESS site/page_count.tt %]
		<table>
			<tr>
				<th></th>
				<th>
                    <a href="[% url_with_path %]?sort_by=name">Diagnosis</a>
                </th>
				<th>
                    <a href="[% url_with_path %]">Category</a>
                </th>
				<th><span class="acronym" title="sub-category">Sub</span></th>
				<th>
                    <a href="[% url_with_path %]?sort_by=icdo3">ICDO3</a>
                </th>
				<th>
                    Active
                </th>
			</tr>

			[% FOREACH d IN diagnoses; # PROCESS dumper.tt dump = d;
                class = d.active == 'no' ? 'grey' : 'normal' %]
			<tr class="[% class %]">
				<td>
                    [% IF cgi_pager; cgi_pager.first_pos_displayed + loop.count - 1; ELSE; loop.count; END %]
                </td>
				<td>[% d.name | html %]</td>
				<td>[% d.diagnostic_category.description | html %]</td>
				<td>[% sub_categories.item(d.icdo3) %]</td>
				<td>[% d.icdo3 | html %]</td>
				<td>[% d.active %]</td>
			 </tr>
			[% END %]

		</table>
	[% END %]

    [% PROCESS site/cgi_pager.tt %]
<!-- END [% template.title %] -->