{% extends 'layouts/base.html' %} {% load i18n %} {% load static %} {% block title %}{% trans "Patients" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{% trans "Patients" %}

{% trans "Manage patient records" %}

{% if request.user.is_px_admin or request.user.is_hospital_admin %} {% trans "Add Patient" %} {% endif %}
{% if request.user.is_px_admin %}
{% endif %}
{% for patient in patients %} {% empty %} {% endfor %}
{% trans "Patient" %} {% trans "MRN" %} {% trans "Contact" %} {% trans "Hospital" %} {% trans "Status" %} {% trans "Actions" %}

{{ patient.get_full_name }}

{% if patient.first_name_ar or patient.last_name_ar %}

{{ patient.first_name_ar }} {{ patient.last_name_ar }}

{% endif %}
{{ patient.mrn }} {% if patient.phone %}
{{ patient.phone }}
{% endif %} {% if patient.email %}
{{ patient.email }}
{% endif %}
{{ patient.primary_hospital.name|default:"-" }}
{{ patient.get_status_display }}
{% if request.user.is_px_admin or request.user.is_hospital_admin %} {% endif %}

{% trans "No patients found" %}

{% trans "Try adjusting your filters or add a new patient" %}

{% if request.user.is_px_admin or request.user.is_hospital_admin %} {% trans "Add First Patient" %} {% endif %}
{% if page_obj.has_other_pages %}
{% trans "Showing" %} {{ page_obj.start_index }}-{{ page_obj.end_index }} {% trans "of" %} {{ page_obj.paginator.count }} {% trans "entries" %}
{% for key, value in request.GET.items %} {% if key != 'page_size' and key != 'page' %} {% endif %} {% endfor %}
{% if page_obj.has_previous %} {% else %} {% endif %} {% for num in page_obj.paginator.page_range %} {% if num == page_obj.number %} {{ num }} {% elif num > page_obj.number|add:'-3' and num < page_obj.number|add:'3' %} {{ num }} {% elif num == 1 or num == page_obj.paginator.num_pages %} {{ num }} {% elif num == page_obj.number|add:'-3' or num == page_obj.number|add:'3' %} ... {% endif %} {% endfor %} {% if page_obj.has_next %} {% else %} {% endif %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}