{% extends 'base.html' %} {% block title %}Patient Details | DiabeScreen{% endblock %} {% block extra_head %} {% endblock %} {% block content %}

Patient Health Profile

Assessment Date: {{ patient.created_at|date:"F d, Y"|default:"N/A" }}
Screening ID: #{{ patient.id }}
Risk Level: {{ patient.risk_level }}
Patient ID: #{{ patient.id }}

Personal Information

Patient ID #{{ patient.id }}
Age {{ patient.age }} years
Gender {% if patient.gender == 'M' %} Male {% elif patient.gender == 'F' %} Female {% else %} {{ patient.gender|default:"Not specified" }} {% endif %}

Vital Signs & Measurements

BMI {{ patient.bmi|default:"N/A" }} {% if patient.bmi %} {% if patient.bmi|floatformat:1|add:"0" < 18.5 %} (Underweight) {% elif patient.bmi|floatformat:1|add:"0" < 25 %} (Normal) {% elif patient.bmi|floatformat:1|add:"0" < 30 %} (Overweight) {% else %} (Obese) {% endif %} {% endif %}
Blood Pressure {{ patient.blood_pressure|default:"N/A" }} {% if patient.blood_pressure %} {% endif %}
Glucose Level {{ patient.glucose_level|default:"N/A" }} mg/dL {% if patient.glucose_level %} {% if patient.glucose_level|add:"0" < 100 %} (Normal) {% elif patient.glucose_level|add:"0" < 126 %} (Prediabetes) {% else %} (Diabetes Range) {% endif %} {% endif %}

Risk Assessment

Risk Level {{ patient.risk_level }}
Screening Date {{ patient.created_at|date:"F d, Y \a\t g:i A"|default:"N/A" }}
{% if patient.family_history or patient.smoking_status or patient.physical_activity %}

Additional Health Factors

{% if patient.family_history %}
Family History {{ patient.family_history }}
{% endif %} {% if patient.smoking_status %}
Smoking Status {{ patient.smoking_status }}
{% endif %} {% if patient.physical_activity %}
Physical Activity {{ patient.physical_activity }}
{% endif %}
{% endif %}

Clinical Recommendation

{{ patient.recommendation|default:"Based on the risk assessment, please consult with a healthcare provider for a comprehensive evaluation and personalized care plan." }}
Back to History Print Report {% if user.is_authenticated and user.is_staff %} Edit Record {% endif %}
{% endblock %}