candidhealth 0.24.4 → 0.24.6

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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/auth/v_2/client.rb +2 -2
  3. data/lib/candidhealth/billing_notes/v_2/client.rb +2 -2
  4. data/lib/candidhealth/commons/types/procedure_modifier.rb +1 -0
  5. data/lib/candidhealth/contracts/v_2/client.rb +10 -10
  6. data/lib/candidhealth/custom_schemas/v_1/client.rb +28 -28
  7. data/lib/candidhealth/eligibility/v_2/client.rb +6 -6
  8. data/lib/candidhealth/encounters/v_4/client.rb +8 -8
  9. data/lib/candidhealth/expected_network_status/v_1/client.rb +2 -2
  10. data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
  11. data/lib/candidhealth/exports/v_3/client.rb +2 -2
  12. data/lib/candidhealth/external_payment_account_config/v_1/client.rb +2 -2
  13. data/lib/candidhealth/fee_schedules/v_3/client.rb +20 -20
  14. data/lib/candidhealth/financials/types/account_type.rb +1 -0
  15. data/lib/candidhealth/guarantor/v_1/client.rb +6 -6
  16. data/lib/candidhealth/import_invoice/v_1/client.rb +8 -8
  17. data/lib/candidhealth/insurance_adjudications/v_1/client.rb +6 -6
  18. data/lib/candidhealth/insurance_payments/v_1/client.rb +10 -10
  19. data/lib/candidhealth/insurance_refunds/v_1/client.rb +10 -10
  20. data/lib/candidhealth/organization_providers/v_3/client.rb +8 -8
  21. data/lib/candidhealth/organization_service_facilities/v_2/client.rb +10 -10
  22. data/lib/candidhealth/patient_payments/v_4/client.rb +10 -10
  23. data/lib/candidhealth/patient_refunds/v_1/client.rb +10 -10
  24. data/lib/candidhealth/payers/v_3/client.rb +4 -4
  25. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +12 -12
  26. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +14 -14
  27. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +3 -3
  28. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +3 -3
  29. data/lib/candidhealth/service_facility/client.rb +2 -2
  30. data/lib/candidhealth/service_lines/v_2/types/service_line.rb +25 -1
  31. data/lib/candidhealth/tasks/v_3/client.rb +10 -10
  32. data/lib/candidhealth/write_offs/v_1/client.rb +8 -8
  33. data/lib/candidhealth.rb +2 -2
  34. data/lib/environment.rb +0 -8
  35. data/lib/requests.rb +4 -6
  36. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cc6b4451b8313b62bce521f1a66fbb1c3fd3841179886017423caaf5ab5e741
4
- data.tar.gz: 63a2bb039a538e78c8bc3d1ffb86e5193a9517e958e9a401714f3d907e3ae203
3
+ metadata.gz: 1581e50f65e1e325f843fd0a6709e7c1b819cc9172a1476785ef666dd0d91935
4
+ data.tar.gz: d01fae620b74e46ab84264f4a48ef7c08667a18dede463b0d7df5a3c9dcf3e8b
5
5
  SHA512:
6
- metadata.gz: 0e22c5eacf0626bcdaff500b93bb1273d9abc5b84b6a034461be91723fc63329e827c1a6c6e46f3b785923a758f589854d28538cdf7131a904d10a858990bb67
7
- data.tar.gz: 1abbeb8295ca1fbe2fa7bb0d00cd6bb637f7fb08cd89f3b9cc91905331654a9ba92e55df9ac491399671d86a336aa128723ad0c3b76d90101eb900fb0d0b8a95
6
+ metadata.gz: 95823e4fdb8ab97f9f30a01267c16ae778519b1cad57dfbce347587125b40255818f0445a14581979b3510b0b6d5a52ee21aec0b70a3e820a6b600499a0f406b
7
+ data.tar.gz: a017f43d08c7a09a58307ca2853167c4027f380a46541bdb7784c6afd29a3c49a89aa13baac8580bcf9341ed31cc528fbef938aedd3a55bb3cbcc1c55b18569b
@@ -49,7 +49,7 @@ module CandidApiClient
49
49
  # @param request_options [CandidApiClient::RequestOptions]
