change_health 4.1.0 → 4.2.0

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: 9bbc1e710e4746b0aa9a3b4b3189d512a331866898146784d8e9581b29067197
4
- data.tar.gz: 348dcd9c463548cc237a1e505aacb0c66616d63e478ae404ea3a18fe335a7545
3
+ metadata.gz: 2637bc096949ab2c8f7b81fa9309775c6eaa85c11deccc290ffcb9f4bb1087bf
4
+ data.tar.gz: ff804042b7637317f61235c0c9a1a3b14ce3e0e5dd2b50abeb35e5d4ca186626
5
5
  SHA512:
6
- metadata.gz: 0a14286f7f3d39c38ae891c7d2094dd99df356a4169f23b3fe72daa8eaa5a7353d2aa79f8d3c12f74ceb2f73d2d63688fc463a5f746786243f978d7b70de864d
7
- data.tar.gz: 064e0cab9b729afade6eb158ea093bbd15c512dea122f91561edc3f0c0f0daa5c805c995a4bd953f7fcf123d0209f8ee3b471356825f6c19453f83f6cec004a5
6
+ metadata.gz: 78583b56f70eebd10a5548c027255fe3634c364d2e8851ae2c3b59f3d4c2d2fa3320a05b443b8d580bc75dbe6ab31d6b51968b4d563965c1431b53dafa901ed3
7
+ data.tar.gz: 95ee855e844601a69b79a3298b4a04cac51bb5294635f4691187a2db2542c32d31fd289dba0ae5ef78ebfd35f475b966519348e86ef17c354bf79a36ec597c39
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
+ # [4.2.0] - 2022-06-23
9
+
10
+ ### Added
11
+ * Dependent for Claim Submission
12
+
8
13
  # [4.1.0] - 2022-06-17
9
14
 
10
15
  ### Added
@@ -373,6 +378,7 @@ Added the ability to hit professional claim submission API. For more details, se
373
378
  * Authentication
374
379
  * Configuration
375
380
 
381
+ [4.2.0]: https://github.com/WeInfuse/change_health/compare/v4.1.0...v4.2.0
376
382
  [4.1.0]: https://github.com/WeInfuse/change_health/compare/v4.0.0...v4.1.0
377
383
  [4.0.0]: https://github.com/WeInfuse/change_health/compare/v3.5.4...v4.0.0
378
384
  [3.5.4]: https://github.com/WeInfuse/change_health/compare/v3.5.3...v3.5.4
data/README.md CHANGED
@@ -113,7 +113,7 @@ address = ChangeHealth::Models::Claim::Address.new(
113
113
  address1: "123 address1",
114
114
  city: "city1",
115
115
  state: "wa",
116
- postalCode: "98101-0000"
116
+ postalCode: "981010000"
117
117
  )
118
118
 
119
119
  subscriber = ChangeHealth::Models::Claim::Subscriber.new(
@@ -125,6 +125,17 @@ subscriber = ChangeHealth::Models::Claim::Subscriber.new(
125
125
  date_of_birth: "02/01/1980",
126
126
  address: address
127
127
  )
128
+
129
+ dependent = ChangeHealth::Models::Claim::Dependent.new(
130
+ address: address,
131
+ date_of_birth: "02/01/1980",
132
+ first_name: "johnone",
133
+ gender: "M",
134
+ last_name: "doetwo",
135
+ member_id: "0000000001",
136
+ relationship_to_subscriber_code: "01"
137
+ )
138
+
128
139
  provider = ChangeHealth::Models::Claim::Provider.new(
129
140
  address: address,
130
141
  employer_id: "000000000",
@@ -191,13 +202,14 @@ professional_headers = {
191
202
  }
192
203
 
193
204
  claim_submission = ChangeHealth::Request::Claim::Submission.new(
194
- trading_partner_service_id: "9496",
195
- submitter: claim_submitter,
205
+ claim_information: claim_information,
206
+ dependent: dependent,
207
+ headers: professional_headers,
208
+ providers: [provider],
196
209
  receiver: receiver,
210
+ submitter: claim_submitter,
197
211
  subscriber: subscriber,
198
- providers: [provider],
199
- claim_information: claim_information,
200
- headers: professional_headers
212
+ trading_partner_service_id: "9496"
201
213
  )
202
214
 
203
215
  claim_submission_data = claim_submission.submission
@@ -0,0 +1,15 @@
1
+ module ChangeHealth
2
+ module Models
3
+ module Claim
4
+ class Dependent < Model
5
+ property :address, required: false
6
+ property :dateOfBirth, from: :date_of_birth, required: false
7
+ property :firstName, from: :first_name, required: false
8
+ property :gender, required: false
9
+ property :lastName, from: :last_name, required: false
10
+ property :memberId, from: :member_id, required: false
11
+ property :relationshipToSubscriberCode, from: :relationship_to_subscriber_code, required: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -9,6 +9,7 @@ module ChangeHealth
9
9
 
10
10
  property :claimInformation, from: :claim_information, required: false
11
11
  property :controlNumber, from: :control_number, required: true, default: ChangeHealth::Models::CONTROL_NUMBER
12
+ property :dependent, required: false
12
13
  property :providers, required: false
13
14
  property :receiver, required: false
14
15
  property :submitter, required: false
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '4.1.0'.freeze
2
+ VERSION = '4.2.0'.freeze
3
3
  end
data/lib/change_health.rb CHANGED
@@ -8,6 +8,7 @@ require 'change_health/extensions'
8
8
  require 'change_health/models/model'
9
9
  require 'change_health/models/claim/submission/address'
10
10
  require 'change_health/models/claim/submission/claim_information'
11
+ require 'change_health/models/claim/submission/dependent'
11
12
  require 'change_health/models/claim/submission/drug_identification'
12
13
  require 'change_health/models/claim/submission/provider'
13
14
  require 'change_health/models/claim/submission/service_line'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: change_health
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Crockett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-17 00:00:00.000000000 Z
11
+ date: 2022-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -149,6 +149,7 @@ files:
149
149
  - lib/change_health/extensions.rb
150
150
  - lib/change_health/models/claim/submission/address.rb
151
151
  - lib/change_health/models/claim/submission/claim_information.rb
152
+ - lib/change_health/models/claim/submission/dependent.rb
152
153
  - lib/change_health/models/claim/submission/drug_identification.rb
153
154
  - lib/change_health/models/claim/submission/provider.rb
154
155
  - lib/change_health/models/claim/submission/service_line.rb