Sha256: 8232a965c8bbe5ead9c082d22b409dcd4a2028fa90d2bf4584e70ebff1014621

Contents?: true

Size: 1.39 KB

Versions: 3

Compression:

Stored size: 1.39 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, 'value_set_map' => value_set_map,'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? 
        if 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 %>
       <%== code_display(entry, 'tag_name'=>'value', 'value_set_map' => value_set_map,'preferred_code_sets' => ['LOINC', 'SNOMED-CT'],'extra_content' =>'xsi:type="CD"') %>
       <% end %>  
    <% else -%>
    <value  xsi:type="CD" nullFlavor="UNK"/>
    <% end -%>
    <%== render(:partial => 'reason', :locals => {:entry => entry, :reason_oids=>field_oids["REASON"]}) %>
  </observation>
</entry>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
health-data-standards-3.2.11 templates/cat1/_2.16.840.1.113883.10.20.24.3.69.cat1.erb
health-data-standards-3.2.10 templates/cat1/_2.16.840.1.113883.10.20.24.3.69.cat1.erb
health-data-standards-3.2.8 templates/cat1/_2.16.840.1.113883.10.20.24.3.69.cat1.erb