Sha256: 25a2503d13c4703a4e9f3f70ee92ea15092a6bcf7d4ddfb3cc5cd3c8dfe8b263

Contents?: true

Size: 1.08 KB

Versions: 8

Compression:

Stored size: 1.08 KB

Contents

<%  if entry.negation_reason.present?
      reason = entry.negation_reason
    elsif entry.reason.present?
      reason = entry.reason
    end
    
    if reason.present?
  -%>
<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 -%>
         />
  </observation>
</entryRelationship>
<% end -%>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
health-data-standards-4.3.5 templates/cat1/r5/_reason.cat1.erb
health-data-standards-4.3.4 templates/cat1/r5/_reason.cat1.erb
health-data-standards-4.3.3 templates/cat1/r5/_reason.cat1.erb
health-data-standards-4.3.2 templates/cat1/r5/_reason.cat1.erb
health-data-standards-4.3.1 templates/cat1/r5/_reason.cat1.erb
health-data-standards-4.3.0 templates/cat1/r5/_reason.cat1.erb
health-data-standards-4.2.0 templates/cat1/r5/_reason.cat1.erb
health-data-standards-4.1.0 templates/cat1/r5/_reason.cat1.erb