Sha256: a5aa861cc89085cd80d98a5f8547ef97d79a08729d378a08fea3de7ba86a145c

Contents?: true

Size: 897 Bytes

Versions: 6

Compression:

Stored size: 897 Bytes

Contents

module QRDA
  module Cat1
    class MedicationDischargeImporter < MedicationImporter
      def initialize(entry_finder = QRDA::Cat1::EntryFinder.new("./cda:entry/cda:act[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.105']"))
        super(entry_finder)
        @code_xpath = "./cda:entryRelationship/cda:substanceAdministration[cda:templateId/@root = '2.16.840.1.113883.10.20.22.4.16']/cda:consumable/cda:manufacturedProduct/cda:manufacturedMaterial/cda:code"
        @relevant_period_xpath = nil
        @author_datetime_xpath = "./cda:entryRelationship/cda:substanceAdministration[cda:templateId/@root = '2.16.840.1.113883.10.20.22.4.16']/cda:author/cda:time"
        @entry_class = QDM::MedicationDischarge
      end

      def create_entry(entry_element, nrh = NarrativeReferenceHandler.new)
        medication_discharge = super
        medication_discharge
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cqm-parsers-0.2.4 lib/qrda-import/data-element-importers/medication_discharge_importer.rb
cqm-parsers-0.2.3 lib/qrda-import/data-element-importers/medication_discharge_importer.rb
cqm-parsers-0.2.2 lib/qrda-import/data-element-importers/medication_discharge_importer.rb
cqm-parsers-0.2.1 lib/qrda-import/data-element-importers/medication_discharge_importer.rb
cqm-parsers-0.1.1 lib/qrda-import/data-element-importers/medication_discharge_importer.rb
cqm-parsers-0.1.0 lib/qrda-import/data-element-importers/medication_discharge_importer.rb