Sha256: 9b39ed23b14dec383bf2f3386aaec5033ccbbcbdf59516c482b76f0d8b581642

Contents?: true

Size: 959 Bytes

Versions: 34

Compression:

Stored size: 959 Bytes

Contents

- profile = Renalware::Virology.cast_patient(patient).profile
- document = profile&.document || Renalware::NullObject.instance
- positive_results_only = local_assigns.fetch(:positive_results_only, false)
- with_vaccinations = local_assigns.fetch(:with_vaccinations, false)

article
  header
    h2 Virology
    ul
      li= link_to "Edit", edit_patient_virology_profile_path(patient), class: "button"

  dl.dl-horizontal.medium
    - %i(hiv hepatitis_b hepatitis_c htlv).each do |attr_name|
      - status = document.public_send(attr_name).status
      - next if positive_results_only && !status&.yes?
      dt= attr_name(document, attr_name)
      dd= document.public_send(attr_name).to_s

  - if with_vaccinations
    - vaccinations = Renalware::Virology::Vaccination.for_patient(patient).order(date_time: :asc)
    - if vaccinations.any?
      h3 Vaccinations
      = render "renalware/events/events/table", events: vaccinations, exclude_type_column: true

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
renalware-core-2.0.77 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.76 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.75 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.74 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.73 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.72 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.71 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.70 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.69 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.68 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.67 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.64 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.63 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.62 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.61 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.60 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.58 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.57 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.56 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.55 app/views/renalware/virology/profiles/_summary.html.slim