lib/hqmf-generator/derivation.xml.erb in health-data-standards-3.4.6 vs lib/hqmf-generator/derivation.xml.erb in health-data-standards-3.5.0

- old
+ new

@@ -1,6 +1,6 @@ - <excerpt typeCode="XCRPT"> - <subsetCode code="<%= criteria.derivation_operator %>"/> - <%- criteria.children_criteria.each do |child_id| -%> - <%= xml_for_reference_id(child_id) %> - <%- end -%> - </excerpt> + <%- criteria.children_criteria.each do |child_id| -%> + <outboundRelationship typeCode="COMP"> + <conjunctionCode code="<%= criteria.derivation_operator == 'UNION' ? 'OR' : 'AND' %>"/> + <%= xml_for_reference_id(child_id) %> + </outboundRelationship> + <%- end -%> \ No newline at end of file