Sha256: 3c4d2eed039fccab3894f34e1ac25a2625cd227eaaeace0c9461c73a00bce5ad

Contents?: true

Size: 456 Bytes

Versions: 11

Compression:

Stored size: 456 Bytes

Contents

module Renalware
  module UKRDC
    class PathologyObservationPresenter < SimpleDelegator
      # The PrePost element in ResultItem
      # For HD patients, all bloods are PRE except the post dialysis urea,
      # For non-HD patients, all the tests are NA
      def pre_post(patient_is_on_hd:)
        if patient_is_on_hd
          description_code.casecmp("UREP") == 0 ? "POST" : "PRE"
        else
          "NA"
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/presenters/renalware/ukrdc/pathology_observation_presenter.rb
renalware-core-2.0.0.pre.rc10 app/presenters/renalware/ukrdc/pathology_observation_presenter.rb
renalware-core-2.0.0.pre.rc9 app/presenters/renalware/ukrdc/pathology_observation_presenter.rb
renalware-core-2.0.0.pre.rc8 app/presenters/renalware/ukrdc/pathology_observation_presenter.rb
renalware-core-2.0.0.pre.rc7 app/presenters/renalware/ukrdc/pathology_observation_presenter.rb
renalware-core-2.0.0.pre.rc6 app/presenters/renalware/ukrdc/pathology_observation_presenter.rb
renalware-core-2.0.0.pre.rc5 app/presenters/renalware/ukrdc/pathology_observation_presenter.rb
renalware-core-2.0.0.pre.rc4 app/presenters/renalware/ukrdc/pathology_observation_presenter.rb
renalware-core-2.0.0.pre.rc3 app/presenters/renalware/ukrdc/pathology_observation_presenter.rb
renalware-core-2.0.0.pre.rc1 app/presenters/renalware/ukrdc/pathology_observation_presenter.rb
renalware-core-2.0.0.pre.beta12 app/presenters/renalware/ukrdc/pathology_observation_presenter.rb