Sha256: e04a6ec9ad6f3e227f0a6474fdd08a93fab1b2fa9c913517918cdd28fa7f1b89

Contents?: true

Size: 562 Bytes

Versions: 8

Compression:

Stored size: 562 Bytes

Contents

module HealthDataStandards
  module Import
    module Cat1
      class MedicationSubstanceAdministeredImporter < CDA::MedicationImporter

        def initialize
          super(CDA::EntryFinder.new("./cda:entry/cda:substanceAdministration[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.16']"))
        end

        def create_entry(entry_element, nrh = CDA::NarrativeReferenceHandler.new)
          medication = super
          medication.start_time = medication.time unless medication.start_time
          medication
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
health-data-standards-4.3.5 lib/health-data-standards/import/cat1/medication_substance_administered_importer.rb
health-data-standards-4.3.4 lib/health-data-standards/import/cat1/medication_substance_administered_importer.rb
health-data-standards-4.3.3 lib/health-data-standards/import/cat1/medication_substance_administered_importer.rb
health-data-standards-4.3.2 lib/health-data-standards/import/cat1/medication_substance_administered_importer.rb
health-data-standards-4.3.1 lib/health-data-standards/import/cat1/medication_substance_administered_importer.rb
health-data-standards-4.3.0 lib/health-data-standards/import/cat1/medication_substance_administered_importer.rb
health-data-standards-4.2.0 lib/health-data-standards/import/cat1/medication_substance_administered_importer.rb
health-data-standards-4.1.0 lib/health-data-standards/import/cat1/medication_substance_administered_importer.rb