<% if HQMF2::SubsetOperator::ORDER_SUBSETS.include? subset.type %>
<% elsif HQMF2::SubsetOperator::LAST_SUBSETS.include? subset.type %>
<% elsif subset.type == 'COUNT' %>
<% else %>
<% if HQMF2::SubsetOperator::TIME_SUBSETS.include? subset.type %>
<%end%>
<% end %>
<<%= element_name_prefix(criteria) %>Criteria moodCode="EVN" classCode="<%= reference_type_name(criteria.id) %>">
<%- if subset && subset.value -%>
<%- if subset.type == 'COUNT' -%>
<%= "highClosed=\"true\"" if subset.value.high && subset.value.high.inclusive? %>>
<%- if subset.value.low -%>
<%- end -%>
<%- if subset.value.high -%>
<%- end -%>
<%- else -%>
<%= xml_for_value(subset.value, 'value') %>
<%- end -%>
<%- end -%>
<%= element_name_prefix(criteria) %>Criteria>