50
50
  # @return [CandidApiClient::Auth::V2::Types::AuthGetTokenResponse]
51
51
  # @example
52
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
52
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
53
53
  # api.auth.v_2.get_token(client_id: "YOUR_CLIENT_ID", client_secret: "YOUR_CLIENT_SECRET")
54
54
  def get_token(client_id:, client_secret:, request_options: nil)
55
55
  response = @request_client.conn.post do |req|
@@ -114,7 +114,7 @@ module CandidApiClient
114
114
  # @param request_options [CandidApiClient::RequestOptions]
115
115
  # @return [CandidApiClient::Auth::V2::Types::AuthGetTokenResponse]
116
116
  # @example
117
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
117
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
118
118
  # api.auth.v_2.get_token(client_id: "YOUR_CLIENT_ID", client_secret: "YOUR_CLIENT_SECRET")
119
119
  def get_token(client_id:, client_secret:, request_options: nil)
120
120
  Async do
@@ -25,7 +25,7 @@ module CandidApiClient
25
25
  # @param request_options [CandidApiClient::RequestOptions]
26
26
  # @return [CandidApiClient::BillingNotes::V2::Types::BillingNote]
27
27
  # @example
28
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
28
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
29
29
  # api.billing_notes.v_2.create(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
30
30
  def create(text:, encounter_id:, additional_properties: nil, _field_set: nil, request_options: nil)
31
31
  response = @request_client.conn.post do |req|
@@ -67,7 +67,7 @@ module CandidApiClient
67
67
  # @param request_options [CandidApiClient::RequestOptions]
68
68
  # @return [CandidApiClient::BillingNotes::V2::Types::BillingNote]
69
69
  # @example
70
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
70
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
71
71
  # api.billing_notes.v_2.create(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
72
72
  def create(text:, encounter_id:, additional_properties: nil, _field_set: nil, request_options: nil)
73
73
  Async do
@@ -94,6 +94,7 @@ module CandidApiClient
94
94
  CT = "CT"
95
95
  CO = "CO"
96
96
  CQ = "CQ"
97
+ DA = "DA"
97
98
  E_1 = "E1"
98
99
  E_2 = "E2"
99
100
  E_3 = "E3"
@@ -32,7 +32,7 @@ module CandidApiClient
32
32
  # @param request_options [CandidApiClient::RequestOptions]
33
33
  # @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
34
34
  # @example
35
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
35
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
36
36
  # api.contracts.v_2.get(contract_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
37
37
  def get(contract_id:, request_options: nil)
38
38
  response = @request_client.conn.get do |req|
@@ -59,7 +59,7 @@ module CandidApiClient
59
59
  # @param request_options [CandidApiClient::RequestOptions]
60
60
  # @return [CandidApiClient::Contracts::V2::Types::ContractsPage]
61
61
  # @example
62
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
62
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
63
63
  # api.contracts.v_2.get_multi(
64
64
  # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
65
65
  # limit: 1,
@@ -122,7 +122,7 @@ module CandidApiClient
122
122
  # @param request_options [CandidApiClient::RequestOptions]
123
123
  # @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
124
124
  # @example
125
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
125
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
126
126
  # api.contracts.v_2.create(
127
127
  # contracting_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
128
128
  # rendering_provider_ids: Set["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"],
@@ -164,7 +164,7 @@ module CandidApiClient
164
164
  # @param request_options [CandidApiClient::RequestOptions]
165
165
  # @return [Void]
166
166
  # @example
167
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
167
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
168
168
  # api.contracts.v_2.delete(contract_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
169
169
  def delete(contract_id:, request_options: nil)
