{% extends edc_listboard_template %} {% load edc_dashboard_extras %} {% load edc_adverse_event_extras %} {% load tz %} {% load static %} {% load l10n %} {% load i18n %} {% block listboard_table_header %} # Subject TMG Death Reports Death Report {% endblock listboard_table_header %} {% block listboard_table_button_column %}{% endblock %} {% block listboard_table_columns %} {{ result.subject_identifier }} {% copy_string_to_clipboard_button result.subject_identifier %} {# First TMG review #} {% death_report_tmg_action_item result.subject_identifier as first_tmg_action_item %} {% if first_tmg_action_item %} {% render_tmg_panel action_item=first_tmg_action_item next_url_name="tmg_death_listboard_url" %} {% endif %} {# Second TMG review — shown whenever the first TMG review exists #} {% death_report_tmg_second_action_item result.subject_identifier as second_tmg_action_item %} {% if first_tmg_action_item and second_tmg_action_item %} {% render_tmg_panel action_item=second_tmg_action_item next_url_name="tmg_death_listboard_url" %} {% endif %} {% if perms.effect_ae.change_deathreport %} {% else %} {% endif %} {{ result.object.identifier }}
Died: {{ result.object.death_datetime|date:"SHORT_DATE_FORMAT" }}
Reported: {{ result.object.report_datetime|date:"SHORT_DATE_FORMAT" }}
{% if result.object.cause_of_death == OTHER %}{{ result.object.cause_of_death_other }}{% else %}{{ result.object.get_cause_of_death_display }}{% endif %}
{% endblock listboard_table_columns %}