renalware-core 2.0.132 → 2.0.133
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/core.js.erb +1 -1
- data/app/assets/stylesheets/renalware/core.scss +1 -1
- data/app/assets/stylesheets/renalware/modules/_clinics.scss +1 -2
- data/app/assets/stylesheets/renalware/modules/_patients.scss +1 -1
- data/app/assets/stylesheets/renalware/partials/_dashboards.scss +15 -0
- data/app/components/renalware/application_component.rb +22 -0
- data/app/components/renalware/events/biopsies_component.html.slim +14 -0
- data/app/components/renalware/events/biopsies_component.rb +20 -0
- data/app/components/renalware/letters/letters_in_progress_component.html.slim +8 -0
- data/app/components/renalware/letters/letters_in_progress_component.rb +32 -0
- data/app/components/renalware/letters/unread_electronic_ccs_component.html.slim +7 -0
- data/app/components/renalware/letters/unread_electronic_ccs_component.rb +24 -0
- data/app/components/renalware/messaging/unread_messages_component.html.slim +11 -0
- data/app/components/renalware/messaging/unread_messages_component.rb +24 -0
- data/app/components/renalware/patients/bookmarks_component.html.slim +11 -0
- data/app/components/renalware/patients/bookmarks_component.rb +22 -0
- data/app/controllers/renalware/clinical/body_compositions_controller.rb +1 -1
- data/app/controllers/renalware/pathology/code_groups_controller.rb +44 -0
- data/app/controllers/renalware/transplants/wait_lists_controller.rb +17 -8
- data/app/models/renalware/clinical/body_composition.rb +7 -0
- data/app/models/renalware/hd/mdm_patients_query.rb +10 -1
- data/app/models/renalware/pathology/code_group.rb +10 -3
- data/app/models/renalware/pathology/code_group_membership.rb +2 -0
- data/app/models/renalware/pathology/current_observation_set.rb +16 -3
- data/app/models/renalware/pathology/observations_jsonb_serializer.rb +1 -1
- data/app/models/renalware/pathology/version.rb +11 -0
- data/app/models/renalware/system/component.rb +25 -0
- data/app/models/renalware/system/dashboard.rb +20 -0
- data/app/models/renalware/system/dashboard_component.rb +17 -0
- data/app/models/renalware/transplants.rb +8 -1
- data/app/models/renalware/transplants/registrations/wait_list_form.rb +16 -0
- data/app/models/renalware/transplants/registrations/wait_list_query.rb +17 -3
- data/app/models/renalware/ukrdc/incoming/file_list.rb +1 -1
- data/app/models/renalware/ukrdc/incoming/import_surveys.rb +16 -0
- data/app/models/renalware/ukrdc/outgoing/rendering/base.rb +22 -0
- data/app/models/renalware/ukrdc/outgoing/rendering/dialysis_session.rb +2 -2
- data/app/models/renalware/ukrdc/outgoing/rendering/hd_session_observations.rb +1 -1
- data/app/models/renalware/user.rb +9 -0
- data/app/policies/renalware/hd/closed_session_policy.rb +1 -1
- data/app/policies/renalware/pathology/code_group_policy.rb +23 -0
- data/app/presenters/renalware/hd/protocol_presenter.rb +8 -2
- data/app/views/renalware/clinical/body_compositions/_form.html.slim +6 -0
- data/app/views/renalware/clinical/body_compositions/_table.html.slim +4 -0
- data/app/views/renalware/dashboard/bookmarks/_bookmark.html.slim +5 -5
- data/app/views/renalware/dashboard/bookmarks/_table.html.slim +5 -5
- data/app/views/renalware/dashboard/dashboards/_content.html.slim +4 -41
- data/app/views/renalware/dashboard/letters/_letter.html.slim +2 -2
- data/app/views/renalware/hd/mdm_patients/_patient.html.slim +5 -1
- data/app/views/renalware/hd/mdm_patients/_table.html.slim +2 -1
- data/app/views/renalware/hd/protocols/_recent_pathology.html.slim +5 -12
- data/app/views/renalware/mdm/{_biopsies.html.slim → _biopsies.html.slim.dead} +0 -0
- data/app/views/renalware/mdm_patients/_patient.html.slim +5 -1
- data/app/views/renalware/mdm_patients/_table.html.slim +1 -1
- data/app/views/renalware/medications/prescriptions/_tables.html.slim +27 -23
- data/app/views/renalware/messaging/internal/receipts/_receipt.html.slim +1 -1
- data/app/views/renalware/modalities/modalities/index.html.slim +17 -16
- data/app/views/renalware/navigation/_super_admin.html.slim +1 -0
- data/app/views/renalware/pathology/code_groups/edit.html.slim +8 -0
- data/app/views/renalware/pathology/code_groups/index.html.slim +16 -0
- data/app/views/renalware/pathology/code_groups/show.html.slim +34 -0
- data/app/views/renalware/problems/problems/index.html.slim +9 -5
- data/app/views/renalware/surveys/_eq5d_summary_part.html.slim +17 -17
- data/app/views/renalware/surveys/_pos_s_summary_part.html.slim +61 -60
- data/app/views/renalware/transplants/mdm/_bottom.html.slim +1 -1
- data/app/views/renalware/transplants/mdm_patients/_patient.html.slim +5 -1
- data/app/views/renalware/transplants/mdm_patients/_table.html.slim +1 -1
- data/app/views/renalware/transplants/wait_lists/_registration.html.slim +1 -0
- data/app/views/renalware/transplants/wait_lists/show.html.slim +24 -1
- data/config/locales/renalware/clinical/body_composition.yml +4 -0
- data/config/routes/pathology.rb +1 -0
- data/db/migrate/20200114151225_add_clinical_body_composition_cols.rb +11 -0
- data/db/migrate/20200127165951_create_pathology_versions.rb +16 -0
- data/db/migrate/20200127170711_add_created_by_to_pathology_code_groups.rb +15 -0
- data/db/migrate/20200129093835_create_system_dashboards.rb +73 -0
- data/db/seeds/default/pathology/code_groups.rb +15 -0
- data/db/seeds/default/pathology/seeds.rb +2 -1
- data/lib/core_extensions/active_record/migration_helpers.rb +3 -2
- data/lib/renalware/engine.rb +1 -1
- data/lib/renalware/version.rb +1 -1
- data/lib/tasks/spec.rake +23 -21
- data/spec/factories/clinical/body_compositions.rb +3 -1
- data/spec/factories/pathology/code_group_memberships.rb +7 -0
- data/spec/factories/pathology/code_groups.rb +13 -0
- data/spec/factories/transplants/registration_status_descriptions.rb +5 -0
- data/spec/support/devise_spec_helper.rb +24 -8
- data/spec/support/ukrdc_helpers.rb +2 -1
- metadata +53 -24
@@ -3,13 +3,14 @@
|
|
3
3
|
module UKRDCSpecHelper
|
4
4
|
def remove_all_test_files
|
5
5
|
FileUtils.rm_r Dir.glob(paths.incoming.join("*.xml"))
|
6
|
+
FileUtils.rm_r Dir.glob(paths.archive.join("*.xml"))
|
6
7
|
end
|
7
8
|
|
8
9
|
def copy_test_files_into_incoming_folder(paths:, num: 1, filename: "example.xml")
|
9
10
|
remove_all_test_files
|
10
11
|
source = file_fixture("ukrdc/incoming/#{filename}")
|
11
12
|
num.to_i.times do |idx|
|
12
|
-
destination = paths.incoming.join("#{idx}.xml")
|
13
|
+
destination = paths.incoming.join("survey_#{idx}.xml")
|
13
14
|
FileUtils.cp(source, destination)
|
14
15
|
end
|
15
16
|
end
|
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.133
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airslie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview-component
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: '1.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: active_type
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.28.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: activerecord-postgres_enum
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.6.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.6.0
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: ahoy_matey
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -464,14 +478,14 @@ dependencies:
|
|
464
478
|
requirements:
|
465
479
|
- - "~>"
|
466
480
|
- !ruby/object:Gem::Version
|
467
|
-
version: 1.1
|
481
|
+
version: '1.1'
|
468
482
|
type: :runtime
|
469
483
|
prerelease: false
|
470
484
|
version_requirements: !ruby/object:Gem::Requirement
|
471
485
|
requirements:
|
472
486
|
- - "~>"
|
473
487
|
- !ruby/object:Gem::Version
|
474
|
-
version: 1.1
|
488
|
+
version: '1.1'
|
475
489
|
- !ruby/object:Gem::Dependency
|
476
490
|
name: liquid
|
477
491
|
requirement: !ruby/object:Gem::Requirement
|
@@ -674,14 +688,14 @@ dependencies:
|
|
674
688
|
requirements:
|
675
689
|
- - "~>"
|
676
690
|
- !ruby/object:Gem::Version
|
677
|
-
version: 2.0
|
691
|
+
version: '2.0'
|
678
692
|
type: :runtime
|
679
693
|
prerelease: false
|
680
694
|
version_requirements: !ruby/object:Gem::Requirement
|
681
695
|
requirements:
|
682
696
|
- - "~>"
|
683
697
|
- !ruby/object:Gem::Version
|
684
|
-
version: 2.0
|
698
|
+
version: '2.0'
|
685
699
|
- !ruby/object:Gem::Dependency
|
686
700
|
name: rack-attack
|
687
701
|
requirement: !ruby/object:Gem::Requirement
|
@@ -710,20 +724,6 @@ dependencies:
|
|
710
724
|
- - ">="
|
711
725
|
- !ruby/object:Gem::Version
|
712
726
|
version: '5.2'
|
713
|
-
- !ruby/object:Gem::Dependency
|
714
|
-
name: rails-assets-foundation-datepicker
|
715
|
-
requirement: !ruby/object:Gem::Requirement
|
716
|
-
requirements:
|
717
|
-
- - '='
|
718
|
-
- !ruby/object:Gem::Version
|
719
|
-
version: 1.5.0
|
720
|
-
type: :runtime
|
721
|
-
prerelease: false
|
722
|
-
version_requirements: !ruby/object:Gem::Requirement
|
723
|
-
requirements:
|
724
|
-
- - '='
|
725
|
-
- !ruby/object:Gem::Version
|
726
|
-
version: 1.5.0
|
727
727
|
- !ruby/object:Gem::Dependency
|
728
728
|
name: ransack
|
729
729
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1126,6 +1126,7 @@ files:
|
|
1126
1126
|
- app/assets/stylesheets/renalware/partials/_clipboard.scss
|
1127
1127
|
- app/assets/stylesheets/renalware/partials/_clockpicker.scss
|
1128
1128
|
- app/assets/stylesheets/renalware/partials/_components.scss
|
1129
|
+
- app/assets/stylesheets/renalware/partials/_dashboards.scss
|
1129
1130
|
- app/assets/stylesheets/renalware/partials/_datepicker.scss
|
1130
1131
|
- app/assets/stylesheets/renalware/partials/_disabled_block.scss
|
1131
1132
|
- app/assets/stylesheets/renalware/partials/_document.scss
|
@@ -1156,6 +1157,17 @@ files:
|
|
1156
1157
|
- app/assets/stylesheets/renalware/protocol_pdf.scss
|
1157
1158
|
- app/assets/stylesheets/renalware/table_pdf.scss
|
1158
1159
|
- app/assets/stylesheets/renalware/watermark.scss
|
1160
|
+
- app/components/renalware/application_component.rb
|
1161
|
+
- app/components/renalware/events/biopsies_component.html.slim
|
1162
|
+
- app/components/renalware/events/biopsies_component.rb
|
1163
|
+
- app/components/renalware/letters/letters_in_progress_component.html.slim
|
1164
|
+
- app/components/renalware/letters/letters_in_progress_component.rb
|
1165
|
+
- app/components/renalware/letters/unread_electronic_ccs_component.html.slim
|
1166
|
+
- app/components/renalware/letters/unread_electronic_ccs_component.rb
|
1167
|
+
- app/components/renalware/messaging/unread_messages_component.html.slim
|
1168
|
+
- app/components/renalware/messaging/unread_messages_component.rb
|
1169
|
+
- app/components/renalware/patients/bookmarks_component.html.slim
|
1170
|
+
- app/components/renalware/patients/bookmarks_component.rb
|
1159
1171
|
- app/components/renalware/patients/side_menu_component.html.slim
|
1160
1172
|
- app/components/renalware/patients/side_menu_component.rb
|
1161
1173
|
- app/controllers/renalware/accesses/assessments_controller.rb
|
@@ -1258,6 +1270,7 @@ files:
|
|
1258
1270
|
- app/controllers/renalware/modalities/modalities_controller.rb
|
1259
1271
|
- app/controllers/renalware/modalities/reasons_controller.rb
|
1260
1272
|
- app/controllers/renalware/pathology/base_controller.rb
|
1273
|
+
- app/controllers/renalware/pathology/code_groups_controller.rb
|
1261
1274
|
- app/controllers/renalware/pathology/current_observation_results_controller.rb
|
1262
1275
|
- app/controllers/renalware/pathology/historical_observation_results_controller.rb
|
1263
1276
|
- app/controllers/renalware/pathology/observation_requests_controller.rb
|
@@ -1797,6 +1810,7 @@ files:
|
|
1797
1810
|
- app/models/renalware/pathology/requests/requests_factory.rb
|
1798
1811
|
- app/models/renalware/pathology/requests/sample_type.rb
|
1799
1812
|
- app/models/renalware/pathology/results.rb
|
1813
|
+
- app/models/renalware/pathology/version.rb
|
1800
1814
|
- app/models/renalware/pathology/view_observation_results.rb.dead
|
1801
1815
|
- app/models/renalware/patient.rb
|
1802
1816
|
- app/models/renalware/patients.rb
|
@@ -1916,7 +1930,10 @@ files:
|
|
1916
1930
|
- app/models/renalware/surveys/survey.rb
|
1917
1931
|
- app/models/renalware/system.rb
|
1918
1932
|
- app/models/renalware/system/api_log.rb
|
1933
|
+
- app/models/renalware/system/component.rb
|
1919
1934
|
- app/models/renalware/system/country.rb
|
1935
|
+
- app/models/renalware/system/dashboard.rb
|
1936
|
+
- app/models/renalware/system/dashboard_component.rb
|
1920
1937
|
- app/models/renalware/system/download.rb
|
1921
1938
|
- app/models/renalware/system/download_query.rb
|
1922
1939
|
- app/models/renalware/system/event.rb
|
@@ -1950,6 +1967,7 @@ files:
|
|
1950
1967
|
- app/models/renalware/transplants/registration.rb
|
1951
1968
|
- app/models/renalware/transplants/registration_status.rb
|
1952
1969
|
- app/models/renalware/transplants/registration_status_description.rb
|
1970
|
+
- app/models/renalware/transplants/registrations/wait_list_form.rb
|
1953
1971
|
- app/models/renalware/transplants/registrations/wait_list_query.rb
|
1954
1972
|
- app/models/renalware/transplants/rejection_episode.rb
|
1955
1973
|
- app/models/renalware/transplants/rejection_treatment.rb
|
@@ -2068,6 +2086,7 @@ files:
|
|
2068
2086
|
- app/policies/renalware/messaging/internal/message_policy.rb
|
2069
2087
|
- app/policies/renalware/messaging/internal/receipt_policy.rb
|
2070
2088
|
- app/policies/renalware/modalities/description_policy.rb
|
2089
|
+
- app/policies/renalware/pathology/code_group_policy.rb
|
2071
2090
|
- app/policies/renalware/pathology/requests/global_rule_set_policy.rb
|
2072
2091
|
- app/policies/renalware/pathology/requests/request_policy.rb
|
2073
2092
|
- app/policies/renalware/patients/alert_policy.rb
|
@@ -2639,7 +2658,7 @@ files:
|
|
2639
2658
|
- app/views/renalware/low_clearance/mdm_patients/_tabs.html.slim
|
2640
2659
|
- app/views/renalware/low_clearance/profiles/_summary.html.slim
|
2641
2660
|
- app/views/renalware/low_clearance/profiles/edit.html.slim
|
2642
|
-
- app/views/renalware/mdm/_biopsies.html.slim
|
2661
|
+
- app/views/renalware/mdm/_biopsies.html.slim.dead
|
2643
2662
|
- app/views/renalware/mdm/_clinic_visits.html.slim
|
2644
2663
|
- app/views/renalware/mdm/_events.html.slim
|
2645
2664
|
- app/views/renalware/mdm/_letters.html.slim
|
@@ -2723,6 +2742,9 @@ files:
|
|
2723
2742
|
- app/views/renalware/navigation/_user.html.slim
|
2724
2743
|
- app/views/renalware/pathology/_navigation.html.slim
|
2725
2744
|
- app/views/renalware/pathology/_observations_definition_list.html.slim
|
2745
|
+
- app/views/renalware/pathology/code_groups/edit.html.slim
|
2746
|
+
- app/views/renalware/pathology/code_groups/index.html.slim
|
2747
|
+
- app/views/renalware/pathology/code_groups/show.html.slim
|
2726
2748
|
- app/views/renalware/pathology/current_observation_results/index.html.slim
|
2727
2749
|
- app/views/renalware/pathology/historical_observation_results/_table.html.slim
|
2728
2750
|
- app/views/renalware/pathology/historical_observation_results/index.html.slim
|
@@ -3785,6 +3807,10 @@ files:
|
|
3785
3807
|
- db/migrate/20200106210851_create_case_insensitive_index_on_patients.rb
|
3786
3808
|
- db/migrate/20200110153522_add_ealert_to_admission_consults.rb
|
3787
3809
|
- db/migrate/20200110160241_create_admission_specialties.rb
|
3810
|
+
- db/migrate/20200114151225_add_clinical_body_composition_cols.rb
|
3811
|
+
- db/migrate/20200127165951_create_pathology_versions.rb
|
3812
|
+
- db/migrate/20200127170711_add_created_by_to_pathology_code_groups.rb
|
3813
|
+
- db/migrate/20200129093835_create_system_dashboards.rb
|
3788
3814
|
- db/seeds.rb
|
3789
3815
|
- db/seeds/default/accesses/access_pd_catheter_insertion_techniques.csv
|
3790
3816
|
- db/seeds/default/accesses/access_pd_catheter_insertion_techniques.rb
|
@@ -3818,6 +3844,7 @@ files:
|
|
3818
3844
|
- db/seeds/default/modalities/descriptions.rb
|
3819
3845
|
- db/seeds/default/modalities/reasons.rb
|
3820
3846
|
- db/seeds/default/modalities/seeds.rb
|
3847
|
+
- db/seeds/default/pathology/code_groups.rb
|
3821
3848
|
- db/seeds/default/pathology/measurement_units.csv
|
3822
3849
|
- db/seeds/default/pathology/measurement_units.rb
|
3823
3850
|
- db/seeds/default/pathology/seeds.rb
|
@@ -4056,6 +4083,8 @@ files:
|
|
4056
4083
|
- spec/factories/modalities/modalities.rb
|
4057
4084
|
- spec/factories/modalities/modality_descriptions.rb
|
4058
4085
|
- spec/factories/modalities/modality_reasons.rb
|
4086
|
+
- spec/factories/pathology/code_group_memberships.rb
|
4087
|
+
- spec/factories/pathology/code_groups.rb
|
4059
4088
|
- spec/factories/pathology/lab.rb
|
4060
4089
|
- spec/factories/pathology/measurement_units.rb
|
4061
4090
|
- spec/factories/pathology/observation_descriptions.rb
|
@@ -4201,7 +4230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
4201
4230
|
- !ruby/object:Gem::Version
|
4202
4231
|
version: '0'
|
4203
4232
|
requirements: []
|
4204
|
-
rubygems_version: 3.
|
4233
|
+
rubygems_version: 3.0.3
|
4205
4234
|
signing_key:
|
4206
4235
|
specification_version: 4
|
4207
4236
|
summary: Renalware core functionality as a mountable engine.
|