redox-client 0.5.0 → 0.6.0
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 +4 -4
- data/CHANGELOG.md +11 -1
- data/Gemfile.lock +4 -2
- data/lib/redox.rb +4 -0
- data/lib/redox/flowsheet/new.rb +13 -0
- data/lib/redox/models/observation.rb +23 -0
- data/lib/redox/models/observer.rb +12 -0
- data/lib/redox/models/reference_range.rb +11 -0
- data/lib/redox/source.rb +2 -1
- data/lib/redox/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fb1842a350bb3d66e94a4bb186cbbd321c0fb6ef338e79a6e59746969c7c823
|
4
|
+
data.tar.gz: 0cb76bbd62d9f9cd5971d6e7b85b6a82f7bc756755e400ebaf2ffc94aa4e1c5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebc36de5be79b0c6ad0ee7a45529d1d2ab92dfb37771cd21392fd9ef54565c02b8972a16cb741039d3cd07c14249a12b4924796621a8cf31ffdc21254a2db6f2
|
7
|
+
data.tar.gz: cf9ae7791cf26e89e3eaffec71fb8b05376c1a8d67ba0d0677f7f1eea58f14e1a76c3d4aee5bd2dc7797638311ed98041477de7f11e32922cffdd1308c9b78ba
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,15 @@
|
|
2
2
|
|
3
3
|
## [Unreleased]
|
4
4
|
### Added
|
5
|
+
- Flowsheet.New data model
|
6
|
+
|
7
|
+
### Changed
|
8
|
+
|
9
|
+
### Removed
|
10
|
+
|
11
|
+
## [0.6.0] - 2020-11-02
|
12
|
+
### Added
|
13
|
+
- Flowsheet.New data model
|
5
14
|
|
6
15
|
### Changed
|
7
16
|
|
@@ -44,4 +53,5 @@
|
|
44
53
|
[0.3.0]: https://github.com/patient-discovery/redox-client/releases/tag/v0.3.0
|
45
54
|
[0.4.0]: https://github.com/patient-discovery/redox-client/releases/tag/v0.4.0
|
46
55
|
[0.5.0]: https://github.com/patient-discovery/redox-client/releases/tag/v0.5.0
|
47
|
-
[
|
56
|
+
[0.6.0]: https://github.com/patient-discovery/redox-client/releases/tag/v0.6.0
|
57
|
+
[Unreleased]: https://github.com/patient-discovery/redox-client/compare/v0.6.0...HEAD
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
redox-client (0.
|
4
|
+
redox-client (0.6.0)
|
5
5
|
faraday (~> 1.0, >= 1.0.1)
|
6
6
|
hashie (~> 4.1)
|
7
7
|
|
@@ -11,8 +11,9 @@ GEM
|
|
11
11
|
ast (2.4.1)
|
12
12
|
diff-lcs (1.4.4)
|
13
13
|
docile (1.3.2)
|
14
|
-
faraday (1.0
|
14
|
+
faraday (1.1.0)
|
15
15
|
multipart-post (>= 1.2, < 3)
|
16
|
+
ruby2_keywords
|
16
17
|
hashie (4.1.0)
|
17
18
|
multipart-post (2.1.1)
|
18
19
|
parallel (1.19.2)
|
@@ -51,6 +52,7 @@ GEM
|
|
51
52
|
rubocop-performance (1.6.1)
|
52
53
|
rubocop (>= 0.71.0)
|
53
54
|
ruby-progressbar (1.10.1)
|
55
|
+
ruby2_keywords (0.0.2)
|
54
56
|
simplecov (0.18.5)
|
55
57
|
docile (~> 1.1)
|
56
58
|
simplecov-html (~> 0.11)
|
data/lib/redox.rb
CHANGED
@@ -12,10 +12,13 @@ require_relative "redox/models/location"
|
|
12
12
|
require_relative "redox/models/media"
|
13
13
|
require_relative "redox/models/message"
|
14
14
|
require_relative "redox/models/meta"
|
15
|
+
require_relative "redox/models/observation"
|
16
|
+
require_relative "redox/models/observer"
|
15
17
|
require_relative "redox/models/patient_identifier"
|
16
18
|
require_relative "redox/models/patient"
|
17
19
|
require_relative "redox/models/phone_number"
|
18
20
|
require_relative "redox/models/provider"
|
21
|
+
require_relative "redox/models/reference_range"
|
19
22
|
require_relative "redox/models/visit"
|
20
23
|
|
21
24
|
require_relative "redox/source"
|
@@ -25,6 +28,7 @@ require_relative "redox/file_upload"
|
|
25
28
|
require_relative "redox/patient_search/query.rb"
|
26
29
|
require_relative "redox/scheduling/booked.rb"
|
27
30
|
require_relative "redox/media/new.rb"
|
31
|
+
require_relative "redox/flowsheet/new.rb"
|
28
32
|
|
29
33
|
module Redox
|
30
34
|
class Error < StandardError
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "redox"
|
4
|
+
|
5
|
+
module Redox
|
6
|
+
module Flowsheet
|
7
|
+
class New < Models::Message
|
8
|
+
redox_property :Patient, coerce: Models::Patient
|
9
|
+
redox_property :Visit, coerce: Models::Visit
|
10
|
+
redox_property :Observations, coerce: Array[Models::Observation]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "observer"
|
4
|
+
require_relative "reference_range"
|
5
|
+
|
6
|
+
module Redox
|
7
|
+
module Models
|
8
|
+
class Observation < Redox::Model
|
9
|
+
redox_property :DateTime
|
10
|
+
redox_property :Value
|
11
|
+
redox_property :ValueType
|
12
|
+
redox_property :Units
|
13
|
+
redox_property :Code
|
14
|
+
redox_property :Codeset
|
15
|
+
redox_property :Description
|
16
|
+
redox_property :Status
|
17
|
+
redox_property :Notes, coerce: Array[String]
|
18
|
+
redox_property :Observer, coerce: Observer
|
19
|
+
redox_property :ReferenceRange, coerce: ReferenceRange
|
20
|
+
redox_property :AbnormalFlag
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/redox/source.rb
CHANGED
@@ -10,7 +10,7 @@ class Redox::Source
|
|
10
10
|
SECONDS_PER_DAY = 60 * 60 * 24
|
11
11
|
ACCESS_TOKEN_EXPIRATION_BUFFER = Rational(300, SECONDS_PER_DAY)
|
12
12
|
|
13
|
-
attr_reader :access_token_expires_at
|
13
|
+
attr_reader :endpoint, :api_key, :access_token_expires_at
|
14
14
|
|
15
15
|
def initialize(endpoint:, api_key:, secret:, test_mode: true)
|
16
16
|
super()
|
@@ -21,6 +21,7 @@ class Redox::Source
|
|
21
21
|
content_type: "application/json"
|
22
22
|
}
|
23
23
|
)
|
24
|
+
@endpoint = endpoint
|
24
25
|
@api_key = api_key
|
25
26
|
@secret = secret
|
26
27
|
@test_mode = test_mode
|
data/lib/redox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redox-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Keirnan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- Rakefile
|
144
144
|
- lib/redox.rb
|
145
145
|
- lib/redox/file_upload.rb
|
146
|
+
- lib/redox/flowsheet/new.rb
|
146
147
|
- lib/redox/media/new.rb
|
147
148
|
- lib/redox/model.rb
|
148
149
|
- lib/redox/models/address.rb
|
@@ -154,10 +155,13 @@ files:
|
|
154
155
|
- lib/redox/models/media.rb
|
155
156
|
- lib/redox/models/message.rb
|
156
157
|
- lib/redox/models/meta.rb
|
158
|
+
- lib/redox/models/observation.rb
|
159
|
+
- lib/redox/models/observer.rb
|
157
160
|
- lib/redox/models/patient.rb
|
158
161
|
- lib/redox/models/patient_identifier.rb
|
159
162
|
- lib/redox/models/phone_number.rb
|
160
163
|
- lib/redox/models/provider.rb
|
164
|
+
- lib/redox/models/reference_range.rb
|
161
165
|
- lib/redox/models/visit.rb
|
162
166
|
- lib/redox/patient_search/query.rb
|
163
167
|
- lib/redox/query.rb
|