Sha256: 6585b21948ce5aeca5862810dd36588d4fd9f2cbf449d7ff88008ac57efea0b5

Contents?: true

Size: 781 Bytes

Versions: 1

Compression:

Stored size: 781 Bytes

Contents

module QRDA
  module Cat1
    class MedicationAdministeredImporter < MedicationImporter
      def initialize(entry_finder = QRDA::Cat1::EntryFinder.new("./cda:entry/cda:substanceAdministration[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.42']"))
        super(entry_finder)
        @route_xpath = "./cda:routeCode"
        @reason_xpath = "./cda:entryRelationship[@typeCode='RSON']/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.24.3.88']/cda:value"
        @entry_class = QDM::MedicationAdministered
      end

      def create_entry(entry_element, nrh = NarrativeReferenceHandler.new)
        medication_administered = super
        medication_administered.reason = extract_reason(entry_element)
        medication_administered
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cqm-parsers-0.2.4 lib/qrda-import/data-element-importers/medication_administered_importer.rb