<%- if doc.measure_period.low != nil -%>
<%- end -%>
<%- if doc.measure_period.high != nil -%>
<%- end -%>
<%- if doc.measure_period.width != nil -%>
<%- end -%>
<%- doc.attributes.each do |attribute| -%>
<%= xml_for_attribute(attribute) %>
<%- end -%>
<%- doc.all_data_criteria.each do |data_criteria| -%>
<%= xml_for_data_criteria(data_criteria, false) %>
<%- end -%>
<%- doc.source_data_criteria.each do |data_criteria| -%>
<%= xml_for_data_criteria(data_criteria, true) %>
<%- end -%>
<%- doc.populations.each_with_index do |population, population_index| -%>
<%- if population['stratification'] -%>
<%- else -%>
<%- end -%>
"/>
<%- population.keys.each do |criteria_id| -%>
<%= xml_for_population_criteria(population, criteria_id) %>
<%- end -%>
<%- if doc.is_cv? -%>
<%= xml_for_measure_observation_definition(doc) %>
<%- end -%>
<%- end -%>