170
170
  @request_client.conn.delete do |req|
@@ -196,7 +196,7 @@ module CandidApiClient
196
196
  # @param request_options [CandidApiClient::RequestOptions]
197
197
  # @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
198
198
  # @example
199
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
199
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
200
200
  # api.contracts.v_2.update(
201
201
  # contract_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
202
202
  # rendering_provider_ids: Set["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"],
@@ -246,7 +246,7 @@ module CandidApiClient
246
246
  # @param request_options [CandidApiClient::RequestOptions]
247
247
  # @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
248
248
  # @example
249
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
249
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
250
250
  # api.contracts.v_2.get(contract_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
251
251
  def get(contract_id:, request_options: nil)
252
252
  Async do
@@ -275,7 +275,7 @@ module CandidApiClient
275
275
  # @param request_options [CandidApiClient::RequestOptions]
276
276
  # @return [CandidApiClient::Contracts::V2::Types::ContractsPage]
277
277
  # @example
278
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
278
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
279
279
  # api.contracts.v_2.get_multi(
280
280
  # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
281
281
  # limit: 1,
@@ -340,7 +340,7 @@ module CandidApiClient
340
340
  # @param request_options [CandidApiClient::RequestOptions]
341
341
  # @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
342
342
  # @example
343
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
343
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
344
344
  # api.contracts.v_2.create(
345
345
  # contracting_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
346
346
  # rendering_provider_ids: Set["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"],
@@ -384,7 +384,7 @@ module CandidApiClient
384
384
  # @param request_options [CandidApiClient::RequestOptions]
385
385
  # @return [Void]
386
386
  # @example
387
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
387
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
388
388
  # api.contracts.v_2.delete(contract_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
389
389
  def delete(contract_id:, request_options: nil)
390
390
  Async do
@@ -418,7 +418,7 @@ module CandidApiClient
418
418
  # @param request_options [CandidApiClient::RequestOptions]
419
419
  # @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
420
420
  # @example
421
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
421
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
422
422
  # api.contracts.v_2.update(
423
423
  # contract_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
424
424
  # rendering_provider_ids: Set["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"],
@@ -24,7 +24,7 @@ module CandidApiClient
24
24
  # @param request_options [CandidApiClient::RequestOptions]
25
25
  # @return [CandidApiClient::CustomSchemas::V1::Types::SchemaGetMultiResponse]
26
26
  # @example
27
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
27
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
28
28
  # api.custom_schemas.v_1.get_multi
29
29
  def get_multi(request_options: nil)
30
30
  response = @request_client.conn.get do |req|
@@ -47,8 +47,8 @@ module CandidApiClient
47
47
  # @param request_options [CandidApiClient::RequestOptions]
48
48
  # @return [CandidApiClient::CustomSchemas::V1::Types::Schema]
49
49
  # @example
50
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
51
- # api.custom_schemas.v_1.get(schema_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
50
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
51
+ # api.custom_schemas.v_1.get(schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582")
52
52
  def get(schema_id:, request_options: nil)
53
53
  response = @request_client.conn.get do |req|
54
54
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -64,8 +64,8 @@ module CandidApiClient
64
64
  CandidApiClient::CustomSchemas::V1::Types::Schema.from_json(json_object: response.body)
65
65
  end
66
66
 
67
- # Create a custom schema. Schema keys can be referenced as inputs in
68
- # user-configurable rules in the Rules
67
+ # Create custom schema with a set of typed keys. Schema keys can be referenced as
68
+ # inputs in user-configurable rules in the Rules
69
69
  # Engine, and key-value pairs can be attached to claims via the Encounters API.
70
70
  #
71
71
  # @param name [String]
@@ -76,11 +76,11 @@ module CandidApiClient
76
76
  # @param request_options [CandidApiClient::RequestOptions]
77
77
  # @return [CandidApiClient::CustomSchemas::V1::Types::Schema]
78
78
  # @example
