<<%= population_element_prefix(criteria_id) %>Criteria classCode="OBS" moodCode="EVN" isCriterionInd="true"> <%- if population_criteria.preconditions.present? && population_criteria.preconditions.length > 0 -%> <%- population_criteria.preconditions.each do |precondition| -%> <%= xml_for_precondition(precondition) %> <%- end -%> <%- else -%> <%- end -%> Criteria>