Sha256: 18eb3f684322cfe5c372751b8582fc686bd374d4ee99e79ae3b6d811371252e2

Contents?: true

Size: 1.91 KB

Versions: 108

Compression:

Stored size: 1.91 KB

Contents

- if prescriptions.any?
  .row
    .large-12.columns
      table[class="auto-layout" id="#{id}"]
        thead
          tr
            - if current_scope
              th
              th.col-width-small
            th.col-width-medium
              = sort_link_if(treatable.sortable?, search, :drug_name, "Drug name")
            th Drug Type
            th.col-width-small Dose
            th.col-width-tiny Frequency
            th.col-width-tiny Route
            - if current_scope
              th Give on HD
            th.col-width-tiny Provider
            th Notes
            th.col-width-date.wide
              = sort_link_if(treatable.sortable?, search, :prescribed_on, "Prescribed on")
            th Prescribed By
            - unless current_scope
              th Terminated On
              th Terminated By
        tbody
          - prescriptions.each do |prescription|
            tr class="drug-#{drug_types_colour_tag(prescription.drug_types)}"
              - if current_scope
                td
                  input.discardable-checkbox-used-when-reviewing-drugs-with-patient(type="checkbox")
                td= render partial: "renalware/medications/prescriptions/options",
                  locals: { patient: patient, prescription: prescription }
              td= prescription.drug.name
              td= prescription.drug_type_names
              td= prescription.dose
              td= prescription.frequency
              td= prescription.route_code
              - if current_scope
                td= prescription.administer_on_hd?
              td= prescription.provider
              td= prescription.notes
              td= I18n.l prescription.prescribed_on
              td= prescription.created_by.full_name
              - unless current_scope
                td= I18n.l prescription.terminated_on
                td= prescription.terminated_by&.full_name
- else
  p There are no prescriptions in this list.

Version data entries

108 entries across 108 versions & 1 rubygems

Version Path
renalware-core-2.0.106 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.105 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.104 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.103 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.102 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.101 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.100 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.99 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.98 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.97 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.96 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.95 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.94 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.93 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.92 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.91 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.90 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.89 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.88 app/views/renalware/medications/prescriptions/_table.html.slim
renalware-core-2.0.87 app/views/renalware/medications/prescriptions/_table.html.slim