{% if include.measure.supplementalData.exists() %}
{%include section-header.html header='Supplemental Data Elements' %}
{% endif %}
{% for sde in include.measure.supplementalData %}
{%include row-header.html header='Supplemental Data Element' %}
{% if sde.id.exists() %}
ID: {{sde.id}}
{% if sde.usage.exists() or sde.description.exists() %}
{% endif %}
{% endif %}
{% if sde.usage.exists() %}
{% for usage in sde.usage %}
{% if usage.coding.first().display.exists() %}
Usage Code: {{usage.coding.first().display}}
{% else %}
Usage Code: {{usage}}
{% endif %}
{% endfor %}
{% endif %}
{% if sde.description.exists() %}
Description: {{sde.description}}
{% else %}
Description: No description provided
{% endif %}
{% if sde.criteria.exists() %}
{% if sde.criteria.language.startsWith('text/cql') and sde.criteria.expression.exists() and include.measure.library.exists() %}
{% assign logicDefAnchor = '#' + include.measure.library.first().replaceMatches('.*/Library/', '').lower().replace(' ', '-') + '-' + sde.criteria.expression.lower().replace(' ', '-') %}
Logic Definition: {{sde.criteria.expression}}
{% endif %}
{% endif %}