Sha256: b2725e597a9218ed28e809027b6fb68d174ce94e28246f7da04d772d80de479d

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

<entry>
  <observation classCode="OBS" moodCode="EVN" <%== negation_indicator(entry) %>>
    <!-- Consolidation Assessment Scale Observation templateId -->
    <templateId root="2.16.840.1.113883.10.20.22.4.69"/>
    <!-- Risk Category Assessment -->
    <templateId root="2.16.840.1.113883.10.20.24.3.69"/>
    <id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
    <%== code_display(entry, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
    <statusCode code="completed"/>

    <effectiveTime>
      <low <%= value_or_null_flavor(entry.start_time) %>/>
      <high <%= value_or_null_flavor(entry.end_time) %>/>
    </effectiveTime>

    <% ev = entry.values.first
       if ev.present? && ev.respond_to?(:scalar) 
        if is_num?(ev.scalar) -%>
    <value xsi:type="INT" value="<%= ev.scalar %>"/>
        <% else -%>
        <value xsi:type="ST"><%= ev.scalar%></value>
        <% end %>  
    <% else -%>
    <value  xsi:type="CD" nullFlavor="UNK"/>
    <% end -%>
    <%== render(:partial => 'reason', :locals => {:entry => entry}) %>
  </observation>
</entry>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
health-data-standards-3.1.1 templates/cat1/_2.16.840.1.113883.10.20.24.3.69.cat1.erb
health-data-standards-3.1.0 templates/cat1/_2.16.840.1.113883.10.20.24.3.69.cat1.erb