Sha256: d9aba5866be4b2961a8cb0c5f7e4cfcd1f52741408090b6242a81ceed587c967

Contents?: true

Size: 2 KB

Versions: 7

Compression:

Stored size: 2 KB

Contents

<entry>
  <substanceAdministration classCode="SBADM" moodCode="EVN" <%== negation_indicator(entry) %>>
    <!-- Medication Activity (consolidation) template -->
    <templateId root="2.16.840.1.113883.10.20.22.4.16" extension="2014-06-09"/>
    <!-- Medication, Administered template -->
    <templateId root="2.16.840.1.113883.10.20.24.3.42" extension="2017-08-01"/>
    <id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
    <code code="416118004" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Administration"/>
    <statusCode code="completed"/>
    <effectiveTime xsi:type="IVL_TS">
      <low <%= value_or_null_flavor(entry.start_time) %>/>
      <high <%= value_or_null_flavor(entry.end_time) %>/>
    </effectiveTime>
    <% if entry.administrationTiming.present? && entry.administrationTiming.key?('scalar') %>
      <effectiveTime xsi:type="PIVL_TS" institutionSpecified="true" operator="A">
        <period value="<%= entry.administrationTiming['scalar']%>" <% if entry.administrationTiming['units'] && (entry.administrationTiming['units'] != "") -%>unit="<%= entry.administrationTiming['units']%>"<% end %>/>
      </effectiveTime>
    <% end %>
    <%== render(:partial => 'medication_details', :locals => {:entry => entry, :route_oids=>field_oids["ROUTE"]}) %>
    <consumable>
      <manufacturedProduct classCode="MANU">
        <!-- Medication Information (consolidation) template -->
        <templateId root="2.16.840.1.113883.10.20.22.4.23" extension="2014-06-09"/>
        <id root="<%= UUID.generate %>"/>
        <manufacturedMaterial>
          <%== code_display(entry, 'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['*']) %>
        </manufacturedMaterial>
      </manufacturedProduct>
    </consumable>
    <%== render(:partial => 'reason', :locals => {:entry => entry,:reason_oids=>field_oids["REASON"]}) %>
    <%== render(:partial => 'medication_dispense', :locals => {:entry => entry, :filtered_vs_map => filtered_vs_map}) %>
  </substanceAdministration>
</entry>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
health-data-standards-4.3.5 templates/cat1/r5/_2.16.840.1.113883.10.20.24.3.42.cat1.erb
health-data-standards-4.3.4 templates/cat1/r5/_2.16.840.1.113883.10.20.24.3.42.cat1.erb
health-data-standards-4.3.3 templates/cat1/r5/_2.16.840.1.113883.10.20.24.3.42.cat1.erb
health-data-standards-4.3.2 templates/cat1/r5/_2.16.840.1.113883.10.20.24.3.42.cat1.erb
health-data-standards-4.3.1 templates/cat1/r5/_2.16.840.1.113883.10.20.24.3.42.cat1.erb
health-data-standards-4.3.0 templates/cat1/r5/_2.16.840.1.113883.10.20.24.3.42.cat1.erb
health-data-standards-4.2.0 templates/cat1/r5/_2.16.840.1.113883.10.20.24.3.42.cat1.erb