{% extends 'base.html' %} {% load static %} {% block title %}Blood Bank Dashboard{% endblock %} {% block css %} {% endblock %} {% block content %}

Blood Bank Dashboard overview of blood bank operations

ACTIVE DONORS

{{ total_donors }}

AVAILABLE UNITS

{{ total_units }}

PENDING REQUESTS

{{ pending_requests }}

EXPIRING SOON

{{ expiring_soon }}

Blood Group Distribution

{% for stat in blood_group_stats %} {% empty %} {% endfor %}
Blood Group Available Units Percentage Status
{{ stat.blood_group__abo_type }}{% if stat.blood_group__rh_factor == 'POS' %}+{% else %}-{% endif %} {{ stat.count }} {% widthratio stat.count total_units 100 %}% {% if stat.count >= 10 %} Adequate {% elif stat.count >= 5 %} Low {% else %} Critical {% endif %}
No blood units available

Quick Stats

Recent Donations (7 days)
{{ recent_donations }}
Active Transfusions
{{ active_transfusions }}
Expiring This Week
{{ expiring_soon }}

Recent Blood Units

{% for unit in recent_units %} {% empty %} {% endfor %}
Unit Number Donor Component Blood Group Status
{{ unit.unit_number }} {{ unit.donor.full_name }} {{ unit.component.get_name_display }} {{ unit.blood_group.display_name }} {% if unit.status == 'available' %} {{ unit.get_status_display }} {% elif unit.status == 'expired' %} {{ unit.get_status_display }} {% else %} {{ unit.get_status_display }} {% endif %}
No recent blood units

Urgent Blood Requests

{% for request in urgent_requests %} {% empty %} {% endfor %}
Request # Patient Component Units Urgency
{{ request.request_number }} {{ request.patient.full_name }} {{ request.component_requested.get_name_display }} {{ request.units_requested }} {{ request.get_urgency_display }}
No urgent requests
{% endblock %} {% block js %} {% endblock %}