renalware-core 2.0.72 → 2.0.73
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/partials/_errors.scss +2 -1
- data/app/assets/stylesheets/renalware/partials/_tables.scss +10 -0
- data/app/controllers/renalware/clinics/clinic_visits_controller.rb +2 -1
- data/app/controllers/renalware/clinics/visits_controller.rb +1 -1
- data/app/helpers/renalware/definition_list_helper.rb +2 -2
- data/app/models/renalware/pathology/lab.rb +4 -0
- data/app/models/renalware/pathology/observation_requests_attributes_builder.rb +5 -2
- data/app/models/renalware/patient.rb +7 -1
- data/app/presenters/renalware/clinics/clinic_visit_presenter.rb +14 -0
- data/app/views/renalware/admissions/requests/destroy.js.erb +1 -1
- data/app/views/renalware/patients/patients/_form.html.slim +7 -6
- data/app/views/renalware/patients/patients/edit.html.slim +2 -5
- data/app/views/renalware/patients/patients/new.html.slim +2 -4
- data/config/initializers/routing_draw.rb +9 -0
- data/config/routes.rb +29 -512
- data/config/routes/accesses.rb +11 -0
- data/config/routes/admin.rb +9 -0
- data/config/routes/admissions.rb +13 -0
- data/config/routes/api.rb +22 -0
- data/config/routes/clinical.rb +11 -0
- data/config/routes/clinics.rb +8 -0
- data/config/routes/directory.rb +9 -0
- data/config/routes/drugs.rb +11 -0
- data/config/routes/events.rb +29 -0
- data/config/routes/fallbacks.rb +12 -0
- data/config/routes/hd.rb +53 -0
- data/config/routes/hospitals.rb +10 -0
- data/config/routes/letters.rb +45 -0
- data/config/routes/low_clearance.rb +16 -0
- data/config/routes/medications.rb +24 -0
- data/config/routes/messaging.rb +16 -0
- data/config/routes/modalities.rb +10 -0
- data/config/routes/pathology.rb +30 -0
- data/config/routes/patients.rb +40 -0
- data/config/routes/pd.rb +31 -0
- data/config/routes/renal.rb +22 -0
- data/config/routes/reporting.rb +6 -0
- data/config/routes/research.rb +7 -0
- data/config/routes/snippets.rb +11 -0
- data/config/routes/system.rb +40 -0
- data/config/routes/transplants.rb +45 -0
- data/config/routes/virology.rb +12 -0
- data/db/migrate/20190315125638_add_timestamps_to_pathology_description_tables.rb +10 -0
- data/db/seeds/default/system/countries.rb +5 -2
- data/lib/renalware/version.rb +1 -1
- metadata +60 -16
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
resources :snippets, controller: "snippets/snippets", except: :show do
|
4
|
+
resources :snippet_clones,
|
5
|
+
controller: "snippets/snippet_clones",
|
6
|
+
only: :create, as: :clones
|
7
|
+
resources :snippet_invocations,
|
8
|
+
controller: "snippets/snippet_invocations",
|
9
|
+
only: :create,
|
10
|
+
as: :invocations
|
11
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
namespace :system do
|
4
|
+
resources :email_templates, only: :index
|
5
|
+
resources :user_feedback, except: :destroy, controller: "user_feedback"
|
6
|
+
resources :messages
|
7
|
+
end
|
8
|
+
|
9
|
+
match "/404", to: "system/errors#not_found", via: :all
|
10
|
+
match "/500", to: "system/errors#internal_server_error", via: :all
|
11
|
+
match "/generate_test_internal_server_error",
|
12
|
+
to: "system/errors#generate_test_internal_server_error",
|
13
|
+
via: :get
|
14
|
+
resources :mock_errors, only: [:index], controller: "system/mock_errors"
|
15
|
+
|
16
|
+
devise_for :users,
|
17
|
+
class_name: "Renalware::User",
|
18
|
+
controllers: {
|
19
|
+
registrations: "renalware/devise/registrations",
|
20
|
+
sessions: "renalware/devise/sessions",
|
21
|
+
passwords: "renalware/devise/passwords"
|
22
|
+
},
|
23
|
+
module: :devise
|
24
|
+
|
25
|
+
# An ajax-polled route which will cause the users browser to redirect to the login page
|
26
|
+
# when their session expires
|
27
|
+
get "/session_timed_out" => "session_timeout#has_user_timed_out", as: "session_timed_out"
|
28
|
+
|
29
|
+
super_admin_constraint = lambda do |request|
|
30
|
+
current_user = request.env["warden"].user || Renalware::NullUser.new
|
31
|
+
current_user.has_role?(:super_admin)
|
32
|
+
end
|
33
|
+
|
34
|
+
constraints super_admin_constraint do
|
35
|
+
match "/delayed_job" => DelayedJobWeb, :anchor => false, via: [:get, :post]
|
36
|
+
end
|
37
|
+
|
38
|
+
# enable mail previews in all environments
|
39
|
+
get "/rails/mailers" => "rails/mailers#index"
|
40
|
+
get "/rails/mailers/*path" => "rails/mailers#preview"
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
resources :patients, only: [] do
|
4
|
+
namespace :transplants do
|
5
|
+
resource :mdm, only: :show, controller: "mdm"
|
6
|
+
|
7
|
+
scope "/donor" do
|
8
|
+
resource :donor_dashboard, only: :show, path: "/dashboard"
|
9
|
+
resource :donor_workup, only: [:show, :edit, :update], path: "/workup"
|
10
|
+
resources :donor_operations, except: [:index, :destroy], path: "/operations" do
|
11
|
+
resource :followup,
|
12
|
+
except: :destroy,
|
13
|
+
controller: "donor_followups",
|
14
|
+
path: "/follow_up"
|
15
|
+
end
|
16
|
+
resources :donations, except: [:index, :destroy]
|
17
|
+
resource :donor_stage, only: [:new, :create], path: "/stage"
|
18
|
+
end
|
19
|
+
|
20
|
+
scope "/recipient" do
|
21
|
+
resource :recipient_dashboard, only: :show, path: "/dashboard"
|
22
|
+
resource :recipient_workup, only: [:show, :edit, :update], path: "/workup"
|
23
|
+
resources :recipient_operations, except: [:index, :destroy], path: "/operations" do
|
24
|
+
resource :followup,
|
25
|
+
except: :destroy,
|
26
|
+
controller: "recipient_followups",
|
27
|
+
path: "/follow_up"
|
28
|
+
end
|
29
|
+
resource :registration, only: [:show, :edit, :update] do
|
30
|
+
resources :statuses, except: [:index, :show], controller: "registration_statuses"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
namespace :transplants do
|
37
|
+
constraints(named_filter: /#{Renalware::Transplants::WAITLIST_FILTERS.join("|")}/) do
|
38
|
+
get "wait_list/:named_filter", to: "wait_lists#show", as: :wait_list
|
39
|
+
end
|
40
|
+
resources :live_donors, only: :index
|
41
|
+
resources :mdm_patients, only: :index
|
42
|
+
constraints(named_filter: /(recent|on_worryboard|past_year)/) do
|
43
|
+
get "mdm_patients/:named_filter", to: "mdm_patients#index", as: :filtered_mdm_patients
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
resources :patients, only: [] do
|
4
|
+
namespace :virology do
|
5
|
+
resource :dashboard, only: :show, path: "/dashboard"
|
6
|
+
resource :profile, except: :destroy
|
7
|
+
|
8
|
+
resources :vaccinations,
|
9
|
+
only: [:new, :create, :edit, :update],
|
10
|
+
defaults: { slug: :vaccinations }
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class AddTimestampsToPathologyDescriptionTables < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
within_renalware_schema do
|
4
|
+
add_column :pathology_request_descriptions, :created_at, :datetime
|
5
|
+
add_column :pathology_request_descriptions, :updated_at, :datetime
|
6
|
+
add_column :pathology_observation_descriptions, :created_at, :datetime
|
7
|
+
add_column :pathology_observation_descriptions, :updated_at, :datetime
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -2,16 +2,19 @@
|
|
2
2
|
|
3
3
|
module Renalware
|
4
4
|
log "Adding Countries" do
|
5
|
-
return if System::Country.count
|
5
|
+
return if System::Country.count.positive?
|
6
|
+
|
6
7
|
file_path = File.join(File.dirname(__FILE__), "countries.csv")
|
7
8
|
countries = []
|
8
|
-
|
9
|
+
index = 0
|
10
|
+
CSV.foreach(file_path, headers: true) do |row|
|
9
11
|
countries << System::Country.new(
|
10
12
|
name: row["name"],
|
11
13
|
alpha2: row["alpha2"],
|
12
14
|
alpha3: row["alpha3"],
|
13
15
|
position: index
|
14
16
|
)
|
17
|
+
index += 1
|
15
18
|
end
|
16
19
|
System::Country.import! countries
|
17
20
|
end
|
data/lib/renalware/version.rb
CHANGED
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.73
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airslie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_type
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.1
|
47
|
+
version: '2.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.1
|
54
|
+
version: '2.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: attr_extras
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '6.2'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: '6.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: autoprefixer-rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,28 +212,28 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 4.
|
215
|
+
version: 4.6.0
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 4.
|
222
|
+
version: 4.6.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: dotenv-rails
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - "~>"
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version: 2.5
|
229
|
+
version: '2.5'
|
230
230
|
type: :runtime
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version: 2.5
|
236
|
+
version: '2.5'
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: dumb_delegator
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -346,6 +346,20 @@ dependencies:
|
|
346
346
|
- - "~>"
|
347
347
|
- !ruby/object:Gem::Version
|
348
348
|
version: 0.16.2
|
349
|
+
- !ruby/object:Gem::Dependency
|
350
|
+
name: i18n
|
351
|
+
requirement: !ruby/object:Gem::Requirement
|
352
|
+
requirements:
|
353
|
+
- - '='
|
354
|
+
- !ruby/object:Gem::Version
|
355
|
+
version: 1.5.3
|
356
|
+
type: :runtime
|
357
|
+
prerelease: false
|
358
|
+
version_requirements: !ruby/object:Gem::Requirement
|
359
|
+
requirements:
|
360
|
+
- - '='
|
361
|
+
- !ruby/object:Gem::Version
|
362
|
+
version: 1.5.3
|
349
363
|
- !ruby/object:Gem::Dependency
|
350
364
|
name: jbuilder
|
351
365
|
requirement: !ruby/object:Gem::Requirement
|
@@ -478,14 +492,14 @@ dependencies:
|
|
478
492
|
requirements:
|
479
493
|
- - "~>"
|
480
494
|
- !ruby/object:Gem::Version
|
481
|
-
version: 1.9
|
495
|
+
version: '1.9'
|
482
496
|
type: :runtime
|
483
497
|
prerelease: false
|
484
498
|
version_requirements: !ruby/object:Gem::Requirement
|
485
499
|
requirements:
|
486
500
|
- - "~>"
|
487
501
|
- !ruby/object:Gem::Version
|
488
|
-
version: 1.9
|
502
|
+
version: '1.9'
|
489
503
|
- !ruby/object:Gem::Dependency
|
490
504
|
name: pandoc-ruby
|
491
505
|
requirement: !ruby/object:Gem::Requirement
|
@@ -618,14 +632,14 @@ dependencies:
|
|
618
632
|
requirements:
|
619
633
|
- - "~>"
|
620
634
|
- !ruby/object:Gem::Version
|
621
|
-
version: 5.2
|
635
|
+
version: '5.2'
|
622
636
|
type: :runtime
|
623
637
|
prerelease: false
|
624
638
|
version_requirements: !ruby/object:Gem::Requirement
|
625
639
|
requirements:
|
626
640
|
- - "~>"
|
627
641
|
- !ruby/object:Gem::Version
|
628
|
-
version: 5.2
|
642
|
+
version: '5.2'
|
629
643
|
- !ruby/object:Gem::Dependency
|
630
644
|
name: rails-assets-foundation-datepicker
|
631
645
|
requirement: !ruby/object:Gem::Requirement
|
@@ -744,14 +758,14 @@ dependencies:
|
|
744
758
|
requirements:
|
745
759
|
- - "~>"
|
746
760
|
- !ruby/object:Gem::Version
|
747
|
-
version: 1.4
|
761
|
+
version: '1.4'
|
748
762
|
type: :runtime
|
749
763
|
prerelease: false
|
750
764
|
version_requirements: !ruby/object:Gem::Requirement
|
751
765
|
requirements:
|
752
766
|
- - "~>"
|
753
767
|
- !ruby/object:Gem::Version
|
754
|
-
version: 1.4
|
768
|
+
version: '1.4'
|
755
769
|
- !ruby/object:Gem::Dependency
|
756
770
|
name: simple_form
|
757
771
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1914,6 +1928,7 @@ files:
|
|
1914
1928
|
- app/presenters/renalware/clinical/dry_weights_presenter.rb
|
1915
1929
|
- app/presenters/renalware/clinical/header_presenter.rb
|
1916
1930
|
- app/presenters/renalware/clinical/profile_presenter.rb
|
1931
|
+
- app/presenters/renalware/clinics/clinic_visit_presenter.rb
|
1917
1932
|
- app/presenters/renalware/country_presenter.rb
|
1918
1933
|
- app/presenters/renalware/dashboard/dashboard_presenter.rb
|
1919
1934
|
- app/presenters/renalware/directory/person_auto_complete_presenter.rb
|
@@ -2864,6 +2879,7 @@ files:
|
|
2864
2879
|
- config/initializers/postgresql_database_tasks.rb
|
2865
2880
|
- config/initializers/ransack.rb
|
2866
2881
|
- config/initializers/renalware.rb
|
2882
|
+
- config/initializers/routing_draw.rb
|
2867
2883
|
- config/initializers/simple_form.rb
|
2868
2884
|
- config/initializers/simple_form_clock_picker.rb
|
2869
2885
|
- config/initializers/simple_form_datepicker.rb
|
@@ -2974,6 +2990,33 @@ files:
|
|
2974
2990
|
- config/locales/validates_timeliness.en.yml
|
2975
2991
|
- config/permissions.yml
|
2976
2992
|
- config/routes.rb
|
2993
|
+
- config/routes/accesses.rb
|
2994
|
+
- config/routes/admin.rb
|
2995
|
+
- config/routes/admissions.rb
|
2996
|
+
- config/routes/api.rb
|
2997
|
+
- config/routes/clinical.rb
|
2998
|
+
- config/routes/clinics.rb
|
2999
|
+
- config/routes/directory.rb
|
3000
|
+
- config/routes/drugs.rb
|
3001
|
+
- config/routes/events.rb
|
3002
|
+
- config/routes/fallbacks.rb
|
3003
|
+
- config/routes/hd.rb
|
3004
|
+
- config/routes/hospitals.rb
|
3005
|
+
- config/routes/letters.rb
|
3006
|
+
- config/routes/low_clearance.rb
|
3007
|
+
- config/routes/medications.rb
|
3008
|
+
- config/routes/messaging.rb
|
3009
|
+
- config/routes/modalities.rb
|
3010
|
+
- config/routes/pathology.rb
|
3011
|
+
- config/routes/patients.rb
|
3012
|
+
- config/routes/pd.rb
|
3013
|
+
- config/routes/renal.rb
|
3014
|
+
- config/routes/reporting.rb
|
3015
|
+
- config/routes/research.rb
|
3016
|
+
- config/routes/snippets.rb
|
3017
|
+
- config/routes/system.rb
|
3018
|
+
- config/routes/transplants.rb
|
3019
|
+
- config/routes/virology.rb
|
2977
3020
|
- config/schedule.rb.example
|
2978
3021
|
- config/spring.rb
|
2979
3022
|
- db/functions/audit_view_as_json_v01.sql
|
@@ -3412,6 +3455,7 @@ files:
|
|
3412
3455
|
- db/migrate/20190104095254_create_active_storage_tables.active_storage.rb
|
3413
3456
|
- db/migrate/20190218142207_add_filename_prefix_to_event_types.rb
|
3414
3457
|
- db/migrate/20190225103005_add_info_to_hospital_centres.rb
|
3458
|
+
- db/migrate/20190315125638_add_timestamps_to_pathology_description_tables.rb
|
3415
3459
|
- db/seeds.rb
|
3416
3460
|
- db/seeds/default/accesses/access_pd_catheter_insertion_techniques.csv
|
3417
3461
|
- db/seeds/default/accesses/access_pd_catheter_insertion_techniques.rb
|