Sha256: e69027e3196fc1e245bf8ef7e7e18c8ae919fa8d4b0662ddc058d5dd323245e1

Contents?: true

Size: 410 Bytes

Versions: 5

Compression:

Stored size: 410 Bytes

Contents

require_dependency "renalware/pathology"

module Renalware
  module Pathology
    class ObservationPresenter < SimpleDelegator
      delegate :name, :code, :loinc_code, to: :description, prefix: true, allow_nil: true
      delegate :measurement_unit, to: :description
      delegate :name, to: :measurement_unit, prefix: true

      def html_class
        description.to_s.downcase
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/presenters/renalware/pathology/observation_presenter.rb
renalware-core-2.0.0.pre.rc10 app/presenters/renalware/pathology/observation_presenter.rb
renalware-core-2.0.0.pre.rc9 app/presenters/renalware/pathology/observation_presenter.rb
renalware-core-2.0.0.pre.rc8 app/presenters/renalware/pathology/observation_presenter.rb
renalware-core-2.0.0.pre.rc7 app/presenters/renalware/pathology/observation_presenter.rb