redox 1.7 → 1.7.4

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: 1c04b4cb81d01446cc51528405960366d25934c17b46aa32eace6157d813ad5e
4
- data.tar.gz: 91949849808961f190b80eb191a82f919306c1d4760b33d353e091a85dd97b65
3
+ metadata.gz: 57da9db9aec3b58889c9c7bdbc64849f9ff608ebcb40692d4d739cdd88a75799
4
+ data.tar.gz: 48da259a058cc7dcb0ad3f35a5417f2adf4fd9f1e04853c0ddad23d61ee1167e
5
5
  SHA512:
6
- metadata.gz: a8d026210eb9615ce90417e9f8b21dbd37a4de94ab0e63aa45df41a352bb77ac5f6cedb90e7d032200be3abab4bb74a21f88771d5e50b05e949e19d75e499c21
7
- data.tar.gz: 71fa152ba6e140b375d8a33b51c188c8efc4825890323ea8075027e317d43b9147a5289f2b9e3c18e41be2c3640b633d530c0671325551fc2fb12467c2ff54a2
6
+ metadata.gz: 62f418206aab1d377c6800e8c28d2abbc1a68b9f5426875e0039bd01a7097ead79139e21166d0dec7dc08771036a8056f37254038f6800290931dadee74187ac
7
+ data.tar.gz: 4df580b57ce8ccdc0255439d3b1a1702d7dacaaf2fbd90ffe85ecaaf6aa70b5f5eabc2ddfcaa810af2819c5a5d479288f251c5ae9c6214a91e8d01c0f80427bc
data/CHANGELOG.md CHANGED
@@ -4,9 +4,27 @@ 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.4] - 2021-12-2
8
+ ### Added
9
+ - Component Model ID Property Changed
10
+
11
+ ## [1.7.3] - 2021-11-24
12
+ ### Added
13
+ - Visit#AttendingProvider and helpers for ID, IDType, FirstName, LastName
14
+
15
+ ## [1.7.2] - 2021-11-18
16
+ ### Added
17
+ - Component Model
18
+ - Notes#Components
19
+
20
+ ## [1.7.1] - 2021-10-07
21
+ ### Added
22
+ - Visit#ReferringProvider and helpers for ID, IDType, FirstName, LastName
23
+
7
24
  ## [1.7] - 2021-06-08
8
25
  ### Added
9
26
  - Notes model
27
+
10
28
  ## [1.6.1] - 2021-03-12
11
29
  ### Added
12
30
  - Media model file helper to base64 files under 200KB
@@ -160,6 +178,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
160
178
  ### Added
161
179
  - Initial Release
162
180
 
181
+ [1.7.4]: https://github.com/WeInfuse/redox/compare/v1.7.3...v1.7.4
182
+ [1.7.3]: https://github.com/WeInfuse/redox/compare/v1.7.2...v1.7.3
183
+ [1.7.2]: https://github.com/WeInfuse/redox/compare/v1.7.1...v1.7.2
184
+ [1.7.1]: https://github.com/WeInfuse/redox/compare/v1.7...v1.7.1
163
185
  [1.7]: https://github.com/WeInfuse/redox/compare/v1.6.1...v1.7
164
186
  [1.6.1]: https://github.com/WeInfuse/redox/compare/v1.6.0...v1.6.1
165
187
  [1.6.0]: https://github.com/WeInfuse/redox/compare/v1.5.2...v1.6.0
data/README.md CHANGED
@@ -111,7 +111,11 @@ end
111
111
 
112
112
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
113
113
 
114
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
114
+ To install this gem onto your local machine, run `bundle exec rake install`.
115
+
116
+ If you have already merged changes into the master branch of this repo and are looking to release a new version, remember to switch out of your local feature branch (if you are on one) to the master or main branch of this repo. Then pull all changes down so you have an up to date code base.
117
+
118
+ To actually release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
115
119
 
116
120
  ## Contributing
117
121
 
@@ -0,0 +1,13 @@
1
+ module Redox
2
+ module Models
3
+ class Component < AbstractModel
4
+ property :ID, required: false, from: :id
5
+ property :Name, required: false, from: :name
6
+ property :Value, required: false, from: :value
7
+
8
+ alias_method :id, :ID
9
+ alias_method :name, :Name
10
+ alias_method :value, :Value
11
+ end
12
+ end
13
+ end
@@ -5,11 +5,13 @@ module Redox
5
5
  property :DocumentType, from: :document_type, required: false
6
6
  property :DocumentID, from: :document_id, required: false
7
7
  property :Provider, required: false, from: :provider, default: {}
8
+ property :Components, required: false, from: :components, default: []
8
9
 
9
10
  alias_method :content_type, :ContentType
10
11
  alias_method :document_type, :DocumentType
11
12
  alias_method :document_id, :DocumentID
12
13
  alias_method :provider, :Provider
14
+ alias_method :components, :Components
13
15
  end
14
16
  end
15
17
  end
@@ -5,6 +5,18 @@ 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
+ }
14
+ DEFAULT_ATTENDING_PROVIDER = {
15
+ ID: nil,
16
+ IDType: nil,
17
+ FirstName: nil,
18
+ LastName: nil
19
+ }
8
20
 
