change_healthcare-professional_claims 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +30 -0
  5. data/.travis.yml +6 -0
  6. data/.yardopts +1 -0
  7. data/CHANGELOG.md +0 -0
  8. data/Gemfile +6 -0
  9. data/Gemfile.lock +118 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +39 -0
  12. data/Rakefile +8 -0
  13. data/TODO.md +8 -0
  14. data/bin/console +15 -0
  15. data/bin/rspec +29 -0
  16. data/bin/setup +8 -0
  17. data/change_healthcare-professional_claims.gemspec +43 -0
  18. data/lib/change_healthcare/professional_claims.rb +16 -0
  19. data/lib/change_healthcare/professional_claims/swagger_client.rb +106 -0
  20. data/lib/change_healthcare/professional_claims/swagger_client/api_client.rb +390 -0
  21. data/lib/change_healthcare/professional_claims/swagger_client/api_error.rb +42 -0
  22. data/lib/change_healthcare/professional_claims/swagger_client/configuration.rb +204 -0
  23. data/lib/change_healthcare/professional_claims/swagger_client/models/address.rb +219 -0
  24. data/lib/change_healthcare/professional_claims/swagger_client/models/ambulance_certification.rb +247 -0
  25. data/lib/change_healthcare/professional_claims/swagger_client/models/ambulance_transport_information.rb +259 -0
  26. data/lib/change_healthcare/professional_claims/swagger_client/models/clai_request.rb +283 -0
  27. data/lib/change_healthcare/professional_claims/swagger_client/models/claim_adjustment.rb +244 -0
  28. data/lib/change_healthcare/professional_claims/swagger_client/models/claim_adjustment_details.rb +199 -0
  29. data/lib/change_healthcare/professional_claims/swagger_client/models/claim_contract_information.rb +265 -0
  30. data/lib/change_healthcare/professional_claims/swagger_client/models/claim_date_information.rb +298 -0
  31. data/lib/change_healthcare/professional_claims/swagger_client/models/claim_information.rb +579 -0
  32. data/lib/change_healthcare/professional_claims/swagger_client/models/claim_note.rb +216 -0
  33. data/lib/change_healthcare/professional_claims/swagger_client/models/claim_pricing_repricing_information.rb +363 -0
  34. data/lib/change_healthcare/professional_claims/swagger_client/models/claim_reference.rb +231 -0
  35. data/lib/change_healthcare/professional_claims/swagger_client/models/claim_submission_request.rb +278 -0
  36. data/lib/change_healthcare/professional_claims/swagger_client/models/claim_supplemental_information.rb +315 -0
  37. data/lib/change_healthcare/professional_claims/swagger_client/models/composite_diagnosis_code_pointers.rb +191 -0
  38. data/lib/change_healthcare/professional_claims/swagger_client/models/condition_indicator_durable_medical_equipment.rb +281 -0
  39. data/lib/change_healthcare/professional_claims/swagger_client/models/condition_information.rb +190 -0
  40. data/lib/change_healthcare/professional_claims/swagger_client/models/contact_information.rb +209 -0
  41. data/lib/change_healthcare/professional_claims/swagger_client/models/contract_information.rb +255 -0
  42. data/lib/change_healthcare/professional_claims/swagger_client/models/dependent.rb +294 -0
  43. data/lib/change_healthcare/professional_claims/swagger_client/models/drug_identification.rb +278 -0
  44. data/lib/change_healthcare/professional_claims/swagger_client/models/durable_medical_equipment_certificate_of_medical_necessity.rb +226 -0
  45. data/lib/change_healthcare/professional_claims/swagger_client/models/durable_medical_equipment_certification.rb +233 -0
  46. data/lib/change_healthcare/professional_claims/swagger_client/models/durable_medical_equipment_service.rb +243 -0
  47. data/lib/change_healthcare/professional_claims/swagger_client/models/edit_response.rb +251 -0
  48. data/lib/change_healthcare/professional_claims/swagger_client/models/epsdt_referral.rb +236 -0
  49. data/lib/change_healthcare/professional_claims/swagger_client/models/error.rb +214 -0
  50. data/lib/change_healthcare/professional_claims/swagger_client/models/failure.rb +194 -0
  51. data/lib/change_healthcare/professional_claims/swagger_client/models/form_identification.rb +240 -0
  52. data/lib/change_healthcare/professional_claims/swagger_client/models/health_care_information.rb +233 -0
  53. data/lib/change_healthcare/professional_claims/swagger_client/models/line_adjudication_information.rb +284 -0
  54. data/lib/change_healthcare/professional_claims/swagger_client/models/measurements.rb +256 -0
  55. data/lib/change_healthcare/professional_claims/swagger_client/models/medicare_outpatient_adjudication.rb +213 -0
  56. data/lib/change_healthcare/professional_claims/swagger_client/models/other_payer_billing_provider.rb +236 -0
  57. data/lib/change_healthcare/professional_claims/swagger_client/models/other_payer_name.rb +285 -0
  58. data/lib/change_healthcare/professional_claims/swagger_client/models/other_payer_referring_provider.rb +192 -0
  59. data/lib/change_healthcare/professional_claims/swagger_client/models/other_payer_rendering_provider.rb +236 -0
  60. data/lib/change_healthcare/professional_claims/swagger_client/models/other_payer_service_facility_location.rb +192 -0
  61. data/lib/change_healthcare/professional_claims/swagger_client/models/other_payer_supervising_provider.rb +192 -0
  62. data/lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb +430 -0
  63. data/lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_name.rb +288 -0
  64. data/lib/change_healthcare/professional_claims/swagger_client/models/patient_condition_information_vision.rb +259 -0
  65. data/lib/change_healthcare/professional_claims/swagger_client/models/pay_to_plan.rb +278 -0
  66. data/lib/change_healthcare/professional_claims/swagger_client/models/payer.rb +194 -0
  67. data/lib/change_healthcare/professional_claims/swagger_client/models/prior_authorization.rb +194 -0
  68. data/lib/change_healthcare/professional_claims/swagger_client/models/professional_service.rb +290 -0
  69. data/lib/change_healthcare/professional_claims/swagger_client/models/provider.rb +281 -0
  70. data/lib/change_healthcare/professional_claims/swagger_client/models/purchased_service_information.rb +194 -0
  71. data/lib/change_healthcare/professional_claims/swagger_client/models/raw_x12_request.rb +194 -0
  72. data/lib/change_healthcare/professional_claims/swagger_client/models/receiver.rb +189 -0
  73. data/lib/change_healthcare/professional_claims/swagger_client/models/reference_identification.rb +199 -0
  74. data/lib/change_healthcare/professional_claims/swagger_client/models/report_information.rb +261 -0
  75. data/lib/change_healthcare/professional_claims/swagger_client/models/response.rb +240 -0
  76. data/lib/change_healthcare/professional_claims/swagger_client/models/service_facility_location.rb +224 -0
  77. data/lib/change_healthcare/professional_claims/swagger_client/models/service_line.rb +388 -0
  78. data/lib/change_healthcare/professional_claims/swagger_client/models/service_line_date_information.rb +236 -0
  79. data/lib/change_healthcare/professional_claims/swagger_client/models/service_line_provider.rb +293 -0
  80. data/lib/change_healthcare/professional_claims/swagger_client/models/service_line_reference_information.rb +230 -0
  81. data/lib/change_healthcare/professional_claims/swagger_client/models/spinal_manipulation_service_information.rb +238 -0
  82. data/lib/change_healthcare/professional_claims/swagger_client/models/submitter.rb +209 -0
  83. data/lib/change_healthcare/professional_claims/swagger_client/models/subscriber.rb +309 -0
  84. data/lib/change_healthcare/professional_claims/swagger_client/models/supporting_documentation.rb +249 -0
  85. data/lib/change_healthcare/professional_claims/swagger_client/professional_claims_api.rb +361 -0
  86. data/lib/change_healthcare/professional_claims/swagger_client/version.rb +19 -0
  87. data/lib/change_healthcare/professional_claims/version.rb +7 -0
  88. data/lib/change_healthcare/professional_claims/wrapper.rb +141 -0
  89. metadata +274 -0
