Class: HealthDataStandards::Import::CDA::ProcedureImporter
- Inherits:
-
SectionImporter
- Object
- SectionImporter
- HealthDataStandards::Import::CDA::ProcedureImporter
- Defined in:
- lib/health-data-standards/import/cda/procedure_importer.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from SectionImporter
#check_for_usable, #code_xpath, #status_xpath
Instance Method Summary collapse
- #create_entry(entry_element, nrh = NarrativeReferenceHandler.new) ⇒ Object
-
#initialize(entry_finder = EntryFinder.new("//cda:section[cda:templateId/@root!='2.16.840.1.113883.3.88.11.83.124']//cda:procedure")) ⇒ ProcedureImporter
constructor
scoped to not look in the plan of care section so planned procedures do not end up mixed with past procedures.
Methods inherited from SectionImporter
Methods included from LocatableImportUtils
#import_address, #import_telecom
Constructor Details
#initialize(entry_finder = EntryFinder.new("//cda:section[cda:templateId/@root!='2.16.840.1.113883.3.88.11.83.124']//cda:procedure")) ⇒ ProcedureImporter
scoped to not look in the plan of care section so planned procedures do not end up mixed with past procedures
8 9 10 11 12 |
# File 'lib/health-data-standards/import/cda/procedure_importer.rb', line 8 def initialize(entry_finder=EntryFinder.new("//cda:section[cda:templateId/@root!='2.16.840.1.113883.3.88.11.83.124']//cda:procedure")) super(entry_finder) @entry_class = Procedure @value_xpath = nil end |
Instance Method Details
#create_entry(entry_element, nrh = NarrativeReferenceHandler.new) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/health-data-standards/import/cda/procedure_importer.rb', line 14 def create_entry(entry_element, nrh = NarrativeReferenceHandler.new) procedure = super extract_performer(entry_element, procedure) extract_site(entry_element, procedure) extract_negation(entry_element, procedure) procedure end |