{% extends "base.html" %} {% load static %} {% block title %}Appointment Details - {{ block.super }}{% endblock %} {% block content %}

Appointment Details

{{ appointment.scheduled_datetime|date:"M d, Y H:i" }} • {{ appointment.get_status_display }}

{% if appointment.status == 'PENDING' %} {% endif %}
Appointment Information
{% if appointment.is_telemedicine %} {% endif %}
Date & Time{{ appointment.scheduled_datetime|date:"M d, Y H:i" }}
Duration{{ appointment.duration_minutes }} minutes
Type{{ appointment.get_appointment_type_display }}
Specialty{{ appointment.specialty|default:"General" }}
Priority{{ appointment.get_priority_display }}
Status {% if appointment.status == 'PENDING' %} {{ appointment.get_status_display }} {% elif appointment.status == 'CONFIRMED' %} {{ appointment.get_status_display }} {% elif appointment.status == 'CHECKED_IN' %} {{ appointment.get_status_display }} {% elif appointment.status == 'IN_PROGRESS' %} {{ appointment.get_status_display }} {% elif appointment.status == 'COMPLETED' %} {{ appointment.get_status_display }} {% elif appointment.status == 'CANCELLED' %} {{ appointment.get_status_display }} {% elif appointment.status == 'NO_SHOW' %} {{ appointment.get_status_display }} {% endif %}
TelemedicineYes
{% if appointment.chief_complaint %}
Chief Complaint

{{ appointment.chief_complaint }}

{% endif %} {% if appointment.notes %}
Notes

{{ appointment.notes|linebreaks }}

{% endif %}
Patient Information
Name{{ appointment.patient.get_full_name }}
MRN{{ appointment.patient.mrn }}
Date of Birth{{ appointment.patient.date_of_birth|date:"M d, Y" }}
Age{{ appointment.patient.age }}
Gender{{ appointment.patient.get_gender_display }}
Phone{{ appointment.patient.phone_number|default:"Not provided" }}
Email{{ appointment.patient.email|default:"Not provided" }}
{% if appointment.provider %}
Provider Information
Name{{ appointment.provider.get_full_name }}
Role{{ appointment.provider.get_role_display }}
Department{{ appointment.provider.department|default:"Not specified" }}
Phone{{ appointment.provider.phone_number|default:"Not provided" }}
Email{{ appointment.provider.email|default:"Not provided" }}
{% endif %}
Timeline
Created: {{ appointment.created_at|date:"M d, Y H:i" }} {% if appointment.created_by %}
by {{ appointment.created_by.get_full_name }} {% endif %}
{% if appointment.confirmed_at %}
Confirmed: {{ appointment.confirmed_at|date:"M d, Y H:i" }} {% if appointment.confirmed_by %}
by {{ appointment.confirmed_by.get_full_name }} {% endif %}
{% endif %} {% if appointment.checked_in_at %}
Checked In: {{ appointment.checked_in_at|date:"M d, Y H:i" }} {% if appointment.checked_in_by %}
by {{ appointment.checked_in_by.get_full_name }} {% endif %}
{% endif %} {% if appointment.started_at %}
Started: {{ appointment.started_at|date:"M d, Y H:i" }}
{% endif %} {% if appointment.completed_at %}
Completed: {{ appointment.completed_at|date:"M d, Y H:i" }} {% if appointment.completed_by %}
by {{ appointment.completed_by.get_full_name }} {% endif %}
{% endif %} {% if appointment.cancelled_at %}
Cancelled: {{ appointment.cancelled_at|date:"M d, Y H:i" }} {% if appointment.cancelled_by %}
by {{ appointment.cancelled_by.get_full_name }} {% endif %} {% if appointment.cancellation_reason %}
Reason: {{ appointment.cancellation_reason }} {% endif %}
{% endif %}
{% endblock %}