Sha256: 1441818b6cbc4d62acb223b7e74e3bcd9d3c526e923b74d7382753265f8524c4

Contents?: true

Size: 1.87 KB

Versions: 21

Compression:

Stored size: 1.87 KB

Contents

= content_for(:actions) do
  = link_to "Edit", edit_patient_clinical_profile_path(patient), class: "button"

= within_patient_layout(title: "Clinical Profile") do
  .grid
    .row
      .columns.medium-6
        article
          header
            h2 Diabetes

          dl.dl-horizontal
            dt Diagnosis
            dd= yes_no(profile.diabetes_diagnosis) unless profile.diabetes_diagnosis.nil?
            dt Diagnosed on
            dd= l(profile.diabetes_diagnosed_on)

      .columns.medium-6
        article
          header
            h2 History

          dl.dl-horizontal
            dt Alcohol
            dd= profile.alcohol_history.text
            dt Smoking
            dd= profile.smoking_history.text

      .columns.medium-6
        article
          header
            h2 Death Record
            = link_to "Update", edit_patient_death_path(patient), class: "button"

          - if patient.died_on.present?

            dl.dl-horizontal

              dt Date of Death:
              dd= l(patient.died_on)

              dt 1st Death cause:
              dd= patient.first_cause.description

              dt 2nd Death cause:
              dd= default_for_associated(patient.second_cause, :description, "N/A")

      .columns.medium-12.large-6
        = render "renalware/clinical/allergies/list",
                 patient: patient,
                 allergies: profile.allergies

      .columns.medium-12.large-6
        = render "renalware/events/swabs/list",
                 swabs: profile.swabs,
                 patient: patient

      .columns.medium-12.large-6
        = render "renalware/clinical/dry_weights/list",
                 dry_weights: profile.dry_weights,
                 patient: patient

      .columns
        = render "renalware/clinical/body_compositions/list",
                 body_compositions: profile.body_compositions,
                 patient: patient

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
renalware-core-2.0.11 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.9 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.8 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.7 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.5 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.4 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.3 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.2 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.1 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.0 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.0.pre.rc13 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.0.pre.rc11 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.0.pre.rc10 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.0.pre.rc9 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.0.pre.rc8 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.0.pre.rc7 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.0.pre.rc6 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.0.pre.rc5 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.0.pre.rc4 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.0.pre.rc3 app/views/renalware/clinical/profiles/show.html.slim