Class: HealthDataStandards::Import::CCDA::PatientImporter

Inherits:
HealthDataStandards::Import::C32::PatientImporter show all
Defined in:
lib/health-data-standards/import/ccda/patient_importer.rb

Instance Method Summary collapse

Methods inherited from HealthDataStandards::Import::C32::PatientImporter

#check_for_cause_of_death, #check_usable, #create_c32_hash, #get_demographics, #parse_c32

Methods included from HealthDataStandards::Import::CDA::LocatableImportUtils

#import_address, #import_telecom

Constructor Details

#initialize(check_usable = true) ⇒ PatientImporter

Returns a new instance of PatientImporter.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/health-data-standards/import/ccda/patient_importer.rb', line 6

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] = CDA::SectionImporter.new(CDA::EntryFinder.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

Instance Method Details

#parse_ccda(doc) ⇒ Object



22
23
24
# File 'lib/health-data-standards/import/ccda/patient_importer.rb', line 22

def parse_ccda(doc)
  parse_c32(doc)
end