renalware-core 2.0.152 → 2.0.153
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/renalware/pd/dashboards/show.html.slim +3 -3
- data/app/views/renalware/pd/dashboards/show/_page_actions.html.slim +9 -16
- data/app/views/renalware/pd/dashboards/show/_pet_adequacies.html.slim +1 -1
- data/db/migrate/20200226145010_add_unique_indexes.rb +12 -11
- data/lib/renalware/version_number.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59930206018314264619ca0e71e7adb5b7429d81d16201e875e91ff7e374c355
|
4
|
+
data.tar.gz: cc08b4d43b7e797fcefa3827b89807e0d1d12ae2686fb7c672bb5469aaff0a41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7df879a9984c7f201f5b2e46c9b84ed1ce92405adda5ea5c01027e519091e55a2e26436e61500c8c04957f8dd1ae1920c4eb696b5e68840e2e184b8e14b9c917
|
7
|
+
data.tar.gz: 856d5e9a42bf4354d1b00bc48b13ef5ecdd43004cd2a923d0c9a428bb37c35985c9679901e464f6a6440303082825f852c526f2ae764ef5352cec1c7693e23fe
|
@@ -26,14 +26,14 @@
|
|
26
26
|
exit_site_infections: dashboard.exit_site_infections,
|
27
27
|
patient: patient
|
28
28
|
|
29
|
+
= render Renalware::PD::PETResultsComponent.new(patient: patient, current_user: current_user)
|
30
|
+
= render Renalware::PD::AdequacyResultsComponent.new(patient: patient, current_user: current_user)
|
31
|
+
|
29
32
|
- if dashboard.pet_adequacies.any?
|
30
33
|
= render "renalware/pd/dashboards/show/pet_adequacies",
|
31
34
|
pet_adequacies: dashboard.pet_adequacies,
|
32
35
|
patient: patient
|
33
36
|
|
34
|
-
= render Renalware::PD::PETResultsComponent.new(patient: patient, current_user: current_user)
|
35
|
-
= render Renalware::PD::AdequacyResultsComponent.new(patient: patient, current_user: current_user)
|
36
|
-
|
37
37
|
- if dashboard.assessments.any?
|
38
38
|
= render "renalware/pd/assessments/list",
|
39
39
|
assessments: dashboard.assessments,
|
@@ -36,23 +36,16 @@ ul.f-dropdown#pd-options(data-dropdown-content aria-hidden="true")
|
|
36
36
|
title: t(".add_exit_site_infection"),
|
37
37
|
url: new_patient_pd_exit_site_infection_path(patient)
|
38
38
|
|
39
|
-
= dropdown_btn_item enabled: patient_on_pd
|
40
|
-
title: t(".
|
41
|
-
url:
|
39
|
+
= dropdown_btn_item enabled: patient_on_pd,
|
40
|
+
title: t(".add_unified_pet_adequacy"),
|
41
|
+
url: new_patient_pd_unified_pet_adequacy_path(patient)
|
42
42
|
|
43
|
-
|
44
|
-
|
43
|
+
= dropdown_btn_item enabled: patient_on_pd,
|
44
|
+
title: t(".add_pet"),
|
45
|
+
url: new_patient_pd_pet_result_path(patient)
|
45
46
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
= dropdown_btn_item enabled: patient_on_pd,
|
51
|
-
title: t(".add_pet"),
|
52
|
-
url: new_patient_pd_pet_result_path(patient)
|
53
|
-
|
54
|
-
= dropdown_btn_item enabled: patient_on_pd,
|
55
|
-
title: t(".add_adequacy"),
|
56
|
-
url: new_patient_pd_adequacy_result_path(patient)
|
47
|
+
= dropdown_btn_item enabled: patient_on_pd,
|
48
|
+
title: t(".add_adequacy"),
|
49
|
+
url: new_patient_pd_adequacy_result_path(patient)
|
57
50
|
- unless patient_on_pd
|
58
51
|
= render "modality_missing_warning", message: t(".missing_modality_warning")
|
@@ -1,2 +1,2 @@
|
|
1
|
-
= article_tag "PET/Adequacies (#{pet_adequacies.length})", class: "pet-adequacies" do
|
1
|
+
= article_tag "Legacy PET/Adequacies (#{pet_adequacies.length})", class: "pet-adequacies" do
|
2
2
|
= render "renalware/pd/pet_adequacies", local_assigns
|
@@ -1,10 +1,6 @@
|
|
1
1
|
class AddUniqueIndexes < ActiveRecord::Migration[5.2]
|
2
2
|
def change
|
3
3
|
within_renalware_schema do
|
4
|
-
# Allow only one transplant_registration per patient
|
5
|
-
remove_index :transplant_registrations, :patient_id
|
6
|
-
add_index :transplant_registrations, :patient_id, unique: true
|
7
|
-
|
8
4
|
# Allow only one un-terminated transplant_registration_status per patient
|
9
5
|
# Removed this for now as the way we update the terminated_on in the model
|
10
6
|
# prevents us from enforcing this constraint atm.
|
@@ -17,13 +13,14 @@ class AddUniqueIndexes < ActiveRecord::Migration[5.2]
|
|
17
13
|
# )
|
18
14
|
|
19
15
|
# Allow only one current modality_modalities per patient
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
16
|
+
# Removed until we have had a change to housekeep the duplicates
|
17
|
+
# add_index(
|
18
|
+
# :modality_modalities,
|
19
|
+
# :patient_id,
|
20
|
+
# unique: true,
|
21
|
+
# where: "ended_on is null",
|
22
|
+
# name: :index_modality_modalities_on_patient_id_current
|
23
|
+
# )
|
27
24
|
|
28
25
|
# Removed this for now as prevents adding new profiles. Need to address holistically in
|
29
26
|
# a separate PR
|
@@ -38,6 +35,10 @@ class AddUniqueIndexes < ActiveRecord::Migration[5.2]
|
|
38
35
|
# name: :index_access_profiles_on_patient_id_current
|
39
36
|
# )
|
40
37
|
|
38
|
+
# Allow only one transplant_registration per patient
|
39
|
+
remove_index :transplant_registrations, :patient_id
|
40
|
+
add_index :transplant_registrations, :patient_id, unique: true
|
41
|
+
|
41
42
|
# Allow only one renal_profile per patient
|
42
43
|
remove_index :renal_profiles, :patient_id
|
43
44
|
add_index :renal_profiles, :patient_id, unique: true
|
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.153
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airslie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_type
|