change_health 5.17.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/README.md +14 -0
- data/lib/change_health/response/claim/report/report_277_claim.rb +5 -1
- data/lib/change_health/response/claim/report/report_277_data.rb +8 -3
- data/lib/change_health/response/claim/report/report_277_info_claim_status.rb +4 -4
- data/lib/change_health/response/claim/report/report_277_info_status.rb +12 -0
- data/lib/change_health/response/error.rb +2 -2
- data/lib/change_health/version.rb +1 -1
- data/lib/change_health.rb +1 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66def9e3771bb4505b20a0f8f88b466392412d1809d8ad9723e745f3aed5b8f5
|
4
|
+
data.tar.gz: a068c87e20968ed65259bda5cba2206f57f1e0ddd40f2bc2ced7b42e60d4ea55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eff4864dbfb4b5667d62c48b217135d5753adcbe7c3c97d4e2af0e345a769437958db55310862b497f77701ab6c8c85ce2d8ea0fdf37c16984f7ecc33b2269a
|
7
|
+
data.tar.gz: 8d66c046817a12d23a2b482b49d4d4a77290b73739950a99689d3de9e5466bbbd1057f90ef1bd4858c5b474486f39551be8c23ac346530d7f7762dfed041621c
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,41 @@ 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
|
+
# [6.0.0] - 2024-11-22
|
9
|
+
|
10
|
+
Previously the only field extracted from the `informationStatuses` section of the 277 report JSON was `healthCareClaimStatusCategoryCode`. This version includes the following additional fields from this section: `healthCareClaimStatusCategoryCodeValue`, `statusCode` & `statusCodeValue`.
|
11
|
+
|
12
|
+
### Removed
|
13
|
+
|
14
|
+
Breaking changes:
|
15
|
+
|
16
|
+
* `Report277InfoClaimStatus#status_category_codes`
|
17
|
+
* `Report277InfoClaimStatus#add_status_category_code`
|
18
|
+
|
19
|
+
### Added
|
20
|
+
|
21
|
+
* `ChangeHealth::Response::Claim::Report277InfoStatus` model that encapsulates the fields listed above.
|
22
|
+
* `Report277InfoClaimStatus#info_statuses` property that stores all `Report277InfoStatus` found in the `informationStatuses` section of the 277 JSON.
|
23
|
+
* `Report277InfoClaimStatus#add_info_status` method to add individual `Report277InfoStatus`.
|
24
|
+
* `Report277Data#latest_info_statuses` method to return the latest `informationStatuses` in the 277 JSON. See README for usage.
|
25
|
+
|
26
|
+
# [5.18.0] - 2024-08-19
|
27
|
+
|
28
|
+
### Added
|
29
|
+
|
30
|
+
* Additional error handling for different format of error response
|
31
|
+
|
32
|
+
```
|
33
|
+
"errors": {
|
34
|
+
"inputDto": [
|
35
|
+
"The inputDto field is required."
|
36
|
+
],
|
37
|
+
"$.claimInformation.serviceLines[0].professionalService.serviceUnitCount": [
|
38
|
+
"The JSON value could not be converted to System.String. Path: $.claimInformation.serviceLines[0].professionalService.serviceUnitCount | LineNumber: 0 | BytePositionInLine: 763."
|
39
|
+
]
|
40
|
+
}
|
41
|
+
```
|
42
|
+
|
8
43
|
# [5.17.0] - 2024-07-23
|
9
44
|
|
10
45
|
### Added
|
@@ -731,6 +766,8 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
731
766
|
* Authentication
|
732
767
|
* Configuration
|
733
768
|
|
769
|
+
[6.0.0]: https://github.com/WeInfuse/change_health/compare/v5.18.0...v6.0.0
|
770
|
+
[5.18.0]: https://github.com/WeInfuse/change_health/compare/v5.17.0...v5.18.0
|
734
771
|
[5.17.0]: https://github.com/WeInfuse/change_health/compare/v5.16.0...v5.17.0
|
735
772
|
[5.16.0]: https://github.com/WeInfuse/change_health/compare/v5.15.0...v5.16.0
|
736
773
|
[5.15.0]: https://github.com/WeInfuse/change_health/compare/v5.14.0...v5.15.0
|
data/README.md
CHANGED
@@ -436,6 +436,20 @@ claim277.report_creation_date
|
|
436
436
|
# Tue, 01 Dec 2020
|
437
437
|
|
438
438
|
# Report 277 specific below
|
439
|
+
statuses = claim277.latest_info_statuses
|
440
|
+
|
441
|
+
statuses.first.status_category_code
|
442
|
+
# "F1"
|
443
|
+
|
444
|
+
statuses.first.status_category_code_value
|
445
|
+
# "Finalized/Payment-The claim/line has been paid."
|
446
|
+
|
447
|
+
statuses.first.status_code
|
448
|
+
# "20"
|
449
|
+
|
450
|
+
statuses.first.status_code_value
|
451
|
+
# "Accepted for processing."
|
452
|
+
|
439
453
|
claim277.latest_status_category_codes
|
440
454
|
# ["F1"]
|
441
455
|
|
@@ -19,8 +19,12 @@ module ChangeHealth
|
|
19
19
|
self[:procedure_codes] << procedure_code
|
20
20
|
end
|
21
21
|
|
22
|
+
def latest_info_statuses
|
23
|
+
latest_info_claim_status&.info_statuses
|
24
|
+
end
|
25
|
+
|
22
26
|
def latest_status_category_codes
|
23
|
-
|
27
|
+
latest_info_statuses&.map(&:status_category_code)
|
24
28
|
end
|
25
29
|
|
26
30
|
def total_charge_amount
|
@@ -54,14 +54,19 @@ module ChangeHealth
|
|
54
54
|
status_information_effective_date = ChangeHealth::Models::PARSE_DATE.call(info_claim_status['statusInformationEffectiveDate'])
|
55
55
|
total_charge_amount = info_claim_status['totalClaimChargeAmount']
|
56
56
|
|
57
|
-
|
57
|
+
info_statuses = []
|
58
58
|
info_claim_status['informationStatuses']&.each do |info_status|
|
59
|
-
|
59
|
+
info_statuses << Report277InfoStatus.new(
|
60
|
+
status_category_code: info_status['healthCareClaimStatusCategoryCode'],
|
61
|
+
status_category_code_value: info_status['healthCareClaimStatusCategoryCodeValue'],
|
62
|
+
status_code: info_status['statusCode'],
|
63
|
+
status_code_value: info_status['statusCodeValue']
|
64
|
+
)
|
60
65
|
end
|
61
66
|
|
62
67
|
info_claim_statuses << Report277InfoClaimStatus.new(
|
63
68
|
message: message,
|
64
|
-
|
69
|
+
info_statuses: info_statuses,
|
65
70
|
total_charge_amount: total_charge_amount,
|
66
71
|
status_information_effective_date: status_information_effective_date
|
67
72
|
)
|
@@ -3,13 +3,13 @@ module ChangeHealth
|
|
3
3
|
module Claim
|
4
4
|
class Report277InfoClaimStatus < Hashie::Trash
|
5
5
|
property :message, required: false
|
6
|
-
property :
|
6
|
+
property :info_statuses, required: false
|
7
7
|
property :total_charge_amount, required: false
|
8
8
|
property :status_information_effective_date, required: false
|
9
9
|
|
10
|
-
def
|
11
|
-
self[:
|
12
|
-
self[:
|
10
|
+
def add_info_status(info_status)
|
11
|
+
self[:info_statuses] ||= []
|
12
|
+
self[:info_statuses] << info_status
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module ChangeHealth
|
2
|
+
module Response
|
3
|
+
module Claim
|
4
|
+
class Report277InfoStatus < Hashie::Trash
|
5
|
+
property :status_category_code, required: false
|
6
|
+
property :status_category_code_value, required: false
|
7
|
+
property :status_code, required: false
|
8
|
+
property :status_code_value, required: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -22,7 +22,7 @@ module ChangeHealth
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def message
|
25
|
-
field_message || code_message
|
25
|
+
field_message || code_message || @data.to_s
|
26
26
|
end
|
27
27
|
|
28
28
|
def field_message
|
@@ -48,7 +48,7 @@ module ChangeHealth
|
|
48
48
|
end
|
49
49
|
|
50
50
|
define_method(method_name.to_s) do
|
51
|
-
@data[method_name]
|
51
|
+
@data[method_name] if @data.is_a?(Hash)
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
data/lib/change_health.rb
CHANGED
@@ -46,6 +46,7 @@ require 'change_health/response/claim/report/report_277_data'
|
|
46
46
|
require 'change_health/response/claim/report/report_835_data'
|
47
47
|
require 'change_health/response/claim/report/report_claim'
|
48
48
|
require 'change_health/response/claim/report/report_277_claim'
|
49
|
+
require 'change_health/response/claim/report/report_277_info_status'
|
49
50
|
require 'change_health/response/claim/report/report_277_info_claim_status'
|
50
51
|
require 'change_health/response/claim/report/report_835_claim'
|
51
52
|
require 'change_health/response/claim/report/report_835_health_care_check_remark_code'
|
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
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Crockett
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -128,7 +128,7 @@ dependencies:
|
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0.9'
|
131
|
-
description:
|
131
|
+
description:
|
132
132
|
email:
|
133
133
|
- mike.crockett@weinfuse.com
|
134
134
|
executables: []
|
@@ -182,6 +182,7 @@ files:
|
|
182
182
|
- lib/change_health/response/claim/report/report_277_claim.rb
|
183
183
|
- lib/change_health/response/claim/report/report_277_data.rb
|
184
184
|
- lib/change_health/response/claim/report/report_277_info_claim_status.rb
|
185
|
+
- lib/change_health/response/claim/report/report_277_info_status.rb
|
185
186
|
- lib/change_health/response/claim/report/report_835_claim.rb
|
186
187
|
- lib/change_health/response/claim/report/report_835_data.rb
|
187
188
|
- lib/change_health/response/claim/report/report_835_health_care_check_remark_code.rb
|
@@ -206,7 +207,7 @@ licenses:
|
|
206
207
|
- MIT
|
207
208
|
metadata:
|
208
209
|
allowed_push_host: https://rubygems.org
|
209
|
-
post_install_message:
|
210
|
+
post_install_message:
|
210
211
|
rdoc_options: []
|
211
212
|
require_paths:
|
212
213
|
- lib
|
@@ -222,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
223
|
version: '0'
|
223
224
|
requirements: []
|
224
225
|
rubygems_version: 3.1.6
|
225
|
-
signing_key:
|
226
|
+
signing_key:
|
226
227
|
specification_version: 4
|
227
228
|
summary: Ruby wrapper for the ChangeHealth API
|
228
229
|
test_files: []
|