change_health 3.4.0 → 3.5.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: 222248c389fc002887ea5d18a7816f09c0f101cf8d17d08881187b865dc0eb02
4
- data.tar.gz: 4d25ff11a0b92fce81ca5945a659ecbf3e9c36249ff4bbaae638a7ae40efe951
3
+ metadata.gz: 21003bc5658e7a52ae3218445c766a83eb897b6eae35bd0cc63f42a94bc84ee6
4
+ data.tar.gz: ed6ddcf079ade0f37a23c109ab8a264bf18bbfc7745f8e7a59038629954c12cc
5
5
  SHA512:
6
- metadata.gz: 0f2f0cb83a1d1145bad8ced944e9d460c78956ef46a8559bf7aedad70861a469a9f18671b6f9ca497ea9ad8ef64e82e13ac6d341fa0e34a5f86ee195de52e006
7
- data.tar.gz: dac851fb3820730a9856fe714e6ab0f923db17a00cc76f4886053fc5c50492fae0cc54d4cd38d4cefed0add480dfd3af70abc0e4d7c2006d36147c92fd03dd4b
6
+ metadata.gz: a89a6adaed5d80cacaa2f23a23eab21f409a19361620bf49ae3afe020be1ef02a3d7e9be4cf4d045cf1307ffd32b3a2faaa1ece65a9eddd298e882cfdeff76bb
7
+ data.tar.gz: d9ebd400bbabd5d1514b5a3f0bfeabbf02db383b7ddd762571a1420ef0b451c67ee7b23070d42b1699672dd677ca5942030027944633501a811458a2ec3f7ec0
data/CHANGELOG.md CHANGED
@@ -1,27 +1,51 @@
1
1
  # Changelog
2
+
2
3
  All notable changes to this project will be documented in this file.
3
4
 
4
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
7
 
8
+ # [3.5.2] - 2022-04-27
9
+
10
+ * Added properties of `claimNote` to `claimInformation` so it will serialize properly into JSON
11
+
12
+ # [3.5.1] - 2022-04-12
13
+
14
+ * Added properties of `lineAdjudicationInformation` and `otherSubscriberInformation` so they can serialize correctly into JSON
15
+
16
+ # [3.5.0] - 2022-04-08
17
+
18
+ ### Added
19
+
20
+ * Report835Claim - added payer_identifier property
21
+ * Report835ServiceLine - Dynamically creates line_adjustments for remark codes and adjustments that are needed for secondary claims
22
+
7
23
  # [3.4.0] - 2022-03-23
24
+
8
25
  ### Added
9
26
  * Report835Claim - check_or_eft_trace_number & check_issue_or_eft_effective_date
10
27
 
11
28
  # [3.3.0] - 2022-02-11
29
+
12
30
  ### Added
31
+
13
32
  * Report277Claim - 'message' from informationClaimStatuses, clearinghouse_trace_number, patient_account_number, referenced_transaction_trace_number, trading_partner_claim_number
14
33
  * Report835Claim - patient_control_number
15
34
  * ReportClaim - report_name, patient_member_id
16
35
 
17
36
  ## [3.2.0] - 2021-12-23
37
+
18
38
  ### Added
39
+
19
40
  * Report835HealthCareCheckRemarkCode
20
41
  * Report835Claim - added claim_payment_remark_codes
21
42
 
22
43
  ## [3.1.0] - 2021-12-21
44
+
23
45
  ### Added
46
+
24
47
  #### Claim Submission
48
+
25
49
  * ServiceLine - drugIdentification & renderingProvider
26
50
  * Subscriber - groupNumber
27
51
  * Address model w/ postalCode that is formatted to remove dashes, '-'
@@ -29,21 +53,26 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
29
53
  * Auto formatting of postal code fields
30
54
 
31
55
  ## [3.0.0] - 2021-12-08
56
+
32
57
  ### Added
58
+
33
59
  * Report277Claim - specific to claims from 277 reports
34
60
  * Report835Claim - specific to claims from 835 reports
35
61
  * Report835ServiceAdjustment & Report835ServiceLine - helper classes for readability of claims from 835 reports
36
62
 
37
63
  ### Changed
64
+
38
65
  * ReportClaim - removed 277 report unique fields
39
66
 
40
67
  #### Namespace
68
+
41
69
  | Previous | Current |
42
70
  |-|-|
43
71
  | ChangeHealth::Models::Error | ChangeHealth::Response::Error |
44
72
  | ChangeHealth::Response::Claim::ReportInfoClaimStatus | ChangeHealth::Response::Claim::Report277InfoClaimStatus|
