renalware-core 2.0.146 → 2.0.147
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/renalware/charting.js +1 -1
- data/app/assets/javascripts/renalware/rollup_compiled.js +87 -0
- data/app/assets/stylesheets/renalware/partials/_forms.scss +5 -0
- data/app/components/renalware/system/admin_menu_component.html.slim +1 -0
- data/app/controllers/renalware/admin/playgrounds_controller.rb +65 -0
- data/app/controllers/renalware/deaths_controller.rb +6 -5
- data/app/controllers/renalware/medications/home_delivery/events_controller.rb +0 -3
- data/app/controllers/renalware/medications/home_delivery/prescriptions_controller.rb +43 -0
- data/app/controllers/renalware/patients/primary_care_physician_controller.rb +6 -0
- data/app/javascript/renalware/controllers/charts_controller.js +52 -0
- data/app/javascript/renalware/controllers/medications/prescriptions_controller.js +24 -0
- data/app/javascript/renalware/index.js +6 -0
- data/app/models/renalware/medications.rb +2 -0
- data/app/models/renalware/medications/delivery/prescriptions_due_for_delivery_query.rb +53 -0
- data/app/models/renalware/patient.rb +4 -0
- data/app/models/renalware/patients/deceased_patients_query.rb +42 -0
- data/app/models/renalware/ukrdc/create_encrypted_patient_xml_files.rb +44 -16
- data/app/models/renalware/ukrdc/create_patient_xml_file.rb +1 -1
- data/app/views/renalware/accesses/assessments/_form.html.slim +2 -2
- data/app/views/renalware/accesses/plans/new.html.slim +1 -1
- data/app/views/renalware/accesses/procedures/_form.html.slim +2 -2
- data/app/views/renalware/accesses/profiles/_form.html.slim +2 -2
- data/app/views/renalware/admin/playgrounds/pathology_chart_data.js.erb +1 -0
- data/app/views/renalware/admin/playgrounds/show.html.slim +59 -0
- data/app/views/renalware/admin/users/_filters.html.slim +1 -1
- data/app/views/renalware/admissions/admissions/index.html.slim +2 -2
- data/app/views/renalware/admissions/consults/_form.html.slim +1 -1
- data/app/views/renalware/admissions/consults/index.html.slim +2 -2
- data/app/views/renalware/deaths/index.html.slim +18 -10
- data/app/views/renalware/events/events/toggled_cell/_biopsy.html.slim +1 -1
- data/app/views/renalware/events/events/toggled_cell/_simple.html.slim +1 -1
- data/app/views/renalware/events/events/toggled_cell/_swab.html.slim +1 -1
- data/app/views/renalware/hd/transmission_logs/index.html.slim +1 -2
- data/app/views/renalware/letters/mailshots/mailshots/_form.html.slim +2 -1
- data/app/views/renalware/mdm_patients/_patient.html.slim +1 -2
- data/app/views/renalware/medications/drug_types/prescriptions/_filters.html.slim +1 -3
- data/app/views/renalware/medications/home_delivery/prescriptions/index.html.slim +51 -0
- data/app/views/renalware/medications/prescriptions/_filter_form.html.slim +1 -1
- data/app/views/renalware/medications/prescriptions/_form.html.slim +20 -12
- data/app/views/renalware/navigation/_renal.html.slim +2 -0
- data/app/views/renalware/patients/_header.html.slim +1 -1
- data/app/views/renalware/patients/alerts/_alert.html.slim +1 -1
- data/app/views/renalware/patients/alerts/_form.html.slim +1 -1
- data/app/views/renalware/patients/patients/_form.html.slim +1 -2
- data/app/views/renalware/patients/patients/new.html.slim +6 -5
- data/app/views/renalware/patients/patients/show/_primary_care_physician.html.slim +9 -1
- data/app/views/renalware/patients/primary_care_physician/destroy.js.erb +1 -0
- data/app/views/renalware/pd/dashboards/show/_page_actions.html.slim +2 -2
- 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/reporting/audits/edit.html.slim +1 -3
- data/app/views/renalware/research/_alert.html.slim +1 -1
- data/app/views/renalware/snippets/snippets/_row.html.slim +3 -4
- data/app/views/renalware/system/downloads/index.html.slim +2 -3
- data/app/views/renalware/transplants/live_donors/_filters.html.slim +2 -2
- data/config/initializers/groupdate.rb +3 -0
- data/config/locales/renalware/medications/prescription.yml +2 -1
- data/config/locales/renalware/navigation/renal.en.yml +1 -0
- data/config/routes/admin.rb +5 -0
- data/config/routes/medications.rb +5 -0
- data/config/routes/patients.rb +1 -1
- data/db/functions/pathology_chart_data_v01.sql +13 -0
- data/db/migrate/20200313120655_create_pathology_chart_data_function.rb +13 -0
- data/lib/renalware/engine.rb +1 -0
- data/lib/renalware/version.rb +1 -1
- data/spec/support/pages/medications/prescription_fom.rb +2 -2
- data/vendor/assets/javascripts/renalware/highcharts.js +506 -0
- metadata +32 -5
- data/app/views/renalware/medications/home_delivery/prescriptions/index.pdf.slim +0 -103
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: renalware-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.147
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airslie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview-component
|
@@ -178,6 +178,20 @@ dependencies:
|
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: 1.2.11
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: concurrent-ruby
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 1.1.6
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 1.1.6
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
196
|
name: cronex
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -590,14 +604,14 @@ dependencies:
|
|
590
604
|
requirements:
|
591
605
|
- - "~>"
|
592
606
|
- !ruby/object:Gem::Version
|
593
|
-
version: 2.
|
607
|
+
version: 2.1.4
|
594
608
|
type: :runtime
|
595
609
|
prerelease: false
|
596
610
|
version_requirements: !ruby/object:Gem::Requirement
|
597
611
|
requirements:
|
598
612
|
- - "~>"
|
599
613
|
- !ruby/object:Gem::Version
|
600
|
-
version: 2.
|
614
|
+
version: 2.1.4
|
601
615
|
- !ruby/object:Gem::Dependency
|
602
616
|
name: paper_trail
|
603
617
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1218,6 +1232,7 @@ files:
|
|
1218
1232
|
- app/controllers/renalware/admin/cache_controller.rb
|
1219
1233
|
- app/controllers/renalware/admin/dashboards_controller.rb
|
1220
1234
|
- app/controllers/renalware/admin/feeds/files_controller.rb
|
1235
|
+
- app/controllers/renalware/admin/playgrounds_controller.rb
|
1221
1236
|
- app/controllers/renalware/admin/users_controller.rb
|
1222
1237
|
- app/controllers/renalware/admissions/admissions_controller.rb
|
1223
1238
|
- app/controllers/renalware/admissions/consults_controller.rb
|
@@ -1305,6 +1320,7 @@ files:
|
|
1305
1320
|
- app/controllers/renalware/mdm_patients_controller.rb
|
1306
1321
|
- app/controllers/renalware/medications/drug_types/prescriptions_controller.rb
|
1307
1322
|
- app/controllers/renalware/medications/home_delivery/events_controller.rb
|
1323
|
+
- app/controllers/renalware/medications/home_delivery/prescriptions_controller.rb
|
1308
1324
|
- app/controllers/renalware/medications/prescriptions_controller.rb
|
1309
1325
|
- app/controllers/renalware/medications/terminations_controller.rb
|
1310
1326
|
- app/controllers/renalware/messaging/internal/messages_controller.rb
|
@@ -1474,9 +1490,11 @@ files:
|
|
1474
1490
|
- app/inputs/simple_time_input.rb
|
1475
1491
|
- app/inputs/trix_editor_input.rb
|
1476
1492
|
- app/inputs/user_picker_input.rb
|
1493
|
+
- app/javascript/renalware/controllers/charts_controller.js
|
1477
1494
|
- app/javascript/renalware/controllers/hd/prescription_administration_controller.js
|
1478
1495
|
- app/javascript/renalware/controllers/letters/form_controller.js
|
1479
1496
|
- app/javascript/renalware/controllers/medications/home_delivery_modal_controller.js
|
1497
|
+
- app/javascript/renalware/controllers/medications/prescriptions_controller.js
|
1480
1498
|
- app/javascript/renalware/controllers/snippets_controller.js
|
1481
1499
|
- app/javascript/renalware/controllers/toggle_controller.js
|
1482
1500
|
- app/javascript/renalware/index.js
|
@@ -1762,6 +1780,7 @@ files:
|
|
1762
1780
|
- app/models/renalware/medications/delivery/event.rb
|
1763
1781
|
- app/models/renalware/medications/delivery/event_prescription.rb
|
1764
1782
|
- app/models/renalware/medications/delivery/homecare_forms_adapter.rb
|
1783
|
+
- app/models/renalware/medications/delivery/prescriptions_due_for_delivery_query.rb
|
1765
1784
|
- app/models/renalware/medications/delivery/purchase_order_number.rb
|
1766
1785
|
- app/models/renalware/medications/dose_unit.rb
|
1767
1786
|
- app/models/renalware/medications/medication_route.rb
|
@@ -1880,6 +1899,7 @@ files:
|
|
1880
1899
|
- app/models/renalware/patients/bookmarks_query.rb
|
1881
1900
|
- app/models/renalware/patients/calculate_age.rb
|
1882
1901
|
- app/models/renalware/patients/clear_patient_ukrdc_data.rb
|
1902
|
+
- app/models/renalware/patients/deceased_patients_query.rb
|
1883
1903
|
- app/models/renalware/patients/ethnicity.rb
|
1884
1904
|
- app/models/renalware/patients/idempotent_create_patient.rb
|
1885
1905
|
- app/models/renalware/patients/ingestion/command.rb
|
@@ -2345,6 +2365,8 @@ files:
|
|
2345
2365
|
- app/views/renalware/admin/cache/show.html.slim
|
2346
2366
|
- app/views/renalware/admin/dashboards/show.html.slim
|
2347
2367
|
- app/views/renalware/admin/feeds/files/index.html.slim
|
2368
|
+
- app/views/renalware/admin/playgrounds/pathology_chart_data.js.erb
|
2369
|
+
- app/views/renalware/admin/playgrounds/show.html.slim
|
2348
2370
|
- app/views/renalware/admin/user_mailer/approval.text.erb
|
2349
2371
|
- app/views/renalware/admin/user_mailer/unexpiry.text.erb
|
2350
2372
|
- app/views/renalware/admin/users/_filters.html.slim
|
@@ -2730,7 +2752,7 @@ files:
|
|
2730
2752
|
- app/views/renalware/medications/home_delivery/events/edit.js.erb
|
2731
2753
|
- app/views/renalware/medications/home_delivery/events/new.js.erb
|
2732
2754
|
- app/views/renalware/medications/home_delivery/events/update.js.erb
|
2733
|
-
- app/views/renalware/medications/home_delivery/prescriptions/index.
|
2755
|
+
- app/views/renalware/medications/home_delivery/prescriptions/index.html.slim
|
2734
2756
|
- app/views/renalware/medications/prescriptions/_current.html.slim
|
2735
2757
|
- app/views/renalware/medications/prescriptions/_extended_patient_details.html.slim
|
2736
2758
|
- app/views/renalware/medications/prescriptions/_filter_form.html.slim
|
@@ -2871,6 +2893,7 @@ files:
|
|
2871
2893
|
- app/views/renalware/patients/patients/show/_referral.html.slim
|
2872
2894
|
- app/views/renalware/patients/patients/show/_ukrdc_preferences.html.slim
|
2873
2895
|
- app/views/renalware/patients/primary_care_physician/_form.html.slim
|
2896
|
+
- app/views/renalware/patients/primary_care_physician/destroy.js.erb
|
2874
2897
|
- app/views/renalware/patients/primary_care_physician/edit.html.slim
|
2875
2898
|
- app/views/renalware/patients/primary_care_physician/edit.js.erb
|
2876
2899
|
- app/views/renalware/patients/primary_care_physicians/_form.html.slim
|
@@ -3192,6 +3215,7 @@ files:
|
|
3192
3215
|
- config/initializers/devise.rb
|
3193
3216
|
- config/initializers/devise_security.rb
|
3194
3217
|
- config/initializers/devise_security_extension.rb
|
3218
|
+
- config/initializers/groupdate.rb
|
3195
3219
|
- config/initializers/inflections.rb
|
3196
3220
|
- config/initializers/kaminari.rb
|
3197
3221
|
- config/initializers/mailer_previews.rb
|
@@ -3358,6 +3382,7 @@ files:
|
|
3358
3382
|
- db/functions/import_practice_memberships_csv_v03.sql
|
3359
3383
|
- db/functions/import_practices_csv_v01.sql
|
3360
3384
|
- db/functions/new_hl7_message_v01.sql
|
3385
|
+
- db/functions/pathology_chart_data_v01.sql
|
3361
3386
|
- db/functions/preprocess_hl7_message_v01.sql
|
3362
3387
|
- db/functions/preprocess_hl7_message_v02.sql
|
3363
3388
|
- db/functions/pseudo_encrypt_v01.sql
|
@@ -3871,6 +3896,7 @@ files:
|
|
3871
3896
|
- db/migrate/20200301124200_create_medication_delivery_events.rb
|
3872
3897
|
- db/migrate/20200301124300_create_medication_delivery_event_prescriptions.rb
|
3873
3898
|
- db/migrate/20200306183423_add_next_delivery_date_to_prescriptions.rb
|
3899
|
+
- db/migrate/20200313120655_create_pathology_chart_data_function.rb
|
3874
3900
|
- db/migrate/20200316131136_add_covid_19_to_patient_alerts.rb
|
3875
3901
|
- db/migrate/20200318134807_create_letter_mailshots.rb
|
3876
3902
|
- db/migrate/20200320103052_add_status_to_letter_mailshot_mailshots.rb
|
@@ -4274,6 +4300,7 @@ files:
|
|
4274
4300
|
- spec/support/webmock.rb
|
4275
4301
|
- spec/support/xml_spec_helper.rb
|
4276
4302
|
- vendor/assets/javascripts/renalware/double_scroll.js
|
4303
|
+
- vendor/assets/javascripts/renalware/highcharts.js
|
4277
4304
|
- vendor/assets/javascripts/renalware/iframeResizer.contentWindow.js
|
4278
4305
|
- vendor/assets/javascripts/renalware/iframeResizer.js
|
4279
4306
|
- vendor/assets/javascripts/renalware/jquery-readyselector.js
|
@@ -1,103 +0,0 @@
|
|
1
|
-
- clinical_patient = Renalware::Clinical.cast_patient(patient)
|
2
|
-
|
3
|
-
html
|
4
|
-
meta content=("text/html; charset=UTF-8") http-equiv="Content-Type" /
|
5
|
-
meta charset="utf-8" /
|
6
|
-
|
7
|
-
head
|
8
|
-
= wicked_pdf_stylesheet_link_tag "renalware/medications_pdf"
|
9
|
-
heading
|
10
|
-
.references
|
11
|
-
.purchase_order_no= "PO: #{purchase_order_number}"
|
12
|
-
.our-ref= "RW ref: #{patient.hospital_identifier}"
|
13
|
-
.drug_types= "Drug types: #{drug_types.map(&:name).join(", ")}"
|
14
|
-
span.logo
|
15
|
-
= wicked_pdf_image_tag "renalware/NHS-Black.jpg", width: 50
|
16
|
-
.address
|
17
|
-
= Renalware.config.hospital_address.split(",").join("<br>").html_safe
|
18
|
-
|
19
|
-
main
|
20
|
-
h1 Home Delivery Medication List
|
21
|
-
= "As at #{l(Time.zone.now)}"
|
22
|
-
|
23
|
-
section.extended_patient_details
|
24
|
-
- with_format(:html) do
|
25
|
-
= render "renalware/medications/prescriptions/extended_patient_details", patient: patient
|
26
|
-
|
27
|
-
section.prescriptions
|
28
|
-
table
|
29
|
-
thead
|
30
|
-
th.date Date
|
31
|
-
th.drug Drug
|
32
|
-
th.dose Dose
|
33
|
-
th.route Route
|
34
|
-
th.freq Freq
|
35
|
-
th.comments Pharmacy comments
|
36
|
-
tbody
|
37
|
-
- prescriptions.each do |prescription|
|
38
|
-
tr
|
39
|
-
td.date= l(prescription.prescribed_on)
|
40
|
-
td= prescription.drug.name
|
41
|
-
td= prescription.dose
|
42
|
-
td= prescription.medication_route.code
|
43
|
-
td= prescription.frequency
|
44
|
-
td
|
45
|
-
|
46
|
-
section.allergies
|
47
|
-
table
|
48
|
-
thead
|
49
|
-
th
|
50
|
-
= clinical_patient.allergy_status&.text
|
51
|
-
- if clinical_patient.allergy_status_updated_at
|
52
|
-
span.allergy_status_updated_at
|
53
|
-
|
|
54
|
-
= l(clinical_patient.allergy_status_updated_at&.to_date)
|
55
|
-
tbody
|
56
|
-
- clinical_patient.allergies.each do |allergy|
|
57
|
-
tr
|
58
|
-
td= allergy.description
|
59
|
-
|
60
|
-
section.checks
|
61
|
-
table
|
62
|
-
tbody
|
63
|
-
tr
|
64
|
-
th Repeat prescription for
|
65
|
-
td
|
66
|
-
span 3 months
|
67
|
-
= wicked_pdf_image_tag "renalware/checkbox-empty"
|
68
|
-
td
|
69
|
-
span 6 months
|
70
|
-
= wicked_pdf_image_tag "renalware/checkbox-empty"
|
71
|
-
tr
|
72
|
-
th Frequency of deliveries
|
73
|
-
td
|
74
|
-
span 3 months
|
75
|
-
= wicked_pdf_image_tag "renalware/checkbox-empty"
|
76
|
-
td
|
77
|
-
span 6 months
|
78
|
-
= wicked_pdf_image_tag "renalware/checkbox-empty"
|
79
|
-
|
80
|
-
section.consultant
|
81
|
-
p
|
82
|
-
b Consultant:
|
83
|
-
/ TODO: Move this logic to a presenter
|
84
|
-
- consultant = patient.named_consultant
|
85
|
-
- if consultant.present?
|
86
|
-
|
|
87
|
-
- name = consultant.signature.presence || consultant.to_s
|
88
|
-
= [name, consultant.professional_position].compact.join(", ")
|
89
|
-
- else
|
90
|
-
span
|
91
|
-
section.signoff
|
92
|
-
table
|
93
|
-
tr
|
94
|
-
td.prescriber Prescriber:
|
95
|
-
td.signature Signature:
|
96
|
-
td Date:
|
97
|
-
|
98
|
-
section.order-number
|
99
|
-
table
|
100
|
-
thead
|
101
|
-
th Order number:
|
102
|
-
p
|
103
|
-
b Other pharmacy comments:
|