{% extends 'familytouch/base.html' %} {% block title %}Your Patients - FamilyTouch{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% if messages %}
{% for m in messages %}
{{ m }}
{% endfor %}
{% endif %} {% if total_patients > 0 %}
{{ total_patients }}
Connected Patients
{% for data in patients_data %}
👤 {{ data.patient.get_full_name|default:data.patient.username }}
@{{ data.patient.username }} {% if data.patient.email %}
📧 {{ data.patient.email }} {% endif %}
{% if data.latest_vital %}

💓 Latest Health Record

{{ data.latest_vital.get_vital_type_display }}: {{ data.latest_vital.value }} {{ data.latest_vital.units }}
{{ data.latest_vital.created_at|date:"M d, Y g:i A" }}
{% endif %} {% if data.upcoming_appointments %}

📅 Upcoming Appointments

{% for appt in data.upcoming_appointments %}
🕐 {{ appt.start|date:"M d, g:i A" }} {% if appt.reason %}
📋 {{ appt.reason }} {% endif %}
{% endfor %}
{% endif %} {% if data.recent_updates %}

📋 Recent Updates

{% for update in data.recent_updates %}
{{ update.content|truncatewords:15 }}
{{ update.created_at|date:"M d, g:i A" }}
{% endfor %}
{% endif %}
{% endfor %}
{% else %}
👥

No Connected Patients

Patients will appear here when they connect with you through invitations.

🔗 View Connections
{% endif %}
← Back to Dashboard
{% endblock %}