79
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
79
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
80
80
  # api.custom_schemas.v_1.create(
81
- # name: "string",
82
- # description: "string",
83
- # fields: [{ key: "string", type: BOOLEAN }]
81
+ # name: "General Medicine",
82
+ # description: "Values associated with a generic visit",
83
+ # fields: [{ key: "provider_category", type: STRING }, { key: "is_urgent_care", type: BOOLEAN }, { key: "bmi", type: DOUBLE }, { key: "age", type: INTEGER }]
84
84
  # )
85
85
  def create(name:, fields:, description: nil, request_options: nil)
86
86
  response = @request_client.conn.post do |req|
@@ -115,12 +115,12 @@ module CandidApiClient
115
115
  # @param request_options [CandidApiClient::RequestOptions]
116
116
  # @return [CandidApiClient::CustomSchemas::V1::Types::Schema]
117
117
  # @example
118
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
118
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
119
119
  # api.custom_schemas.v_1.update(
120
- # schema_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
121
- # name: "string",
122
- # description: "string",
123
- # fields_to_add: [{ key: "string", type: BOOLEAN }]
120
+ # schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582",
121
+ # name: "General Medicine and Health",
122
+ # description: "Values collected during all visits",
123
+ # fields_to_add: [{ key: "visit_type", type: STRING }]
124
124
  # )
125
125
  def update(schema_id:, name: nil, description: nil, fields_to_add: nil, request_options: nil)
126
126
  response = @request_client.conn.patch do |req|
@@ -159,7 +159,7 @@ module CandidApiClient
159
159
  # @param request_options [CandidApiClient::RequestOptions]
160
160
  # @return [CandidApiClient::CustomSchemas::V1::Types::SchemaGetMultiResponse]
161
161
  # @example
162
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
162
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
163
163
  # api.custom_schemas.v_1.get_multi
164
164
  def get_multi(request_options: nil)
165
165
  Async do
@@ -184,8 +184,8 @@ module CandidApiClient
184
184
  # @param request_options [CandidApiClient::RequestOptions]
185
185
  # @return [CandidApiClient::CustomSchemas::V1::Types::Schema]
186
186
  # @example
187
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
188
- # api.custom_schemas.v_1.get(schema_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
187
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
188
+ # api.custom_schemas.v_1.get(schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582")
189
189
  def get(schema_id:, request_options: nil)
190
190
  Async do
191
191
  response = @request_client.conn.get do |req|
@@ -203,8 +203,8 @@ module CandidApiClient
203
203
  end
204
204
  end
205
205
 
206
- # Create a custom schema. Schema keys can be referenced as inputs in
207
- # user-configurable rules in the Rules
206
+ # Create custom schema with a set of typed keys. Schema keys can be referenced as
207
+ # inputs in user-configurable rules in the Rules
208
208
  # Engine, and key-value pairs can be attached to claims via the Encounters API.
209
209
  #
210
210
  # @param name [String]
@@ -215,11 +215,11 @@ module CandidApiClient
215
215
  # @param request_options [CandidApiClient::RequestOptions]
216
216
  # @return [CandidApiClient::CustomSchemas::V1::Types::Schema]
217
217
  # @example
218
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
218
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
219
219
  # api.custom_schemas.v_1.create(
220
- # name: "string",
221
- # description: "string",
222
- # fields: [{ key: "string", type: BOOLEAN }]
220
+ # name: "General Medicine",
221
+ # description: "Values associated with a generic visit",
222
+ # fields: [{ key: "provider_category", type: STRING }, { key: "is_urgent_care", type: BOOLEAN }, { key: "bmi", type: DOUBLE }, { key: "age", type: INTEGER }]
223
223
  # )
224
224
  def create(name:, fields:, description: nil, request_options: nil)
225
225
  Async do
@@ -256,12 +256,12 @@ module CandidApiClient
256
256
  # @param request_options [CandidApiClient::RequestOptions]
