redox 1.7 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/redox/models/visit.rb +28 -0
- data/lib/redox/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37374b76571d3588f7f710fb44e37b81aba5f6c69c321049986ef7ae9d96fab2
|
4
|
+
data.tar.gz: 909bd1b8d7314e01ec176ec15fbd615fda7491800a723d02a0fa8701f856162e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 669638a2d594663f7651845faa1e31b3a957c6ad1047b9b3e90fd410682b3da8394119c7d788db33df48fbf352a4a1b5f28347f9f8e60049e3bb8768814b693b
|
7
|
+
data.tar.gz: b6a9ac922f873cae1c32b9b57e9f878ea558f56aa0522dc144caafbc1c25d17e60a05429bc151e2888d34e391e15f912b1b244ec2891efa404190c774690c339
|
data/CHANGELOG.md
CHANGED
@@ -4,9 +4,14 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [1.7.1] - 2021-10-07
|
8
|
+
### Added
|
9
|
+
- Visit#ReferringProvider and helpers for ID, IDType, FirstName, LastName
|
10
|
+
|
7
11
|
## [1.7] - 2021-06-08
|
8
12
|
### Added
|
9
13
|
- Notes model
|
14
|
+
|
10
15
|
## [1.6.1] - 2021-03-12
|
11
16
|
### Added
|
12
17
|
- Media model file helper to base64 files under 200KB
|
data/lib/redox/models/visit.rb
CHANGED
@@ -5,6 +5,12 @@ module Redox
|
|
5
5
|
Department: nil,
|
6
6
|
Facility: nil
|
7
7
|
}
|
8
|
+
DEFAULT_REFERRING_PROVIDER = {
|
9
|
+
ID: nil,
|
10
|
+
IDType: nil,
|
11
|
+
FirstName: nil,
|
12
|
+
LastName: nil
|
13
|
+
}
|
8
14
|
|
9
15
|
property :Insurances, from: :insurances, required: false, default: []
|
10
16
|
property :Location, from: :location, required: false, default: DEFAULT_LOCATION
|
@@ -18,10 +24,12 @@ module Redox
|
|
18
24
|
property :Equipment, from: :equipment, required: false
|
19
25
|
property :CancelReason, from: :cancel_reason, required: false
|
20
26
|
property :DischargeDateTime, from: :end, required: false
|
27
|
+
property :ReferringProvider, from: :referring_provider, required: false, default: DEFAULT_REFERRING_PROVIDER
|
21
28
|
|
22
29
|
alias_method :insurances, :Insurances
|
23
30
|
alias_method :start, :VisitDateTime
|
24
31
|
alias_method :end, :DischargeDateTime
|
32
|
+
alias_method :referring_provider, :ReferringProvider
|
25
33
|
|
26
34
|
def department=(v)
|
27
35
|
self[:Location] ||= DEFAULT_LOCATION
|
@@ -35,6 +43,26 @@ module Redox
|
|
35
43
|
self
|
36
44
|
end
|
37
45
|
|
46
|
+
def referring_provider_id=(v)
|
47
|
+
self[:ReferringProvider] ||= DEFAULT_REFERRING_PROVIDER
|
48
|
+
self[:ReferringProvider][:ID] = v
|
49
|
+
end
|
50
|
+
|
51
|
+
def referring_provider_id_type=(v)
|
52
|
+
self[:ReferringProvider] ||= DEFAULT_REFERRING_PROVIDER
|
53
|
+
self[:ReferringProvider][:IDType] = v
|
54
|
+
end
|
55
|
+
|
56
|
+
def referring_provider_first_name=(v)
|
57
|
+
self[:ReferringProvider] ||= DEFAULT_REFERRING_PROVIDER
|
58
|
+
self[:ReferringProvider][:FirstName] = v
|
59
|
+
end
|
60
|
+
|
61
|
+
def referring_provider_last_name=(v)
|
62
|
+
self[:ReferringProvider] ||= DEFAULT_REFERRING_PROVIDER
|
63
|
+
self[:ReferringProvider][:LastName] = v
|
64
|
+
end
|
65
|
+
|
38
66
|
def add_equipment(description: nil, code: nil)
|
39
67
|
self[:Equipment] ||= []
|
40
68
|
self[:Equipment] << { Description: description, Code: code }
|
data/lib/redox/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Clark
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-10-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
- !ruby/object:Gem::Version
|
198
198
|
version: '0'
|
199
199
|
requirements: []
|
200
|
-
rubygems_version: 3.
|
200
|
+
rubygems_version: 3.0.3
|
201
201
|
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: Ruby wrapper for the Redox Engine API
|