renalware-core 2.0.93 → 2.0.94

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: cbabc9a6b80932e592c46522daa87f74509329202942f79e40347c6279c6e25f
4
- data.tar.gz: 22c9a48a4150de3041c5345cde18bb7cf13b5a48ba222a703570e900e64cbc54
3
+ metadata.gz: 5cf20592c0e0b30bb57efbe96dee286e45c0fb4625d0d32e031ef82e5d384626
4
+ data.tar.gz: 195e651b6a6fde08627371cfbc5c7332f96b881d0d6d9aff49968bc3e282839e
5
5
  SHA512:
6
- metadata.gz: ff6e99c1300a67b6ddae37837f7fdea9e5febeb47aacda2e33c6d0fed773db3d843e831761d2e0c7c03dc62bbd11bb9dbbebf6e3e2d0b4f5b9c541c0410e91e1
7
- data.tar.gz: 51986e68a6db2f82b72a216a518f9266df7e7d4b513977071b8d7474c17df0b777efd386fe10d30b022b38b0d9784215e847f5a2a3f3fd2468ad627cc876ca43
6
+ metadata.gz: cd90a68261532632e4576ce3575bfc71120176a3c89b97dd06db17a5c21c50b42edd677dc8f776c0b3a3a735bfe16c30f1f92924731993dc4153354fab9d724d
7
+ data.tar.gz: 60845e032930cdbaddd735cd949540777b02c3f4be99c6e82c951093e310f7c847d36704a8e5af996e476e74e57d586f13812692fcc229719f9db1bef5e4780c
@@ -143,10 +143,13 @@ module Renalware
143
143
  access_type_abbreviation.split(" ").first
144
144
  end
145
145
 
146
+ # We only store the abbreviated access (rr02 + " " + rr41) so to resolve rr41, take the last
147
+ # word if there are >1 words in the abbreviation
146
148
  def access_rr41_code
147
149
  return if access_type_abbreviation.blank?
148
150
 
149
- access_type_abbreviation.split(" ").last
151
+ parts = access_type_abbreviation.split(" ")
152
+ return parts.last if parts.length > 1
150
153
  end
151
154
 
152
155
  protected
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Renalware
4
- VERSION = "2.0.93"
4
+ VERSION = "2.0.94"
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.93
4
+ version: 2.0.94
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airslie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-18 00:00:00.000000000 Z
11
+ date: 2019-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_type