{% extends 'layouts/base.html' %} {% load i18n %} {% block title %}{% trans "Inquiry Detail" %}{% endblock %} {% block content %}

{% trans "Inquiry Detail" %}

{{ inquiry.subject }}

{% trans "Back to List" %}
{% trans "Inquiry Information" %}
{% trans "Subject" %}:
{{ inquiry.subject }}
{% trans "Status" %}:
{% if inquiry.status == 'open' %} {% trans "Open" %} {% elif inquiry.status == 'in_progress' %} {% trans "In Progress" %} {% elif inquiry.status == 'resolved' %} {% trans "Resolved" %} {% else %} {{ inquiry.get_status_display }} {% endif %}
{% trans "Category" %}:
{{ inquiry.get_category_display }}
{% trans "Created" %}:
{{ inquiry.created_at|date:"Y-m-d H:i" }}
{% trans "Message" %}:

{{ inquiry.message|linebreaks }}

{% if inquiry.response %}
{% trans "Response" %}:

{{ inquiry.response|linebreaks }}

{% trans "Responded by" %} {{ inquiry.responded_by.get_full_name }} {% trans "on" %} {{ inquiry.responded_at|date:"Y-m-d H:i" }}
{% endif %}
{% if can_edit and inquiry.status != 'resolved' and inquiry.status != 'closed' %}
{% trans "Respond to Inquiry" %}
{% csrf_token %}
{% endif %}
{% trans "Contact Information" %}
{% if inquiry.patient %}

{% trans "Patient" %}:
{{ inquiry.patient.get_full_name }}
MRN: {{ inquiry.patient.mrn }}

{% if inquiry.patient.phone %}

{% trans "Phone" %}:
{{ inquiry.patient.phone }}

{% endif %} {% if inquiry.patient.email %}

{% trans "Email" %}:
{{ inquiry.patient.email }}

{% endif %} {% else %} {% if inquiry.contact_name %}

{% trans "Name" %}:
{{ inquiry.contact_name }}

{% endif %} {% if inquiry.contact_phone %}

{% trans "Phone" %}:
{{ inquiry.contact_phone }}

{% endif %} {% if inquiry.contact_email %}

{% trans "Email" %}:
{{ inquiry.contact_email }}

{% endif %} {% endif %}
{% trans "Organization" %}

{% trans "Hospital" %}:
{{ inquiry.hospital.name }}

{% if inquiry.department %}

{% trans "Department" %}:
{{ inquiry.department.name }}

{% endif %} {% if inquiry.assigned_to %}

{% trans "Assigned To" %}:
{{ inquiry.assigned_to.get_full_name }}

{% endif %}
{% endblock %}