RSS Git Download  Clone
Raw Blame History
<!-- BEGIN request/patient_data.tt -->
	[% # PROCESS dumper.tt dump = case.referral_source.display_name.length %]

    <p>
        <strong>Patient demographic data:</strong>
        [ <a href="[% app_url %]/patient/register_edit_patient/[% case.patient.id %]">Edit</a> ]
    </p>

    <div class="indent" style="text-align: center">
    <table>
	    <tr>
	        <th>id</th>
	        <th>Last Name</th>
	        <th>First Name(s)</th>
	        <th>Gender</th>
	        <th>D.o.B</th>
	        <th>NHS Number</th>
	        <th>Location</th>
	        <th>Unit Number</th>
	    </tr>
	    <tr>
	        <td>[% case.patient.id %]</td>
	        <td>[% case.patient.last_name | upper %]</td>
	        <td>
                <span>[% case.patient.first_name | ucfirst %]</span>
                <span>[% case.patient.middle_name | ucfirst %]</span>
			</td>
	        <td>[% case.patient.gender || 'U' %]</td>
	        <td>[% case.patient.dob.strftime('%d.%b.%Y') || site.html.grey_null %]</td>
	        <td>[% case.patient.nhs_number || site.html.grey_null %]</td>
	        <td>[% PROCESS site/display_name.tt location = case.referral_source.display_name %]</td>
	        <td>[% case.unit_number || site.html.grey_null %]</td>
	    </tr>
	</table>
    </div>
<!-- END request/patient_data.tt -->