renalware-core 2.0.140 → 2.0.141

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abfba627f20bbeeb5aa182276641415ee232b06c18828704f79d39dbef50b8b8
4
- data.tar.gz: 6fc22ef861076f9267a984f28b422352cdd5456d53604022235ea7066888cef2
3
+ metadata.gz: 30f65e516e0da6ae8db12d36f5ea5301c4e416c9d2927c7799ba919f8a527d56
4
+ data.tar.gz: e031a8f33824a002861dad6ae50858ddedc42cd269af0d08d15e0a3fa80d02af
5
5
  SHA512:
6
- metadata.gz: 9cfaafd2587fbb7f516bf1ce666582301dc289e6b51590152d7520032ec4f021dbda8a087209f5741b3fc9013b1764ac4d6e7db6360bc4874d49fea7b09ad323
7
- data.tar.gz: 23d14274d5a863b32913c964e5d3fbce3ee7de0fec570767979424f6c6ae69cd64b7d5ec310f37b77cf71220ecffd112fb7a033ebb7a55d7972c68d4c415f647
6
+ metadata.gz: fb291f2c1a1ae1ed9a543d2199ac332687548463c753a0f57de4685c6755bf4ce851620da7acf8c898dfc6a242a6e91ff066712bf51146847a1c5dd7ddc94b9c
7
+ data.tar.gz: c42a72399734c30f9d796fdcad34b2ebc915d467adf6af4ce2f6e5a18bde6ca847d5751ab7c87d58eb15ad65796a1d5e1098bc877702b0fd9f005073d61967e8
@@ -3914,7 +3914,7 @@ var _default$5 = function(_Controller) {
3914
3914
  key: "openRemotePartial",
3915
3915
  value: function openRemotePartial() {
3916
3916
  $$3(this.containerTarget).html("");
3917
- url = this.data.get("url");
3917
+ var url = this.data.get("url");
3918
3918
  $$3(this.containerTarget).load(url).foundation("reveal", "open");
3919
3919
  }
3920
3920
  } ]);
@@ -18,5 +18,4 @@ ul.f-dropdown#hd-prescription-options(data-dropdown-content aria-hidden="true")
18
18
  data: { "reveal-id" => "hd-prescription-administration-modal",
19
19
  "reveal-ajax" => "true" }
20
20
 
21
- / The modal dialog container for HD Prescription Administration
22
- #hd-prescription-administration-modal.reveal-modal.medium(data-reveal)
21
+ = render "renalware/hd/prescription_administrations/dialog_placeholder"
@@ -13,7 +13,7 @@ export default class extends Controller {
13
13
  // Open a dialog using a url to load a partial via ajax.
14
14
  openRemotePartial() {
15
15
  $(this.containerTarget).html("") // prevent old content from being initially re-displayed
16
- url = this.data.get("url")
17
- $(this.containerTarget).load(url).foundation('reveal', 'open');
16
+ const url = this.data.get("url")
17
+ $(this.containerTarget).load(url).foundation("reveal", "open")
18
18
  }
19
19
  }
@@ -9,7 +9,7 @@ export default class extends Controller {
9
9
  // Submit and re-display the form when 'drug type' or 'prescription duration'
10
10
  // dropdowns are changed
11
11
  refreshForm() {
12
- $(this.formTarget[0]).trigger('submit.rails');
12
+ $(this.formTarget[0]).trigger("submit.rails")
13
13
  }
14
14
 
15
15
  // When the user has clicked Print (launching the PDF in a new tab), hide
@@ -41,7 +41,9 @@ module Renalware
41
41
  consultant: patient.named_consultant&.to_s,
42
42
  generated_at: Time.zone.now,
43
43
  hospital_name: Renalware.config.hospital_name,
44
- hospital_address: hospital_address
44
+ hospital_address: hospital_address,
45
+ hospital_department: Renalware.config.hospital_department,
46
+ hospital_telephone: Renalware.config.telephone_on_homecare_delivery_forms
45
47
  )
46
48
 
47
49
  if patient.current_address
@@ -0,0 +1,2 @@
1
+ / The modal dialog container for HD Prescription Administration
2
+ #hd-prescription-administration-modal.reveal-modal.medium(data-reveal)
@@ -1,3 +1,4 @@
1
1
  = within_patient_layout(title: "Drugs Given on HD") do
2
+ = render "renalware/hd/prescription_administrations/dialog_placeholder"
2
3
  = render "table", prescription_administrations: prescription_administrations
3
4
  = paginate prescription_administrations
@@ -24,6 +24,10 @@ module Renalware
24
24
  config_accessor(:site_name) { "Renalware" }
25
25
  config_accessor(:hospital_name) { ENV.fetch("HOSPITAL_NAME", "KINGS COLLEGE HOSPITAL") }
26
26
  config_accessor(:hospital_address) { ENV.fetch("HOSPITAL_ADDRESS", "") } # comma-delimited
27
+ config_accessor(:telephone_on_homecare_delivery_forms) {
28
+ ENV.fetch("TELEPHONE_ON_HOMECARE_DELIVERY_FORMS", "")
29
+ }
30
+ config_accessor(:hospital_department) { ENV.fetch("HOSPITAL_DEPARTMENT", "Renal") }
27
31
  config_accessor(:delay_after_which_a_finished_session_becomes_immutable) { 6.hours }
28
32
  config_accessor(:new_clinic_visit_deletion_window) { 24.hours }
29
33
  config_accessor(:new_clinic_visit_edit_window) { 7.days }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Renalware
4
- VERSION = "2.0.140"
4
+ VERSION = "2.0.141"
5
5
  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.140
4
+ version: 2.0.141
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-09 00:00:00.000000000 Z
11
+ date: 2020-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview-component
@@ -772,14 +772,14 @@ dependencies:
772
772
  requirements:
773
773
  - - ">="
774
774
  - !ruby/object:Gem::Version
775
- version: 0.1.3
775
+ version: 0.1.5
776
776
  type: :runtime
777
777
  prerelease: false
778
778
  version_requirements: !ruby/object:Gem::Requirement
779
779
  requirements:
780
780
  - - ">="
781
781
  - !ruby/object:Gem::Version
782
- version: 0.1.3
782
+ version: 0.1.5
783
783
  - !ruby/object:Gem::Dependency
784
784
  name: ruby-hl7
785
785
  requirement: !ruby/object:Gem::Requirement
@@ -2527,6 +2527,7 @@ files:
2527
2527
  - app/views/renalware/hd/preference_sets/_form.html.slim
2528
2528
  - app/views/renalware/hd/preference_sets/_summary.html.slim
2529
2529
  - app/views/renalware/hd/preference_sets/edit.html.slim
2530
+ - app/views/renalware/hd/prescription_administrations/_dialog_placeholder.html.slim
2530
2531
  - app/views/renalware/hd/prescription_administrations/_form.html.slim
2531
2532
  - app/views/renalware/hd/prescription_administrations/_row.html.slim
2532
2533
  - app/views/renalware/hd/prescription_administrations/_table.html.slim