Sha256: 02a1671924022a07e3d5ef0e9392cf1baee6f5385ca6751a177ac85bd1d7c6ae
Contents?: true
Size: 773 Bytes
Versions: 44
Compression:
Stored size: 773 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware" require_dependency "renalware/address_presenter/single_line" module Renalware class PatientPresenter < SimpleDelegator def address AddressPresenter::SingleLine.new(current_address) end def to_s(format = :long) super(format) end def nhs_number return super unless super.present? && super.length >= 10 return if super.index(" ") "#{super[0..2]} #{super[3..5]} #{super[6..-1]}" end def rpv_decision [ I18n.l(rpv_decision_on), rpv_recorded_by ].compact.join(" by ") end def renalreg_decision [ I18n.l(renalreg_decision_on), renalreg_recorded_by ].compact.join(" by ") end end end
Version data entries
44 entries across 44 versions & 1 rubygems