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

Pharmacy Dashboard

{{ pending_prescriptions|default:0 }}

Pending Prescriptions

Requires verification

{{ pending_dispensing|default:0 }}

Ready to Dispense

Verified prescriptions

{{ low_stock_items|default:0 }}

Low Stock Items

Needs restocking

{{ expired_medications|default:0 }}

Expired Items

Requires disposal
Recent Prescriptions
{% if prescriptions %}
{% for prescription in prescriptions %} {% endfor %}
Patient Medication Provider Status Priority Actions
{{ prescription.patient.first_name.0 }}{{ prescription.patient.last_name.0 }}
{{ prescription.patient.get_full_name }}
MRN: {{ prescription.patient.mrn }}
{{ prescription.medication.generic_name }}
{% if prescription.medication.brand_name %} {{ prescription.medication.brand_name }} {% endif %}
{{ prescription.dosage_instructions|truncatechars:30 }}
{{ prescription.prescriber.get_full_name }}
{{ prescription.date_prescribed|date:"M d, Y" }}
{% if prescription.status == 'PENDING' %} Pending {% elif prescription.status == 'VERIFIED' %} Verified {% elif prescription.status == 'IN_PROGRESS' %} In Progress {% elif prescription.status == 'DISPENSED' %} Dispensed {% elif prescription.status == 'CANCELLED' %} Cancelled {% else %} {{ prescription.get_status_display }} {% endif %} {% if prescription.priority == 'STAT' %} STAT {% elif prescription.priority == 'URGENT' %} Urgent {% elif prescription.priority == 'ROUTINE' %} Routine {% else %} {{ prescription.get_priority_display }} {% endif %}
{% if prescription.status == 'PENDING' %} {% elif prescription.status == 'VERIFIED' %} {% endif %}
{% else %}
No Recent Prescriptions

No prescriptions requiring attention at this time.

Create New Prescription
{% endif %}
Inventory Alerts
Loading...
Today's Activity

{{ todays_dispensed|default:0 }}

Dispensed

{{ drug_interactions|default:0 }}

Interactions

{{ pending_orders|default:0 }}

Orders

{{ total_medications|default:0 }}

Medications
{% endblock %}