Sha256: 6930d908d04ec84ee6dce8cd3ba498b0ba101500ee698e618aeb09ae5009c929

Contents?: true

Size: 1005 Bytes

Versions: 10

Compression:

Stored size: 1005 Bytes

Contents

module HealthDataStandards
  module Import
    module CCDA
      class AllergyImporter < C32::AllergyImporter
        
        
        def initialize
          @entry_xpath = "//cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.7']"
          @code_xpath = "./cda:participant/cda:participantRole/cda:playingEntity/cda:code"
          @description_xpath = "./cda:code/cda:originalText/cda:reference[@value] | ./cda:text/cda:reference[@value]"
          @type_xpath = "./cda:code"
          @reaction_xpath = "./cda:entryRelationship[@typeCode='MFST']/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.9']/cda:value"
          @severity_xpath = "./cda:entryRelationship[@typeCode='SUBJ']/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.8']/cda:value"
          @status_xpath   = "./cda:entryRelationship[@typeCode='SUBJ']/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.28']/cda:value"
        end
        
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
health-data-standards-2.2.1 lib/health-data-standards/import/ccda/allergy_importer.rb
health-data-standards-2.2.0 lib/health-data-standards/import/ccda/allergy_importer.rb
health-data-standards-2.1.4 lib/health-data-standards/import/ccda/allergy_importer.rb
health-data-standards-2.1.3 lib/health-data-standards/import/ccda/allergy_importer.rb
health-data-standards-2.1.2 lib/health-data-standards/import/ccda/allergy_importer.rb
health-data-standards-2.1.1 lib/health-data-standards/import/ccda/allergy_importer.rb
health-data-standards-2.1.0 lib/health-data-standards/import/ccda/allergy_importer.rb
health-data-standards-2.0.0 lib/health-data-standards/import/ccda/allergy_importer.rb
health-data-standards-1.0.1 lib/health-data-standards/import/ccda/allergy_importer.rb
health-data-standards-1.0.0 lib/health-data-standards/import/ccda/allergy_importer.rb