Sha256: 46452df459334538a0d789de03fed6bcfee93c02e3da43755908f7a0fc314341

Contents?: true

Size: 1.84 KB

Versions: 32

Compression:

Stored size: 1.84 KB

Contents

<entry>
  <act classCode="ACT" moodCode="EVN" <%== negation_indicator(entry) %>>
    <!-- Transfer To Act -->
    <templateId root="2.16.840.1.113883.10.20.24.3.142"/>
    <id root="<%= UUID.generate %>" />
    <code code="ENC" codeSystem="2.16.840.1.113883.5.6" displayName="Encounter" codeSystemName="ActClass"/>
    <entryRelationship typeCode="SUBJ">
      <encounter classCode="ENC" moodCode="EVN">
        <templateId root="2.16.840.1.113883.10.20.24.3.82" extension="2016-02-01"/>
        <id root="1.3.6.1.4.1.115" extension="<%= "#{entry.transferTo.id}#{entry.id}".hash.abs.to_s(16) %>"/>
        <code code="77306-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Discharge disposition"/>
        <statusCode code="completed"/>
        <participant typeCode="DST">
          <time>
            <low <%= value_or_null_flavor(entry.transferTo.time) %>/>
            <high <%= value_or_null_flavor(entry.transferTo.time) %>/>
          </time>
          <participantRole classCode="LOCE">
          <% 
            entry.transferTo.codes[entry.transferTo.code_system] = [entry.transferTo.code]
            transfer_vs_map = [{"set"=>entry.transferTo.code_system, "values"=>[entry.transferTo.code]}]
            transfer_oid = (data_criteria.field_values || {})['TRANSFER_TO'].try(:code_list_id)
            options = {'value_set_map' => transfer_vs_map, 'preferred_code_sets' => ['SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM', 'CPT']}
            options['extra_content'] = "sdtc:valueSet=\"#{transfer_oid}\"" if transfer_oid
            %>
            <%== code_display(entry.transferTo, options) %>
          </participantRole> 
        </participant>
      </encounter>
    </entryRelationship>
    <%== render(:partial => 'reason', :locals => {:entry => entry, :reason_oids=>field_oids["REASON"], :r2_compatibility => r2_compatibility}) %>
  </act>
</entry>

Version data entries

32 entries across 16 versions & 1 rubygems

Version Path
health-data-standards-4.0.4 templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
health-data-standards-4.0.4 templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
health-data-standards-4.0.3 templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
health-data-standards-4.0.3 templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
health-data-standards-4.0.2 templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
health-data-standards-4.0.2 templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
health-data-standards-4.0.1 templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
health-data-standards-4.0.1 templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
health-data-standards-4.0.0 templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
health-data-standards-4.0.0 templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
health-data-standards-3.7.0 templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
health-data-standards-3.7.0 templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.82.cat1.erb