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.85 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.84 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.83 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.82 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.81 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.80 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.79 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.78 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.77 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.76 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.75 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.74 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.73 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.72 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.71 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.70 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.69 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.68 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.67 app/models/renalware/hd/prescription_administration.rb
renalware-core-2.0.64 app/models/renalware/hd/prescription_administration.rb