redox 1.6.1 → 1.7

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: afc5e51c1e217d2d7571729c5ed5c0a6e97e1d3903c00d6ca2b8e83be2399df6
4
- data.tar.gz: 1c6d2b0de046b1c2d9b9724fdd0679d5217d1bc955015fa473203d6c0d82e1dc
3
+ metadata.gz: 1c04b4cb81d01446cc51528405960366d25934c17b46aa32eace6157d813ad5e
4
+ data.tar.gz: 91949849808961f190b80eb191a82f919306c1d4760b33d353e091a85dd97b65
5
5
  SHA512:
6
- metadata.gz: 621a51db8bd3fe0a420ad1b156c57ae3b54a520be56f8066465b2c71f58925d03e0014ad62f8fd9a0583c1efc8b89d0c61706a5be5b05c21480c02b902ff89c6
7
- data.tar.gz: 5e07da2adc3fea279fc2019d0d0c12a86def95f7bb4b966a637bbb2b5d4b68d710cd6f623ddecf6e0034489f5e33a9128cad7a806c1a9bcf34c586a43c769e61
6
+ metadata.gz: a8d026210eb9615ce90417e9f8b21dbd37a4de94ab0e63aa45df41a352bb77ac5f6cedb90e7d032200be3abab4bb74a21f88771d5e50b05e949e19d75e499c21
7
+ data.tar.gz: 71fa152ba6e140b375d8a33b51c188c8efc4825890323ea8075027e317d43b9147a5289f2b9e3c18e41be2c3640b633d530c0671325551fc2fb12467c2ff54a2
data/CHANGELOG.md CHANGED
@@ -4,6 +4,9 @@ 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] - 2021-06-08
8
+ ### Added
9
+ - Notes model
7
10
  ## [1.6.1] - 2021-03-12
8
11
  ### Added
9
12
  - Media model file helper to base64 files under 200KB
@@ -157,6 +160,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
157
160
  ### Added
158
161
  - Initial Release
159
162
 
163
+ [1.7]: https://github.com/WeInfuse/redox/compare/v1.6.1...v1.7
160
164
  [1.6.1]: https://github.com/WeInfuse/redox/compare/v1.6.0...v1.6.1
161
165
  [1.6.0]: https://github.com/WeInfuse/redox/compare/v1.5.2...v1.6.0
162
166
  [1.5.2]: https://github.com/WeInfuse/redox/compare/v1.5.1...v1.5.2
data/lib/redox.rb CHANGED
@@ -12,6 +12,8 @@ require 'redox/models/provider'
12
12
  require 'redox/models/visit'
13
13
  require 'redox/models/transaction'
14
14
  require 'redox/models/financial'
15
+ require 'redox/models/notes'
16
+ require 'redox/models/note'
15
17
  require 'redox/models/media'
16
18
  require 'redox/models/media_upload'
17
19
  require 'redox/models/patient/demographics'
@@ -23,6 +25,7 @@ require 'redox/models/potential_matches'
23
25
  require 'redox/models/scheduling'
24
26
  require 'redox/request/request'
25
27
  require 'redox/request/financial'
28
+ require 'redox/request/notes'
26
29
  require 'redox/request/patient_admin'
27
30
  require 'redox/request/patient_search'
28
31
  require 'redox/request/provider'
@@ -0,0 +1,15 @@
1
+ module Redox
2
+ module Models
3
+ class Note < AbstractModel
4
+ property :ContentType, from: :content_type, required: false
5
+ property :DocumentType, from: :document_type, required: false
6
+ property :DocumentID, from: :document_id, required: false
7
+ property :Provider, required: false, from: :provider, default: {}
8
+
9
+ alias_method :content_type, :ContentType
10
+ alias_method :document_type, :DocumentType
11
+ alias_method :document_id, :DocumentID
12
+ alias_method :provider, :Provider
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ module Redox
2
+ module Models
3
+ class Notes < AbstractModel
4
+ property :Note, from: :note, required: false
5
+
6
+ alias_method :note, :Note
7
+
8
+ def note
9
+ self[:Note] = Note.new(self[:Note]) unless self[:Note].is_a?(Redox::Models::Note)
10
+ self[:Note] ||= Note.new
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ module Redox
2
+ module Request
3
+ class Notes
4
+ CREATE_META = Redox::Models::Meta.new(EventType: 'New', DataModel: 'Notes')
5
+
6
+ def self.create(model, meta: Redox::Models::Meta.new)
7
+ meta = CREATE_META.merge(meta)
8
+ return Redox::Models::Model.from_response((RedoxClient.connection.request(body: Redox::Request.build_body(model, meta))))
9
+ end
10
+ end
11
+ end
12
+ end
data/lib/redox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Redox
2
- VERSION = '1.6.1'.freeze
2
+ VERSION = '1.7'.freeze
3
3
  end
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: 1.6.1
4
+ version: '1.7'
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-03-12 00:00:00.000000000 Z
13
+ date: 2021-06-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -152,6 +152,8 @@ files:
152
152
  - lib/redox/models/media_upload.rb
153
153
  - lib/redox/models/meta.rb
154
154
  - lib/redox/models/model.rb
155
+ - lib/redox/models/note.rb
156
+ - lib/redox/models/notes.rb
155
157
  - lib/redox/models/ordering_provider.rb
156
158
  - lib/redox/models/patient.rb
157
159
  - lib/redox/models/patient/contacts.rb
@@ -167,6 +169,7 @@ files:
167
169
  - lib/redox/redox_exception.rb
168
170
  - lib/redox/request/financial.rb
169
171
  - lib/redox/request/media.rb
172
+ - lib/redox/request/notes.rb
170
173
  - lib/redox/request/patient_admin.rb
171
174
  - lib/redox/request/patient_search.rb
172
175
  - lib/redox/request/provider.rb