{% extends 'layouts/base.html' %} {% load i18n %} {% load static %} {% block title %}{{ patient.get_full_name }} - {% trans "Patient Details" %}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ patient.first_name|first }}{{ patient.last_name|first }}

{{ patient.get_full_name }} {% if patient.first_name_ar or patient.last_name_ar %} {{ patient.first_name_ar|default:'' }} {{ patient.last_name_ar|default:'' }} {% endif %}

{% trans "MRN" %}: {{ patient.mrn }} {% if patient.national_id %} {% trans "National ID" %}: {{ patient.national_id }} {% endif %} {% if patient.date_of_birth %} {% trans "DOB" %}: {{ patient.date_of_birth }} {% endif %}
{% trans "Edit Patient" %} {% if request.user.is_px_admin %} {% trans "Delete" %} {% endif %}

{% trans "Basic Information" %}

{% trans "First Name" %}

{{ patient.first_name|default:"-" }}

{% if patient.first_name_ar %}

{{ patient.first_name_ar }}

{% endif %}

{% trans "Last Name" %}

{{ patient.last_name|default:"-" }}

{% if patient.last_name_ar %}

{{ patient.last_name_ar }}

{% endif %}

{% trans "Date of Birth" %}

{{ patient.date_of_birth|default:"-" }}

{% trans "Gender" %}

{{ patient.get_gender_display|default:"-" }}

{% trans "National ID" %}

{{ patient.national_id|default:"-" }}

{% trans "Status" %}

{{ patient.get_status_display }}

{% trans "Contact Information" %}

{% trans "Phone" %}

{{ patient.phone|default:"-" }}

{% trans "Email" %}

{{ patient.email|default:"-" }}

{% trans "Address" %}

{{ patient.address|default:"-" }}

{% trans "City" %}

{{ patient.city|default:"-" }}

{% if surveys %}

{% trans "Recent Surveys" %} {{ surveys.count }}

{% for survey in surveys %}

{{ survey.survey_template.name }}

{{ survey.created_at|date:"d M Y" }} {{ survey.created_at|date:"H:i" }}
{% if survey.total_score %}
{{ survey.total_score }} {% trans "Score" %}
{% endif %} {{ survey.get_status_display }}
{% endfor %}
{% endif %}

{% trans "Hospital" %}

{{ patient.primary_hospital.name|default:"-" }}

{% if patient.primary_hospital.name_ar %}

{{ patient.primary_hospital.name_ar }}

{% endif %}

{% trans "Metadata" %}

{% trans "Created" %}
{{ patient.created_at|date:"d M Y" }}
{% trans "Updated" %}
{{ patient.updated_at|date:"d M Y" }}
{% endblock %} {% block extra_js %} {% endblock %}