candidhealth 0.24.5 → 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.
- checksums.yaml +4 -4
- data/lib/candidhealth/auth/v_2/client.rb +2 -2
- data/lib/candidhealth/billing_notes/v_2/client.rb +2 -2
- data/lib/candidhealth/contracts/v_2/client.rb +10 -10
- data/lib/candidhealth/custom_schemas/v_1/client.rb +8 -8
- data/lib/candidhealth/eligibility/v_2/client.rb +6 -6
- data/lib/candidhealth/encounters/v_4/client.rb +8 -8
- data/lib/candidhealth/expected_network_status/v_1/client.rb +2 -2
- data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
- data/lib/candidhealth/exports/v_3/client.rb +2 -2
- data/lib/candidhealth/external_payment_account_config/v_1/client.rb +2 -2
- data/lib/candidhealth/fee_schedules/v_3/client.rb +20 -20
- data/lib/candidhealth/guarantor/v_1/client.rb +6 -6
- data/lib/candidhealth/import_invoice/v_1/client.rb +8 -8
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +6 -6
- data/lib/candidhealth/insurance_payments/v_1/client.rb +10 -10
- data/lib/candidhealth/insurance_refunds/v_1/client.rb +10 -10
- data/lib/candidhealth/organization_providers/v_3/client.rb +8 -8
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +10 -10
- data/lib/candidhealth/patient_payments/v_4/client.rb +10 -10
- data/lib/candidhealth/patient_refunds/v_1/client.rb +10 -10
- data/lib/candidhealth/payers/v_3/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +12 -12
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +14 -14
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +3 -3
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +3 -3
- data/lib/candidhealth/service_facility/client.rb +2 -2
- data/lib/candidhealth/tasks/v_3/client.rb +10 -10
- data/lib/candidhealth/write_offs/v_1/client.rb +8 -8
- data/lib/candidhealth.rb +2 -2
- data/lib/environment.rb +0 -8
- data/lib/requests.rb +4 -6
- metadata +2 -2
@@ -45,7 +45,7 @@ module CandidApiClient
|
|
45
45
|
# @param request_options [CandidApiClient::RequestOptions]
|
46
46
|
# @return [CandidApiClient::PatientRefunds::V1::Types::PatientRefundsPage]
|
47
47
|
# @example
|
48
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
48
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
49
49
|
# api.patient_refunds.v_1.get_multi(
|
50
50
|
# limit: 1,
|
51
51
|
# patient_external_id: "string",
|
@@ -95,7 +95,7 @@ module CandidApiClient
|
|
95
95
|
# @param request_options [CandidApiClient::RequestOptions]
|
96
96
|
# @return [CandidApiClient::PatientRefunds::V1::Types::PatientRefund]
|
97
97
|
# @example
|
98
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
98
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
99
99
|
# api.patient_refunds.v_1.get(patient_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
100
100
|
def get(patient_refund_id:, request_options: nil)
|
101
101
|
response = @request_client.conn.get do |req|
|
@@ -130,7 +130,7 @@ module CandidApiClient
|
|
130
130
|
# @param request_options [CandidApiClient::RequestOptions]
|
131
131
|
# @return [CandidApiClient::PatientRefunds::V1::Types::PatientRefund]
|
132
132
|
# @example
|
133
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
133
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
134
134
|
# api.patient_refunds.v_1.create(
|
135
135
|
# amount_cents: 1,
|
136
136
|
# refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z),
|
@@ -176,7 +176,7 @@ module CandidApiClient
|
|
176
176
|
# @param request_options [CandidApiClient::RequestOptions]
|
177
177
|
# @return [CandidApiClient::PatientRefunds::V1::Types::PatientRefund]
|
178
178
|
# @example
|
179
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
179
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
180
180
|
# api.patient_refunds.v_1.update(patient_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
|
181
181
|
def update(patient_refund_id:, refund_timestamp: nil, refund_note: nil, invoice: nil, refund_reason: nil,
|
182
182
|
request_options: nil)
|
@@ -207,7 +207,7 @@ module CandidApiClient
|
|
207
207
|
# @param request_options [CandidApiClient::RequestOptions]
|
208
208
|
# @return [Void]
|
209
209
|
# @example
|
210
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
210
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
211
211
|
# api.patient_refunds.v_1.delete(patient_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
212
212
|
def delete(patient_refund_id:, request_options: nil)
|
213
213
|
@request_client.conn.delete do |req|
|
@@ -252,7 +252,7 @@ module CandidApiClient
|
|
252
252
|
# @param request_options [CandidApiClient::RequestOptions]
|
253
253
|
# @return [CandidApiClient::PatientRefunds::V1::Types::PatientRefundsPage]
|
254
254
|
# @example
|
255
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
255
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
256
256
|
# api.patient_refunds.v_1.get_multi(
|
257
257
|
# limit: 1,
|
258
258
|
# patient_external_id: "string",
|
@@ -304,7 +304,7 @@ module CandidApiClient
|
|
304
304
|
# @param request_options [CandidApiClient::RequestOptions]
|
305
305
|
# @return [CandidApiClient::PatientRefunds::V1::Types::PatientRefund]
|
306
306
|
# @example
|
307
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
307
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
308
308
|
# api.patient_refunds.v_1.get(patient_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
309
309
|
def get(patient_refund_id:, request_options: nil)
|
310
310
|
Async do
|
@@ -341,7 +341,7 @@ module CandidApiClient
|
|
341
341
|
# @param request_options [CandidApiClient::RequestOptions]
|
342
342
|
# @return [CandidApiClient::PatientRefunds::V1::Types::PatientRefund]
|
343
343
|
# @example
|
344
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
344
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
345
345
|
# api.patient_refunds.v_1.create(
|
346
346
|
# amount_cents: 1,
|
347
347
|
# refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z),
|
@@ -389,7 +389,7 @@ module CandidApiClient
|
|
389
389
|
# @param request_options [CandidApiClient::RequestOptions]
|
390
390
|
# @return [CandidApiClient::PatientRefunds::V1::Types::PatientRefund]
|
391
391
|
# @example
|
392
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
392
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
393
393
|
# api.patient_refunds.v_1.update(patient_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
|
394
394
|
def update(patient_refund_id:, refund_timestamp: nil, refund_note: nil, invoice: nil, refund_reason: nil,
|
395
395
|
request_options: nil)
|
@@ -422,7 +422,7 @@ module CandidApiClient
|
|
422
422
|
# @param request_options [CandidApiClient::RequestOptions]
|
423
423
|
# @return [Void]
|
424
424
|
# @example
|
425
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
425
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
426
426
|
# api.patient_refunds.v_1.delete(patient_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
427
427
|
def delete(patient_refund_id:, request_options: nil)
|
428
428
|
Async do
|
@@ -22,7 +22,7 @@ module CandidApiClient
|
|
22
22
|
# @param request_options [CandidApiClient::RequestOptions]
|
23
23
|
# @return [CandidApiClient::Payers::V3::Types::Payer]
|
24
24
|
# @example
|
25
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
25
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
26
26
|
# api.payers.v_3.get(payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
27
27
|
def get(payer_uuid:, request_options: nil)
|
28
28
|
response = @request_client.conn.get do |req|
|
@@ -45,7 +45,7 @@ module CandidApiClient
|
|
45
45
|
# @param request_options [CandidApiClient::RequestOptions]
|
46
46
|
# @return [CandidApiClient::Payers::V3::Types::PayerPage]
|
47
47
|
# @example
|
48
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
48
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
49
49
|
# api.payers.v_3.get_all(
|
50
50
|
# limit: 100,
|
51
51
|
# search_term: "john",
|
@@ -86,7 +86,7 @@ module CandidApiClient
|
|
86
86
|
# @param request_options [CandidApiClient::RequestOptions]
|
87
87
|
# @return [CandidApiClient::Payers::V3::Types::Payer]
|
88
88
|
# @example
|
89
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
89
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
90
90
|
# api.payers.v_3.get(payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
91
91
|
def get(payer_uuid:, request_options: nil)
|
92
92
|
Async do
|
@@ -111,7 +111,7 @@ module CandidApiClient
|
|
111
111
|
# @param request_options [CandidApiClient::RequestOptions]
|
112
112
|
# @return [CandidApiClient::Payers::V3::Types::PayerPage]
|
113
113
|
# @example
|
114
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
114
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
115
115
|
# api.payers.v_3.get_all(
|
116
116
|
# limit: 100,
|
117
117
|
# search_term: "john",
|
@@ -56,7 +56,7 @@ module CandidApiClient
|
|
56
56
|
# @param request_options [CandidApiClient::RequestOptions]
|
57
57
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
|
58
58
|
# @example
|
59
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
59
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
60
60
|
# api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { }, date_of_birth: DateTime.parse(2023-01-15), gender: MAN }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", group_number: "string", name: "string", type: PPO, period: { }, insurance_card_image_locator: "string" }, verified: true })
|
61
61
|
def create(request:, request_options: nil)
|
62
62
|
response = @request_client.conn.post do |req|
|
@@ -108,7 +108,7 @@ module CandidApiClient
|
|
108
108
|
# @param request_options [CandidApiClient::RequestOptions]
|
109
109
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
|
110
110
|
# @example
|
111
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
111
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
112
112
|
# api.pre_encounter.coverages.v_1.update(
|
113
113
|
# id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
114
114
|
# version: "string",
|
@@ -136,7 +136,7 @@ module CandidApiClient
|
|
136
136
|
# @param request_options [CandidApiClient::RequestOptions]
|
137
137
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
|
138
138
|
# @example
|
139
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
139
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
140
140
|
# api.pre_encounter.coverages.v_1.get(id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
141
141
|
def get(id:, request_options: nil)
|
142
142
|
response = @request_client.conn.get do |req|
|
@@ -160,7 +160,7 @@ module CandidApiClient
|
|
160
160
|
# @param request_options [CandidApiClient::RequestOptions]
|
161
161
|
# @return [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage>]
|
162
162
|
# @example
|
163
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
163
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
164
164
|
# api.pre_encounter.coverages.v_1.get_history(id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
165
165
|
def get_history(id:, request_options: nil)
|
166
166
|
response = @request_client.conn.get do |req|
|
@@ -187,7 +187,7 @@ module CandidApiClient
|
|
187
187
|
# @param request_options [CandidApiClient::RequestOptions]
|
188
188
|
# @return [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage>]
|
189
189
|
# @example
|
190
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
190
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
191
191
|
# api.pre_encounter.coverages.v_1.get_multi(patient_id: "string")
|
192
192
|
def get_multi(patient_id: nil, request_options: nil)
|
193
193
|
response = @request_client.conn.get do |req|
|
@@ -216,7 +216,7 @@ module CandidApiClient
|
|
216
216
|
# @param request_options [CandidApiClient::RequestOptions]
|
217
217
|
# @return [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage>]
|
218
218
|
# @example
|
219
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
219
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
220
220
|
# api.pre_encounter.coverages.v_1.scan(since: DateTime.parse(2024-01-15T09:30:00.000Z))
|
221
221
|
def scan(since:, request_options: nil)
|
222
222
|
response = @request_client.conn.get do |req|
|
@@ -284,7 +284,7 @@ module CandidApiClient
|
|
284
284
|
# @param request_options [CandidApiClient::RequestOptions]
|
285
285
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
|
286
286
|
# @example
|
287
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
287
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
288
288
|
# api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { }, date_of_birth: DateTime.parse(2023-01-15), gender: MAN }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", group_number: "string", name: "string", type: PPO, period: { }, insurance_card_image_locator: "string" }, verified: true })
|
289
289
|
def create(request:, request_options: nil)
|
290
290
|
Async do
|
@@ -338,7 +338,7 @@ module CandidApiClient
|
|
338
338
|
# @param request_options [CandidApiClient::RequestOptions]
|
339
339
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
|
340
340
|
# @example
|
341
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
341
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
342
342
|
# api.pre_encounter.coverages.v_1.update(
|
343
343
|
# id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
344
344
|
# version: "string",
|
@@ -368,7 +368,7 @@ module CandidApiClient
|
|
368
368
|
# @param request_options [CandidApiClient::RequestOptions]
|
369
369
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
|
370
370
|
# @example
|
371
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
371
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
372
372
|
# api.pre_encounter.coverages.v_1.get(id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
373
373
|
def get(id:, request_options: nil)
|
374
374
|
Async do
|
@@ -394,7 +394,7 @@ module CandidApiClient
|
|
394
394
|
# @param request_options [CandidApiClient::RequestOptions]
|
395
395
|
# @return [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage>]
|
396
396
|
# @example
|
397
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
397
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
398
398
|
# api.pre_encounter.coverages.v_1.get_history(id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
399
399
|
def get_history(id:, request_options: nil)
|
400
400
|
Async do
|
@@ -423,7 +423,7 @@ module CandidApiClient
|
|
423
423
|
# @param request_options [CandidApiClient::RequestOptions]
|
424
424
|
# @return [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage>]
|
425
425
|
# @example
|
426
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
426
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
427
427
|
# api.pre_encounter.coverages.v_1.get_multi(patient_id: "string")
|
428
428
|
def get_multi(patient_id: nil, request_options: nil)
|
429
429
|
Async do
|
@@ -457,7 +457,7 @@ module CandidApiClient
|
|
457
457
|
# @param request_options [CandidApiClient::RequestOptions]
|
458
458
|
# @return [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage>]
|
459
459
|
# @example
|
460
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
460
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
461
461
|
# api.pre_encounter.coverages.v_1.scan(since: DateTime.parse(2024-01-15T09:30:00.000Z))
|
462
462
|
def scan(since:, request_options: nil)
|
463
463
|
Async do
|
@@ -76,7 +76,7 @@ module CandidApiClient
|
|
76
76
|
# @param request_options [CandidApiClient::RequestOptions]
|
77
77
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
|
78
78
|
# @example
|
79
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
79
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
80
80
|
# api.pre_encounter.patients.v_1.create(request: { name: { }, other_names: [{ }], gender: MAN, birth_date: DateTime.parse(2023-01-15), social_security_number: "string", biological_sex: FEMALE, sexual_orientation: HETEROSEXUAL, race: AMERICAN_INDIAN_OR_ALASKA_NATIVE, ethnicity: HISPANIC_OR_LATINO, disability_status: DISABLED, marital_status: ANNULLED, deceased: DateTime.parse(2024-01-15T09:30:00.000Z), multiple_birth: 1, primary_address: { }, other_addresses: [{ }], primary_telecom: { }, other_telecoms: [{ }], email: "string", electronic_communication_opt_in: true, photo: "string", language: "string", external_provenance: { external_id: "string", system_name: "string" }, contacts: [{ relationship: [SELF], name: { }, gender: MAN, telecoms: [{ }], addresses: [{ }], period: { } }], general_practitioners: [{ name: { }, npi: "string", telecoms: [{ }], addresses: [{ }], period: { } }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] } })
|
81
81
|
def create(request:, request_options: nil)
|
82
82
|
response = @request_client.conn.post do |req|
|
@@ -100,7 +100,7 @@ module CandidApiClient
|
|
100
100
|
# @param request_options [CandidApiClient::RequestOptions]
|
101
101
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
|
102
102
|
# @example
|
103
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
103
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
104
104
|
# api.pre_encounter.patients.v_1.get(id: "string")
|
105
105
|
def get(id:, request_options: nil)
|
106
106
|
response = @request_client.conn.get do |req|
|
@@ -124,7 +124,7 @@ module CandidApiClient
|
|
124
124
|
# @param request_options [CandidApiClient::RequestOptions]
|
125
125
|
# @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
|
126
126
|
# @example
|
127
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
127
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
128
128
|
# api.pre_encounter.patients.v_1.get_history(id: "string")
|
129
129
|
def get_history(id:, request_options: nil)
|
130
130
|
response = @request_client.conn.get do |req|
|
@@ -202,7 +202,7 @@ module CandidApiClient
|
|
202
202
|
# @param request_options [CandidApiClient::RequestOptions]
|
203
203
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
|
204
204
|
# @example
|
205
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
205
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
206
206
|
# api.pre_encounter.patients.v_1.update(
|
207
207
|
# id: "string",
|
208
208
|
# version: "string",
|
@@ -234,7 +234,7 @@ module CandidApiClient
|
|
234
234
|
# @param request_options [CandidApiClient::RequestOptions]
|
235
235
|
# @return [Void]
|
236
236
|
# @example
|
237
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
237
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
238
238
|
# api.pre_encounter.patients.v_1.deactivate(id: "string", version: "string")
|
239
239
|
def deactivate(id:, version:, request_options: nil)
|
240
240
|
@request_client.conn.delete do |req|
|
@@ -256,7 +256,7 @@ module CandidApiClient
|
|
256
256
|
# @param request_options [CandidApiClient::RequestOptions]
|
257
257
|
# @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
|
258
258
|
# @example
|
259
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
259
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
260
260
|
# api.pre_encounter.patients.v_1.search(name_contains: "string")
|
261
261
|
def search(name_contains: nil, request_options: nil)
|
262
262
|
response = @request_client.conn.get do |req|
|
@@ -288,7 +288,7 @@ module CandidApiClient
|
|
288
288
|
# @param request_options [CandidApiClient::RequestOptions]
|
289
289
|
# @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
|
290
290
|
# @example
|
291
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
291
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
292
292
|
# api.pre_encounter.patients.v_1.scan(since: DateTime.parse(2024-01-15T09:30:00.000Z))
|
293
293
|
def scan(since:, request_options: nil)
|
294
294
|
response = @request_client.conn.get do |req|
|
@@ -376,7 +376,7 @@ module CandidApiClient
|
|
376
376
|
# @param request_options [CandidApiClient::RequestOptions]
|
377
377
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
|
378
378
|
# @example
|
379
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
379
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
380
380
|
# api.pre_encounter.patients.v_1.create(request: { name: { }, other_names: [{ }], gender: MAN, birth_date: DateTime.parse(2023-01-15), social_security_number: "string", biological_sex: FEMALE, sexual_orientation: HETEROSEXUAL, race: AMERICAN_INDIAN_OR_ALASKA_NATIVE, ethnicity: HISPANIC_OR_LATINO, disability_status: DISABLED, marital_status: ANNULLED, deceased: DateTime.parse(2024-01-15T09:30:00.000Z), multiple_birth: 1, primary_address: { }, other_addresses: [{ }], primary_telecom: { }, other_telecoms: [{ }], email: "string", electronic_communication_opt_in: true, photo: "string", language: "string", external_provenance: { external_id: "string", system_name: "string" }, contacts: [{ relationship: [SELF], name: { }, gender: MAN, telecoms: [{ }], addresses: [{ }], period: { } }], general_practitioners: [{ name: { }, npi: "string", telecoms: [{ }], addresses: [{ }], period: { } }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] } })
|
381
381
|
def create(request:, request_options: nil)
|
382
382
|
Async do
|
@@ -402,7 +402,7 @@ module CandidApiClient
|
|
402
402
|
# @param request_options [CandidApiClient::RequestOptions]
|
403
403
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
|
404
404
|
# @example
|
405
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
405
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
406
406
|
# api.pre_encounter.patients.v_1.get(id: "string")
|
407
407
|
def get(id:, request_options: nil)
|
408
408
|
Async do
|
@@ -428,7 +428,7 @@ module CandidApiClient
|
|
428
428
|
# @param request_options [CandidApiClient::RequestOptions]
|
429
429
|
# @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
|
430
430
|
# @example
|
431
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
431
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
432
432
|
# api.pre_encounter.patients.v_1.get_history(id: "string")
|
433
433
|
def get_history(id:, request_options: nil)
|
434
434
|
Async do
|
@@ -508,7 +508,7 @@ module CandidApiClient
|
|
508
508
|
# @param request_options [CandidApiClient::RequestOptions]
|
509
509
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
|
510
510
|
# @example
|
511
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
511
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
512
512
|
# api.pre_encounter.patients.v_1.update(
|
513
513
|
# id: "string",
|
514
514
|
# version: "string",
|
@@ -542,7 +542,7 @@ module CandidApiClient
|
|
542
542
|
# @param request_options [CandidApiClient::RequestOptions]
|
543
543
|
# @return [Void]
|
544
544
|
# @example
|
545
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
545
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
546
546
|
# api.pre_encounter.patients.v_1.deactivate(id: "string", version: "string")
|
547
547
|
def deactivate(id:, version:, request_options: nil)
|
548
548
|
Async do
|
@@ -566,7 +566,7 @@ module CandidApiClient
|
|
566
566
|
# @param request_options [CandidApiClient::RequestOptions]
|
567
567
|
# @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
|
568
568
|
# @example
|
569
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
569
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
570
570
|
# api.pre_encounter.patients.v_1.search(name_contains: "string")
|
571
571
|
def search(name_contains: nil, request_options: nil)
|
572
572
|
Async do
|
@@ -600,7 +600,7 @@ module CandidApiClient
|
|
600
600
|
# @param request_options [CandidApiClient::RequestOptions]
|
601
601
|
# @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
|
602
602
|
# @example
|
603
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
603
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
604
604
|
# api.pre_encounter.patients.v_1.scan(since: DateTime.parse(2024-01-15T09:30:00.000Z))
|
605
605
|
def scan(since:, request_options: nil)
|
606
606
|
Async do
|
@@ -114,11 +114,11 @@ module CandidApiClient
|
|
114
114
|
# @param filing_order [CandidApiClient::PreEncounter::Patients::V1::Types::FilingOrder]
|
115
115
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
116
116
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::MutablePatient]
|
117
|
-
def initialize(name:, other_names:,
|
117
|
+
def initialize(name:, other_names:, birth_date:, primary_address:, other_addresses:, primary_telecom:, other_telecoms:, contacts:, general_practitioners:, filing_order:, gender: OMIT, social_security_number: OMIT,
|
118
118
|
biological_sex: OMIT, sexual_orientation: OMIT, race: OMIT, ethnicity: OMIT, disability_status: OMIT, marital_status: OMIT, deceased: OMIT, multiple_birth: OMIT, email: OMIT, electronic_communication_opt_in: OMIT, photo: OMIT, language: OMIT, external_provenance: OMIT, additional_properties: nil)
|
119
119
|
@name = name
|
120
120
|
@other_names = other_names
|
121
|
-
@gender = gender
|
121
|
+
@gender = gender if gender != OMIT
|
122
122
|
@birth_date = birth_date
|
123
123
|
@social_security_number = social_security_number if social_security_number != OMIT
|
124
124
|
@biological_sex = biological_sex if biological_sex != OMIT
|
@@ -293,7 +293,7 @@ module CandidApiClient
|
|
293
293
|
def self.validate_raw(obj:)
|
294
294
|
CandidApiClient::PreEncounter::Common::Types::HumanName.validate_raw(obj: obj.name)
|
295
295
|
obj.other_names.is_a?(Array) != false || raise("Passed value for field obj.other_names is not the expected type, validation failed.")
|
296
|
-
obj.gender
|
296
|
+
obj.gender&.is_a?(CandidApiClient::PreEncounter::Common::Types::Gender) != false || raise("Passed value for field obj.gender is not the expected type, validation failed.")
|
297
297
|
obj.birth_date.is_a?(Date) != false || raise("Passed value for field obj.birth_date is not the expected type, validation failed.")
|
298
298
|
obj.social_security_number&.is_a?(String) != false || raise("Passed value for field obj.social_security_number is not the expected type, validation failed.")
|
299
299
|
obj.biological_sex&.is_a?(CandidApiClient::PreEncounter::Common::Types::Sex) != false || raise("Passed value for field obj.biological_sex is not the expected type, validation failed.")
|
@@ -144,7 +144,7 @@ module CandidApiClient
|
|
144
144
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
145
145
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
|
146
146
|
def initialize(id:, mrn:, organization_id:, deactivated:, version:, updated_at:, updating_user_id:, name:,
|
147
|
-
other_names:,
|
147
|
+
other_names:, birth_date:, primary_address:, other_addresses:, primary_telecom:, other_telecoms:, contacts:, general_practitioners:, filing_order:, gender: OMIT, social_security_number: OMIT, biological_sex: OMIT, sexual_orientation: OMIT, race: OMIT, ethnicity: OMIT, disability_status: OMIT, marital_status: OMIT, deceased: OMIT, multiple_birth: OMIT, email: OMIT, electronic_communication_opt_in: OMIT, photo: OMIT, language: OMIT, external_provenance: OMIT, additional_properties: nil)
|
148
148
|
@id = id
|
149
149
|
@mrn = mrn
|
150
150
|
@organization_id = organization_id
|
@@ -154,7 +154,7 @@ module CandidApiClient
|
|
154
154
|
@updating_user_id = updating_user_id
|
155
155
|
@name = name
|
156
156
|
@other_names = other_names
|
157
|
-
@gender = gender
|
157
|
+
@gender = gender if gender != OMIT
|
158
158
|
@birth_date = birth_date
|
159
159
|
@social_security_number = social_security_number if social_security_number != OMIT
|
160
160
|
@biological_sex = biological_sex if biological_sex != OMIT
|
@@ -357,7 +357,7 @@ module CandidApiClient
|
|
357
357
|
obj.updating_user_id.is_a?(String) != false || raise("Passed value for field obj.updating_user_id is not the expected type, validation failed.")
|
358
358
|
CandidApiClient::PreEncounter::Common::Types::HumanName.validate_raw(obj: obj.name)
|
359
359
|
obj.other_names.is_a?(Array) != false || raise("Passed value for field obj.other_names is not the expected type, validation failed.")
|
360
|
-
obj.gender
|
360
|
+
obj.gender&.is_a?(CandidApiClient::PreEncounter::Common::Types::Gender) != false || raise("Passed value for field obj.gender is not the expected type, validation failed.")
|
361
361
|
obj.birth_date.is_a?(Date) != false || raise("Passed value for field obj.birth_date is not the expected type, validation failed.")
|
362
362
|
obj.social_security_number&.is_a?(String) != false || raise("Passed value for field obj.social_security_number is not the expected type, validation failed.")
|
363
363
|
obj.biological_sex&.is_a?(CandidApiClient::PreEncounter::Common::Types::Sex) != false || raise("Passed value for field obj.biological_sex is not the expected type, validation failed.")
|
@@ -32,7 +32,7 @@ module CandidApiClient
|
|
32
32
|
# @param request_options [CandidApiClient::RequestOptions]
|
33
33
|
# @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacility]
|
34
34
|
# @example
|
35
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
35
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
36
36
|
# api.service_facility.update(
|
37
37
|
# service_facility_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
38
38
|
# organization_name: "string",
|
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
# @param request_options [CandidApiClient::RequestOptions]
|
88
88
|
# @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacility]
|
89
89
|
# @example
|
90
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
90
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
91
91
|
# api.service_facility.update(
|
92
92
|
# service_facility_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
93
93
|
# organization_name: "string",
|
@@ -29,7 +29,7 @@ module CandidApiClient
|
|
29
29
|
# @param request_options [CandidApiClient::RequestOptions]
|
30
30
|
# @return [CandidApiClient::Tasks::V3::Types::TaskActions]
|
31
31
|
# @example
|
32
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
32
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
33
33
|
# api.tasks.v_3.get_actions(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
34
34
|
def get_actions(task_id:, request_options: nil)
|
35
35
|
response = @request_client.conn.get do |req|
|
@@ -62,7 +62,7 @@ module CandidApiClient
|
|
62
62
|
# @param request_options [CandidApiClient::RequestOptions]
|
63
63
|
# @return [CandidApiClient::Tasks::V3::Types::TaskPage]
|
64
64
|
# @example
|
65
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
65
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
66
66
|
# api.tasks.v_3.get_multi(
|
67
67
|
# limit: 1,
|
68
68
|
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
@@ -113,7 +113,7 @@ module CandidApiClient
|
|
113
113
|
# @param request_options [CandidApiClient::RequestOptions]
|
114
114
|
# @return [CandidApiClient::Tasks::V3::Types::Task]
|
115
115
|
# @example
|
116
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
116
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
117
117
|
# api.tasks.v_3.get(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
118
118
|
def get(task_id:, request_options: nil)
|
119
119
|
response = @request_client.conn.get do |req|
|
@@ -141,7 +141,7 @@ module CandidApiClient
|
|
141
141
|
# @param request_options [CandidApiClient::RequestOptions]
|
142
142
|
# @return [CandidApiClient::Tasks::V3::Types::Task]
|
143
143
|
# @example
|
144
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
144
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
145
145
|
# api.tasks.v_3.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", task_type: CUSTOMER_DATA_REQUEST, description: "string", blocks_claim_submission: true, assignee_user_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", category: OTHER, work_queue_id: "string" })
|
146
146
|
def create(request:, request_options: nil)
|
147
147
|
response = @request_client.conn.post do |req|
|
@@ -166,7 +166,7 @@ module CandidApiClient
|
|
166
166
|
# @param request_options [CandidApiClient::RequestOptions]
|
167
167
|
# @return [CandidApiClient::Tasks::V3::Types::Task]
|
168
168
|
# @example
|
169
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
169
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
170
170
|
# api.tasks.v_3.update(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { status: FINISHED, assignee_user_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", blocks_claim_submission: true })
|
171
171
|
def update(task_id:, request:, request_options: nil)
|
172
172
|
response = @request_client.conn.patch do |req|
|
@@ -199,7 +199,7 @@ module CandidApiClient
|
|
199
199
|
# @param request_options [CandidApiClient::RequestOptions]
|
200
200
|
# @return [CandidApiClient::Tasks::V3::Types::TaskActions]
|
201
201
|
# @example
|
202
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
202
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
203
203
|
# api.tasks.v_3.get_actions(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
204
204
|
def get_actions(task_id:, request_options: nil)
|
205
205
|
Async do
|
@@ -234,7 +234,7 @@ module CandidApiClient
|
|
234
234
|
# @param request_options [CandidApiClient::RequestOptions]
|
235
235
|
# @return [CandidApiClient::Tasks::V3::Types::TaskPage]
|
236
236
|
# @example
|
237
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
237
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
238
238
|
# api.tasks.v_3.get_multi(
|
239
239
|
# limit: 1,
|
240
240
|
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
@@ -288,7 +288,7 @@ module CandidApiClient
|
|
288
288
|
# @param request_options [CandidApiClient::RequestOptions]
|
289
289
|
# @return [CandidApiClient::Tasks::V3::Types::Task]
|
290
290
|
# @example
|
291
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
291
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
292
292
|
# api.tasks.v_3.get(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
293
293
|
def get(task_id:, request_options: nil)
|
294
294
|
Async do
|
@@ -318,7 +318,7 @@ module CandidApiClient
|
|
318
318
|
# @param request_options [CandidApiClient::RequestOptions]
|
319
319
|
# @return [CandidApiClient::Tasks::V3::Types::Task]
|
320
320
|
# @example
|
321
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
321
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
322
322
|
# api.tasks.v_3.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", task_type: CUSTOMER_DATA_REQUEST, description: "string", blocks_claim_submission: true, assignee_user_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", category: OTHER, work_queue_id: "string" })
|
323
323
|
def create(request:, request_options: nil)
|
324
324
|
Async do
|
@@ -346,7 +346,7 @@ module CandidApiClient
|
|
346
346
|
# @param request_options [CandidApiClient::RequestOptions]
|
347
347
|
# @return [CandidApiClient::Tasks::V3::Types::Task]
|
348
348
|
# @example
|
349
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
349
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
350
350
|
# api.tasks.v_3.update(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { status: FINISHED, assignee_user_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", blocks_claim_submission: true })
|
351
351
|
def update(task_id:, request:, request_options: nil)
|
352
352
|
Async do
|
@@ -38,7 +38,7 @@ module CandidApiClient
|
|
38
38
|
# @param request_options [CandidApiClient::RequestOptions]
|
39
39
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOffsPage]
|
40
40
|
# @example
|
41
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
41
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
42
42
|
# api.write_offs.v_1.get_multi(
|
43
43
|
# limit: 1,
|
44
44
|
# patient_external_id: "string",
|
@@ -86,7 +86,7 @@ module CandidApiClient
|
|
86
86
|
# @param request_options [CandidApiClient::RequestOptions]
|
87
87
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
88
88
|
# @example
|
89
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
89
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
90
90
|
# api.write_offs.v_1.get(write_off_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
91
91
|
def get(write_off_id:, request_options: nil)
|
92
92
|
response = @request_client.conn.get do |req|
|
@@ -110,7 +110,7 @@ module CandidApiClient
|
|
110
110
|
# @param request_options [CandidApiClient::RequestOptions]
|
111
111
|
# @return [CandidApiClient::WriteOffs::V1::Types::CreateWriteOffsResponse]
|
112
112
|
# @example
|
113
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
113
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
114
114
|
# api.write_offs.v_1.create(write_offs: )
|
115
115
|
def create(write_offs:, request_options: nil)
|
116
116
|
response = @request_client.conn.post do |req|
|
@@ -134,7 +134,7 @@ module CandidApiClient
|
|
134
134
|
# @param request_options [CandidApiClient::RequestOptions]
|
135
135
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
136
136
|
# @example
|
137
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
137
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
138
138
|
# api.write_offs.v_1.revert(write_off_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
139
139
|
def revert(write_off_id:, request_options: nil)
|
140
140
|
response = @request_client.conn.post do |req|
|
@@ -177,7 +177,7 @@ module CandidApiClient
|
|
177
177
|
# @param request_options [CandidApiClient::RequestOptions]
|
178
178
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOffsPage]
|
179
179
|
# @example
|
180
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
180
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
181
181
|
# api.write_offs.v_1.get_multi(
|
182
182
|
# limit: 1,
|
183
183
|
# patient_external_id: "string",
|
@@ -227,7 +227,7 @@ module CandidApiClient
|
|
227
227
|
# @param request_options [CandidApiClient::RequestOptions]
|
228
228
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
229
229
|
# @example
|
230
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
230
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
231
231
|
# api.write_offs.v_1.get(write_off_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
232
232
|
def get(write_off_id:, request_options: nil)
|
233
233
|
Async do
|
@@ -253,7 +253,7 @@ module CandidApiClient
|
|
253
253
|
# @param request_options [CandidApiClient::RequestOptions]
|
254
254
|
# @return [CandidApiClient::WriteOffs::V1::Types::CreateWriteOffsResponse]
|
255
255
|
# @example
|
256
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
256
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
257
257
|
# api.write_offs.v_1.create(write_offs: )
|
258
258
|
def create(write_offs:, request_options: nil)
|
259
259
|
Async do
|
@@ -279,7 +279,7 @@ module CandidApiClient
|
|
279
279
|
# @param request_options [CandidApiClient::RequestOptions]
|
280
280
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
281
281
|
# @example
|
282
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
282
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
283
283
|
# api.write_offs.v_1.revert(write_off_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
284
284
|
def revert(write_off_id:, request_options: nil)
|
285
285
|
Async do
|
data/lib/candidhealth.rb
CHANGED
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
# @param client_id [String]
|
88
88
|
# @param client_secret [String]
|
89
89
|
# @return [CandidApiClient::Client]
|
90
|
-
def initialize(client_id:, client_secret:, base_url: nil, environment:
|
90
|
+
def initialize(client_id:, client_secret:, base_url: nil, environment: nil, max_retries: nil,
|
91
91
|
timeout_in_seconds: nil)
|
92
92
|
@oauth_provider = CandidApiClient::OauthTokenProvider.new(
|
93
93
|
client_id: client_id,
|
@@ -190,7 +190,7 @@ module CandidApiClient
|
|
190
190
|
# @param client_id [String]
|
191
191
|
# @param client_secret [String]
|
192
192
|
# @return [CandidApiClient::AsyncClient]
|
193
|
-
def initialize(client_id:, client_secret:, base_url: nil, environment:
|
193
|
+
def initialize(client_id:, client_secret:, base_url: nil, environment: nil, max_retries: nil,
|
194
194
|
timeout_in_seconds: nil)
|
195
195
|
@oauth_provider = CandidApiClient::OauthTokenProvider.new(
|
196
196
|
client_id: client_id,
|
data/lib/environment.rb
CHANGED
@@ -2,13 +2,5 @@
|
|
2
2
|
|
3
3
|
module CandidApiClient
|
4
4
|
class Environment
|
5
|
-
PRODUCTION = {
|
6
|
-
CandidApi: "https://api.joincandidhealth.com",
|
7
|
-
PreEncounter: "https://pre-api.joincandidhealth.com"
|
8
|
-
}.freeze
|
9
|
-
STAGING = {
|
10
|
-
CandidApi: "https://api-staging.joincandidhealth.com",
|
11
|
-
PreEncounter: "https://pre-api-staging.joincandidhealth.com"
|
12
|
-
}.freeze
|
13
5
|
end
|
14
6
|
end
|