257
257
  # @return [CandidApiClient::CustomSchemas::V1::Types::Schema]
258
258
  # @example
259
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
259
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
260
260
  # api.custom_schemas.v_1.update(
261
- # schema_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
262
- # name: "string",
263
- # description: "string",
264
- # fields_to_add: [{ key: "string", type: BOOLEAN }]
261
+ # schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582",
262
+ # name: "General Medicine and Health",
263
+ # description: "Values collected during all visits",
264
+ # fields_to_add: [{ key: "visit_type", type: STRING }]
265
265
  # )
266
266
  def update(schema_id:, name: nil, description: nil, fields_to_add: nil, request_options: nil)
267
267
  Async do
@@ -46,7 +46,7 @@ module CandidApiClient
46
46
  # @param request_options [CandidApiClient::RequestOptions]
47
47
  # @return [Object]
48
48
  # @example
49
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
49
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
50
50
  # api.eligibility.v_2.submit_eligibility_check(request: {"key":"value"})
51
51
  def submit_eligibility_check(request: nil, request_options: nil)
52
52
  response = @request_client.conn.post do |req|
@@ -90,7 +90,7 @@ module CandidApiClient
90
90
  # @param request_options [CandidApiClient::RequestOptions]
91
91
  # @return [Object]
92
92
  # @example
93
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
93
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
94
94
  # api.eligibility.v_2.submit_eligibility_check_availity
95
95
  def submit_eligibility_check_availity(request_options: nil)
96
96
  response = @request_client.conn.get do |req|
@@ -126,7 +126,7 @@ module CandidApiClient
126
126
  # @param request_options [CandidApiClient::RequestOptions]
127
127
  # @return [Object]
128
128
  # @example
129
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
129
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
130
130
  # api.eligibility.v_2.submit_eligibility_check_availity_post(request: {"key":"value"})
131
131
  def submit_eligibility_check_availity_post(request: nil, request_options: nil)
132
132
  response = @request_client.conn.post do |req|
@@ -184,7 +184,7 @@ module CandidApiClient
184
184
  # @param request_options [CandidApiClient::RequestOptions]
185
185
  # @return [Object]
186
186
  # @example
187
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
187
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
188
188
  # api.eligibility.v_2.submit_eligibility_check(request: {"key":"value"})
189
189
  def submit_eligibility_check(request: nil, request_options: nil)
190
190
  Async do
@@ -231,7 +231,7 @@ module CandidApiClient
231
231
  # @param request_options [CandidApiClient::RequestOptions]
232
232
  # @return [Object]
233
233
  # @example
234
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
234
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
235
235
  # api.eligibility.v_2.submit_eligibility_check_availity
236
236
  def submit_eligibility_check_availity(request_options: nil)
237
237
  Async do
@@ -270,7 +270,7 @@ module CandidApiClient
270
270
  # @param request_options [CandidApiClient::RequestOptions]
271
271
  # @return [Object]
272
272
  # @example
273
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
273
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
274
274
  # api.eligibility.v_2.submit_eligibility_check_availity_post(request: {"key":"value"})
275
275
  def submit_eligibility_check_availity_post(request: nil, request_options: nil)
276
276
  Async do
@@ -77,7 +77,7 @@ module CandidApiClient
77
77
  # @param request_options [CandidApiClient::RequestOptions]
78
78
  # @return [CandidApiClient::Encounters::V4::Types::EncounterPage]
79
79
  # @example
80
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
80
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
81
81
  # api.encounters.v_4.get_all(
82
82
  # limit: 100,
83
83
  # claim_status: BILLER_RECEIVED,
@@ -129,7 +129,7 @@ module CandidApiClient
129
129
  # @param request_options [CandidApiClient::RequestOptions]
130
130
  # @return [CandidApiClient::Encounters::V4::Types::Encounter]
131
131
  # @example
132
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
132
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
133
133
  # api.encounters.v_4.get(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
