Sha256: bb925478fb434f08e17f7d1608ef1f2fa6b2da78c60d34b56309bdb407e30f9e

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

require_dependency "renalware/pathology"

module Renalware
  module Pathology
    class ObservationDescription < ApplicationRecord
      belongs_to :measurement_unit
      validates :display_order, uniqueness: { allow_nil: true }
      validates :display_order_letters, uniqueness: { allow_nil: true }

      def self.for(codes)
        ObservationDescriptionsByCodeQuery.new(codes: codes).call
      end

      def to_s
        code
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/models/renalware/pathology/observation_description.rb
renalware-core-2.0.0.pre.rc10 app/models/renalware/pathology/observation_description.rb