Sha256: 9a335786656808632a1b4db7b3da47104d2ab3fd479d91eb5ce2ccaa2fb25642
Contents?: true
Size: 1.24 KB
Versions: 160
Compression:
Stored size: 1.24 KB
Contents
ruby: header = local_assigns[:header] || Renalware::Clinical::HeaderPresenter.new(patient) current_pathology = header.current_pathology .clinical-header.lozenge ul li dl dt= t(".blood_pressure") - result = header.blood_pressure_measurement.compact.join("/") - if result.present? dd= result dd.date= l(header.blood_pressure_date, format: :compact) - else dd.empty li dl dt= t(".weight") - result = header.weight_measurement - if result.present? dd= "#{result} kg" dd.date= l(header.weight_date, format: :compact) - else dd.empty li dl dt= t(".height") - result = header.height_measurement - if result.present? dd= "#{result} m" - else dd.empty li dl dt= t(".bmi") dd= header.bmi_measurement - %i(hgb cre pot egfr ure).each do |code| li dl dt= t(".#{code}") - result = current_pathology.send(:"#{code}_result") - if result.present? dd= result dd.date= l(current_pathology.send(:"#{code}_observed_at"), format: :compact) - else dd.empty
Version data entries
160 entries across 160 versions & 1 rubygems