{% if resident.vital_status == 'DE' and resident.died_on %} {% elif resident.vital_status == 'DC' and resident.discharged_on %} {% endif %}
Died on: {{ resident.died_on }}
Discharged on: {{ resident.discharged_on }}
Reminder(s): {{ resident.reminders }}
Diagnosis: {{ resident.admitting_diagnosis }} Diet: {{ resident.diet }}
Weight: {{ resident.weight }} Height: {{ resident.height }}
Surname: {{ resident.last_name }} First Name: {{ resident.first_name }} Middle Name: {{ resident.middle_name }}
Age: {{ resident.birth_date|timesince }} Sex: {{ resident.get_gender_display }} OSCA ID #: {{ resident.osca_id }}
Address: {{ resident.address }}
Birth Date: {{ resident.birth_date }} Birth Place: {{ resident.birth_place }} Nationality: {{ resident.nationality }}
Civil Status: {{ resident.get_civil_status_display }} Most Recent Occupation: {{ resident.most_recent_occupation }}
Date of Admission: {{ resident.admission_date }} Time of Admission: {{ resident.admission_time }} Religion: {{ resident.religion }}
{% if resident.relative_set.all or resident.physicians.all %}

Contact Person(s)

{% for relative in resident.relative_set.all %} {% endfor %} {% for physician in resident.physicians.all %} {% endfor%}
Name: {{relative.first_name}} {{relative.middle_name }} {{ relative.last_name }} Relation: {{ relative.relation_to_resident }} Telephone #: {{ relative.telephone }}
Physician: Dr. {{ physician.first_name }} {{ physician.middle_name }} {{ physician.last_name}} Contact #: {{ physician.telephone }} HOC: {{ physician.hospital_of_choice }}
{% endif %}
{% if perms.cm_portal.change_resident and perms.cm_portal.delete_resident %} Edit Delete {% elif perms.cm_portal.change_resident %} Edit Delete {% else %} Edit Delete {% endif %}