45
73
 
46
74
  #### Methods
75
+
47
76
  | Previous | Current |
48
77
  |-|-|
49
78
  | Report277Data#payer_org_name | Report277Data#payer_name |
@@ -55,38 +84,54 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
55
84
  | ReportClaim#subscriber_last_name | ReportClaim#patient_last_name |
56
85
  | ReportClaim#transaction_set_creation_date | ReportClaim#report_creation_date |
57
86
 
58
-
59
87
  ## [2.3.0] - 2021-11-18
88
+
60
89
  ### Added
90
+
61
91
  * Report277Data & Report835Data - Specific classes for 277 & 835 reports
62
92
  * ReportClaim & ReportInfoClaimStatus - only works for json 277 reports
63
93
 
64
94
  ### Fixed
95
+
65
96
  * Headers can now be nil for requests
66
97
 
67
98
  ## [2.2.1] - 2021-11-15
99
+
68
100
  ### Added
101
+
69
102
  Custom Headers for Reports API and Professional Claims API
103
+
70
104
  * Report
71
105
  * Submission
72
106
 
73
107
  ## [2.2.0] - 2021-11-04
108
+
74
109
  ### Added
110
+
75
111
  Ability to hit [Claim Responses and Reports](https://developers.changehealthcare.com/eligibilityandclaims/docs/claims-responses-and-reports-getting-started)
112
+
76
113
  * Report
77
114
  * ReportListData
78
115
  * ReportData
79
116
 
80
117
  ## [2.1.0] - 2021-10-12
118
+
81
119
  ### Changed
120
+
82
121
  Model#to_h enhanced to change empty values AKA "" to nil. Reason: If a field is empty, Change Healthcare responds with an error - `Invalid value. Item must not be blank value.`. If the empty field is optional, Change Healthcare will accept the field as nil without error. If the empty field is required, Change Healthcare will return an error if the value is empty or nil.
83
122
 
84
123
  ## [2.0.0] - 2021-10-08
124
+
85
125
  ### Added
126
+
86
127
  #### Models
128
+
87
129
  * ResponseData - for responses from calling change healthcare api used by EligibilityData and SubmissionData
130
+
88
131
  #### Claim Submission
132
+
89
133
  Added the ability to hit professional claim submission API. For more details, see [Change Healthcare documentation here](https://developers.changehealthcare.com/eligibilityandclaims/docs/professional-claims-v3-getting-started)
134
+
90
135
  * ClaimInformation
91
136
  * Provider
92
137
  * ServiceLine
@@ -94,11 +139,15 @@ Added the ability to hit professional claim submission API. For more details, se
94
139
  * SubmissionData
95
140
  * Submitter
96
141
  * Subscriber
142
+
97
143
  ### Changed
98
- * Using new Change Healthcare url. From apis to apigw. For more info see [change log here](https://developers.changehealthcare.com/eligibilityandclaims/docs/change-logrelease-notes-1)
99
- * PARSE_DATE moved from ChangeHealth::Models::EligibilityData to ChangeHealth::Models
100
- * Moved Error class into its own file
144
+
145
+ * Using new Change Healthcare url. From apis to apigw. For more info see [change log here](https://developers.changehealthcare.com/eligibilityandclaims/docs/change-logrelease-notes-1)
146
+ * PARSE_DATE moved from ChangeHealth::Models::EligibilityData to ChangeHealth::Models
147
+ * Moved Error class into its own file
148
+
101
149
  #### Namespace
150
+
102
151
  Many classes moved namespaces to be more consistent across the many endpoints in Change Healthcare
103
152
  | Previous | Current |
104
153
  |-|-|
@@ -109,137 +158,200 @@ Added the ability to hit professional claim submission API. For more details, se
109
158
  | ChangeHealth::Models::EligibilityBenefit | ChangeHealth::Response::EligibilityBenefit|
110
159
  | ChangeHealth::Models::EligibilityBenefits | ChangeHealth::Response::EligibilityBenefits|
111
160
  | ChangeHealth::Models::EligibilityData | ChangeHealth::Response::EligibilityData|
161
+
112
162
  ### Fixed
113
- * Eligibility#add_dependent actually works
163
+
164
+ * Eligibility#add_dependent actually works
114
165
 
115
166
  ## [1.0.3] - 2021-04-26
167
+
116
168
  ### Added
117
- - Model::Error#represents_down? - adds ability to distinguish error representing down state
118
- - Model::Error#retryable? - retryable when down
119
- - EligibilityData#recommend_retry? - recommend retry when down
169
+
170
+ * Model::Error#represents_down? - adds ability to distinguish error representing down state
171
+
172
+ * Model::Error#retryable? - retryable when down
173
+ * EligibilityData#recommend_retry? - recommend retry when down
120
174
 
121
175
  ## [1.0.2] - 2021-04-06
176
+
122
177
  ### Added
123
- - EligibilityData#recommend_retry? - fix a bug in the search statement
178
+
179
+ * EligibilityData#recommend_retry? - fix a bug in the search statement
124
180
 
125
181
  ## [1.0.1] - 2021-03-24
182
+
126
183
  ### Added
127
- - EligibilityData#plan_status - adds ability to select instead of find
128
- - EligibilityData#inactive? active? - use new plan_status select
184
+
185
+ * EligibilityData#plan_status - adds ability to select instead of find
186
+
187
+ * EligibilityData#inactive? active? - use new plan_status select
129
188
 
130
189
  ## [1.0.0] - 2021-03-17
190
+
131
191
  ### Added
132
- - Model::Error - help with error codes
133
- - EligibilityData#recommend_retry? - if it looks like you can retry the exact same request
134
- - EligibilityData#inactive? - looks for plan status 6
192
+
193
+ * Model::Error - help with error codes
194
+
195
+ * EligibilityData#recommend_retry? - if it looks like you can retry the exact same request
196
+ * EligibilityData#inactive? - looks for plan status 6
135
197
 
136
198
  ## [0.15.0] - 2020-06-12
199
+
137
200
  ### Added
138
- - Extensions - InNetworkMissing for plans that don't provide in network indicators.
201
+
202
+ * Extensions - InNetworkMissing for plans that don't provide in network indicators.
139
203
 
140
204
  ### Fixed
141
- - Bug where active codes with no service codes cause exception.
205
+
206
+ * Bug where active codes with no service codes cause exception.
142
207
 
143
208
  ## [0.14.0] - 2020-05-07
209
+
144
210
  ### Added
145
- - Extensions - mixins for common overrides
211
+
212
+ * Extensions - mixins for common overrides
146
213
 
147
214
  ## [0.13.0] - 2020-05-05
215
+
148
216
  ### Changed
149
- - Removed `alias_method` for `where` helpers so you can override a single method
150
- - Added type Year to Date type 24
151
- - Added type Day type 7
217
+
218
+ * Removed `alias_method` for `where` helpers so you can override a single method
219
+
220
+ * Added type Year to Date type 24
221
+ * Added type Day type 7
152
222
 
153
223
  ## [0.12.0] - 2020-04-30
224
+
154
225
  ### Added
155
- - EligibilityData#errors
156
- - EligibilityData#errors?
226
+
227
+ * EligibilityData#errors
228
+
229
+ * EligibilityData#errors?
157
230
 
158
231
  ## [0.11.0] - 2020-04-24
232
+
159
233
  ### Added
160
- - EligibilityData#medicare?
161
- - EligibilityData#plan\_id
162
- - EligibilityData#plan?
163
- - EligibilityBenefits#where\_not
164
- - EligibilityBenefits#+
165
- - EligibilityBenefit#additional\_info
166
- - EligibilityBenefit#descriptions
234
+
235
+ * EligibilityData#medicare?
236
+
237
+ * EligibilityData#plan\_id
238
+ * EligibilityData#plan?
239
+ * EligibilityBenefits#where\_not
240
+ * EligibilityBenefits#+
241
+ * EligibilityBenefit#additional\_info
242
+ * EligibilityBenefit#descriptions
167
243
 
168
244
  ### Changed
169
- - EligibilityData initialize now checks for sub-classes of EligibilityBenefits with trading partner
170
- - EligibilityData initialize now checks for sub-classes of EligibilityBenefits with trading partner responds to `factory` to choose sub-class
171
- - EligibilityBenefits initializes `self.class` type in case it's a subclass
245
+
246
+ * EligibilityData initialize now checks for sub-classes of EligibilityBenefits with trading partner
247
+
248
+ * EligibilityData initialize now checks for sub-classes of EligibilityBenefits with trading partner responds to `factory` to choose sub-class
249
+ * EligibilityBenefits initializes `self.class` type in case it's a subclass
172
250
 
173
251
  ## [0.10.0] - 2020-04-09
252
+
174
253
  ### Added
175
- - Add Trading Partner API querying capability
176
- - Request::TradingPartner
177
- - Response::TradingPartnerData
178
- - Response::TradingPartnersData
179
- - Models::TradingPartner
254
+
255
+ * Add Trading Partner API querying capability
256
+
257
+ * Request::TradingPartner
258
+ * Response::TradingPartnerData
259
+ * Response::TradingPartnersData
260
+ * Models::TradingPartner
180
261
 
181
262
  ## [0.9.0] - 2020-04-08
263
+
182
264
  ### Added
183
- - Added EligibilityBenefit#medicare?
184
- - Added EligibilityData#medicare?
265
+
266
+ * Added EligibilityBenefit#medicare?
267
+
268
+ * Added EligibilityData#medicare?
185
269
 
186
270
  ### Changed
187
- - EligibilityBenefit(s)#individual returns true for medicare in benefit and queries that look for 'IND'
188
- - EligibilityBenefit(s)#in\_network returns true for medicare in benefit and queries that look for 'Y'
271
+
272
+ * EligibilityBenefit(s)#individual returns true for medicare in benefit and queries that look for 'IND'
273
+
274
+ * EligibilityBenefit(s)#in\_network returns true for medicare in benefit and queries that look for 'Y'
189
275
 
190
276
  ## [0.8.0] - 2020-04-04
277
+
191
278
  ### Changed
192
- - Attempt to serialize all properties with 'date' in the name to ChangeHealth date format
279
+
280
+ * Attempt to serialize all properties with 'date' in the name to ChangeHealth date format
193
281
 
194
282
  ## [0.7.0] - 2020-04-03
283
+
195
284
  ### Changed
196
- - Fixed bug in serializing date on subscriber and encounter
285
+
286
+ * Fixed bug in serializing date on subscriber and encounter
197
287
 
198
288
  ## [0.6.0] - 2020-04-02
289
+
199
290
  ### Changed
200
- - Added Indifferent Access to hashes
201
- - Fixed bug with Authentication endpoint
291
+
292
+ * Added Indifferent Access to hashes
293
+
294
+ * Fixed bug with Authentication endpoint
202
295
 
203
296
  ## [0.5.0] - 2020-03-11
297
+
204
298
  ### Added
205
- - EligibilityBenefit Deductible information
206
- - EligibilityBenefit benefits date information
207
- - EligibilityBenefit(s) child
208
- - EligibilityBenefit(s) employee
209
- - EligibilityBenefit(s) family
210
- - EligibilityBenefit(s) employee and child
299
+
300
+ * EligibilityBenefit Deductible information
301
+
302
+ * EligibilityBenefit benefits date information
303
+ * EligibilityBenefit(s) child
304
+ * EligibilityBenefit(s) employee
305
+ * EligibilityBenefit(s) family
306
+ * EligibilityBenefit(s) employee and child
211
307
 
212
308
  ### Changed
213
- - Broke EligibilityBenefit and EligibilityBenefits into separate files
309
+
310
+ * Broke EligibilityBenefit and EligibilityBenefits into separate files
214
311
 
215
312
  ## [0.4.0] - 2020-03-10
313
+
216
314
  ### Added
217
- - EligibilityBenefit(s) Employee information
218
- - EligibilityData plan date information
219
- - EligibilityData eligibility, plan and service date helpers on date info
315
+
316
+ * EligibilityBenefit(s) Employee information
317
+
318
+ * EligibilityData plan date information
319
+ * EligibilityData eligibility, plan and service date helpers on date info
220
320
 
221
321
  ## [0.3.0] - 2020-03-09
322
+
222
323
  ### Added
223
- - Production endpoint
324
+
325
+ * Production endpoint
224
326
 
225
327
  ## [0.0.2] - 2020-03-09
328
+
226
329
  ### Added
227
- - EligibilityData
228
- - EligibilityBenefit
229
- - EligibilityBenefits
330
+
331
+ * EligibilityData
332
+
333
+ * EligibilityBenefit
334
+ * EligibilityBenefits
230
335
 
231
336
  ### Changed
232
- - Eligibility.query returns EligibilityData object
337
+
338
+ * Eligibility.query returns EligibilityData object
233
339
 
234
340
  ## [0.0.1] - 2020-03-04
341
+
235
342
  ### Added
236
- - Provider
237
- - Subscriber
238
- - Encounter
239
- - Eligibility
240
- - Authentication
241
- - Configuration
242
343
 
344
+ * Provider
345
+
346
+ * Subscriber
347
+ * Encounter
348
+ * Eligibility
349
+ * Authentication
350
+ * Configuration
351
+
352
+ [3.5.2]: https://github.com/WeInfuse/change_health/compare/v3.5.1...v3.5.2
353
+ [3.5.1]: https://github.com/WeInfuse/change_health/compare/v3.5.0...v3.5.1
354
+ [3.5.0]: https://github.com/WeInfuse/change_health/compare/v3.4.0...v3.5.0
243
355
  [3.4.0]: https://github.com/WeInfuse/change_health/compare/v3.3.0...v3.4.0
244
356
  [3.3.0]: https://github.com/WeInfuse/change_health/compare/v3.2.0...v3.3.0
245
357
  [3.2.0]: https://github.com/WeInfuse/change_health/compare/v3.1.0...v3.2.0
@@ -15,6 +15,8 @@ module ChangeHealth
15
15
  property :serviceFacilityLocation, from: :service_facility_location, required: false
16
16
  property :serviceLines, from: :service_lines, required: false
17
17
  property :signatureIndicator, from: :signature_indicator, required: false
18
+ property :otherSubscriberInformation, from: :other_subscriber_information, required: false
19
+ property :claimNote, from: :claim_note, required: false
18
20
 
19
21
  def add_service_line(service_line)
20
22
  self[:serviceLines] ||= []
@@ -6,6 +6,7 @@ module ChangeHealth
6
6
  property :serviceDate, from: :service_date, required: false
7
7
  property :professionalService, from: :professional_service, required: false
8
8
  property :renderingProvider, from: :rendering_provider, required: false
9
+ property :lineAdjudicationInformation, from: :line_adjudication_information, required: false
9
10
  end
10
11
  end
11
12
  end
@@ -7,6 +7,7 @@ module ChangeHealth
7
7
  property :claim_payment_remark_codes, required: false
8
8
  property :patient_control_number, required: false
9
9
  property :payer_claim_control_number, required: false
10
+ property :payer_identifier, required: false
10
11
  property :payment_method_code, required: false
11
12
  property :service_lines, required: false
12
13
  property :total_actual_provider_payment_amount, required: false
@@ -24,6 +24,10 @@ module ChangeHealth
24
24
  transactions&.first&.dig('payer')&.dig('name')
25
25
  end
26
26
 
27
+ def payer_identifier
28
+ ChangeHealth::Models::PARSE_DATE.call(transactions&.first&.dig('financialInformation', 'payerIdentifier'))
29
+ end
30
+
27
31
  def payment_method_code
28
32
  transactions&.first&.dig('financialInformation', 'paymentMethodCode')
29
33
  end
@@ -120,6 +124,7 @@ module ChangeHealth
120
124
  patient_member_id: patient_member_id,
121
125
  payer_claim_control_number: payer_claim_control_number,
122
126
  payer_identification: payer_identification,
127
+ payer_identifier: payer_identifier,
123
128
  payer_name: payer_name,
124
129
  payment_method_code: payment_method_code,
125
130
  report_creation_date: report_creation_date,
@@ -8,6 +8,45 @@ module ChangeHealth
8
8
  property :line_item_charge_amount, required: false
9
9
  property :line_item_provider_payment_amount, required: false
10
10
  property :service_adjustments, required: false
11
+
12
+ def create_group_adjustments(service_adjustments)
13
+ adjustment_array = service_adjustments[:adjustments].map do |key, value|
14
+ {
15
+ adjustmentReasonCode: key,
16
+ adjustmentAmount: value
17
+ }
18
+ end
19
+ {
20
+ adjustmentDetails: adjustment_array,
21
+ adjustmentGroupCode: service_adjustments[:claim_adjustment_group_code]
22
+ }
23
+ end
24
+
25
+ def create_remark_code_adjustments(remark_codes_array)
26
+ adjustment_array = remark_codes_array.map do |_key, value|
27
+ {
28
+ adjustmentReasonCode: value,
29
+ adjustmentAmount: ""
30
+ }
31
+ end
32
+ {
33
+ adjustmentDetails: adjustment_array,
34
+ adjustmentGroupCode: ""
35
+ }
36
+ end
37
+
38
+ def create_adjustment_detail_array
39
+ all_service_adjustments = self.service_adjustments
40
+ adjustment_details = all_service_adjustments.map do |service_adjustments|
41
+ create_group_adjustments(service_adjustments)
42
+ end
43
+
44
+ health_care_check_remark_codes = self[:health_care_check_remark_codes]
45
+ health_care_check_remark_codes.each do |remark_codes|
46
+ adjustment_details << create_remark_code_adjustments(remark_codes)
47
+ end
48
+ adjustment_details
49
+ end
11
50
  end
12
51
  end
13
52
  end
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '3.4.0'.freeze
2
+ VERSION = '3.5.2'.freeze
3
3
  end
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: 3.4.0
4
+ version: 3.5.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-03-23 00:00:00.000000000 Z
11
+ date: 2022-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty