Sha256: 48e3090767cc4cc67a2c9b599bb7717a2965aaf7d7c955dcc7c2cb2c5c41ea2d
Contents?: true
Size: 665 Bytes
Versions: 23
Compression:
Stored size: 665 Bytes
Contents
# frozen_string_literal: true 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").zero? ? "POST" : "PRE" else "NA" end end # Truncate long result text to satisfy XSD validation - it might be notes # like eg "No recent Urea result" def result (super || "")[0..19] end end end end
Version data entries
23 entries across 23 versions & 1 rubygems