134
134
  def get(encounter_id:, request_options: nil)
135
135
  response = @request_client.conn.get do |req|
@@ -561,7 +561,7 @@ module CandidApiClient
561
561
  # @param request_options [CandidApiClient::RequestOptions]
562
562
  # @return [CandidApiClient::Encounters::V4::Types::Encounter]
563
563
  # @example
564
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
564
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
565
565
  # api.encounters.v_4.create(
566
566
  # date_of_service: DateTime.parse(2023-01-15),
567
567
  # end_date_of_service: DateTime.parse(2023-01-15),
@@ -804,7 +804,7 @@ module CandidApiClient
804
804
  # @param request_options [CandidApiClient::RequestOptions]
805
805
  # @return [CandidApiClient::Encounters::V4::Types::Encounter]
806
806
  # @example
807
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
807
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
808
808
  # api.encounters.v_4.update(
809
809
  # encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
810
810
  # prior_authorization_number: "string",
@@ -920,7 +920,7 @@ module CandidApiClient
920
920
  # @param request_options [CandidApiClient::RequestOptions]
921
921
  # @return [CandidApiClient::Encounters::V4::Types::EncounterPage]
922
922
  # @example
923
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
923
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
924
924
  # api.encounters.v_4.get_all(
925
925
  # limit: 100,
926
926
  # claim_status: BILLER_RECEIVED,
@@ -974,7 +974,7 @@ module CandidApiClient
974
974
  # @param request_options [CandidApiClient::RequestOptions]
975
975
  # @return [CandidApiClient::Encounters::V4::Types::Encounter]
976
976
  # @example
977
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
977
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
978
978
  # api.encounters.v_4.get(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
979
979
  def get(encounter_id:, request_options: nil)
980
980
  Async do
@@ -1408,7 +1408,7 @@ module CandidApiClient
1408
1408
  # @param request_options [CandidApiClient::RequestOptions]
1409
1409
  # @return [CandidApiClient::Encounters::V4::Types::Encounter]
1410
1410
  # @example
1411
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
1411
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
1412
1412
  # api.encounters.v_4.create(
1413
1413
  # date_of_service: DateTime.parse(2023-01-15),
1414
1414
  # end_date_of_service: DateTime.parse(2023-01-15),
@@ -1653,7 +1653,7 @@ module CandidApiClient
1653
1653
  # @param request_options [CandidApiClient::RequestOptions]
1654
1654
  # @return [CandidApiClient::Encounters::V4::Types::Encounter]
1655
1655
  # @example
1656
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
1656
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
1657
1657
  # api.encounters.v_4.update(
1658
1658
  # encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
1659
1659
  # prior_authorization_number: "string",
@@ -38,7 +38,7 @@ module CandidApiClient
38
38
  # @param request_options [CandidApiClient::RequestOptions]
39
39
  # @return [CandidApiClient::ExpectedNetworkStatus::V1::Types::ExpectedNetworkStatusResponse]
40
40
  # @example
41
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
41
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
42
42
  # api.expected_network_status.v_1.compute(
43
43
  # external_patient_id: "string",
44
44
  # subscriber_payer_id: "string",
@@ -110,7 +110,7 @@ module CandidApiClient
110
110
  # @param request_options [CandidApiClient::RequestOptions]
111
111
  # @return [CandidApiClient::ExpectedNetworkStatus::V1::Types::ExpectedNetworkStatusResponse]
112
112
  # @example
113
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
113
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
114
114
  # api.expected_network_status.v_1.compute(
115
115
  # external_patient_id: "string",
116
116
  # subscriber_payer_id: "string",
@@ -48,7 +48,7 @@ module CandidApiClient
48
48
  # @param request_options [CandidApiClient::RequestOptions]
49
49
  # @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusResponseV2]
50
50
  # @example
