renalware-core 2.0.44 → 2.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/renalware/application.scss +1 -0
- data/app/assets/stylesheets/renalware/modules/_clinical.scss +3 -1
- data/app/assets/stylesheets/renalware/modules/_patients.scss +0 -1
- data/app/assets/stylesheets/renalware/modules/_snippets.scss +3 -1
- data/app/assets/stylesheets/renalware/partials/_button.scss +6 -2
- data/app/assets/stylesheets/renalware/partials/_tables.scss +1 -1
- data/app/assets/stylesheets/renalware/partials/_tabs.scss +3 -1
- data/app/assets/stylesheets/renalware/table_pdf.scss +1 -1
- data/app/controllers/renalware/clinics/appointments_controller.rb +1 -3
- data/app/controllers/renalware/clinics/visits_controller.rb +2 -5
- data/app/controllers/renalware/patients/worryboard_controller.rb +2 -4
- data/app/controllers/renalware/renal/aki_alerts_controller.rb +2 -7
- data/app/documents/renalware/dated_confirmation.rb +1 -1
- data/app/documents/renalware/transplants/recipient_operation_document.rb +1 -1
- data/app/helpers/renalware/drugs_helper.rb +6 -3
- data/app/helpers/renalware/primary_care_physicians_helper.rb +3 -1
- data/app/jobs/refresh_materialized_view_job.rb +20 -0
- data/app/jobs/renalware/hd/generate_monthly_statistics.rb +3 -0
- data/app/mailers/renalware/previews/report_preview.rb +14 -0
- data/app/mailers/renalware/reporting/report_mailer.rb +57 -0
- data/app/models/concerns/renalware/broadcasting.rb +28 -4
- data/app/models/renalware/patients/worry_query.rb +0 -2
- data/app/models/renalware/renal/aki_alert_search_form.rb +1 -3
- data/app/models/renalware/ukrdc/send_patients.rb +25 -1
- data/app/models/renalware/ukrdc/transmission_log.rb +1 -1
- data/app/presenters/renalware/ukrdc/patient_presenter.rb +1 -1
- data/app/views/renalware/admin/users/index.html.slim +2 -2
- data/app/views/renalware/admissions/consults/index.html.slim +1 -1
- data/app/views/renalware/admissions/requests/_create_request_link.html.slim +1 -1
- data/app/views/renalware/admissions/requests/_request.html.slim +2 -2
- data/app/views/renalware/base/_modality_missing_warning.html.slim +1 -1
- data/app/views/renalware/clinical/allergies/_mini.html.slim +1 -1
- data/app/views/renalware/clinics/appointments/index.html.slim +3 -3
- data/app/views/renalware/hd/dashboards/_page_actions.html.slim +3 -3
- data/app/views/renalware/hd/diaries/edit.html.slim +2 -2
- data/app/views/renalware/hd/diaries/index.html.slim +1 -1
- data/app/views/renalware/hd/stations/_station.html.slim +1 -1
- data/app/views/renalware/letters/electronic_receipts/_table.html.slim +1 -1
- data/app/views/renalware/letters/lists/_letter.html.slim +1 -1
- data/app/views/renalware/low_clearance/dashboards/_page_actions.html.slim +2 -2
- data/app/views/renalware/mdm/_top_navigation.html.slim +1 -1
- data/app/views/renalware/medications/prescriptions/index.html.slim +1 -1
- data/app/views/renalware/messaging/internal/messages/_send_message_link.html.slim +1 -1
- data/app/views/renalware/messaging/internal/messages/_send_reply_link.html.slim +1 -1
- data/app/views/renalware/messaging/internal/receipts/_receipt.html.slim +1 -1
- data/app/views/renalware/navigation/_patient_search.html.slim +1 -1
- data/app/views/renalware/navigation/_user.html.slim +1 -1
- data/app/views/renalware/patients/_header.html.slim +2 -2
- data/app/views/renalware/patients/alerts/_alert.html.slim +2 -2
- data/app/views/renalware/patients/alerts/_create_alert_link.html.slim +1 -1
- data/app/views/renalware/patients/bookmarks/_delete.html.slim +5 -4
- data/app/views/renalware/patients/bookmarks/_new.html.slim +1 -1
- data/app/views/renalware/patients/patients/_patient.html.slim +2 -2
- data/app/views/renalware/patients/worries/_delete.html.slim +1 -1
- data/app/views/renalware/patients/worries/_new.html.slim +1 -1
- data/app/views/renalware/pd/dashboards/show/_page_actions.html.slim +4 -4
- data/app/views/renalware/pd/exit_site_infections/show.html.slim +1 -1
- data/app/views/renalware/pd/peritonitis_episodes/show.html.slim +1 -1
- data/app/views/renalware/problems/problems/_current_table.html.slim +1 -1
- data/app/views/renalware/renal/aki_alerts/index.html.slim +1 -1
- data/app/views/renalware/reporting/report_mailer/daily_summary.html.slim +14 -0
- data/app/views/renalware/reporting/report_mailer/daily_summary.text.erb +15 -0
- data/app/views/renalware/research/_alert.html.slim +2 -2
- data/app/views/renalware/shared/_modal_close_link.html.slim +1 -1
- data/app/views/renalware/snippets/snippets/_list.html.slim +2 -2
- data/app/views/renalware/snippets/snippets/_search_form.html.slim +1 -1
- data/app/views/renalware/transplants/live_donors/_filters.html.slim +1 -1
- data/app/views/renalware/transplants/recipient_dashboards/_modality_missing_warning.html.slim +1 -1
- data/app/views/renalware/transplants/recipient_dashboards/_page_actions.html.slim +1 -1
- data/config/gpg/renalware_test.gpg +0 -0
- data/config/initializers/ransack.rb +1 -1
- data/config/initializers/renalware.rb +20 -2
- data/config/locales/renalware/reporting/reporting_daily.en.yml +7 -0
- data/config/locales/renalware/virology/virology.en.yml +1 -0
- data/db/migrate/20180831134606_add_reporting_indexes.rb +13 -0
- data/db/migrate/20180831134926_create_daily_reports.rb +6 -0
- data/db/seeds/default/reporting/audits.yml +1 -2
- data/db/views/reporting_daily_letters_v01.sql +3 -0
- data/db/views/reporting_daily_pathology_v01.sql +16 -0
- data/lib/gpg_encrypt_folder.rb +74 -0
- data/lib/renalware/configuration.rb +5 -0
- data/lib/renalware/engine.rb +5 -4
- data/lib/renalware/version.rb +1 -1
- data/lib/tasks/audit.rake +5 -0
- data/lib/tasks/reporting.rake +9 -0
- metadata +43 -16
@@ -35,9 +35,9 @@
|
|
35
35
|
span.tag(class=role.name)= role.name.humanize
|
36
36
|
td.approved
|
37
37
|
- if user.approved?
|
38
|
-
i.
|
38
|
+
i.far.fa-check-square
|
39
39
|
- else
|
40
|
-
i.unapproved.
|
40
|
+
i.unapproved.far.fa-square
|
41
41
|
td.expired= l(user.expired_at&.to_date)
|
42
42
|
td.show-for-large-up= l(user.current_sign_in_at)
|
43
43
|
td.show-for-large-up= l(user.last_sign_in_at)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
= content_for(:actions) do
|
4
4
|
= link_to("Add", new_admissions_consult_path, class: :button)
|
5
5
|
= link_to(admissions_consults_path(q: params[:q]&.permit!, format: :pdf), class: "button secondary") do
|
6
|
-
i.
|
6
|
+
i.fas.fa-print
|
7
7
|
| Print (PDF)
|
8
8
|
/data: { target: admissions_consults_path(format: :pdf)
|
9
9
|
|
@@ -23,7 +23,7 @@ ruby:
|
|
23
23
|
method: :delete,
|
24
24
|
class: "remove",
|
25
25
|
data: { confirm: "Are you sure you want to remove this item?" } do
|
26
|
-
i.
|
26
|
+
i.fas.fa-trash.fa-link-annotation
|
27
27
|
| |
|
28
28
|
= link_to "Edit",
|
29
29
|
edit_admissions_request_path(request, format: :html),
|
@@ -31,4 +31,4 @@ ruby:
|
|
31
31
|
method: :get,
|
32
32
|
data: { "reveal-id" => "admissions-request-modal", "reveal-ajax" => "true" }
|
33
33
|
td.handle
|
34
|
-
i.
|
34
|
+
i.fas.fa-bars
|
@@ -27,7 +27,7 @@
|
|
27
27
|
|
28
28
|
= f.input :patient_ids, as: :hidden_array
|
29
29
|
= button_tag(type: "submit", class: "button secondary") do
|
30
|
-
i.
|
30
|
+
i.fas.fa-copy
|
31
31
|
| Generate request forms
|
32
32
|
|
33
33
|
table#appointments
|
@@ -63,13 +63,13 @@
|
|
63
63
|
- if appointment.becomes_visit_id.present?
|
64
64
|
= link_to edit_patient_clinic_visit_path(appointment.patient,
|
65
65
|
id: appointment.becomes_visit_id) do
|
66
|
-
i.
|
66
|
+
i.fas.fa-file
|
67
67
|
|
|
68
68
|
| View Clinic Visit
|
69
69
|
- else
|
70
70
|
= link_to new_patient_clinic_visit_path(appointment.patient,
|
71
71
|
appointment_id: appointment.id) do
|
72
|
-
i.
|
72
|
+
i.fas.fa-pencil-alt
|
73
73
|
|
|
74
74
|
| Create Clinic Visit
|
75
75
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
= link_to(patient_hd_mdm_path(patient), class: "button with-icon secondary") do
|
2
|
-
i.
|
2
|
+
i.fas.fa-users
|
3
3
|
= t(".mdm")
|
4
4
|
= link_to(patient_hd_protocol_path(patient), class: "button with-icon secondary") do
|
5
|
-
i.
|
5
|
+
i.fas.fa-print
|
6
6
|
= t(".protocol")
|
7
7
|
a.button.dropdown.with-icon(href="#"
|
8
8
|
data-dropdown="pd-options"
|
9
9
|
aria-controls="pd-options"
|
10
10
|
aria-expanded="false")
|
11
|
-
i.
|
11
|
+
i.fas.fa-plus
|
12
12
|
| Add
|
13
13
|
br
|
14
14
|
ul.f-dropdown#pd-options(data-dropdown-content aria-hidden="true")
|
@@ -9,11 +9,11 @@
|
|
9
9
|
|
10
10
|
.diary__navigation
|
11
11
|
= link_to hd_unit_edit_diary_path(**diary.week.previous.to_h), class: "button secondary" do
|
12
|
-
i.
|
12
|
+
i.fas.fa-arrow-left
|
13
13
|
| Previous week
|
14
14
|
|
15
15
|
= link_to hd_unit_edit_diary_path(**diary.week.next.to_h), class: "button secondary" do
|
16
|
-
i.
|
16
|
+
i.fas.fa-arrow-right
|
17
17
|
| Next week
|
18
18
|
|
19
19
|
.diary__key
|
@@ -1,12 +1,12 @@
|
|
1
1
|
= link_to(patient_low_clearance_mdm_path(patient), class: "button with-icon secondary") do
|
2
|
-
i.
|
2
|
+
i.fas.fa-users
|
3
3
|
= t(".mdm")
|
4
4
|
|
5
5
|
a.button.dropdown.with-icon(href="#"
|
6
6
|
data-dropdown="pd-options"
|
7
7
|
aria-controls="pd-options"
|
8
8
|
aria-expanded="false")
|
9
|
-
i.
|
9
|
+
i.fas.fa-plus
|
10
10
|
| Add
|
11
11
|
br
|
12
12
|
ul.f-dropdown#pd-options(data-dropdown-content aria-hidden="true")
|
@@ -11,11 +11,11 @@
|
|
11
11
|
dt
|
12
12
|
dd.back-link
|
13
13
|
= link_to back_path do
|
14
|
-
i.
|
14
|
+
i.fas.fa-arrow-left
|
15
15
|
| Back
|
16
16
|
dd.name.patient-menu-toggler
|
17
17
|
a
|
18
|
-
i.
|
18
|
+
i.fas.fa-ellipsis-v
|
19
19
|
= patient
|
20
20
|
- if patient.hospital_identifiers.all.count > 1
|
21
21
|
- patient.hospital_identifiers.all.each do |hospital_identifier|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
li.patient-alert(class=("urgent" if alert.urgent) id="alert-#{alert.id}")
|
2
|
-
i.
|
2
|
+
i.fas.fa-exclamation-triangle
|
3
3
|
span.title Alert:
|
4
4
|
span.body= alert.notes
|
5
5
|
span.author= alert.created_by.username
|
@@ -9,4 +9,4 @@ li.patient-alert(class=("urgent" if alert.urgent) id="alert-#{alert.id}")
|
|
9
9
|
remote: true,
|
10
10
|
method: :delete,
|
11
11
|
data: { confirm: "Are you sure you want to remove this alert?" }) do
|
12
|
-
i.
|
12
|
+
i.fas.fa-trash
|
@@ -1,4 +1,5 @@
|
|
1
|
-
= link_to
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
= link_to(bookmark_path(bookmark),
|
2
|
+
method: :delete,
|
3
|
+
data: { confirm: t(".confirm") }) do
|
4
|
+
i.fas.fa-link-annotation.fa-bookmark
|
5
|
+
= link_text
|
@@ -8,12 +8,12 @@ tr
|
|
8
8
|
td= patient.age
|
9
9
|
- if(patient.send_to_rpv?)
|
10
10
|
td(title="#{patient.rpv_decision}")
|
11
|
-
i.
|
11
|
+
i.fas.fa-check
|
12
12
|
-else
|
13
13
|
td
|
14
14
|
- if(patient.send_to_renalreg?)
|
15
15
|
td(title="#{patient.renalreg_decision}")
|
16
|
-
i.
|
16
|
+
i.fas.fa-check
|
17
17
|
-else
|
18
18
|
td
|
19
19
|
td= patient.current_modality
|
@@ -1,13 +1,13 @@
|
|
1
1
|
= link_to(patient_pd_mdm_path(patient), class: "button with-icon secondary") do
|
2
|
-
i.
|
2
|
+
i.fas.fa-users
|
3
3
|
= t(".mdm")
|
4
4
|
= blank_separator
|
5
|
-
=
|
6
|
-
a.button.dropdown(href="#"
|
5
|
+
a.button.dropdown.with-icon(href="#"
|
7
6
|
data-dropdown="pd-options"
|
8
7
|
aria-controls="pd-options"
|
9
8
|
aria-expanded="false")
|
10
|
-
|
9
|
+
i.fas.fa-plus
|
10
|
+
| Add
|
11
11
|
br
|
12
12
|
|
13
13
|
ul.f-dropdown#pd-options(data-dropdown-content aria-hidden="true")
|
@@ -1,7 +1,7 @@
|
|
1
1
|
= content_for(:actions) do
|
2
2
|
= link_to(patient_pd_peritonitis_episode_path(patient, peritonitis_episode, format: :pdf),
|
3
3
|
class: "button") do
|
4
|
-
i.
|
4
|
+
i.fas.fa-print
|
5
5
|
| Print
|
6
6
|
|
7
7
|
- title = "Peritonitis Episode - Diagnosed: #{l(peritonitis_episode.diagnosis_date)}"
|
@@ -4,7 +4,7 @@
|
|
4
4
|
/ url_for(request.filtered_parameters&.merge({format: :pdf})
|
5
5
|
/ however this seems to loose the ransack sort option in params[:q][:s]
|
6
6
|
= link_to(renal_aki_alerts_path(q: params[:q]&.permit!, format: :pdf), class: "button secondary") do
|
7
|
-
i.
|
7
|
+
i.fas.fa-print
|
8
8
|
| Print (PDF)
|
9
9
|
|
10
10
|
= within_admin_layout(title: "AKI Alerts") do
|
@@ -0,0 +1,14 @@
|
|
1
|
+
h4= l(Time.zone.now)
|
2
|
+
|
3
|
+
- view_data.each do |view_name, data|
|
4
|
+
- rows = data["data"].first
|
5
|
+
h3= t(:title, scope: "renalware.reporting.#{view_name}", default: view_name)
|
6
|
+
table
|
7
|
+
- rows.each do |row|
|
8
|
+
- description = row[0]
|
9
|
+
- value = row[1]
|
10
|
+
tr
|
11
|
+
td= t(description,
|
12
|
+
scope: "renalware.reporting.#{view_name}",
|
13
|
+
default: description.humanize)
|
14
|
+
td= value
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= l(Time.zone.now) %>
|
2
|
+
|
3
|
+
<% view_data.each do |view_name, data| %>
|
4
|
+
<% rows = data["data"].first %>
|
5
|
+
<% title = t(:title, scope: "renalware.reporting.#{view_name}", default: view_name) %>
|
6
|
+
<%= title %>
|
7
|
+
<%= "-" * title.length %>
|
8
|
+
<% rows.each do |row| %>
|
9
|
+
<% description = row[0] %>
|
10
|
+
<% value = row[1] %>
|
11
|
+
<%= t(description,scope: "renalware.reporting.#{view_name}", default: description.humanize) -%>
|
12
|
+
<%= ": #{value}" %>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<% end %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
li.patient-alert.research-study-participant
|
2
|
-
i.
|
2
|
+
i.fas.fa-exclamation-triangle
|
3
3
|
span.title= link_to(participation.study.code, research_study_participants_path(participation.study))
|
4
4
|
span.body participant
|
5
5
|
|
@@ -8,7 +8,7 @@ li.patient-alert.research-study-participant
|
|
8
8
|
- if participation.external_application_participant_url.present?
|
9
9
|
span.external_application_link
|
10
10
|
= link_to(participation.external_application_participant_url, target: "_blank") do
|
11
|
-
i.
|
11
|
+
i.fas.fa-external-link-alt
|
12
12
|
| Launch application
|
13
13
|
|
14
14
|
span.date= l(participation.joined_on)
|