Class: Demographic
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Demographic
- 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