{% extends 'base.html' %} {% load static %} {% block title %}QC Sample Details - {{ qc_sample.sample_id }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

QC Sample: {{ qc_sample.sample_id }}

Back to List {% if qc_sample.status == 'pending' or qc_sample.status == 'in_progress' %} Enter Result {% endif %}
Sample Information
Sample Details
Sample ID: {{ qc_sample.sample_id }}
Test Type: {{ qc_sample.test_type.name }}
QC Level: {{ qc_sample.get_qc_level_display }}
Status: {{ qc_sample.get_status_display }}
Timing Information
{% if qc_sample.completed_at %} {% endif %}
Created: {{ qc_sample.created_at|date:"M d, Y H:i" }}
Run Date: {{ qc_sample.run_date|date:"M d, Y" }}
Run Time: {{ qc_sample.run_time|time:"H:i" }}
Completed: {{ qc_sample.completed_at|date:"M d, Y H:i" }}
Lot Information
Lot Number: {{ qc_sample.lot_number }}
Expiry Date: {{ qc_sample.expiry_date|date:"M d, Y" }}
Expected Range: {{ qc_sample.expected_range|default:"Not specified" }}
Personnel
{% if qc_sample.reviewed_by %} {% endif %}
Created By: {{ qc_sample.created_by.get_full_name }}
Technician: {{ qc_sample.technician.get_full_name|default:"Not assigned" }}
Reviewed By: {{ qc_sample.reviewed_by.get_full_name }}
{% if qc_sample.comments %}
Comments

{{ qc_sample.comments }}

{% endif %}
{% if qc_sample.result_value %}
QC Results

{{ qc_sample.result_value }} {{ qc_sample.unit }}

Measured Value

{{ qc_sample.expected_range }}

Expected Range

{{ qc_sample.get_result_status_display }}
{% if qc_sample.result_comments %}
Result Comments:

{{ qc_sample.result_comments }}

{% endif %}
{% endif %}
Activity Timeline
{% for activity in qc_sample.activities.all %}
{{ activity.action }}

{{ activity.description }}

by {{ activity.user.get_full_name }} - {{ activity.created_at|date:"M d, Y H:i" }}
{{ activity.get_action_display }}
{% empty %}

No activity recorded yet.

{% endfor %}
Quick Actions
{% if qc_sample.status == 'pending' or qc_sample.status == 'in_progress' %} Enter Result {% endif %} {% if qc_sample.status == 'pending' %} {% endif %} {% if qc_sample.status == 'completed' and not qc_sample.reviewed_by %} {% endif %}
Related QC Samples
{% for related_sample in related_qc_samples %}
{{ related_sample.sample_id }} {{ related_sample.run_date|date:"M d, Y" }}
{{ related_sample.get_status_display }}
{% empty %}

No related QC samples found.

{% endfor %}
QC Statistics

{{ qc_stats.pass_rate }}%

Pass Rate

{{ qc_stats.total_runs }}

Total Runs

{{ qc_stats.out_of_range }}
Out of Range
{{ qc_stats.failed }}
Failed
{% endblock %} {% block extra_js %} {% endblock %}