Sha256: f15441c60e890f572398f79816e5afa6f66c8ad9f1b270af7d2d96fd4a9c9122

Contents?: true

Size: 524 Bytes

Versions: 18

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :pathology_observation_description,
          class: "Renalware::Pathology::ObservationDescription" do
    initialize_with do
      Renalware::Pathology::ObservationDescription.find_or_create_by!(code: code)
    end

    before(:create){ |desc| desc.loinc_code ||= desc.code.downcase }

    code "WBR"
    association :measurement_unit, factory: :pathology_measurement_unit
    display_group 1
    display_order 1
    letter_group 1
    letter_order 1
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
renalware-core-2.0.18 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.17 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.16 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.15 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.14 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.13 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.12 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.11 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.9 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.8 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.7 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.5 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.4 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.3 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.2 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.1 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.0 spec/factories/pathology/observation_descriptions.rb
renalware-core-2.0.0.pre.rc13 spec/factories/pathology/observation_descriptions.rb