Sha256: 43ba6d5bc7701e0b7987b2c47d082aab655a11035d5ec5e4ee01ad6fbeb7b391

Contents?: true

Size: 993 Bytes

Versions: 84

Compression:

Stored size: 993 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.noprint
      li= link_to "Edit", edit_patient_virology_profile_path(patient), class: "button"

  dl.dl-horizontal.xlarge
    - %i(hiv hepatitis_b hepatitis_b_core_antibody 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

84 entries across 84 versions & 1 rubygems

Version Path
renalware-core-2.0.167 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.166 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.165 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.164 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.163 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.162 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.161 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.160 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.159 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.158 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.157 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.156 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.155 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.153 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.152 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.151 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.149 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.148 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.147 app/views/renalware/virology/profiles/_summary.html.slim
renalware-core-2.0.146 app/views/renalware/virology/profiles/_summary.html.slim