PRA 統計分析

首頁 歷史紀錄 {% if chart_no and patient %} 此病患歷史 {% endif %} 新增資料
{% for p in patients %}
{% if patient %}
Donor HLA
Serology
A DR
B DQ
Cw DP
DNA Typing
A* DRB1*
B* DQB1*
C* DQA1*
DPB1*
DPA1*

{{ patient.patient_name }} ({{ patient.chart_no }})

{% for r in reports %} {% endfor %}
順序 報告日期ClassPRA%OverallSpecificity
{{ r.chart_label }} {{ r.pra_class }} {{ r.pra_percent }}% {{ r.overall }} {{ r.specificity or '(-)' }}
{% for comp_label, comp_id, comp_dates, comp_antigens, comp_pra in [ ('PRA Class I', 'chart1', comparison_class1.dates if comparison_class1 else [], comparison_class1.antigens if comparison_class1 else [], comparison_class1.pra_by_date if comparison_class1 else {}), ('PRA Class II', 'chart2', comparison_class2.dates if comparison_class2 else [], comparison_class2.antigens if comparison_class2 else [], comparison_class2.pra_by_date if comparison_class2 else {}) ] %} {% if comp_dates and comp_dates | length >= 1 %}
{{ comp_label }} — MFI 趨勢圖
點圖例可顯示/隱藏抗體
{% if comp_dates | length >= 2 %}
MFI 比較表
▲ 上升 ▼ 下降 新增 ✖ 消失
{% for d in comp_dates %} {% endfor %} {% for d in comp_dates %}{% endfor %} {% for ag in comp_antigens %} {% for d in comp_dates %} {% set val = ag.mfi_by_date.get(d) %} {% if val %} {% else %}{% endif %} {% endfor %} {% endfor %}
AntigenAllele{{ d }}
PRA {{ comp_pra.get(d,'?') }}%
趨勢
MaxMean
{{ ag.antigen }}{{ ag.allele }}{{ val.max_mfi|int }} {{ val.mean_mfi|int }}-- {% set first_val = ag.mfi_by_date.get(comp_dates[0]) %} {% set last_val = ag.mfi_by_date.get(comp_dates[-1]) %} {% if first_val and last_val %} {% set diff = last_val.max_mfi - first_val.max_mfi %} {% if diff > 500 %}▲ +{{ diff|int }} {% elif diff < -500 %}▼ {{ diff|int }} {% else %}{% endif %} {% elif last_val and not first_val %}新增 {% elif first_val and not last_val %}✖ 消失 {% endif %}
{% endif %} {% endif %} {% endfor %} {% elif chart_no %}
找不到病歷號 {{ chart_no }}
{% else %}
請選擇病人查看統計分析
{% endif %}