templates/cat1/_medication_details.cat1.erb in health-data-standards-3.1.1 vs templates/cat1/_medication_details.cat1.erb in health-data-standards-3.2.0
- old
+ new
@@ -1,9 +1,9 @@
-<% if entry.route.present?
+<% if entry.respond_to?(:route) && entry.route.present?
# hard coded to NCI Thesaurus for the code system since Cat I mandates that
-%>
-<routeCode code="<%= entry.route['code'] %>" codeSystem="2.16.840.1.113883.3.26.1.1"/>
+<routeCode code="<%= entry.route['code'] %>" codeSystem="<%= entry.route['codeSystem'] %>"/>
<% end -%>
-<% if entry.dose.present? -%>
+<% if entry.respond_to?(:dose) && entry.dose.present? -%>
<doseQuantity value="<%= entry.dose['value']%>"/>
<% end -%>
\ No newline at end of file