@@ -0,0 +1,249 @@
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
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
10
+ # Swagger Codegen version: 2.4.19
11
+ #
12
+
13
+ require 'date'
14
+
15
+ module ChangeHealthcare
16
+ module ProfessionalClaims
17
+ module SwaggerClient
18
+ class SupportingDocumentation
19
+ attr_accessor :question_number, :question_response, :question_response_as_date, :question_response_as_percent
20
+
21
+ # Allowed Values are: 'N' No, 'W' Not Applicable, 'Y' Yes
22
+ attr_reader :question_response_code
23
+
24
+ class EnumAttributeValidator
25
+ attr_reader :datatype, :allowable_values
26
+
27
+ def initialize(datatype, allowable_values)
28
+ @allowable_values = allowable_values.map do |value|
29
+ case datatype.to_s
30
+ when /Integer/i
31
+ value.to_i
32
+ when /Float/i
33
+ value.to_f
34
+ else
35
+ value
36
+ end
37
+ end
38
+ end
39
+
40
+ def valid?(value)
41
+ !value || allowable_values.include?(value)
42
+ end
43
+ end
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ question_number: :questionNumber,
49
+ question_response: :questionResponse,
50
+ question_response_as_date: :questionResponseAsDate,
51
+ question_response_as_percent: :questionResponseAsPercent,
52
+ question_response_code: :questionResponseCode
53
+ }
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.swagger_types
58
+ {
59
+ question_number: :String,
60
+ question_response: :String,
61
+ question_response_as_date: :String,
62
+ question_response_as_percent: :String,
63
+ question_response_code: :String
64
+ }
65
+ end
66
+
67
+ # Initializes the object
68
+ # @param [Hash] attributes Model attributes in the form of hash
69
+ def initialize(attributes = {})
70
+ return unless attributes.is_a?(Hash)
71
+
72
+ # convert string to symbol for hash key
73
+ attributes = attributes.transform_keys(&:to_sym)
74
+
75
+ self.question_number = attributes[:questionNumber] if attributes.key?(:questionNumber)
76
+
77
+ self.question_response = attributes[:questionResponse] if attributes.key?(:questionResponse)
78
+
79
+ self.question_response_as_date = attributes[:questionResponseAsDate] if attributes.key?(:questionResponseAsDate)
80
+
81
+ self.question_response_as_percent = attributes[:questionResponseAsPercent] if attributes.key?(:questionResponseAsPercent)
82
+
83
+ self.question_response_code = attributes[:questionResponseCode] if attributes.key?(:questionResponseCode)
84
+ end
85
+
86
+ # Show invalid properties with the reasons. Usually used together with valid?
87
+ # @return Array for valid properties with the reasons
88
+ def list_invalid_properties
89
+ []
90
+ end
91
+
92
+ # Check to see if the all the properties in the model are valid
93
+ # @return true if the model is valid
94
+ def valid?
95
+ question_response_code_validator = EnumAttributeValidator.new('String', %w[N W Y])
96
+ return false unless question_response_code_validator.valid?(@question_response_code)
97
+
98
+ true
99
+ end
100
+
101
+ # Custom attribute writer method checking allowed values (enum).
102
+ # @param [Object] question_response_code Object to be assigned
103
+ def question_response_code=(question_response_code)
104
+ validator = EnumAttributeValidator.new('String', %w[N W Y])
105
+ unless validator.valid?(question_response_code)
106
+ raise ArgumentError,
107
+ %(invalid value for "question_response_code", must be one of #{validator.allowable_values}.)
108
+ end
109
+
110
+ @question_response_code = question_response_code
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param [Object] Object to be compared
115
+ def ==(other)
116
+ return true if equal?(other)
117
+
118
+ self.class == other.class &&
119
+ question_number == other.question_number &&
120
+ question_response == other.question_response &&
121
+ question_response_as_date == other.question_response_as_date &&
122
+ question_response_as_percent == other.question_response_as_percent &&
123
+ question_response_code == other.question_response_code
124
+ end
125
+
126
+ # @see the `==` method
127
+ # @param [Object] Object to be compared
128
+ def eql?(other)
129
+ self == other
130
+ end
131
+
132
+ # Calculates hash code according to all attributes.
133
+ # @return [Fixnum] Hash code
134
+ def hash
135
+ [question_number, question_response, question_response_as_date, question_response_as_percent,
136
+ question_response_code].hash
137
+ end
138
+
139
+ # Builds the object from hash
140
+ # @param [Hash] attributes Model attributes in the form of hash
141
+ # @return [Object] Returns the model itself
142
+ def build_from_hash(attributes)
143
+ return nil unless attributes.is_a?(Hash)
144
+
145
+ self.class.swagger_types.each_pair do |key, type|
146
+ if type =~ /\AArray<(.*)>/i
147
+ # check to ensure the input is an array given that the attribute
148
+ # is documented as an array but the input is not
149
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
150
+ send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
151
+ _deserialize(Regexp.last_match(1), v)
152
+ end)
153
+ end
154
+ elsif !attributes[self.class.attribute_map[key]].nil?
155
+ send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
156
+ end
157
+ end
158
+
159
+ self
160
+ end
161
+
162
+ # Deserializes the data based on type
163
+ # @param string type Data type
164
+ # @param string value Value to be deserialized
165
+ # @return [Object] Deserialized data
166
+ def _deserialize(type, value)
167
+ case type.to_sym
168
+ when :DateTime
169
+ DateTime.parse(value)
170
+ when :Date
171
+ Date.parse(value)
172
+ when :String
173
+ value.to_s
174
+ when :Integer
175
+ value.to_i
176
+ when :Float
177
+ value.to_f
178
+ when :BOOLEAN
179
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
180
+ true
181
+ else
182
+ false
183
+ end
184
+ when :Object
185
+ # generic object (usually a Hash), return directly
186
+ value
187
+ when /\AArray<(?<inner_type>.+)>\z/
188
+ inner_type = Regexp.last_match[:inner_type]
189
+ value.map { |v| _deserialize(inner_type, v) }
190
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
191
+ k_type = Regexp.last_match[:k_type]
192
+ v_type = Regexp.last_match[:v_type]
193
+ {}.tap do |hash|
194
+ value.each do |k, v|
195
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
196
+ end
197
+ end
198
+ else # model
199
+ temp_model = SwaggerClient.const_get(type).new
200
+ temp_model.build_from_hash(value)
201
+ end
202
+ end
203
+
204
+ # Returns the string representation of the object
205
+ # @return [String] String presentation of the object
206
+ def to_s
207
+ to_hash.to_s
208
+ end
209
+
210
+ # to_body is an alias to to_hash (backward compatibility)
211
+ # @return [Hash] Returns the object in the form of hash
212
+ def to_body
213
+ to_hash
214
+ end
215
+
216
+ # Returns the object in the form of hash
217
+ # @return [Hash] Returns the object in the form of hash
218
+ def to_hash
219
+ hash = {}
220
+ self.class.attribute_map.each_pair do |attr, param|
221
+ value = send(attr)
222
+ next if value.nil?
223
+
224
+ hash[param] = _to_hash(value)
225
+ end
226
+ hash
227
+ end
228
+
229
+ # Outputs non-array value in the form of hash
230
+ # For object, use to_hash. Otherwise, just return the value
231
+ # @param [Object] value Any valid value
232
+ # @return [Hash] Returns the value in the form of hash
233
+ def _to_hash(value)
234
+ if value.is_a?(Array)
235
+ value.compact.map { |v| _to_hash(v) }
236
+ elsif value.is_a?(Hash)
237
+ {}.tap do |hash|
238
+ value.each { |k, v| hash[k] = _to_hash(v) }
239
+ end
240
+ elsif value.respond_to? :to_hash
241
+ value.to_hash
242
+ else
243
+ value
244
+ end
245
+ end
246
+ end
247
+ end
248
+ end
249
+ end
@@ -0,0 +1,361 @@
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
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
10
+ # Swagger Codegen version: 2.4.19
11
+ #
12
+
13
+ require 'uri'
14
+
15
+ module ChangeHealthcare
16
+ module ProfessionalClaims
17
+ module SwaggerClient
18
+ class ProfessionalClaimsApi
19
+ attr_accessor :api_client
20
+
21
+ def initialize(api_client = ApiClient.default)
22
+ @api_client = api_client
23
+ end
24
+
25
+ # healthCheck
26
+ # @param authorization Bearer Your-Access-Token
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [Hash<String, String>]
29
+ def health_check_using_get(authorization, opts = {})
30
+ data, _status_code, _headers = health_check_using_get_with_http_info(authorization, opts)
31
+ data
32
+ end
33
+
34
+ # healthCheck
35
+ # @param authorization Bearer Your-Access-Token
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(Hash<String, String>, Fixnum, Hash)>] Hash<String, String> data, response status code and response headers
38
+ def health_check_using_get_with_http_info(authorization, _opts = {})
39
+ @api_client.config.logger.debug 'Calling API: ProfessionalClaimsApi.health_check_using_get ...' if @api_client.config.debugging
40
+ # verify the required parameter 'authorization' is set
41
+ if @api_client.config.client_side_validation && authorization.nil?
42
+ raise ArgumentError,
43
+ "Missing the required parameter 'authorization' when calling ProfessionalClaimsApi.health_check_using_get"
44
+ end
45
+
46
+ # resource path
47
+ local_var_path = '/healthcheck'
48
+
49
+ # query parameters
50
+ query_params = {}
51
+
52
+ # header parameters
53
+ header_params = {}
54
+ # HTTP header 'Accept' (if needed)
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
56
+ header_params[:Authorization] = authorization
57
+
58
+ # form parameters
59
+ form_params = {}
60
+
61
+ # http body (model)
62
+ post_body = nil
63
+ auth_names = []
64
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
65
+ header_params: header_params,
66
+ query_params: query_params,
67
+ form_params: form_params,
68
+ body: post_body,
69
+ auth_names: auth_names,
70
+ return_type: 'Hash<String, String>')
71
+ @api_client.config.logger.debug "API called: ProfessionalClaimsApi#health_check_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging
72
+ [data, status_code, headers]
73
+ end
74
+
75
+ # submits your claim to the payer
76
+ # @param authorization Bearer Your-Access-Token
77
+ # @param request request
78
+ # @param [Hash] opts the optional parameters
79
+ # @return [Response]
80
+ def process_claim_using_post(authorization, request, opts = {})
81
+ data, _status_code, _headers = process_claim_using_post_with_http_info(authorization, request, opts)
82
+ data
83
+ end
84
+
85
+ # submits your claim to the payer
86
+ # @param authorization Bearer Your-Access-Token
87
+ # @param request request
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [Array<(Response, Fixnum, Hash)>] Response data, response status code and response headers
90
+ def process_claim_using_post_with_http_info(authorization, request, _opts = {})
91
+ @api_client.config.logger.debug 'Calling API: ProfessionalClaimsApi.process_claim_using_post ...' if @api_client.config.debugging
92
+ # verify the required parameter 'authorization' is set
93
+ if @api_client.config.client_side_validation && authorization.nil?
94
+ raise ArgumentError,
95
+ "Missing the required parameter 'authorization' when calling ProfessionalClaimsApi.process_claim_using_post"
96
+ end
97
+ # verify the required parameter 'request' is set
98
+ if @api_client.config.client_side_validation && request.nil?
99
+ raise ArgumentError,
100
+ "Missing the required parameter 'request' when calling ProfessionalClaimsApi.process_claim_using_post"
101
+ end
102
+
103
+ # resource path
104
+ local_var_path = '/submission'
105
+
106
+ # query parameters
107
+ query_params = {}
108
+
109
+ # header parameters
110
+ header_params = {}
111
+ # HTTP header 'Accept' (if needed)
112
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
113
+ # HTTP header 'Content-Type'
114
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
115
+ header_params[:Authorization] = authorization
116
+
117
+ # form parameters
118
+ form_params = {}
119
+
120
+ # http body (model)
121
+ post_body = @api_client.object_to_http_body(request)
122
+ auth_names = []
123
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
124
+ header_params: header_params,
125
+ query_params: query_params,
126
+ form_params: form_params,
127
+ body: post_body,
128
+ auth_names: auth_names,
129
+ return_type: 'Response')
130
+ @api_client.config.logger.debug "API called: ProfessionalClaimsApi#process_claim_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging
131
+ [data, status_code, headers]
132
+ end
133
+
134
+ # send raw 837
135
+ # @param authorization Bearer Your-Access-Token
136
+ # @param request request
137
+ # @param [Hash] opts the optional parameters
138
+ # @option opts [String] :x_chc_claim_submission_biller_id X-CHC-ClaimSubmission-BillerId
139
+ # @option opts [String] :x_chc_claim_submission_pwd X-CHC-ClaimSubmission-Pwd
140
+ # @option opts [String] :x_chc_claim_submission_submitter_id X-CHC-ClaimSubmission-SubmitterId
141
+ # @option opts [String] :x_chc_claim_submission_username X-CHC-ClaimSubmission-Username
142
+ # @return [Response]
143
+ def raw_x12_submission_using_post(authorization, request, opts = {})
144
+ data, _status_code, _headers = raw_x12_submission_using_post_with_http_info(authorization, request, opts)
145
+ data
146
+ end
147
+
148
+ # send raw 837
149
+ # @param authorization Bearer Your-Access-Token
150
+ # @param request request
151
+ # @param [Hash] opts the optional parameters
152
+ # @option opts [String] :x_chc_claim_submission_biller_id X-CHC-ClaimSubmission-BillerId
153
+ # @option opts [String] :x_chc_claim_submission_pwd X-CHC-ClaimSubmission-Pwd
154
+ # @option opts [String] :x_chc_claim_submission_submitter_id X-CHC-ClaimSubmission-SubmitterId
155
+ # @option opts [String] :x_chc_claim_submission_username X-CHC-ClaimSubmission-Username
156
+ # @return [Array<(Response, Fixnum, Hash)>] Response data, response status code and response headers
157
+ def raw_x12_submission_using_post_with_http_info(authorization, request, opts = {})
158
+ @api_client.config.logger.debug 'Calling API: ProfessionalClaimsApi.raw_x12_submission_using_post ...' if @api_client.config.debugging
159
+ # verify the required parameter 'authorization' is set
160
+ if @api_client.config.client_side_validation && authorization.nil?
161
+ raise ArgumentError,
162
+ "Missing the required parameter 'authorization' when calling ProfessionalClaimsApi.raw_x12_submission_using_post"
163
+ end
164
+ # verify the required parameter 'request' is set
165
+ if @api_client.config.client_side_validation && request.nil?
166
+ raise ArgumentError,
167
+ "Missing the required parameter 'request' when calling ProfessionalClaimsApi.raw_x12_submission_using_post"
168
+ end
169
+
170
+ # resource path
171
+ local_var_path = '/raw-x12-submission'
172
+
173
+ # query parameters
174
+ query_params = {}
175
+
176
+ # header parameters
177
+ header_params = {}
178
+ # HTTP header 'Accept' (if needed)
179
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
180
+ # HTTP header 'Content-Type'
181
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
182
+ header_params[:Authorization] = authorization
183
+ unless opts[:x_chc_claim_submission_biller_id].nil?
184
+ header_params[:'X-CHC-ClaimSubmission-BillerId'] =
185
+ opts[:x_chc_claim_submission_biller_id]
186
+ end
187
+ unless opts[:x_chc_claim_submission_pwd].nil?
188
+ header_params[:'X-CHC-ClaimSubmission-Pwd'] =
189
+ opts[:x_chc_claim_submission_pwd]
190
+ end
191
+ unless opts[:x_chc_claim_submission_submitter_id].nil?
192
+ header_params[:'X-CHC-ClaimSubmission-SubmitterId'] =
193
+ opts[:x_chc_claim_submission_submitter_id]
194
+ end
195
+ unless opts[:x_chc_claim_submission_username].nil?
196
+ header_params[:'X-CHC-ClaimSubmission-Username'] =
197
+ opts[:x_chc_claim_submission_username]
198
+ end
199
+
200
+ # form parameters
201
+ form_params = {}
202
+
203
+ # http body (model)
204
+ post_body = @api_client.object_to_http_body(request)
205
+ auth_names = []
206
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
207
+ header_params: header_params,
208
+ query_params: query_params,
209
+ form_params: form_params,
210
+ body: post_body,
211
+ auth_names: auth_names,
212
+ return_type: 'Response')
213
+ @api_client.config.logger.debug "API called: ProfessionalClaimsApi#raw_x12_submission_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging
214
+ [data, status_code, headers]
215
+ end
216
+
217
+ # validate raw 837
218
+ # @param authorization Bearer Your-Access-Token
219
+ # @param request request
220
+ # @param [Hash] opts the optional parameters
221
+ # @option opts [String] :x_chc_claim_submission_biller_id X-CHC-ClaimSubmission-BillerId
222
+ # @option opts [String] :x_chc_claim_submission_pwd X-CHC-ClaimSubmission-Pwd
223
+ # @option opts [String] :x_chc_claim_submission_submitter_id X-CHC-ClaimSubmission-SubmitterId
224
+ # @option opts [String] :x_chc_claim_submission_username X-CHC-ClaimSubmission-Username
225
+ # @return [Response]
226
+ def raw_x12_validation_using_post(authorization, request, opts = {})
227
+ data, _status_code, _headers = raw_x12_validation_using_post_with_http_info(authorization, request, opts)
228
+ data
229
+ end
230
+
231
+ # validate raw 837
232
+ # @param authorization Bearer Your-Access-Token
233
+ # @param request request
234
+ # @param [Hash] opts the optional parameters
235
+ # @option opts [String] :x_chc_claim_submission_biller_id X-CHC-ClaimSubmission-BillerId
236
+ # @option opts [String] :x_chc_claim_submission_pwd X-CHC-ClaimSubmission-Pwd
237
+ # @option opts [String] :x_chc_claim_submission_submitter_id X-CHC-ClaimSubmission-SubmitterId
238
+ # @option opts [String] :x_chc_claim_submission_username X-CHC-ClaimSubmission-Username
239
+ # @return [Array<(Response, Fixnum, Hash)>] Response data, response status code and response headers
240
+ def raw_x12_validation_using_post_with_http_info(authorization, request, opts = {})
241
+ @api_client.config.logger.debug 'Calling API: ProfessionalClaimsApi.raw_x12_validation_using_post ...' if @api_client.config.debugging
242
+ # verify the required parameter 'authorization' is set
243
+ if @api_client.config.client_side_validation && authorization.nil?
244
+ raise ArgumentError,
245
+ "Missing the required parameter 'authorization' when calling ProfessionalClaimsApi.raw_x12_validation_using_post"
246
+ end
247
+ # verify the required parameter 'request' is set
248
+ if @api_client.config.client_side_validation && request.nil?
249
+ raise ArgumentError,
250
+ "Missing the required parameter 'request' when calling ProfessionalClaimsApi.raw_x12_validation_using_post"
251
+ end
252
+
253
+ # resource path
254
+ local_var_path = '/raw-x12-validation'
255
+
256
+ # query parameters
257
+ query_params = {}
258
+
259
+ # header parameters
260
+ header_params = {}
261
+ # HTTP header 'Accept' (if needed)
262
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
263
+ # HTTP header 'Content-Type'
264
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
265
+ header_params[:Authorization] = authorization
266
+ unless opts[:x_chc_claim_submission_biller_id].nil?
267
+ header_params[:'X-CHC-ClaimSubmission-BillerId'] =
268
+ opts[:x_chc_claim_submission_biller_id]
269
+ end
270
+ unless opts[:x_chc_claim_submission_pwd].nil?
271
+ header_params[:'X-CHC-ClaimSubmission-Pwd'] =
272
+ opts[:x_chc_claim_submission_pwd]
273
+ end
274
+ unless opts[:x_chc_claim_submission_submitter_id].nil?
275
+ header_params[:'X-CHC-ClaimSubmission-SubmitterId'] =
276
+ opts[:x_chc_claim_submission_submitter_id]
277
+ end
278
+ unless opts[:x_chc_claim_submission_username].nil?
279
+ header_params[:'X-CHC-ClaimSubmission-Username'] =
280
+ opts[:x_chc_claim_submission_username]
281
+ end
282
+
283
+ # form parameters
284
+ form_params = {}
285
+
286
+ # http body (model)
287
+ post_body = @api_client.object_to_http_body(request)
288
+ auth_names = []
289
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
290
+ header_params: header_params,
291
+ query_params: query_params,
292
+ form_params: form_params,
293
+ body: post_body,
294
+ auth_names: auth_names,
295
+ return_type: 'Response')
296
+ @api_client.config.logger.debug "API called: ProfessionalClaimsApi#raw_x12_validation_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging
297
+ [data, status_code, headers]
298
+ end
299
+
300
+ # validates your claim by the payer
301
+ # @param authorization Bearer Your-Access-Token
302
+ # @param request request
303
+ # @param [Hash] opts the optional parameters
304
+ # @return [Response]
305
+ def validate_claim_using_post(authorization, request, opts = {})
306
+ data, _status_code, _headers = validate_claim_using_post_with_http_info(authorization, request, opts)
307
+ data
308
+ end
309
+
310
+ # validates your claim by the payer
311
+ # @param authorization Bearer Your-Access-Token
312
+ # @param request request
313
+ # @param [Hash] opts the optional parameters
314
+ # @return [Array<(Response, Fixnum, Hash)>] Response data, response status code and response headers
315
+ def validate_claim_using_post_with_http_info(authorization, request, _opts = {})
316
+ @api_client.config.logger.debug 'Calling API: ProfessionalClaimsApi.validate_claim_using_post ...' if @api_client.config.debugging
317
+ # verify the required parameter 'authorization' is set
318
+ if @api_client.config.client_side_validation && authorization.nil?
319
+ raise ArgumentError,
320
+ "Missing the required parameter 'authorization' when calling ProfessionalClaimsApi.validate_claim_using_post"
321
+ end
322
+ # verify the required parameter 'request' is set
323
+ if @api_client.config.client_side_validation && request.nil?
324
+ raise ArgumentError,
325
+ "Missing the required parameter 'request' when calling ProfessionalClaimsApi.validate_claim_using_post"
326
+ end
327
+
328
+ # resource path
329
+ local_var_path = '/validation'
330
+
331
+ # query parameters
332
+ query_params = {}
333
+
334
+ # header parameters
335
+ header_params = {}
336
+ # HTTP header 'Accept' (if needed)
337
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
338
+ # HTTP header 'Content-Type'
339
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
340
+ header_params[:Authorization] = authorization
341
+
342
+ # form parameters
343
+ form_params = {}
344
+
345
+ # http body (model)
346
+ post_body = @api_client.object_to_http_body(request)
347
+ auth_names = []
348
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
349
+ header_params: header_params,
350
+ query_params: query_params,
351
+ form_params: form_params,
352
+ body: post_body,
353
+ auth_names: auth_names,
354
+ return_type: 'Response')
355
+ @api_client.config.logger.debug "API called: ProfessionalClaimsApi#validate_claim_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging
356
+ [data, status_code, headers]
357
+ end
358
+ end
359
+ end
360
+ end
361
+ end