Class: Renalware::UKRDC::PathologyObservationPresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/presenters/renalware/ukrdc/pathology_observation_presenter.rb

Instance Method Summary collapse

Instance Method Details

#pre_post(patient_is_on_hd:) ⇒ Object

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



9
10
11
12
13
14
15
# File 'app/presenters/renalware/ukrdc/pathology_observation_presenter.rb', line 9

def pre_post(patient_is_on_hd:)
  if patient_is_on_hd
    description_code.casecmp("UREP") == 0 ? "POST" : "PRE"
  else
    "NA"
  end
end