Sha256: 4872031e3112d3057ba7afe39a2fe006deac885ae2034de5295a38bd489dc756
Contents?: true
Size: 742 Bytes
Versions: 6
Compression:
Stored size: 742 Bytes
Contents
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
6 entries across 6 versions & 1 rubygems