{% extends "base.html" %} {% load static %} {% block title %}Patient Profile - {{ object.get_full_name }}{% endblock %} {% block content %}

Patient Profile - {{ object.get_full_name }}

Personal Information

{% if object.is_active %}Active{% else %}Inactive{% endif %}
Full Name: {{ object.get_full_name }}
Medical Record Number: {{ object.medical_record_number }}
Date of Birth: {{ object.date_of_birth|date:"F d, Y" }}
Age: {{ object.age }} years old
Gender: {{ object.get_gender_display }}
Phone Number: {{ object.phone_number|default:"Not provided" }}
Email: {{ object.email|default:"Not provided" }}
Blood Type: {% if object.blood_type %} {{ object.blood_type }} {% else %} Unknown {% endif %}
Marital Status: {{ object.get_marital_status_display|default:"Not specified" }}
Registration Date: {{ object.created_at|date:"F d, Y" }}

Address Information

{% if object.address %}
Street Address:
{{ object.address }}
City:
{{ object.city|default:"Not provided" }}
State/Province:
{{ object.state|default:"Not provided" }}
ZIP/Postal Code:
{{ object.zip_code|default:"Not provided" }}
{% else %}

No address information provided

{% endif %}

Medical Information

Primary Care Physician:
{{ object.primary_care_physician.get_full_name|default:"Not assigned" }}
Allergies:
{% if object.allergies %}
{{ object.allergies }}
{% else %} No known allergies {% endif %}
Medical History:
{% if object.medical_history %}
{{ object.medical_history|truncatewords:50 }}
{% else %} No medical history recorded {% endif %}
{% if object.current_medications %}
Current Medications:
{{ object.current_medications }}
{% endif %}

Recent Activity

{% if recent_activities %}
{% for activity in recent_activities %}
{{ activity.title }}
{{ activity.date|date:"M d, Y g:i A" }}

{{ activity.description }}

{{ activity.department|default:"General" }}
{% endfor %}
{% else %}
No Recent Activity

No recent activities recorded for this patient.

{% endif %}
Emergency Contacts
{% if emergency_contacts %} {% for contact in emergency_contacts %}
{{ contact.name }}
{{ contact.relationship }}
{{ contact.phone_number }}
{% if contact.is_primary %} Primary {% endif %}
{% endfor %} {% else %}

No emergency contacts

Add Contact
{% endif %}
Insurance Information
{% if insurance_info %} {% for insurance in insurance_info %}
{{ insurance.insurance_company }}
{{ insurance.policy_type }}
Policy: {{ insurance.policy_number }}
{% if insurance.is_primary %} Primary {% endif %}
{% endfor %} {% else %}

No insurance information

Add Insurance
{% endif %}
System Information
Patient ID: {{ object.pk }}
Created: {{ object.created_at|date:"M d, Y g:i A" }}
Last Updated: {{ object.updated_at|date:"M d, Y g:i A" }}
Status: {% if object.is_active %}Active{% else %}Inactive{% endif %}
{% if object.ssn %}
SSN: ***-**-{{ object.ssn|slice:"-4:" }}
{% endif %}
{% endblock %}