Class: HealthDataStandards::Import::Cat1::DiagnosisActiveImporter
- Inherits:
-
HealthDataStandards::Import::CDA::ConditionImporter
- Object
- HealthDataStandards::Import::CDA::SectionImporter
- HealthDataStandards::Import::CDA::ConditionImporter
- HealthDataStandards::Import::Cat1::DiagnosisActiveImporter
- Defined in:
- lib/health-data-standards/import/cat1/diagnosis_active_importer.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from HealthDataStandards::Import::CDA::SectionImporter
#check_for_usable, #code_xpath, #status_xpath
Instance Method Summary collapse
- #create_entry(entry_element, nrh = NarrativeReferenceHandler.new) ⇒ Object
-
#initialize(entry_finder = CDA::EntryFinder.new("//cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.24.3.11']")) ⇒ DiagnosisActiveImporter
constructor
A new instance of DiagnosisActiveImporter.
Methods inherited from HealthDataStandards::Import::CDA::SectionImporter
Methods included from HealthDataStandards::Import::CDA::LocatableImportUtils
#import_address, #import_telecom
Constructor Details
#initialize(entry_finder = CDA::EntryFinder.new("//cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.24.3.11']")) ⇒ DiagnosisActiveImporter
Returns a new instance of DiagnosisActiveImporter.
6 7 8 9 10 11 12 |
# File 'lib/health-data-standards/import/cat1/diagnosis_active_importer.rb', line 6 def initialize(entry_finder=CDA::EntryFinder.new("//cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.24.3.11']")) super(entry_finder) @status_xpath = nil # We'll hardcode this to active in create entry because this is from the # diagnosis active template @severity_xpath = "./cda:entryRelationship/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.8']/cda:value" @laterality_xpath = "./cda:value/cda:qualifier[cda:name/@code='182353008']/cda:value" end |
Instance Method Details
#create_entry(entry_element, nrh = NarrativeReferenceHandler.new) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/health-data-standards/import/cat1/diagnosis_active_importer.rb', line 14 def create_entry(entry_element, nrh = NarrativeReferenceHandler.new) condition = super(entry_element,nrh) extract_severity(entry_element,condition) extract_laterality(entry_element,condition) condition end |