Sha256: 92d58382d8af312435012b88a49bcff877e4e094c6dcef74f3cdd196a955e60c

Contents?: true

Size: 1017 Bytes

Versions: 31

Compression:

Stored size: 1017 Bytes

Contents

<%- if value.class==HQMF::Range -%>
  <<%= name %> xsi:type="<%= value.type %>">
    <%= xml_for_value(value.low, 'low', false) if value.low -%>
    <%= xml_for_value(value.high, 'high', false) if value.high -%>
  </<%= name %>>
<%- elsif value.class==HQMF::Coded -%>
  <%- if value.code_list_id -%>
  <<%= name %> xsi:type="<%= value.type %>" valueSet="<%= value.code_list_id %>">
  <%- else -%>
  <<%= name %> xsi:type="<%= value.type %>" codeSystem="<%= value.system %>" code="<%= value.code %>">
  <%- end -%>
     <displayName value="<%= value.title %>"/>
  </<%= name %>>
<%- elsif value.class==HQMF::Value -%>
  <%- if value.derived? -%>
  <<%= name %> nullFlavor="DER">
    <expression value="<%= value.expression %>"/>
  </<%= name %>>
  <%- else -%>
  <<%= name %> <%= "xsi:type=\"#{value.type}\"" if include_type %> value="<%= value.value %>"<%= " unit=\"#{value.unit}\"" if value.unit %>/>
  <%- end -%>
<%- elsif value.class==HQMF::AnyValue -%>
  <<%= name %> xsi:type="ANY" nullFlavor="NI"/>
<%- end -%>

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
health-data-standards-3.4.6 lib/hqmf-generator/value.xml.erb
health-data-standards-3.4.5 lib/hqmf-generator/value.xml.erb
health-data-standards-3.4.4 lib/hqmf-generator/value.xml.erb
health-data-standards-3.4.3 lib/hqmf-generator/value.xml.erb
health-data-standards-3.4.2 lib/hqmf-generator/value.xml.erb
health-data-standards-3.4.1 lib/hqmf-generator/value.xml.erb
health-data-standards-3.4.0 lib/hqmf-generator/value.xml.erb
health-data-standards-3.2.12 lib/hqmf-generator/value.xml.erb
health-data-standards-3.3.0 lib/hqmf-generator/value.xml.erb
health-data-standards-3.2.11 lib/hqmf-generator/value.xml.erb
health-data-standards-3.2.10 lib/hqmf-generator/value.xml.erb
health-data-standards-3.2.8 lib/hqmf-generator/value.xml.erb
health-data-standards-3.2.7 lib/hqmf-generator/value.xml.erb
health-data-standards-3.2.6 lib/hqmf-generator/value.xml.erb
health-data-standards-3.2.5 lib/hqmf-generator/value.xml.erb
health-data-standards-3.2.4 lib/hqmf-generator/value.xml.erb
health-data-standards-3.2.3 lib/hqmf-generator/value.xml.erb
health-data-standards-3.2.2 lib/hqmf-generator/value.xml.erb
health-data-standards-3.2.1 lib/hqmf-generator/value.xml.erb
health-data-standards-3.2.0 lib/hqmf-generator/value.xml.erb