lib/conceptql/operators/medcode.rb in conceptql-0.2.0 vs lib/conceptql/operators/medcode.rb in conceptql-0.3.0

- old
+ new

@@ -1,27 +1,16 @@ -require_relative 'source_vocabulary_operator' +require_relative 'condition_occurrence_source_vocabulary_operator' module ConceptQL module Operators - class Medcode < SourceVocabularyOperator - desc 'Searches the condition_occurrence table for all conditions with matching Medcodes' + class Medcode < ConditionOccurrenceSourceVocabularyOperator + register __FILE__ + argument :medcodes, type: :codelist, vocab_id: '203' - predominant_types :condition_occurrence + predominant_domains :condition_occurrence - def table - :condition_occurrence - end - def vocabulary_id 203 - end - - def source_column - :condition_source_value - end - - def concept_column - :condition_concept_id end end end end