9
21
  property :Insurances, from: :insurances, required: false, default: []
10
22
  property :Location, from: :location, required: false, default: DEFAULT_LOCATION
@@ -18,10 +30,14 @@ module Redox
18
30
  property :Equipment, from: :equipment, required: false
19
31
  property :CancelReason, from: :cancel_reason, required: false
20
32
  property :DischargeDateTime, from: :end, required: false
33
+ property :ReferringProvider, from: :referring_provider, required: false, default: DEFAULT_REFERRING_PROVIDER
34
+ property :AttendingProvider, from: :attending_provider, required: false, default: DEFAULT_ATTENDING_PROVIDER
21
35
 
22
36
  alias_method :insurances, :Insurances
23
37
  alias_method :start, :VisitDateTime
24
38
  alias_method :end, :DischargeDateTime
39
+ alias_method :referring_provider, :ReferringProvider
40
+ alias_method :attending_provider, :AttendingProvider
25
41
 
26
42
  def department=(v)
27
43
  self[:Location] ||= DEFAULT_LOCATION
@@ -35,6 +51,46 @@ module Redox
35
51
  self
36
52
  end
37
53
 
54
+ def attending_provider_id=(v)
55
+ self[:AttendingProvider] ||= DEFAULT_ATTENDING_PROVIDER
56
+ self[:AttendingProvider][:ID] = v
57
+ end
58
+
59
+ def attending_provider_id_type=(v)
60
+ self[:AttendingProvider] ||= DEFAULT_ATTENDING_PROVIDER
61
+ self[:AttendingProvider][:IDType] = v
62
+ end
63
+
64
+ def attending_provider_first_name=(v)
65
+ self[:AttendingProvider] ||= DEFAULT_ATTENDING_PROVIDER
66
+ self[:AttendingProvider][:FirstName] = v
67
+ end
68
+
69
+ def attending_provider_last_name=(v)
70
+ self[:AttendingProvider] ||= DEFAULT_ATTENDING_PROVIDER
71
+ self[:AttendingProvider][:LastName] = v
72
+ end
73
+
74
+ def referring_provider_id=(v)
75
+ self[:ReferringProvider] ||= DEFAULT_REFERRING_PROVIDER
76
+ self[:ReferringProvider][:ID] = v
77
+ end
78
+
79
+ def referring_provider_id_type=(v)
80
+ self[:ReferringProvider] ||= DEFAULT_REFERRING_PROVIDER
81
+ self[:ReferringProvider][:IDType] = v
82
+ end
83
+
84
+ def referring_provider_first_name=(v)
85
+ self[:ReferringProvider] ||= DEFAULT_REFERRING_PROVIDER
86
+ self[:ReferringProvider][:FirstName] = v
87
+ end
88
+
89
+ def referring_provider_last_name=(v)
90
+ self[:ReferringProvider] ||= DEFAULT_REFERRING_PROVIDER
91
+ self[:ReferringProvider][:LastName] = v
92
+ end
93
+
38
94
  def add_equipment(description: nil, code: nil)
39
95
  self[:Equipment] ||= []
40
96
  self[:Equipment] << { Description: description, Code: code }
data/lib/redox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Redox
2
- VERSION = '1.7'.freeze
2
+ VERSION = '1.7.4'.freeze
3
3
  end
data/lib/redox.rb CHANGED
@@ -23,6 +23,7 @@ require 'redox/models/patient/insurance'
23
23
  require 'redox/models/patient/p_c_p'
24
24
  require 'redox/models/potential_matches'
25
25
  require 'redox/models/scheduling'
26
+ require 'redox/models/component'
26
27
  require 'redox/request/request'
27
28
  require 'redox/request/financial'
28
29
  require 'redox/request/notes'
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redox
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.7'
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Clark
8
8
  - Mike Crockett
9
9
  - Mike Carr
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-06-10 00:00:00.000000000 Z
13
+ date: 2021-12-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -130,7 +130,7 @@ dependencies:
130
130
  - - "~>"
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0.9'
133
- description:
133
+ description:
134
134
  email:
135
135
  - alexander.clark@weinfuse.com
136
136
  - mike.crockett@weinfuse.com
@@ -147,6 +147,7 @@ files:
147
147
  - lib/redox.rb
148
148
  - lib/redox/authentication.rb
149
149
  - lib/redox/connection.rb
150
+ - lib/redox/models/component.rb
150
151
  - lib/redox/models/financial.rb
151
152
  - lib/redox/models/media.rb
152
153
  - lib/redox/models/media_upload.rb
@@ -182,7 +183,7 @@ licenses:
182
183
  - MIT
183
184
  metadata:
184
185
  allowed_push_host: https://rubygems.org
185
- post_install_message:
186
+ post_install_message:
186
187
  rdoc_options: []
187
188
  require_paths:
188
189
  - lib
@@ -198,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
199
  version: '0'
199
200
  requirements: []
200
201
  rubygems_version: 3.1.4
201
- signing_key:
202
+ signing_key:
202
203
  specification_version: 4
203
204
  summary: Ruby wrapper for the Redox Engine API
204
205
  test_files: []