{# patient_table.html #} {% comment %} template parameters: patient_lookup (object) consent_mode (object) OR: concise=True verbose (Boolean) include_sex (Boolean) include_prefers_email (Boolean) include_email (Boolean) include_researcher_detail (Boolean) if include_researcher_detail, also: permitted_to_contact_discharged_patients_for_n_days (int) permitted_to_contact_discharged_patients_for_n_years (str) {% endcomment %} {% comment %} {% endcomment %} {% if include_sex %} {% endif %} {% if include_prefers_email and consent_mode %} {% endif %} {% if include_email %} {% endif %} {% if verbose %} {% endif %} {% if include_researcher_detail %} {% comment %} {% endcomment %} {% endif %}
Name {{ patient_lookup.pt_title_forename_surname }}
Sex {{ patient_lookup.pt_sex }}
Date of birth {{ patient_lookup.pt_dob|date }}
Identifiers NHS number: {{ patient_lookup.nhs_number }}. {% if patient_lookup.pt_local_id_description %} {{ patient_lookup.pt_local_id_description}}: {{ patient_lookup.pt_local_id_number }}. {% endif %}
Address {{ patient_lookup.pt_address_components_str }}
Prefers e-mail? {{ consent_mode.prefers_email|yesno }}
E-mail address {{ patient_lookup.pt_email }}
GP {{ patient_lookup.gp_name_address_str }}
CPFT clinician {{ patient_lookup.clinician_name_address_str }} ({{ patient_lookup.clinician_signatory_title }})
Patient under 16? {{ patient_lookup.is_under_16|yesno }}
Patient discharged? {{ patient_lookup.pt_discharged|yesno:"yes,no,?" }} {% comment %} {% if patient_lookup.pt_discharged != False %} {% if consent_mode.consent_after_discharge %} (and: patient specifically consented to contact after discharge) {% else %} (note: patient has NOT consented to contact after discharge) {% endif %} {% endif %} {% endcomment %} {% if patient_lookup.pt_discharged == True %} [Discharge date: {{ patient_lookup.pt_discharge_date|date }}.] {% endif %} {% if include_researcher_detail and patient_lookup.pt_discharged != False %} {% include "contact_after_discharge_permission_phrase.html" %} {% endif %}
Patient’s previous special requests {{ consent_mode.other_requests }}
Was the patient specifically asked about your study? {{ contact_request.decided_send_to_clinician|yesno }}