Sha256: a93644892ec1bac929ce2bd286aea5d0479ce6c703be6466808f28caa409212c
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
require_dependency "renalware/renal" module Renalware module Renal class AKIAlert < ApplicationRecord include Accountable scope :ordered, ->{ order(created_at: :desc) } belongs_to :patient, class_name: "Renal::Patient" belongs_to :action, class_name: "Renal::AKIAlertAction" belongs_to :hospital_ward, class_name: "Hospitals::Ward" validates :patient, presence: true validates :max_aki, inclusion: 1..3, allow_nil: true alias_attribute :decided_by, :updated_by end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
renalware-core-2.0.0.pre.rc11 | app/models/renalware/renal/aki_alert.rb |