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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8b5253271aa6a0c4ab1478ab6de2c12ea8e521801108b6c5ba1a735fc147b00
4
- data.tar.gz: e006da5681751457133cb6cf6502cad223155aee5793828e9db3afae01598150
3
+ metadata.gz: 59930206018314264619ca0e71e7adb5b7429d81d16201e875e91ff7e374c355
4
+ data.tar.gz: cc08b4d43b7e797fcefa3827b89807e0d1d12ae2686fb7c672bb5469aaff0a41
5
5
  SHA512:
6
- metadata.gz: 00b62e8e01cba9b6a629be10f860ec90e833c1410a354022f686350222391a5f8248c255461771a5c70c49e4a4e572c5bc2bb671cc89d3a17833ef4acdcedc84
7
- data.tar.gz: 32bdc25680f6b9b166ecff7092e8a64088d9e64b56a67fa603e1c16e249cbb04868fc396c75f380e5ba57041a15705e5dfa5f4ece347de63c586bf99699c499b
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 && policy(Renalware::PD::PETAdequacyResult).new?,
40
- title: t(".add_pet_adequacy"),
41
- url: new_patient_pd_pet_adequacy_result_path(patient)
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
- - if current_user_is_super_admin?
44
- li.separator
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
- = dropdown_btn_item enabled: patient_on_pd,
47
- title: t(".add_unified_pet_adequacy"),
48
- url: new_patient_pd_unified_pet_adequacy_path(patient)
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
- add_index(
21
- :modality_modalities,
22
- :patient_id,
23
- unique: true,
24
- where: "ended_on is null",
25
- name: :index_modality_modalities_on_patient_id_current
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
@@ -5,6 +5,6 @@ module Renalware
5
5
  # to creat that class even though its not used. If we don't do this zeitwerk
6
6
  # complains that version.rb does export a constant called Version.
7
7
  class VersionNumber
8
- VERSION = "2.0.152"
8
+ VERSION = "2.0.153"
9
9
  end
10
10
  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.152
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-19 00:00:00.000000000 Z
11
+ date: 2020-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_type