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

Encounter Details

{{ encounter.patient.get_full_name }} • {{ encounter.start_datetime|date:"M d, Y H:i" }}

{% if encounter.status == 'IN_PROGRESS' %} {% endif %}
Encounter Information
{% if encounter.end_datetime %} {% endif %}
Start Time{{ encounter.start_datetime|date:"M d, Y H:i" }}
End Time{{ encounter.end_datetime|date:"M d, Y H:i" }}
Duration{{ encounter.duration_minutes }} minutes
Type{{ encounter.get_encounter_type_display }}
Status {% if encounter.status == 'SCHEDULED' %} {{ encounter.get_status_display }} {% elif encounter.status == 'ARRIVED' %} {{ encounter.get_status_display }} {% elif encounter.status == 'TRIAGED' %} {{ encounter.get_status_display }} {% elif encounter.status == 'IN_PROGRESS' %} {{ encounter.get_status_display }} {% elif encounter.status == 'ON_HOLD' %} {{ encounter.get_status_display }} {% elif encounter.status == 'FINISHED' %} {{ encounter.get_status_display }} {% elif encounter.status == 'CANCELLED' %} {{ encounter.get_status_display }} {% elif encounter.status == 'NO_SHOW' %} {{ encounter.get_status_display }} {% endif %}
Priority{{ encounter.get_priority_display }}
Documentation Complete {% if encounter.documentation_complete %} Yes {% else %} No {% endif %}
{% if encounter.chief_complaint %}
Chief Complaint

{{ encounter.chief_complaint }}

{% endif %} {% if encounter.history_of_present_illness %}
History of Present Illness

{{ encounter.history_of_present_illness|linebreaks }}

{% endif %} {% if encounter.assessment_and_plan %}
Assessment & Plan

{{ encounter.assessment_and_plan|linebreaks }}

{% endif %}
Patient Information
Name{{ encounter.patient.get_full_name }}
MRN{{ encounter.patient.mrn }}
Date of Birth{{ encounter.patient.date_of_birth|date:"M d, Y" }}
Age{{ encounter.patient.age }}
Gender{{ encounter.patient.get_gender_display }}
Phone{{ encounter.patient.phone_number|default:"Not provided" }}
Email{{ encounter.patient.email|default:"Not provided" }}
{% if encounter.provider %}
Provider Information
Name{{ encounter.provider.get_full_name }}
Role{{ encounter.provider.get_role_display }}
Department{{ encounter.provider.department|default:"Not specified" }}
Phone{{ encounter.provider.phone_number|default:"Not provided" }}
Email{{ encounter.provider.email|default:"Not provided" }}
{% endif %}
Quick Actions
{% if vital_signs %}
Vital Signs
{% for vitals in vital_signs %} {% endfor %}
Time Temperature Blood Pressure Heart Rate Respiratory Rate O2 Saturation Measured By
{{ vitals.measured_datetime|date:"M d H:i" }} {% if vitals.temperature %} {{ vitals.temperature }}°{{ vitals.temperature_unit }} {% else %} - {% endif %} {% if vitals.systolic_bp and vitals.diastolic_bp %} {{ vitals.systolic_bp }}/{{ vitals.diastolic_bp }} {% else %} - {% endif %} {% if vitals.heart_rate %} {{ vitals.heart_rate }} bpm {% else %} - {% endif %} {% if vitals.respiratory_rate %} {{ vitals.respiratory_rate }} /min {% else %} - {% endif %} {% if vitals.oxygen_saturation %} {{ vitals.oxygen_saturation }}% {% else %} - {% endif %} {{ vitals.measured_by.get_full_name }}
{% endif %} {% if clinical_notes %}
Clinical Notes
{% for note in clinical_notes %}
{{ note.title }}
{{ note.get_note_type_display }} • {{ note.note_datetime|date:"M d, Y H:i" }} • {{ note.author.get_full_name }}
{{ note.get_status_display }}

{{ note.content|truncatewords:50|linebreaks }}

{% endfor %}
{% endif %} {% if problems %}
Problems Identified
{% for problem in problems %} {% endfor %}
Problem Type Priority Status Diagnosed By Date
{{ problem.problem_name }} {% if problem.problem_code %}
{{ problem.problem_code }} {% endif %}
{{ problem.get_problem_type_display }} {% if problem.priority == 'HIGH' %} High {% elif problem.priority == 'MEDIUM' %} Medium {% else %} Low {% endif %} {% if problem.status == 'ACTIVE' %} Active {% elif problem.status == 'RESOLVED' %} Resolved {% elif problem.status == 'INACTIVE' %} Inactive {% endif %} {{ problem.diagnosing_provider.get_full_name }} {{ problem.onset_date|date:"M d, Y" }}
{% endif %}
{% endblock %}