Sha256: 4c9ad038c165f908ac86450d1c160a6e73d4a91ec08ac87e80b3fb05fec990c5

Contents?: true

Size: 724 Bytes

Versions: 75

Compression:

Stored size: 724 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :hd_profile, class: "Renalware::HD::Profile" do
    accountable
    patient
    active { true }
    association :hospital_unit, factory: :hospital_unit
    association :dialysate, factory: :hd_dialysate
    prescriber { accountable_actor }

    document {
      {
        dialysis: {
          hd_type: :hd
        }
      }
    }

    trait :hd do
      # noop
    end

    trait :hdf_pre do
      document {
        {
          dialysis: {
            hd_type: :hdf_pre
          }
        }
      }
    end

    trait :hdf_post do
      document {
        {
          dialysis: {
            hd_type: :hdf_post
          }
        }
      }
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

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