Sha256: 7c4a7f82bec83315d2e7d4e383226902023ba9b03c081fae613ea1d968cbd14e

Contents?: true

Size: 1.87 KB

Versions: 9

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

9 entries across 9 versions & 1 rubygems

Version Path
renalware-core-2.0.21 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.20 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.18 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.17 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.16 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.15 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.14 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.13 app/views/renalware/clinical/profiles/show.html.slim
renalware-core-2.0.12 app/views/renalware/clinical/profiles/show.html.slim