Sha256: e9f971ea1a6e14a792a79a2733e676931ce076e0a3236b753fa23f28ad0213b0

Contents?: true

Size: 1.25 KB

Versions: 10

Compression:

Stored size: 1.25 KB

Contents

module HealthDataStandards
  module Import
    module CCDA
      class PatientImporter < C32::PatientImporter
        
        def initialize(check_usable = true)
          @section_importers = {}
          @section_importers[:encounters] = EncounterImporter.new
          @section_importers[:procedures] = ProcedureImporter.new
          @section_importers[:results] = ResultImporter.new
          @section_importers[:vital_signs] = VitalSignImporter.new
          @section_importers[:medications] = MedicationImporter.new
          @section_importers[:conditions] = ConditionImporter.new
          @section_importers[:social_history] = C32::SectionImporter.new("//cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.38' or cda:templateId/@root='2.16.840.1.113883.10.20.15.3.8']")
          @section_importers[:care_goals] = CareGoalImporter.new
          @section_importers[:medical_equipment] = MedicalEquipmentImporter.new
          @section_importers[:allergies] = AllergyImporter.new
          @section_importers[:immunizations] = ImmunizationImporter.new
          @section_importers[:insurance_providers] = InsuranceProviderImporter.new
        end
        
        def parse_ccda(doc)
          parse_c32(doc)
        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/patient_importer.rb
health-data-standards-2.2.0 lib/health-data-standards/import/ccda/patient_importer.rb
health-data-standards-2.1.4 lib/health-data-standards/import/ccda/patient_importer.rb
health-data-standards-2.1.3 lib/health-data-standards/import/ccda/patient_importer.rb
health-data-standards-2.1.2 lib/health-data-standards/import/ccda/patient_importer.rb
health-data-standards-2.1.1 lib/health-data-standards/import/ccda/patient_importer.rb
health-data-standards-2.1.0 lib/health-data-standards/import/ccda/patient_importer.rb
health-data-standards-2.0.0 lib/health-data-standards/import/ccda/patient_importer.rb
health-data-standards-1.0.1 lib/health-data-standards/import/ccda/patient_importer.rb
health-data-standards-1.0.0 lib/health-data-standards/import/ccda/patient_importer.rb