Sha256: 5851504fe6a6585b74cf8aeeae27327bebea9e5b19059f9d99f5389669c19b02

Contents?: true

Size: 1.22 KB

Versions: 48

Compression:

Stored size: 1.22 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" extension="2014-12-01"/>
    <id root="1.3.6.1.4.1.115" extension="<%= identifier_for([reason, entry.start_time]) %>" />
    <code code="77301-0"
          codeSystem="2.16.840.1.113883.6.1"
          displayName="reason"
          codeSystemName="LOINC"/>
    <statusCode code="completed"/>
      <effectiveTime>
        <low <%= value_or_null_flavor(entry.start_time) %>/>
      </effectiveTime>
    <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

48 entries across 16 versions & 1 rubygems

Version Path
health-data-standards-4.0.1 templates/cat1/r4/_reason.cat1.erb
health-data-standards-4.0.1 templates/cat1/r3_1/_reason.cat1.erb
health-data-standards-4.0.0 templates/cat1/r3_1/_reason.cat1.erb
health-data-standards-4.0.0 templates/cat1/r4/_reason.cat1.erb
health-data-standards-4.0.0 templates/cat1/r3/_reason.cat1.erb
health-data-standards-3.7.0 templates/cat1/r4/_reason.cat1.erb
health-data-standards-3.7.0 templates/cat1/r3_1/_reason.cat1.erb
health-data-standards-3.7.0 templates/cat1/r3/_reason.cat1.erb