{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}Journey {{ journey.encounter_id }} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% trans "Back to Journeys" %}

{{ journey.journey_template.name }}

{% trans "Encounter ID:" %} {{ journey.encounter_id }} | {% trans "Patient:" %} {{ journey.patient.get_full_name }} ({% trans "MRN" %}: {{ journey.patient.mrn }})

{% trans "Hospital:" %} {{ journey.hospital.get_localized_name }} {% if journey.department %} | {% trans "Department:" %} {{ journey.department.get_localized_name }} {% endif %}

{{ completion_percentage }}%

{% trans "Complete" %}
{% trans "Stage Progress" %}
{% for stage in stages %}
{% if stage.status == 'completed' %} {% elif stage.status == 'in_progress' %} {% elif stage.status == 'skipped' %} {% else %} {{ forloop.counter }} {% endif %}
{{ stage.stage_template.name }} {{ stage.get_status_display }}
{% if stage.stage_template.description %}

{{ stage.stage_template.description }}

{% endif %}
{% if stage.completed_at %}
{{ stage.completed_at|date:"M d, Y H:i" }}
{% endif %} {% if stage.staff %}
{{ stage.staff.first_name }} {{ stage.staff.last_name }}
{% endif %} {% if stage.department %}
{{ stage.department.get_localized_name }}
{% endif %} {% if stage.survey_instance %}
{% trans "Survey:" %} {{ stage.survey_instance.get_status_display }} {% if stage.survey_instance.total_score %} ({{ stage.survey_instance.total_score }}/5.0) {% endif %}
{% elif stage.stage_template.survey_template %}
{% trans "Survey:" %} {% trans "Pending" %}
{% endif %}
{% empty %}

{% trans "No stages defined" %}

{% endfor %}
{% trans "Journey Information" %}
{% trans "Journey Type" %}
{{ journey.journey_template.get_journey_type_display }}
{% trans "Template" %}
{{ journey.journey_template.name }}
{% trans "Status" %}
{{ journey.get_status_display }}
{% trans "Started" %}
{{ journey.started_at|date:"M d, Y H:i" }}
{% if journey.completed_at %}
{% trans "Completed" %}
{{ journey.completed_at|date:"M d, Y H:i" }}
{% endif %}
{% trans "Patient Information" %}
{% trans "Name:" %}
{{ journey.patient.get_full_name }}
{% trans "MRN:" %}
{{ journey.patient.mrn }}
{% if journey.patient.phone %}
{% trans "Phone:" %}
{{ journey.patient.phone }}
{% endif %} {% if journey.patient.email %}
{% trans "Email:" %}
{{ journey.patient.email }}
{% endif %}
{% endblock %}