Sha256: ca8f9492d608202e3bc177765439a4c882e459dacfae762731e81b1df5a8e43d

Contents?: true

Size: 1.91 KB

Versions: 13

Compression:

Stored size: 1.91 KB

Contents

<% vals = entry.values.empty? ? [nil] : entry.values 
   vals.each do |value| 
 %>   
<entry>
  <procedure classCode="PROC" moodCode="EVN">
    <!-- Consolidated Procedure Activity Procedure TemplateId 
         (Implied Template) -->
    <templateId root="2.16.840.1.113883.10.20.22.4.14"/>
    <!-- QRDA Procedure, Result TemplateId -->
    <templateId root="2.16.840.1.113883.10.20.24.3.66"/>
    <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', 'CPT'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
    <text><%= entry.description %></text>
    <statusCode code="completed"/>
    <effectiveTime>
      <low <%= value_or_null_flavor(entry.start_time) %>/>
      <high <%= value_or_null_flavor(entry.end_time) %>/>
    </effectiveTime>
    <% if entry.respond_to?(:ordinality_code) && entry.ordinality_code.present? -%>
    <!-- Attribute: ordinality -->
    <priorityCode code="<%= entry.ordinality_code['code'] %>" codeSystem="<%= entry.ordinality_code['code'] %>"/>
    <% end -%>
    <entryRelationship typeCode="REFR">
      <observation classCode="OBS" moodCode="EVN">
        <!-- Result Observation template (consolidation) -->
        <templateId root="2.16.840.1.113883.10.20.22.4.2"/>
        <!-- Result template -->
        <templateId root="2.16.840.1.113883.10.20.24.3.87"/>
        <id root="<%= UUID.generate %>"/>
        <%== code_display(entry, 'value_set_map' => value_set_map, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT', 'CPT'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
        <statusCode code="completed"/>
        <effectiveTime <%= value_or_null_flavor(entry.start_time) %>/>
        <%== render(:partial => 'result_value', :locals => {:values => [value], :result_oids=>result_oids} ) %>
      </observation>
    </entryRelationship>
  </procedure>
</entry>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
health-data-standards-3.6.1 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
health-data-standards-3.5.3 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
health-data-standards-3.5.2 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
health-data-standards-3.5.1 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
health-data-standards-3.5.0 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
health-data-standards-3.4.6 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
health-data-standards-3.4.5 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
health-data-standards-3.4.4 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
health-data-standards-3.4.3 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
health-data-standards-3.4.2 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
health-data-standards-3.4.1 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
health-data-standards-3.4.0 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
health-data-standards-3.2.12 templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb