{% extends 'base.html' %} {% load static %} {% block title %}Batch Processing - Laboratory{% endblock %} {% block content %}

{{ batch_stats.active_batches|default:0 }}

Active Batches

{{ batch_stats.pending_samples|default:0 }}

Pending Samples

{{ batch_stats.completed_today|default:0 }}

Completed Today

{{ batch_stats.efficiency_rate|default:0 }}%

Processing Efficiency
Batch Filters
Reset
Laboratory Batches
{% for batch in batches %} {% empty %} {% endfor %}
Batch ID Test Type Sample Count Priority Status Created By Created Date Progress Actions
{{ batch.batch_id }} {{ batch.test_type|title }} {{ batch.sample_count }} samples {% if batch.priority == 'urgent' %} Urgent {% elif batch.priority == 'high' %} High {% elif batch.priority == 'normal' %} Normal {% else %} Low {% endif %} {% if batch.status == 'pending' %} Pending {% elif batch.status == 'in_progress' %} In Progress {% elif batch.status == 'completed' %} Completed {% else %} Cancelled {% endif %} {{ batch.created_by.get_full_name|default:batch.created_by.username }} {{ batch.created_at|date:"M d, Y H:i" }}
{{ batch.progress_percentage }}%
{% if batch.status == 'pending' %} {% endif %} {% if batch.status == 'in_progress' %} {% endif %}
No batches found
Processing Queue
{% for queue_item in processing_queue %}
{{ queue_item.batch_id }}

{{ queue_item.test_type|title }}

{{ queue_item.sample_count }} samples
{{ queue_item.priority|title }}
ETA: {{ queue_item.estimated_completion }}
{% empty %}

No items in processing queue

{% endfor %}
{% endblock %}