Sha256: 5f2375050978b8b9636a9bcb390faf5b77361c6a54e974a682b5cc466b40aca8

Contents?: true

Size: 470 Bytes

Versions: 12

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module HD
    class PrescriptionLastAdministrationComponent < ApplicationComponent
      attr_reader :prescription
      validates :prescription, presence: true

      def initialize(prescription:)
        @prescription = prescription
      end

      def last_administration
        @last_administration ||=
          PrescriptionLastAdministrationQuery.new(prescription: prescription).call
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
renalware-core-2.0.149 app/components/renalware/hd/prescription_last_administration_component.rb
renalware-core-2.0.148 app/components/renalware/hd/prescription_last_administration_component.rb
renalware-core-2.0.147 app/components/renalware/hd/prescription_last_administration_component.rb
renalware-core-2.0.146 app/components/renalware/hd/prescription_last_administration_component.rb
renalware-core-2.0.145 app/components/renalware/hd/prescription_last_administration_component.rb
renalware-core-2.0.144 app/components/renalware/hd/prescription_last_administration_component.rb
renalware-core-2.0.143 app/components/renalware/hd/prescription_last_administration_component.rb
renalware-core-2.0.142 app/components/renalware/hd/prescription_last_administration_component.rb
renalware-core-2.0.141 app/components/renalware/hd/prescription_last_administration_component.rb
renalware-core-2.0.140 app/components/renalware/hd/prescription_last_administration_component.rb
renalware-core-2.0.139 app/components/renalware/hd/prescription_last_administration_component.rb
renalware-core-2.0.138 app/components/renalware/hd/prescription_last_administration_component.rb