Class: Demographic

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
PgSearch
Defined in:
api/app/models/demographic.rb

Overview

A single piece of information about a subject

Schema

  • [Integer] demographic_category_id, null: false
  • [String] name
  • [Integer] minimum
  • [Integer] maximum
  • [Integer] source_id - when a test category is created by selecting a company-wide "global" category (i.e. has a NULL sensory_test_id), it receives a source_id pointing to its originator, useful for syncing study-level data back up to the subject

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#subject_countObject

Instance Method Details

#delete_filtersObject