Sha256: 5e041517843fa47ec2c4d1b6ee7c523e15e7f013c8cd96a1c119ce6a5839c360
Contents?: true
Size: 1.33 KB
Versions: 10
Compression:
Stored size: 1.33 KB
Contents
module QDM # IndividualResult stores the patient-level (population/clause) results for a patient/measure combination class IndividualResult include Mongoid::Document include Mongoid::Timestamps # This is the Mongoid equivalent of the Mongoose "enum" attribute for :state. Throws an error if you try to assign a value that's not in this array. validates_inclusion_of :state, in: %w[queued running complete cancelled failed] # Population Attributes field :STRAT, type: Integer field :IPP, type: Integer field :DENOM, type: Integer field :NUMER, type: Integer field :NUMEX, type: Integer field :DENEX, type: Integer field :DENEXCEP, type: Integer field :MSRPOPL, type: Integer field :OBSERV, type: Float field :MSRPOPLEX, type: Integer # Result Attributes field :clause_results, type: Hash field :episode_results, type: Hash field :statement_results, type: Hash # This field is for application specific information only. If both Bonnie and # Cypress use a common field, it should be made a field on this model, # and not put into extendedData. field :extendedData, type: Hash # Calculation state attributes field :state, type: String, default: 'queued' # Relations to other model classes belongs_to :measure belongs_to :patient end end
Version data entries
10 entries across 10 versions & 1 rubygems