templates/cat1/_2.16.840.1.113883.10.20.24.3.23.cat1.erb in health-data-standards-3.5.2 vs templates/cat1/_2.16.840.1.113883.10.20.24.3.23.cat1.erb in health-data-standards-3.5.3
- old
+ new
@@ -73,22 +73,9 @@
</participantRole>
</participant>
<% end -%>
<% if entry.reason.present? -%>
- <entryRelationship typeCode="RSON">
- <observation classCode="OBS" moodCode="EVN">
- <templateId root="2.16.840.1.113883.10.20.24.3.88"/>
- <code code="410666004"
- codeSystem="2.16.840.1.113883.6.96"
- displayName="reason"
- codeSystemName="SNOMED CT"/>
- <statusCode code="completed"/>
- <effectiveTime <%= value_or_null_flavor(entry.start_time) %>/>
- <value xsi:type="CD"
- code="<%= entry.reason['code'] %>"
- codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.reason['codeSystem'] || entry.reason['code_system']) %>"/>
- </observation>
- </entryRelationship>
+ <%= render partial: "reason", locals: {entry: entry} %>
<% end -%>
</encounter>
</entry>
\ No newline at end of file