Sha256: ec87a174031d4900cb866d4fe379add5d11d3ced1b18af917de50a8a4bbf6e99

Contents?: true

Size: 442 Bytes

Versions: 118

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :prescription, class: "Renalware::Medications::Prescription" do
    accountable
    patient
    drug
    dose_amount { "20" }
    dose_unit { "milligram" }
    medication_route
    frequency { "daily" }
    notes { "with food" }
    provider { 0 }
    prescribed_on { 2.weeks.ago }

    before(:create) { |prescription| prescription.treatable ||= prescription.patient }
  end
end

Version data entries

118 entries across 118 versions & 1 rubygems

Version Path
renalware-core-2.1.1 spec/factories/medications/prescription.rb
renalware-core-2.1.0 spec/factories/medications/prescription.rb
renalware-core-2.0.167 spec/factories/medications/prescription.rb
renalware-core-2.0.166 spec/factories/medications/prescription.rb
renalware-core-2.0.165 spec/factories/medications/prescription.rb
renalware-core-2.0.164 spec/factories/medications/prescription.rb
renalware-core-2.0.163 spec/factories/medications/prescription.rb
renalware-core-2.0.162 spec/factories/medications/prescription.rb
renalware-core-2.0.161 spec/factories/medications/prescription.rb
renalware-core-2.0.160 spec/factories/medications/prescription.rb
renalware-core-2.0.159 spec/factories/medications/prescription.rb
renalware-core-2.0.158 spec/factories/medications/prescription.rb
renalware-core-2.0.157 spec/factories/medications/prescription.rb
renalware-core-2.0.156 spec/factories/medications/prescription.rb
renalware-core-2.0.155 spec/factories/medications/prescription.rb
renalware-core-2.0.153 spec/factories/medications/prescription.rb
renalware-core-2.0.152 spec/factories/medications/prescription.rb
renalware-core-2.0.151 spec/factories/medications/prescription.rb
renalware-core-2.0.149 spec/factories/medications/prescription.rb
renalware-core-2.0.148 spec/factories/medications/prescription.rb