Sha256: 468d94c831b9d5577776fa2fec048d089a69d3766147a934035b4692dd128b23
Contents?: true
Size: 597 Bytes
Versions: 90
Compression:
Stored size: 597 Bytes
Contents
# frozen_string_literal: true 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
90 entries across 90 versions & 1 rubygems