Sha256: 74a6b4d52ef3899e31a507f86cdc4cc6e78b80fd3150b589d6abc799fe2d1ba0
Contents?: true
Size: 1.58 KB
Versions: 16
Compression:
Stored size: 1.58 KB
Contents
<% if entry.negation_reason.present? reason = entry.negation_reason elsif entry.reason.present? reason = entry.reason end if reason.present? vset = oid_for_code(reason,reason_oids, entry.record["bundle_id"]) if vset -%> <entryRelationship typeCode="RSON"> <observation classCode="OBS" moodCode="EVN"> <templateId root="2.16.840.1.113883.10.20.24.3.88" <% if !r2_compatibility %>extension="2014-12-01"<%end%>/> <id root="1.3.6.1.4.1.115" extension="<%= identifier_for([reason, entry.start_time]) %>" /> <% if !r2_compatibility %> <code code="77301-0" codeSystem="2.16.840.1.113883.6.1" displayName="reason" codeSystemName="LOINC"/> <% else %> <code code="410666004" codeSystem="2.16.840.1.113883.6.96" displayName="reason" codeSystemName="SNOMED CT"/> <% end %> <statusCode code="completed"/> <% if !r2_compatibility %> <effectiveTime> <low <%= value_or_null_flavor(entry.start_time) %>/> </effectiveTime> <% else %> <effectiveTime <%= value_or_null_flavor(entry.start_time) %>/> <% end %> <value xsi:type="CD" code="<%= reason['code'] %>" codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(reason['codeSystem'] || reason['code_system']) %>" <% if reason.respond_to?('title') || reason.has_key?('title') -%> displayName="<%=reason['title']%>" <% end -%> sdtc:valueSet="<%= vset %>" /> </observation> </entryRelationship> <% end -%> <% end -%>
Version data entries
16 entries across 16 versions & 1 rubygems