Sha256: 5eb42d5976121a9140e575aac9eca8cc8f8796e690473b11e01df942a0f06ac9
Contents?: true
Size: 566 Bytes
Versions: 28
Compression:
Stored size: 566 Bytes
Contents
require_dependency "renalware/hd" module Renalware module HD class PrescriptionAdministration < ApplicationRecord include Accountable # Set to true by the parent hd_session if we are not signing off at this stage attr_accessor :skip_validation belongs_to :hd_session, class_name: "HD::Session", touch: true belongs_to :prescription, class_name: "Medications::Prescription" validates :administered, inclusion: { in: [true, false] }, unless: :skip_validation validates :prescription, presence: true end end end
Version data entries
28 entries across 28 versions & 1 rubygems