templates/cat1/_2.16.840.1.113883.10.20.24.3.105.cat1.erb in health-data-standards-3.2.3 vs templates/cat1/_2.16.840.1.113883.10.20.24.3.105.cat1.erb in health-data-standards-3.2.4
- old
+ new
@@ -26,11 +26,11 @@
<high <%= value_or_null_flavor(entry.end_time) %>/>
</effectiveTime>
<% if entry.route.present? -%>
<!-- Attribute: route -->
- <routeCode code="<%= entry.route['code'] %>" codeSystem="<%= entry.route['codeSystem'] %>"/>
+ <routeCode code="<%= entry.route['code'] %>" codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.route['code_system']) %>"/>
<% end -%>
<!-- Attribute: dose -->
<% if entry.dose.present? -%>
<doseQuantity value="<%= entry.dose['value']%>"/>
@@ -45,10 +45,10 @@
<manufacturedProduct classCode="MANU">
<!-- Medication Information (consolidation) template -->
<templateId root="2.16.840.1.113883.10.20.22.4.23"/>
<id root="<%= UUID.generate %>"/>
<manufacturedMaterial>
- <%== code_display(entry,'value_set_map' => value_set_map, :extra_content => "sdtc:valueSet=\"#{value_set_oid}\"") %>
+ <%== code_display(entry,'preferred_code_sets' => ['RxNorm'],'value_set_map' => value_set_map, :extra_content => "sdtc:valueSet=\"#{value_set_oid}\"") %>
</manufacturedMaterial>
<manufacturerOrganization>
<name>Medication Factory Inc.</name>
</manufacturerOrganization>
</manufacturedProduct>
\ No newline at end of file