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

Version Path
renalware-core-2.1.1 app/views/renalware/clinical/_header.html.slim
renalware-core-2.1.0 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.167 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.166 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.165 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.164 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.163 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.162 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.161 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.160 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.159 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.158 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.157 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.156 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.155 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.153 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.152 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.151 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.149 app/views/renalware/clinical/_header.html.slim
renalware-core-2.0.148 app/views/renalware/clinical/_header.html.slim