class ConceptQL::Operators::Race
Represents a operator that will grab all person rows that match the given races
Race
parameters are passed in as a set of strings. Each string represents a single race. The race string must match one of the values in the concept_name column of the concept table. If you misspell the race name you won't get any matches
Public Instance Methods
query(db)
click to toggle source
# File lib/conceptql/operators/race.rb, line 23 def query(db) db.from(:person___p) .join(:concept___c, { c__concept_id: :p__race_concept_id }) .where(Sequel.function(:lower, :c__concept_name) => arguments.map(&:downcase)) end