Class: HealthDataStandards::Import::CCDA::AllergyImporter
- Inherits:
-
HealthDataStandards::Import::CDA::AllergyImporter
- Object
- HealthDataStandards::Import::CDA::SectionImporter
- HealthDataStandards::Import::CDA::AllergyImporter
- HealthDataStandards::Import::CCDA::AllergyImporter
- Defined in:
- lib/health-data-standards/import/ccda/allergy_importer.rb
Instance Attribute Summary
Attributes inherited from HealthDataStandards::Import::CDA::SectionImporter
#check_for_usable, #code_xpath, #status_xpath
Instance Method Summary collapse
-
#initialize ⇒ AllergyImporter
constructor
A new instance of AllergyImporter.
Methods inherited from HealthDataStandards::Import::CDA::AllergyImporter
Methods inherited from HealthDataStandards::Import::CDA::SectionImporter
#create_entries, #create_entry
Methods included from HealthDataStandards::Import::CDA::LocatableImportUtils
#import_address, #import_telecom
Constructor Details
#initialize ⇒ AllergyImporter
Returns a new instance of AllergyImporter.
5 6 7 8 9 10 |
# File 'lib/health-data-standards/import/ccda/allergy_importer.rb', line 5 def initialize super(CDA::EntryFinder.new("//cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.7']")) @reaction_xpath = "./cda:entryRelationship[@typeCode='MFST']/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.9']/cda:value" @severity_xpath = "./cda:entryRelationship[@typeCode='SUBJ']/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.8']/cda:value" @status_xpath = "./cda:entryRelationship[@typeCode='SUBJ']/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.28']/cda:value" end |