change_healthcare-professional_claims 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +7 -7
- data/lib/change_healthcare/professional_claims/swagger_client/models/meta.rb +206 -0
- data/lib/change_healthcare/professional_claims/swagger_client/models/response.rb +9 -4
- data/lib/change_healthcare/professional_claims/swagger_client.rb +1 -0
- data/lib/change_healthcare/professional_claims/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67b89d0cdb11cba5c0cfa6a92b3258c6228329e11013f2aadc46ce970b5908d3
|
4
|
+
data.tar.gz: dc6b1198280d8e889e8445dc4474d68daab5d58c28655f01e379081ac843cc99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63323abe7d3757bcc61aaf919e93df65849adbf1dcbe267c5889d230db6d6a5a07f619b21cd8b59dce764269260d30ea1f37b1168909835e4da1664ad899ff15
|
7
|
+
data.tar.gz: fba4c4150a5cc3b952aba78418bce5d141e56d6bce55088c9c5e0c23b41d32601ba2c23080454788c825b509650bf8a9206d7acf9e6b1dcea4a07f119a2d2cc9
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,14 @@
|
|
1
|
+
## V0.6.0 - 2023-11-17
|
2
|
+
|
3
|
+
- Add the `meta` object to the response model.
|
4
|
+
|
1
5
|
## V0.5.0 - 2021-04-15
|
2
6
|
|
3
7
|
- Loosen ruby version bounds
|
4
8
|
|
5
9
|
## V0.4.0 - 20210-04-15
|
6
10
|
|
7
|
-
-
|
11
|
+
- Another `relationship-to-insured` typo fix.
|
8
12
|
|
9
13
|
|
10
14
|
## V0.3.0 - 2021-04-15
|
data/Gemfile.lock
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
change_healthcare-professional_claims (0.
|
4
|
+
change_healthcare-professional_claims (0.6.0)
|
5
5
|
addressable (~> 2.5)
|
6
6
|
typhoeus (~> 1.4)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.
|
12
|
-
public_suffix (>= 2.0.2, <
|
11
|
+
addressable (2.8.1)
|
12
|
+
public_suffix (>= 2.0.2, < 6.0)
|
13
13
|
ast (2.4.2)
|
14
14
|
backport (1.1.2)
|
15
15
|
benchmark (0.1.1)
|
@@ -18,9 +18,9 @@ GEM
|
|
18
18
|
diff-lcs (1.4.4)
|
19
19
|
docile (1.3.5)
|
20
20
|
e2mmap (0.1.0)
|
21
|
-
ethon (0.
|
22
|
-
ffi (>= 1.
|
23
|
-
ffi (1.15.
|
21
|
+
ethon (0.15.0)
|
22
|
+
ffi (>= 1.15.0)
|
23
|
+
ffi (1.15.5)
|
24
24
|
jaro_winkler (1.5.4)
|
25
25
|
kramdown (2.3.1)
|
26
26
|
rexml
|
@@ -37,7 +37,7 @@ GEM
|
|
37
37
|
pry (0.14.0)
|
38
38
|
coderay (~> 1.1)
|
39
39
|
method_source (~> 1.0)
|
40
|
-
public_suffix (
|
40
|
+
public_suffix (5.0.0)
|
41
41
|
racc (1.5.2)
|
42
42
|
rainbow (3.0.0)
|
43
43
|
rake (10.5.0)
|
@@ -0,0 +1,206 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Medical Network Professional Claims v3
|
4
|
+
#
|
5
|
+
# Reference for developers
|
6
|
+
#
|
7
|
+
# OpenAPI spec version: v3
|
8
|
+
#
|
9
|
+
|
10
|
+
require 'date'
|
11
|
+
|
12
|
+
module ChangeHealthcare
|
13
|
+
module ProfessionalClaims
|
14
|
+
module SwaggerClient
|
15
|
+
class Meta
|
16
|
+
attr_accessor :application_mode, :biller_id, :sender_id, :submitter_id, :trace_id
|
17
|
+
|
18
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
19
|
+
def self.attribute_map
|
20
|
+
{
|
21
|
+
application_mode: :applicationMode,
|
22
|
+
biller_id: :billerId,
|
23
|
+
sender_id: :senderId,
|
24
|
+
submitter_id: :submitterId,
|
25
|
+
trace_id: :traceId
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
application_mode: :String,
|
33
|
+
biller_id: :String,
|
34
|
+
sender_id: :String,
|
35
|
+
submitter_id: :String,
|
36
|
+
trace_id: :String
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Initializes the object
|
41
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
42
|
+
def initialize(attributes = {})
|
43
|
+
return unless attributes.is_a?(Hash)
|
44
|
+
|
45
|
+
# convert string to symbol for hash key
|
46
|
+
attributes = attributes.transform_keys(&:to_sym)
|
47
|
+
|
48
|
+
self.application_mode = attributes[:applicationMode] if attributes.key?(:applicationMode)
|
49
|
+
|
50
|
+
self.biller_id = attributes[:billerId] if attributes.key?(:billerId)
|
51
|
+
|
52
|
+
self.sender_id = attributes[:senderId] if attributes.key?(:senderId)
|
53
|
+
|
54
|
+
self.submitter_id = attributes[:submitterId] if attributes.key?(:submitterId)
|
55
|
+
|
56
|
+
self.trace_id = attributes[:traceId] if attributes.key?(:traceId)
|
57
|
+
end
|
58
|
+
|
59
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
60
|
+
# @return Array for valid properties with the reasons
|
61
|
+
def list_invalid_properties
|
62
|
+
[]
|
63
|
+
end
|
64
|
+
|
65
|
+
# Check to see if the all the properties in the model are valid
|
66
|
+
# @return true if the model is valid
|
67
|
+
def valid?
|
68
|
+
true
|
69
|
+
end
|
70
|
+
|
71
|
+
# Checks equality by comparing each attribute.
|
72
|
+
# @param [Object] Object to be compared
|
73
|
+
def ==(other)
|
74
|
+
return true if equal?(other)
|
75
|
+
|
76
|
+
self.class == other.class &&
|
77
|
+
application_mode == other.application_mode &&
|
78
|
+
biller_id == other.biller_id &&
|
79
|
+
sender_id == other.sender_id &&
|
80
|
+
submitter_id == other.submitter_id &&
|
81
|
+
trace_id == other.trace_id
|
82
|
+
end
|
83
|
+
|
84
|
+
# @see the `==` method
|
85
|
+
# @param [Object] Object to be compared
|
86
|
+
def eql?(other)
|
87
|
+
self == other
|
88
|
+
end
|
89
|
+
|
90
|
+
# Calculates hash code according to all attributes.
|
91
|
+
# @return [Fixnum] Hash code
|
92
|
+
def hash
|
93
|
+
[application_mode, biller_id, sender_id, submitter_id, trace_id].hash
|
94
|
+
end
|
95
|
+
|
96
|
+
# Builds the object from hash
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
98
|
+
# @return [Object] Returns the model itself
|
99
|
+
def build_from_hash(attributes)
|
100
|
+
return nil unless attributes.is_a?(Hash)
|
101
|
+
|
102
|
+
self.class.swagger_types.each_pair do |key, type|
|
103
|
+
if type =~ /\AArray<(.*)>/i
|
104
|
+
# check to ensure the input is an array given that the attribute
|
105
|
+
# is documented as an array but the input is not
|
106
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
107
|
+
send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
|
108
|
+
_deserialize(Regexp.last_match(1), v)
|
109
|
+
end)
|
110
|
+
end
|
111
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
112
|
+
send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
self
|
117
|
+
end
|
118
|
+
|
119
|
+
# Deserializes the data based on type
|
120
|
+
# @param string type Data type
|
121
|
+
# @param string value Value to be deserialized
|
122
|
+
# @return [Object] Deserialized data
|
123
|
+
def _deserialize(type, value)
|
124
|
+
case type.to_sym
|
125
|
+
when :DateTime
|
126
|
+
DateTime.parse(value)
|
127
|
+
when :Date
|
128
|
+
Date.parse(value)
|
129
|
+
when :String
|
130
|
+
value.to_s
|
131
|
+
when :Integer
|
132
|
+
value.to_i
|
133
|
+
when :Float
|
134
|
+
value.to_f
|
135
|
+
when :BOOLEAN
|
136
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
137
|
+
true
|
138
|
+
else
|
139
|
+
false
|
140
|
+
end
|
141
|
+
when :Object
|
142
|
+
# generic object (usually a Hash), return directly
|
143
|
+
value
|
144
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
145
|
+
inner_type = Regexp.last_match[:inner_type]
|
146
|
+
value.map { |v| _deserialize(inner_type, v) }
|
147
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
148
|
+
k_type = Regexp.last_match[:k_type]
|
149
|
+
v_type = Regexp.last_match[:v_type]
|
150
|
+
{}.tap do |hash|
|
151
|
+
value.each do |k, v|
|
152
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
else # model
|
156
|
+
temp_model = SwaggerClient.const_get(type).new
|
157
|
+
temp_model.build_from_hash(value)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# Returns the string representation of the object
|
162
|
+
# @return [String] String presentation of the object
|
163
|
+
def to_s
|
164
|
+
to_hash.to_s
|
165
|
+
end
|
166
|
+
|
167
|
+
# to_body is an alias to to_hash (backward compatibility)
|
168
|
+
# @return [Hash] Returns the object in the form of hash
|
169
|
+
def to_body
|
170
|
+
to_hash
|
171
|
+
end
|
172
|
+
|
173
|
+
# Returns the object in the form of hash
|
174
|
+
# @return [Hash] Returns the object in the form of hash
|
175
|
+
def to_hash
|
176
|
+
hash = {}
|
177
|
+
self.class.attribute_map.each_pair do |attr, param|
|
178
|
+
value = send(attr)
|
179
|
+
next if value.nil?
|
180
|
+
|
181
|
+
hash[param] = _to_hash(value)
|
182
|
+
end
|
183
|
+
hash
|
184
|
+
end
|
185
|
+
|
186
|
+
# Outputs non-array value in the form of hash
|
187
|
+
# For object, use to_hash. Otherwise, just return the value
|
188
|
+
# @param [Object] value Any valid value
|
189
|
+
# @return [Hash] Returns the value in the form of hash
|
190
|
+
def _to_hash(value)
|
191
|
+
if value.is_a?(Array)
|
192
|
+
value.compact.map { |v| _to_hash(v) }
|
193
|
+
elsif value.is_a?(Hash)
|
194
|
+
{}.tap do |hash|
|
195
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
196
|
+
end
|
197
|
+
elsif value.respond_to? :to_hash
|
198
|
+
value.to_hash
|
199
|
+
else
|
200
|
+
value
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
@@ -16,8 +16,8 @@ module ChangeHealthcare
|
|
16
16
|
module ProfessionalClaims
|
17
17
|
module SwaggerClient
|
18
18
|
class Response
|
19
|
-
attr_accessor :claim_reference, :control_number, :edit_responses, :edit_status, :errors, :failure, :
|
20
|
-
:status, :trading_partner_id, :trading_partner_service_id
|
19
|
+
attr_accessor :claim_reference, :control_number, :edit_responses, :edit_status, :errors, :failure, :meta,
|
20
|
+
:payer, :status, :trading_partner_id, :trading_partner_service_id
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
@@ -28,6 +28,7 @@ module ChangeHealthcare
|
|
28
28
|
edit_status: :editStatus,
|
29
29
|
errors: :errors,
|
30
30
|
failure: :failure,
|
31
|
+
meta: :meta,
|
31
32
|
payer: :payer,
|
32
33
|
status: :status,
|
33
34
|
trading_partner_id: :tradingPartnerId,
|
@@ -44,6 +45,7 @@ module ChangeHealthcare
|
|
44
45
|
edit_status: :String,
|
45
46
|
errors: :'Array<Error>',
|
46
47
|
failure: :Failure,
|
48
|
+
meta: :Meta,
|
47
49
|
payer: :Payer,
|
48
50
|
status: :String,
|
49
51
|
trading_partner_id: :String,
|
@@ -75,6 +77,8 @@ module ChangeHealthcare
|
|
75
77
|
|
76
78
|
self.failure = attributes[:failure] if attributes.key?(:failure)
|
77
79
|
|
80
|
+
self.meta = attributes[:meta] if attributes.key?(:meta)
|
81
|
+
|
78
82
|
self.payer = attributes[:payer] if attributes.key?(:payer)
|
79
83
|
|
80
84
|
self.status = attributes[:status] if attributes.key?(:status)
|
@@ -108,6 +112,7 @@ module ChangeHealthcare
|
|
108
112
|
edit_status == other.edit_status &&
|
109
113
|
errors == other.errors &&
|
110
114
|
failure == other.failure &&
|
115
|
+
meta == other.meta &&
|
111
116
|
payer == other.payer &&
|
112
117
|
status == other.status &&
|
113
118
|
trading_partner_id == other.trading_partner_id &&
|
@@ -123,8 +128,8 @@ module ChangeHealthcare
|
|
123
128
|
# Calculates hash code according to all attributes.
|
124
129
|
# @return [Fixnum] Hash code
|
125
130
|
def hash
|
126
|
-
[claim_reference, control_number, edit_responses, edit_status, errors, failure,
|
127
|
-
trading_partner_id, trading_partner_service_id].hash
|
131
|
+
[claim_reference, control_number, edit_responses, edit_status, errors, failure, meta, payer,
|
132
|
+
status, trading_partner_id, trading_partner_service_id].hash
|
128
133
|
end
|
129
134
|
|
130
135
|
# Builds the object from hash
|
@@ -50,6 +50,7 @@ require_relative './swagger_client/models/health_care_information'
|
|
50
50
|
require_relative './swagger_client/models/line_adjudication_information'
|
51
51
|
require_relative './swagger_client/models/measurements'
|
52
52
|
require_relative './swagger_client/models/medicare_outpatient_adjudication'
|
53
|
+
require_relative './swagger_client/models/meta'
|
53
54
|
require_relative './swagger_client/models/other_payer_billing_provider'
|
54
55
|
require_relative './swagger_client/models/other_payer_name'
|
55
56
|
require_relative './swagger_client/models/other_payer_referring_provider'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: change_healthcare-professional_claims
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Super
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -212,6 +212,7 @@ files:
|
|
212
212
|
- lib/change_healthcare/professional_claims/swagger_client/models/line_adjudication_information.rb
|
213
213
|
- lib/change_healthcare/professional_claims/swagger_client/models/measurements.rb
|
214
214
|
- lib/change_healthcare/professional_claims/swagger_client/models/medicare_outpatient_adjudication.rb
|
215
|
+
- lib/change_healthcare/professional_claims/swagger_client/models/meta.rb
|
215
216
|
- lib/change_healthcare/professional_claims/swagger_client/models/other_payer_billing_provider.rb
|
216
217
|
- lib/change_healthcare/professional_claims/swagger_client/models/other_payer_name.rb
|
217
218
|
- lib/change_healthcare/professional_claims/swagger_client/models/other_payer_referring_provider.rb
|
@@ -267,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
268
|
- !ruby/object:Gem::Version
|
268
269
|
version: '0'
|
269
270
|
requirements: []
|
270
|
-
rubygems_version: 3.
|
271
|
+
rubygems_version: 3.1.6
|
271
272
|
signing_key:
|
272
273
|
specification_version: 4
|
273
274
|
summary: Change Healthcare Professional Claims API (Unofficial)
|