{% extends "base.html" %} {% set active_nav = "trfs" %} {% block title %}TRF {{ order.order_number }} - LSMC Atlas{% endblock %} {% block content %}
Created {{ order.created_at | format_dt(user_preferences) }}
| Name | Roles | DOB | MRN | Sex | |
|---|---|---|---|---|---|
| {{ p.name }} | {{ p.roles|join(', ') }} | {{ p.date_of_birth or "—" }} | {{ p.mrn or "—" }} | {% if p.sex == 'F' %}Female{% elif p.sex == 'M' %}Male{% elif p.sex == 'O' or p.sex == 'Other' %}Other{% elif p.sex == 'U' or p.sex == 'Unknown' %}Unknown{% else %}{{ p.sex or "—" }}{% endif %} | View |
No patients linked yet
| Test | Status | Accession ID | Notes | Last Updated | {% if user is defined and user.is_internal %}Actions | {% endif %}
|---|---|---|---|---|---|
| {{ ar.fulfillment_route_code }} |
{{ ar.status }}
{% if ar.qc_hold_reason %}
QC: {{ ar.qc_hold_reason }} {% endif %} |
{{ ar.accession_id or "—" }} | {{ ar.note or "—" }} | {{ ar.updated_at or "—" }} | {% if user is defined and user.is_internal %}
{% if not ar.is_terminal and ar.next_transitions %}
{% for next_state in ar.next_transitions %}
{% if next_state == 'QC_HOLD' %}
{% elif next_state == 'RESULTED' and ar.status == 'QC_HOLD' %}
{% elif next_state == 'CANCELLED' %}
{% elif next_state == 'FAILED' %}
{% else %}
{% endif %}
{% endfor %}
{% elif ar.is_terminal %}
⬛ Terminal
{% endif %}
|
{% endif %}