Sha256: 1c7aa57c87eb123847d3aad2dc22e7c3752156eff718cf1213926f44f1eac8d3

Contents?: true

Size: 923 Bytes

Versions: 17

Compression:

Stored size: 923 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :ukrdc_modality_code, class: Renalware::UKRDC::ModalityCode do
    trait :hd do
      description { "Haemodialysis" }
      txt_code { 1 }
      qbl_code { 1 }
    end

    trait :hdf do
      description { "Haemodiafiltration" }
      txt_code { 3 }
      qbl_code { 3 }
    end

    trait :pd do
      description { "Peritoneal dialysis – type unknown" }
      txt_code { 19 }
      qbl_code { 19 }
    end

    trait :apd do
      description { "APD" }
      txt_code { 12 }
      qbl_code { 12 }
    end

    trait :apd_assisted do
      description { "Assisted APD" }
      txt_code { 121 }
      qbl_code { 121 }
    end

    trait :capd do
      description { "CAPD" }
      txt_code { 11 }
      qbl_code { 11 }
    end

    trait :capd_assisted do
      description { "Assisted CAPD" }
      txt_code { 111 }
      qbl_code { 111 }
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
renalware-core-2.0.106 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.105 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.104 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.103 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.102 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.101 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.100 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.99 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.98 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.97 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.96 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.95 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.94 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.93 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.92 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.91 spec/factories/ukrdc/modality_codes.rb
renalware-core-2.0.90 spec/factories/ukrdc/modality_codes.rb