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

Version Path
renalware-core-2.0.63 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.62 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.61 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.60 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.58 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.57 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.56 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.55 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.54 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.53 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.52 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.51 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.50 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.48 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.47 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.46 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.45 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.44 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.43 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.42 app/models/renalware/hd/prescription_administration.rb