{# discharged_phrase.html #} {% comment %} template parameters: patient_lookup (object) consent_mode (object) {% endcomment %} {% if patient_lookup.pt_discharged == None %} {# operating in ignorance #} {% if consent_mode.consent_after_discharge %}
The electronic records don’t know whether this patient has been discharged, but they have specifically consented to being contacted by their former clinicians, so you may proceed as long as you are a former clinician of theirs.
{% else %}
Discharged? The electronic records don’t know whether this patient has been discharged. If you know the patient has been discharged, please say no to this request (giving “discharged” as your reason), because this patient has not given their specific consent to be contacted after discharge.
{% endif %} {% elif patient_lookup.pt_discharged %} {# discharged #} {% if consent_mode.consent_after_discharge %}
The patient is listed as having been discharged, but they have specifically consented to being contacted by their former clinicians, so you may proceed as long as you are a former clinician of theirs.
{% else %}
Bug. The patient is listed as having been discharged, and has not given their consent to be contacted after discharge. This e-mail should not have come to you; we are sorry. This is a bug. Please say no to the request and tell the Research Database Manager (details below) of the bug.
{% endif %} {% else %} {# not discharged #} {# clinician always has the right to contact patient #} {% endif %}
Dead? The electronic records won’t know if the patient has recently died, so please veto any such inadvertent requests.