templates/cat1/r5/_2.16.840.1.113883.10.20.24.3.135.cat1.erb in health-data-standards-4.1.0 vs templates/cat1/r5/_2.16.840.1.113883.10.20.24.3.135.cat1.erb in health-data-standards-4.2.0
- old
+ new
@@ -46,24 +46,10 @@
codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.anatomical_location[:codeSystem] || entry.anatomical_location[:code_system]) %>"
<% if entry.anatomical_location.has_key?(:title) -%>
displayName="<%=entry.anatomical_location[:title]%>"
<% end -%>/>
<% end -%>
- <% if entry.severity -%>
- <entryRelationship typeCode="REFR">
- <observation classCode="OBS" moodCode="EVN">
- <templateId root="2.16.840.1.113883.10.20.22.4.8" extension="2014-06-09" />
- <code code="SEV" codeSystem="2.16.840.1.113883.5.4" />
- <statusCode code="completed" />
- <value xsi:type="CD"
- code="<%= entry.severity[:code] %>"
- codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.severity[:codeSystem] || entry.severity[:code_system]) %>"
- <% if entry.severity.has_key?(:title) -%>
- displayName="<%=entry.severity[:title]%>"
- <% end -%>/>
- </observation>
- </entryRelationship>
- <% end -%>
+ <%== render(:partial => 'severity', :locals => {:entry => entry, :severity_oids=>field_oids["SEVERITY"]}) %>
</observation>
</entryRelationship>
</act>
</entry>