change_health 4.0.0 → 4.2.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: 61fbaa1ebca6d1f3f6a8a2674d07e11b2f96a3eccc7e6176aa25284d541134cb
4
- data.tar.gz: 1a6abf496339d316071c33e36f8c64b2cb8c995849b8d263146c67230f4d3943
3
+ metadata.gz: ab6434a50dea3253f56d988e9728d4daccb27ee1e41e78cb8b642a4f0346cc62
4
+ data.tar.gz: 64d7f86261cb9478a1f4b6707047be21cdd9d76efad0d61121bc536985ffbc4c
5
5
  SHA512:
6
- metadata.gz: 8683182931c2dbe546f5230335b5349e4362d96b01ea50d0d6811ecda55a6ce703a8404e5e6aaaed33ea4d4181af159bfc0c7293001361765e758e831097e13f
7
- data.tar.gz: a166e936b7d07d346e30434ca52417966bf6764d4af5216b262256e9d106974c3ef0f6cd38ad8dd0516aa9091b786adccfc6cddf0ea2bb257d66cb349de1b9e0
6
+ metadata.gz: cd3d0602a6cfdbefbd680ee6bdc9bca214a53b778bd9935e7889c248443479a1dda2ac039074a7f65cf14e46dcf6be4c8dede2dbf97ac5d2930a229fedb87380
7
+ data.tar.gz: 4a10d6a31399dd3cf400df2fe52cfb8753b1b57e4d8c16a62cdad4e705d134e65f60cf8994be32dac15d9a74c649928666a256e914c1e9994860901204cd8005
data/CHANGELOG.md CHANGED
@@ -5,10 +5,30 @@ 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.1] - 2022-07-08
9
+
10
+ ### Added
11
+
12
+ * Added `taxonomyCode` property on `ChangeHealth::Models::Claim` so it will serialize properly into JSON
13
+
14
+ # [4.2.0] - 2022-06-23
15
+
16
+ ### Added
17
+
18
+ * Dependent for Claim Submission
19
+
20
+ # [4.1.0] - 2022-06-17
21
+
22
+ ### Added
23
+
24
+ Report835Claim - Add another way to get `service_provider_npi`
25
+
8
26
  # [4.0.0] - 2022-05-26
9
27
 
10
28
  ### Changed
29
+
11
30
  The assumption that only one payment would be in a report835 was wrong. Corrected that by adding in a model to hold the payment information - Report835Payment. Removed payment related info from Report835Data and Report835Claim. See README for usage
31
+
12
32
  * check_issue_or_eft_effective_date
13
33
  * check_or_eft_trace_number
14
34
  * payer_identifier
@@ -42,6 +62,7 @@ The assumption that only one payment would be in a report835 was wrong. Correcte
42
62
  # [3.4.0] - 2022-03-23
43
63
 
44
64
  ### Added
65
+
45
66
  * Report835Claim - check_or_eft_trace_number & check_issue_or_eft_effective_date
46
67
 
47
68
  # [3.3.0] - 2022-02-11
@@ -368,6 +389,9 @@ Added the ability to hit professional claim submission API. For more details, se
368
389
  * Authentication
369
390
  * Configuration
370
391
 
392
+ [4.2.1]: https://github.com/WeInfuse/change_health/compare/v4.2.0...v4.2.1
393
+ [4.2.0]: https://github.com/WeInfuse/change_health/compare/v4.1.0...v4.2.0
394
+ [4.1.0]: https://github.com/WeInfuse/change_health/compare/v4.0.0...v4.1.0
371
395
  [4.0.0]: https://github.com/WeInfuse/change_health/compare/v3.5.4...v4.0.0
372
396
  [3.5.4]: https://github.com/WeInfuse/change_health/compare/v3.5.3...v3.5.4
373
397
  [3.5.3]: https://github.com/WeInfuse/change_health/compare/v3.5.2...v3.5.3
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
@@ -10,6 +10,7 @@ module ChangeHealth
10
10
  property :organizationName, from: :organization_name, required: false
11
11
  property :npi, required: false
12
12
  property :providerType, from: :provider_type, required: false
13
+ property :taxonomyCode, from: :taxonomy_code, required: false
13
14
  property :ssn, required: false # or employer id
14
15
  end
15
16
  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
@@ -49,7 +49,8 @@ module ChangeHealth
49
49
  payer_claim_control_number = payment_info.dig('claimPaymentInfo', 'payerClaimControlNumber')
50
50
  service_provider_npi =
51
51
  payment_info.dig('renderingProvider', 'npi') ||
52
- detail_info.dig('providerSummaryInformation', 'providerIdentifier')
52
+ detail_info.dig('providerSummaryInformation', 'providerIdentifier') ||
53
+ transaction.dig('payee', 'npi')
53
54
  total_charge_amount = payment_info.dig('claimPaymentInfo', 'totalClaimChargeAmount')
54
55
 
55
56
  claim_payment_remark_codes = []
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '4.0.0'.freeze
2
+ VERSION = '4.2.1'.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.0.0
4
+ version: 4.2.1
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-05-26 00:00:00.000000000 Z
11
+ date: 2022-07-08 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