anchor.diff:          <period value="<%= period['value']%>" unit="<%= period['unit']%>"/>
         </effectiveTime>
       <% end %>
  -    
  +
       <%== render(:partial => 'medication_details', :locals => {:entry => entry, :route_oids=>field_oids["ROUTE"]}) %>
   
       <% if entry.product_form.present? -%>
  
positive.code: 
      <consumable>
        <manufacturedProduct classCode="MANU">
          <!-- Medication Information (consolidation) template --> 
          <templateId root="2.16.840.1.113883.10.20.22.4.23" <% if !r2_compatibility %>extension="2014-06-09"<%end%>/>
          <id root="<%= UUID.generate %>"/>
          <manufacturedMaterial>
  
negative.code:     <templateId root="2.16.840.1.113883.10.20.22.4.16" <% if !r2_compatibility %>extension="2014-06-09"<%end%>/>
      <!-- Medication, Active template -->
      <templateId root="2.16.840.1.113883.10.20.24.3.41" <% if !r2_compatibility %>extension="2014-12-01"<%end%>/>
  
      <id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
      <text><%= entry.description %></text>
      <statusCode code="active"/>
      <effectiveTime xsi:type="IVL_TS">
          <low <%= value_or_null_flavor(entry.start_time) %>/>
          <high <%= value_or_null_flavor(entry.end_time) %>/>
  