{% macro order(case) %} {% set customer_workflow = case.data_analysis.customer_workflow %}

Beställning

{{ sample_status(workflow=customer_workflow) }} {% for sample in case.samples %} {{ sample_status_value(workflow=customer_workflow, sample=sample) }} {% endfor %}
Fall Bioinformatisk analys Prov Beställt Ticket Applikation {% if customer_workflow != "taxprofiler" %} Kön {% endif %} Provtyp
{{ case.name }} {{ case.data_analysis.customer_workflow }}
{{ sample.name }} ({{ sample.id }}) {{ sample.timestamps.ordered_at }} {{ sample.ticket }} {{ sample.application.tag }} {% if customer_workflow != "taxprofiler" %} {{ sample.sex }} {% endif %} {{ sample.source }}
{% endmacro %} {% macro sample_status(workflow) %} {% if "balsamic" in workflow or workflow == "rnafusion" %} Tumör {% elif workflow in ("mip-dna", "nallo", "raredisease", "tomte") %} Status {% endif %} {% endmacro %} {% macro sample_status_value(workflow, sample) %} {% if "balsamic" in workflow or workflow == "rnafusion" %} {{ sample.tumour }} {% elif workflow in ("mip-dna", "nallo", "raredisease", "tomte") %} {{ sample.status }} {% endif %} {% endmacro %}