Sha256: 96a8d448b135e63fbaa0c01efae05e602bb31d8984edb98d6709ed18b1530475

Contents?: true

Size: 1.86 KB

Versions: 16

Compression:

Stored size: 1.86 KB

Contents

          <excerpt typeCode="XCRPT">

          <!-- Subset operator for: <%= subset.type %> -->
          <% if HQMF2::SubsetOperator::ORDER_SUBSETS.include? subset.type  %>
            <sequenceNumber value="<%= (HQMF2::SubsetOperator::ORDER_SUBSETS.index subset.type) + 1%>"/>
          <% elsif HQMF2::SubsetOperator::LAST_SUBSETS.include? subset.type %>
            <qdm:subsetCode code="QDM_LAST"/>
          <% elsif subset.type == 'COUNT' %>
            <subsetCode code="SUM"/>
            <qdm:subsetCode code="QDM_SUM"/>
          <% else %>
            <% if HQMF2::SubsetOperator::TIME_SUBSETS.include? subset.type %>
              <!-- NOTE: DATEDIFF and TIMEDIFF are not valid in population criteria... measure requires rewrite -->
            <%end%>
            <subsetCode code="<%= subset.type %>"/>
          <% end %>
            <<%= element_name_prefix(criteria) %>Criteria moodCode="EVN" classCode="<%= reference_type_name(criteria.id) %>">
            <id root="2.16.840.1.113883.3.100.1" extension="<%= criteria.id %>"/>
            <%- if subset && subset.value -%>
              <%- if subset.type == 'COUNT' -%>
                <repeatNumber <%= "lowClosed=\"true\"" if subset.value.low && subset.value.low.inclusive? %> 
                              <%= "highClosed=\"true\"" if subset.value.high && subset.value.high.inclusive? %>>
                   <%- if subset.value.low -%>
                     <low value="<%= subset.value.low.value %>"/>
                   <%- end -%>
                   <%- if subset.value.high -%>
                     <high value="<%= subset.value.high.value %>"/>
                   <%- end -%>
                </repeatNumber>
              <%- else -%>
                <%= xml_for_value(subset.value, 'value') %>
              <%- end -%>
            <%- end -%>
            </<%= element_name_prefix(criteria) %>Criteria>

          </excerpt>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
health-data-standards-4.3.5 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.3.4 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.3.3 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.3.2 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.3.1 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.3.0 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.2.0 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.1.0 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.0.6 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.0.5 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.0.4 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.0.3 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.0.2 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.0.1 lib/hqmf-generator/subset.xml.erb
health-data-standards-4.0.0 lib/hqmf-generator/subset.xml.erb
health-data-standards-3.7.0 lib/hqmf-generator/subset.xml.erb