Sha256: 4a1ed07475a28c94798722ca1b5117eb6407de1d6cbb8ea84e464427a028dd09

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

require_relative 'source_vocabulary_operator'

module ConceptQL
  module Operators
    class ObservationByEnttype < SourceVocabularyOperator
      desc 'Searches the observation table for all observations with matching Enttype'
      argument :enttypes, type: :codelist, vocab_id: [206, 207]
      predominant_types :observation

      def table
        :observation
      end

      def vocabulary_id
        [206, 207]
      end

      def source_column
        :observation_source_value
      end

      def concept_column
        :observation_concept_id
      end
    end
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
conceptql-0.2.0 lib/conceptql/operators/observation_by_enttype.rb