Sha256: 35d1f70c6b0a9f4aa5bc8a336640a929425240909c8f5ed321d5eeecdf9174f1
Contents?: true
Size: 728 Bytes
Versions: 3
Compression:
Stored size: 728 Bytes
Contents
module QRDA module Cat1 class DiagnosticStudyOrderImporter < SectionImporter def initialize(entry_finder = QRDA::Cat1::EntryFinder.new("./cda:entry/cda:observation[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.17']")) super(entry_finder) @code_xpath = './cda:code' @author_datetime_xpath = "./cda:author/cda:time" @method_xpath = './cda:methodCode' @entry_class = QDM::DiagnosticStudyOrder end def create_entry(entry_element, nrh = NarrativeReferenceHandler.new) diagnostic_study_order = super diagnostic_study_order.method = code_if_present(entry_element.at_xpath(@method_xpath)) diagnostic_study_order end end end end
Version data entries
3 entries across 3 versions & 1 rubygems