change_health 4.1.0 → 4.2.2

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: 6a838027e737aa327d1e8abde630eb09124f839916def61fbdf8ef7652ad9fc4
4
+ data.tar.gz: cfa9d621184f64fe3fe65323488c908fdb4bb0554ccd2598c90d1ca5adffb9a4
5
5
  SHA512:
6
- metadata.gz: 0a14286f7f3d39c38ae891c7d2094dd99df356a4169f23b3fe72daa8eaa5a7353d2aa79f8d3c12f74ceb2f73d2d63688fc463a5f746786243f978d7b70de864d
7
- data.tar.gz: 064e0cab9b729afade6eb158ea093bbd15c512dea122f91561edc3f0c0f0daa5c805c995a4bd953f7fcf123d0209f8ee3b471356825f6c19453f83f6cec004a5
6
+ metadata.gz: 7b9cc402ff58889e4b0505512f203fafe2e6824117022cb04d346b7a11b87d74aa894fa725d340d6ac447bc84804b87ee4149e3373abce9bd07d304511f7a1d9
7
+ data.tar.gz: c3ac5bdbdb18d40a846aedbec278979833052bacd80ea3a15a0a475660682d91e447ee793aaa0fd995cd19a20b7a4fe1120fc33e943e769924a8b107a873c120
data/CHANGELOG.md CHANGED
@@ -5,15 +5,34 @@ 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.2] - 2022-07-27
9
+
10
+ * Fixed ChangeHealth::Response::Claim::Report835ServiceLine's `create_adjustment_detail_array` so that if it is `nil` for `health_care_check_remark_codes`, it does not error out
11
+
12
+ # [4.2.1] - 2022-07-08
13
+
14
+ ### Added
15
+
16
+ * Added `taxonomyCode` property on `ChangeHealth::Models::Claim` so it will serialize properly into JSON
17
+
18
+ # [4.2.0] - 2022-06-23
19
+
20
+ ### Added
21
+
22
+ * Dependent for Claim Submission
23
+
8
24
  # [4.1.0] - 2022-06-17
9
25
 
10
26
  ### Added
27
+
11
28
  Report835Claim - Add another way to get `service_provider_npi`
12
29
 
13
30
  # [4.0.0] - 2022-05-26
14
31
 
15
32
  ### Changed
33
+
16
34
  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
35
+
17
36
  * check_issue_or_eft_effective_date
18
37
  * check_or_eft_trace_number
19
38
  * payer_identifier
@@ -47,6 +66,7 @@ The assumption that only one payment would be in a report835 was wrong. Correcte
47
66
  # [3.4.0] - 2022-03-23
48
67
 
49
68
  ### Added
69
+
50
70
  * Report835Claim - check_or_eft_trace_number & check_issue_or_eft_effective_date
51
71
 
52
72
  # [3.3.0] - 2022-02-11
@@ -373,6 +393,9 @@ Added the ability to hit professional claim submission API. For more details, se
373
393
  * Authentication
374
394
  * Configuration
375
395
 
396
+ [4.2.2]: https://github.com/WeInfuse/change_health/compare/v4.2.0...v4.2.2
397
+ [4.2.1]: https://github.com/WeInfuse/change_health/compare/v4.2.0...v4.2.1
398
+ [4.2.0]: https://github.com/WeInfuse/change_health/compare/v4.1.0...v4.2.0
376
399
  [4.1.0]: https://github.com/WeInfuse/change_health/compare/v4.0.0...v4.1.0
377
400
  [4.0.0]: https://github.com/WeInfuse/change_health/compare/v3.5.4...v4.0.0
378
401
  [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
@@ -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
@@ -42,7 +42,7 @@ module ChangeHealth
42
42
  end
43
43
 
44
44
  health_care_check_remark_codes = self[:health_care_check_remark_codes]
45
- health_care_check_remark_codes.each do |remark_codes|
45
+ health_care_check_remark_codes&.each do |remark_codes|
46
46
  adjustment_details << create_remark_code_adjustments(remark_codes)
47
47
  end
48
48
  adjustment_details
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '4.1.0'.freeze
2
+ VERSION = '4.2.2'.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.2
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-07-27 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