redox 1.5.0 → 1.5.1

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: 70df1547b07206629c70b4add746e3398a31344cb650ad7ed76ed3c445b5f671
4
- data.tar.gz: ca6e9a96303e38d2e34cbfb6919862255b05ef1d10d5a1f676788bd2257f7e89
3
+ metadata.gz: f8554c8aae232514947dda12f81ef347d9dd6fd81d8364cdf655240001a8bca7
4
+ data.tar.gz: 704879fb31e3a17965d78482844fed104e178f9ccf6fc68c6ada7d4ca53e0c02
5
5
  SHA512:
6
- metadata.gz: d083b4a806a96484248be1b1e3fd03684ed24a5217f79eddd7963ac5c22fc0e327d573bcab7c6f6c986db01fee7696f30b33c4d01f04b06627be45bed1045af7
7
- data.tar.gz: e945ddb514dcb1f0bff7fd8fd829c6d9cb828eed2787773846b4841aad6fbd86a108ad90c8cecc9ba18ade16023a65c78272896f9d3c1a086dc4a5beaa1160d6
6
+ metadata.gz: 43f9844cab0a114c1496fe8a72792885f62591a628cf0d8b98ef204ce726197593ee772509162af36bc140a6e1bff926a66c74f29496e750570937f71c7db5dc
7
+ data.tar.gz: ff93495f20309e8e0953200fab80464ca061e86b652aa06269c3a5582382c1a56f03288ffa8146ff5ca819ab927736389322f0f8112104b4d74a04bba7e1ad3d
@@ -4,6 +4,15 @@ 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.5.1] - 2020-12-22
8
+ ### Added
9
+
10
+ - Contacts model
11
+ - Patient#contacts
12
+
13
+ ### Changed
14
+ - typo of martialstatus is now maritalstatus for Demographics model
15
+
7
16
  ## [1.5.0] - 2020-12-15
8
17
  ### Added
9
18
  - Scheduling model
@@ -129,6 +138,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
129
138
  ### Added
130
139
  - Initial Release
131
140
 
141
+ [1.5.1]: https://github.com/WeInfuse/redox/compare/v1.5.0...v1.5.1
132
142
  [1.5.0]: https://github.com/WeInfuse/redox/compare/v1.4.0...v1.5.0
133
143
  [1.4.0]: https://github.com/WeInfuse/redox/compare/v1.3.1...v1.4.0
134
144
  [1.3.1]: https://github.com/WeInfuse/redox/compare/v1.3.0...v1.3.1
@@ -13,6 +13,7 @@ require 'redox/models/visit'
13
13
  require 'redox/models/transaction'
14
14
  require 'redox/models/financial'
15
15
  require 'redox/models/patient/demographics'
16
+ require 'redox/models/patient/contacts'
16
17
  require 'redox/models/patient/identifier'
17
18
  require 'redox/models/patient/insurance'
18
19
  require 'redox/models/patient/p_c_p'
@@ -4,10 +4,12 @@ module Redox
4
4
  property :Identifiers, from: :identifiers, required: false, default: []
5
5
  property :Insurances, from: :insurances, required: false, default: []
6
6
  property :Demographics, from: :demographics, required: false
7
+ property :Contacts, from: :contacts, required: false, default: []
7
8
  property :PCP, from: :primary_care_provider, required: false
8
9
 
9
10
  alias_method :identifiers, :Identifiers
10
11
  alias_method :insurances, :Insurances
12
+ alias_method :contacts, :Contacts
11
13
 
12
14
  def demographics
13
15
  self[:Demographics] = Demographics.new(self[:Demographics]) unless self[:Demographics].is_a?(Redox::Models::Demographics)
@@ -22,6 +24,10 @@ module Redox
22
24
  self[:PCP] ||= PCP.new
23
25
  end
24
26
 
27
+ def contacts
28
+ self[:Contacts] = self[:Contacts].map {|contact| contact.is_a?(Redox::Models::Contact) ? contact : Contact.new(contact)}
29
+ end
30
+
25
31
  def add_identifier(type: , value: )
26
32
  self[:Identifiers] << Identifier.new({'ID' => value, 'IDType' => type})
27
33
 
@@ -0,0 +1,20 @@
1
+ module Redox
2
+ module Models
3
+ class Contact < AbstractModel
4
+ property :FirstName, required: false, from: :first_name
5
+ property :MiddleName, required: false, from: :middle_name
6
+ property :LastName, required: false, from: :last_name
7
+ property :RelationToPatient, required: false
8
+ property :EmailAddresses, required: false, default: []
9
+ property :Address, required: false, default: {}
10
+ property :PhoneNumber, required: false, default: {}
11
+ property :Roles, required: false, default: []
12
+
13
+ alias_method :first_name, :FirstName
14
+ alias_method :middle_name, :MiddleName
15
+ alias_method :last_name, :LastName
16
+ alias_method :address, :Address
17
+ alias_method :phone_number, :PhoneNumber
18
+ end
19
+ end
20
+ end
@@ -9,7 +9,7 @@ module Redox
9
9
  property :Sex, required: false, from: :sex
10
10
  property :Race, required: false, from: :race
11
11
  property :IsHispanic, required: false
12
- property :MaritalStatus, required: false, from: :martial_status
12
+ property :MaritalStatus, required: false, from: :marital_status
13
13
  property :IsDeceased, required: false
14
14
  property :DeathDateTime, required: false
15
15
  property :Language, required: false, from: :language
@@ -25,7 +25,7 @@ module Redox
25
25
  alias_method :ssn, :SSN
26
26
  alias_method :sex, :Sex
27
27
  alias_method :race, :Race
28
- alias_method :martial_status, :MaritalStatus
28
+ alias_method :marital_status, :MaritalStatus
29
29
  alias_method :language, :Language
30
30
  alias_method :address, :Address
31
31
  alias_method :phone_number, :PhoneNumber
@@ -1,3 +1,3 @@
1
1
  module Redox
2
- VERSION = '1.5.0'.freeze
2
+ VERSION = '1.5.1'.freeze
3
3
  end
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.5.0
4
+ version: 1.5.1
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: 2020-12-15 00:00:00.000000000 Z
13
+ date: 2020-12-22 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
@@ -152,6 +152,7 @@ files:
152
152
  - lib/redox/models/model.rb
153
153
  - lib/redox/models/ordering_provider.rb
154
154
  - lib/redox/models/patient.rb
155
+ - lib/redox/models/patient/contacts.rb
155
156
  - lib/redox/models/patient/demographics.rb
156
157
  - lib/redox/models/patient/identifier.rb
157
158
  - lib/redox/models/patient/insurance.rb
@@ -175,7 +176,7 @@ licenses:
175
176
  - MIT
176
177
  metadata:
177
178
  allowed_push_host: https://rubygems.org
178
- post_install_message:
179
+ post_install_message:
179
180
  rdoc_options: []
180
181
  require_paths:
181
182
  - lib
@@ -190,9 +191,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
191
  - !ruby/object:Gem::Version
191
192
  version: '0'
192
193
  requirements: []
193
- rubyforge_project:
194
+ rubyforge_project:
194
195
  rubygems_version: 2.7.6
195
- signing_key:
196
+ signing_key:
196
197
  specification_version: 4
197
198
  summary: Ruby wrapper for the Redox Engine API
198
199
  test_files: []