51
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
51
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
52
52
  # api.expected_network_status.v_2.compute_for_rendering_provider(rendering_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { }, patient_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569", date_of_service: DateTime.parse(2023-01-15) })
53
53
  def compute_for_rendering_provider(rendering_provider_id:, request:, request_options: nil)
54
54
  response = @request_client.conn.post do |req|
@@ -93,7 +93,7 @@ module CandidApiClient
93
93
  # @param request_options [CandidApiClient::RequestOptions]
94
94
  # @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkProvidersResponse]
95
95
  # @example
96
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
96
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
97
97
  # api.expected_network_status.v_2.compute_all_in_network_providers(request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { }, patient_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569", date_of_service: DateTime.parse(2023-01-15) })
98
98
  def compute_all_in_network_providers(request:, request_options: nil)
99
99
  response = @request_client.conn.post do |req|
@@ -150,7 +150,7 @@ module CandidApiClient
150
150
  # @param request_options [CandidApiClient::RequestOptions]
151
151
  # @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusResponseV2]
152
152
  # @example
153
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
153
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
154
154
  # api.expected_network_status.v_2.compute_for_rendering_provider(rendering_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { }, patient_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569", date_of_service: DateTime.parse(2023-01-15) })
155
155
  def compute_for_rendering_provider(rendering_provider_id:, request:, request_options: nil)
156
156
  Async do
@@ -197,7 +197,7 @@ module CandidApiClient
197
197
  # @param request_options [CandidApiClient::RequestOptions]
198
198
  # @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkProvidersResponse]
199
199
  # @example
200
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
200
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
201
201
  # api.expected_network_status.v_2.compute_all_in_network_providers(request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { }, patient_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569", date_of_service: DateTime.parse(2023-01-15) })
202
202
  def compute_all_in_network_providers(request:, request_options: nil)
203
203
  Async do
@@ -49,7 +49,7 @@ module CandidApiClient
49
49
  # @param request_options [CandidApiClient::RequestOptions]
50
50
  # @return [CandidApiClient::Exports::V3::Types::GetExportsResponse]
51
51
  # @example
52
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
52
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
53
53
  # api.exports.v_3.get_exports(start_date: DateTime.parse(2023-10-01), end_date: DateTime.parse(2023-10-02))
54
54
  def get_exports(start_date:, end_date:, request_options: nil)
55
55
  response = @request_client.conn.get do |req|
@@ -113,7 +113,7 @@ module CandidApiClient
113
113
  # @param request_options [CandidApiClient::RequestOptions]
114
114
  # @return [CandidApiClient::Exports::V3::Types::GetExportsResponse]
115
115
  # @example
116
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
116
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
117
117
  # api.exports.v_3.get_exports(start_date: DateTime.parse(2023-10-01), end_date: DateTime.parse(2023-10-02))
118
118
  def get_exports(start_date:, end_date:, request_options: nil)
119
119
  Async do
@@ -22,7 +22,7 @@ module CandidApiClient
22
22
  # @param request_options [CandidApiClient::RequestOptions]
23
23
  # @return [CandidApiClient::ExternalPaymentAccountConfig::V1::Types::ExternalPaymentAccountConfigPage]
24
24
  # @example
25
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
25
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
26
26
  # api.external_payment_account_config.v_1.get_multi(limit: 1, page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
27
27
  def get_multi(limit: nil, page_token: nil, request_options: nil)
28
28
  response = @request_client.conn.get do |req|
@@ -60,7 +60,7 @@ module CandidApiClient
60
60
  # @param request_options [CandidApiClient::RequestOptions]
61
61
  # @return [CandidApiClient::ExternalPaymentAccountConfig::V1::Types::ExternalPaymentAccountConfigPage]
62
62
  # @example
63
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
63
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
64
64
  # api.external_payment_account_config.v_1.get_multi(limit: 1, page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
65
65
  def get_multi(limit: nil, page_token: nil, request_options: nil)
66
66
  Async do