renalware-core 2.0.165 → 2.0.166

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: 700d5b2079008a4d7003114ffc54c354e66ccc522b264cf8be06f7affef1b608
4
- data.tar.gz: 9bbb9f90eda8d067104d6bbb88d3abd47a9c31c7cd31c4913f4fe400f4d13405
3
+ metadata.gz: ac2d49cbce8125bf334c28dce8c0363c766aa0b4951509bab613eaf3c6c8cc10
4
+ data.tar.gz: 795e74e0004088a1506766f9e468b1c67be68783c664ff228ff2bd6e98f0aca4
5
5
  SHA512:
6
- metadata.gz: 34ccd19919e8e560fd814a94faaa1529ba058780b8c08afca122f737668a738ddd7865af63f8fb93446a3f18c85dfec56aaccb59429a12354c39b3f44b9779a6
7
- data.tar.gz: 03a28eee3622a1b1e856a4d36549e85bdff271cc74f1e1f0db492dfbba1f07a8fa67fd7206919b7406fac404456cb65aa36d9da17c887e3eb886578aa737232e
6
+ metadata.gz: 995cf6f9c31fc67b071e57a07f1235aeb2d86a357854a29bef6d794b9d2548a2ea485222af0bba4e6fae83cf0d8398f1b56026b9233a614c40c3a7d2e053ce3e
7
+ data.tar.gz: edbc6fdf11d7aad748f713669ccdf1a4c9a6fbe0ffc8f9f0cda3fec4e7a8c875593b4c98e9983e2db331bc617ab26bb5741d1de480bc761c43e1e68f4085f32d
@@ -1,5 +1,11 @@
1
+ ruby:
2
+ # Its possible the vaccination type has been soft-deleted so we need to use the
3
+ # #with_deleted scope. Its also possible the vaccination type row was hard deleted, so be
4
+ # sure to revert to just displaying the code from the document if this is the case.
5
+ code = event.document&.type
6
+ type = Renalware::Virology::VaccinationType.with_deleted.find_by(code: code)
7
+ title = type&.name || code&.titleize
1
8
  li.patient-alert.vaccination
2
9
  i.fas.fa-syringe
3
- - title = Renalware::Virology::VaccinationType.find_by(code: event.document&.type)&.name
4
10
  span.title= link_to title, renalware.patient_virology_dashboard_path(event.patient)
5
11
  span.date= l(event.date_time.to_date)
@@ -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.165"
8
+ VERSION = "2.0.166"
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.165
4
+ version: 2.0.166
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airslie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-20 00:00:00.000000000 Z
11
+ date: 2021-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-import