Sha256: 0bf286e96d023860cc8ea53a86ee6c05036bb8e437e73a13f9eb4d9b80759490

Contents?: true

Size: 1.69 KB

Versions: 11

Compression:

Stored size: 1.69 KB

Contents

- clinical_patient = Renalware::Clinical.cast_patient(protocol.patient)

- content_for(:head) do
  = wicked_pdf_stylesheet_link_tag "renalware/protocol_pdf"

- protocol.with_format("html") do
  .protocol
    = render "renalware/patients/header", patient: protocol.patient
    table.protocol-patient-summary
      thead
        tr
          th.protocol-hd-profile HD Profile
          th.protocol-allergies
            | Allergies
            - if clinical_patient.allergy_status_updated_at
              span.allergy_status_updated_at
                = " #{l(clinical_patient.allergy_status_updated_at&.to_date)}"
          th.protocol-prescriptions Prescriptions on HD
          th.protocol-recent-pathology Recent Pathology
      tbody
        tr
          td
            = render "profile", profile: protocol.profile
          td
            = render "allergies", patient: protocol.patient
            = render "virology", protocol: protocol
          td
            = render "prescriptions", prescriptions: protocol.prescriptions
          td
            = render "recent_pathology", recent_pathology: protocol.recent_pathology
            = render "latest_dry_weight", latest_dry_weight: protocol.latest_dry_weight

    .row.collapse
      .small-12.columns
        table.auto-layout.protocol-sessions
          = render "renalware/hd/sessions/thead"
          tbody
            - 1..3.times do
              = render "renalware/hd/sessions/empty_row"
            - protocol.sessions.each_with_index do |session, index|
              - stripe_class = index % 2 == 0 ? "even" : "odd"
              = render "renalware/hd/sessions/row",
                       session: session,
                       stripe_class: stripe_class

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
renalware-core-2.0.148 app/views/renalware/hd/protocols/_protocol.pdf.slim
renalware-core-2.0.147 app/views/renalware/hd/protocols/_protocol.pdf.slim
renalware-core-2.0.146 app/views/renalware/hd/protocols/_protocol.pdf.slim
renalware-core-2.0.145 app/views/renalware/hd/protocols/_protocol.pdf.slim
renalware-core-2.0.144 app/views/renalware/hd/protocols/_protocol.pdf.slim
renalware-core-2.0.143 app/views/renalware/hd/protocols/_protocol.pdf.slim
renalware-core-2.0.142 app/views/renalware/hd/protocols/_protocol.pdf.slim
renalware-core-2.0.141 app/views/renalware/hd/protocols/_protocol.pdf.slim
renalware-core-2.0.140 app/views/renalware/hd/protocols/_protocol.pdf.slim
renalware-core-2.0.139 app/views/renalware/hd/protocols/_protocol.pdf.slim
renalware-core-2.0.138 app/views/renalware/hd/protocols/_protocol.pdf.slim