Sha256: 4e9ac5083f4543de15ada1eed6888bb8723eb141f89a8f919dfd08d9a1809d3c

Contents?: true

Size: 986 Bytes

Versions: 10

Compression:

Stored size: 986 Bytes

Contents

module HealthDataStandards
  module Import
    module CCDA
      
      class MedicationImporter < C32::MedicationImporter

        def initialize
          @entry_xpath = "//cda:section[cda:templateId/@root='2.16.840.1.113883.10.20.22.2.1' or cda:templateId/@root='2.16.840.1.113883.10.20.22.2.1.1']/cda:entry/cda:substanceAdministration"
          @code_xpath = "./cda:consumable/cda:manufacturedProduct/cda:manufacturedMaterial/cda:code"
          @description_xpath = "./cda:consumable/cda:manufacturedProduct/cda:manufacturedMaterial/cda:code/cda:originalText/cda:reference[@value]"
          @indication_xpath = "./cda:entryRelationship[@typeCode='RSON']/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.19']/cda:code"
          @vehicle_xpath = "./cda:participant/cda:participantRole[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.24']/cda:playingEntity/cda:code"
          @fill_number_xpath = './cda:repeatNumber'
        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/medication_importer.rb
health-data-standards-2.2.0 lib/health-data-standards/import/ccda/medication_importer.rb
health-data-standards-2.1.4 lib/health-data-standards/import/ccda/medication_importer.rb
health-data-standards-2.1.3 lib/health-data-standards/import/ccda/medication_importer.rb
health-data-standards-2.1.2 lib/health-data-standards/import/ccda/medication_importer.rb
health-data-standards-2.1.1 lib/health-data-standards/import/ccda/medication_importer.rb
health-data-standards-2.1.0 lib/health-data-standards/import/ccda/medication_importer.rb
health-data-standards-2.0.0 lib/health-data-standards/import/ccda/medication_importer.rb
health-data-standards-1.0.1 lib/health-data-standards/import/ccda/medication_importer.rb
health-data-standards-1.0.0 lib/health-data-standards/import/ccda/medication_importer.rb