projectcypress/health-data-standards

View on GitHub
lib/health-data-standards/import/cat1/diagnosis_importer.rb

Summary

Maintainability
A
0 mins
Test Coverage
module HealthDataStandards
  module Import
    module Cat1
      class DiagnosisImporter < DiagnosisActiveImporter

        def initialize
          super(CDA::EntryFinder.new("//cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.24.3.135']"))
          @status_xpath = nil # We'll hardcode this to active in create entry because this is from the 
                              # diagnosis active template
          @laterality_xpath = "./cda:targetSiteCode"
        end
      end
    end
  end
end