{% comment %} This is reused when displaying Data Elements, but we want to minimise the amount of information around the Value Domain So we've split this out into its own template. {% endcomment %} {% load aristotle_tags %}
{% if item.dataType %} {% endif %} {% if item.unitOfMeasure %} {% endif %} {% if item.format %} {% endif %} {% if item.maximumLength %} {% endif %}
Data Type {{ item.dataType }}
Unit Of Measure {{ item.unitOfMeasure }} {% if item.unitOfMeasure.symbol %}({{ item.unitOfMeasure.symbol }}){% endif %}
Format {{ item.format }}
Maximum character length {{ item.maximumLength }}
{% with permissible_values=item.permissiblevalue_set.all %} {% if permissible_values|length > 0 %}
Permissible Values
{% for perm in permissible_values %} {% endfor %}
Value Meaning
{{ perm.value }} {{ perm.meaning }}
{% endif %} {% endwith %} {% with supplementary_values=item.supplementaryvalue_set.all %} {% if supplementary_values|length > 0 %}
Supplementary Values
{% for perm in supplementary_values %} {% endfor %}
Value Meaning
{{ perm.value }} {{ perm.meaning }}
{% endif %} {% endwith %}