{% from "cases/utils.html" import remove_form %} {% macro cohort_panel(case, institute, cohort_tags) %}
Cohort tag
{% endmacro %} {% macro diagnosis_phenotypes(case, institute, omim_terms) %}
OMIM Phenotypes
{{ diagnosis_form('phenotype', case, institute) }}
{% endmacro %} {% macro diagnosis_genes(case, institute, omim_terms) %}
OMIM Genes
{{ diagnosis_form('gene', case, institute) }}
{% endmacro %} {% macro diagnosis_form(type, case, institute) %}

{% endmacro %} {% macro phenotype_groups_panel(case, institute, hpo_groups) %}
Phenotype groups
{% endmacro%} {% macro phenotype_terms_panel(case, institute) %} {% set url = 'http://hpo.jax.org/app/browse/term/HP:0000018' %}
Phenotype terms (HPO web)
{% endmacro %} {% macro hpo_group_item(hpo_term, case, institute) %}
  • {{ hpo_term.feature }} {{ hpo_term.phenotype_id }}
    {{ remove_form(url_for('cases.phenotypes', institute_id=institute._id, case_name=case.display_name, phenotype_id=hpo_term.phenotype_id, is_group='yes')) }}
  • {% endmacro %} {% macro phenotypes_panel(case, institute, config) %}
    Added phenotypes
      {% for hpo_term in case.phenotype_terms %} {{ hpo_item(hpo_term) }} {% else %}
    • No phenotypes added yet
    • {% endfor %}
    Add gene to the dynamic panel
    {% endmacro %} {% macro hpo_item(hpo_term) %}
  • {{ hpo_term.feature }} {{ hpo_term.phenotype_id }}
  • {% endmacro %}