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.
- 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/commons/types/procedure_modifier.rb +1 -0
- data/lib/candidhealth/contracts/v_2/client.rb +10 -10
- data/lib/candidhealth/custom_schemas/v_1/client.rb +28 -28
- 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/financials/types/account_type.rb +1 -0
- 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/service_lines/v_2/types/service_line.rb +25 -1
- 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
@@ -24,7 +24,7 @@ module CandidApiClient
|
|
24
24
|
# @param request_options [CandidApiClient::RequestOptions]
|
25
25
|
# @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility]
|
26
26
|
# @example
|
27
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
27
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
28
28
|
# api.organization_service_facilities.v_2.get(organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569")
|
29
29
|
def get(organization_service_facility_id:, request_options: nil)
|
30
30
|
response = @request_client.conn.get do |req|
|
@@ -47,7 +47,7 @@ module CandidApiClient
|
|
47
47
|
# @param request_options [CandidApiClient::RequestOptions]
|
48
48
|
# @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacilityPage]
|
49
49
|
# @example
|
50
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
50
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
51
51
|
# api.organization_service_facilities.v_2.get_multi(
|
52
52
|
# limit: 100,
|
53
53
|
# name: "Test Service Facility",
|
@@ -95,7 +95,7 @@ module CandidApiClient
|
|
95
95
|
# @param request_options [CandidApiClient::RequestOptions]
|
96
96
|
# @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility]
|
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.organization_service_facilities.v_2.create(request: { name: "Test Service Facility", aliases: ["Test Service Facility Alias"], description: "Test Service Facility Description", status: ACTIVE, operational_status: CLOSED, mode: INSTANCE, type: DIAGNOSTICS_OR_THERAPEUTICS_UNIT, physical_type: SITE, telecoms: ["555-555-5555"], address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
|
100
100
|
def create(request:, request_options: nil)
|
101
101
|
response = @request_client.conn.post do |req|
|
@@ -135,7 +135,7 @@ module CandidApiClient
|
|
135
135
|
# @param request_options [CandidApiClient::RequestOptions]
|
136
136
|
# @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility]
|
137
137
|
# @example
|
138
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
138
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
139
139
|
# api.organization_service_facilities.v_2.update(organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569", request: { name: "Test Service Facility", aliases: ["Test Service Facility Alias"], description: "Test Service Facility Description", status: ACTIVE, operational_status: CLOSED, mode: INSTANCE, type: DIAGNOSTICS_OR_THERAPEUTICS_UNIT, physical_type: SITE, telecoms: ["555-555-5555"], address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
|
140
140
|
def update(organization_service_facility_id:, request:, request_options: nil)
|
141
141
|
response = @request_client.conn.patch do |req|
|
@@ -157,7 +157,7 @@ module CandidApiClient
|
|
157
157
|
# @param request_options [CandidApiClient::RequestOptions]
|
158
158
|
# @return [Void]
|
159
159
|
# @example
|
160
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
160
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
161
161
|
# api.organization_service_facilities.v_2.delete(organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569")
|
162
162
|
def delete(organization_service_facility_id:, request_options: nil)
|
163
163
|
@request_client.conn.delete do |req|
|
@@ -188,7 +188,7 @@ module CandidApiClient
|
|
188
188
|
# @param request_options [CandidApiClient::RequestOptions]
|
189
189
|
# @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility]
|
190
190
|
# @example
|
191
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
191
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
192
192
|
# api.organization_service_facilities.v_2.get(organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569")
|
193
193
|
def get(organization_service_facility_id:, request_options: nil)
|
194
194
|
Async do
|
@@ -213,7 +213,7 @@ module CandidApiClient
|
|
213
213
|
# @param request_options [CandidApiClient::RequestOptions]
|
214
214
|
# @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacilityPage]
|
215
215
|
# @example
|
216
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
216
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
217
217
|
# api.organization_service_facilities.v_2.get_multi(
|
218
218
|
# limit: 100,
|
219
219
|
# name: "Test Service Facility",
|
@@ -263,7 +263,7 @@ module CandidApiClient
|
|
263
263
|
# @param request_options [CandidApiClient::RequestOptions]
|
264
264
|
# @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility]
|
265
265
|
# @example
|
266
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
266
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
267
267
|
# api.organization_service_facilities.v_2.create(request: { name: "Test Service Facility", aliases: ["Test Service Facility Alias"], description: "Test Service Facility Description", status: ACTIVE, operational_status: CLOSED, mode: INSTANCE, type: DIAGNOSTICS_OR_THERAPEUTICS_UNIT, physical_type: SITE, telecoms: ["555-555-5555"], address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
|
268
268
|
def create(request:, request_options: nil)
|
269
269
|
Async do
|
@@ -305,7 +305,7 @@ module CandidApiClient
|
|
305
305
|
# @param request_options [CandidApiClient::RequestOptions]
|
306
306
|
# @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility]
|
307
307
|
# @example
|
308
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
308
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
309
309
|
# api.organization_service_facilities.v_2.update(organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569", request: { name: "Test Service Facility", aliases: ["Test Service Facility Alias"], description: "Test Service Facility Description", status: ACTIVE, operational_status: CLOSED, mode: INSTANCE, type: DIAGNOSTICS_OR_THERAPEUTICS_UNIT, physical_type: SITE, telecoms: ["555-555-5555"], address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
|
310
310
|
def update(organization_service_facility_id:, request:, request_options: nil)
|
311
311
|
Async do
|
@@ -329,7 +329,7 @@ module CandidApiClient
|
|
329
329
|
# @param request_options [CandidApiClient::RequestOptions]
|
330
330
|
# @return [Void]
|
331
331
|
# @example
|
332
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
332
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
333
333
|
# api.organization_service_facilities.v_2.delete(organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569")
|
334
334
|
def delete(organization_service_facility_id:, request_options: nil)
|
335
335
|
Async do
|
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
# @param request_options [CandidApiClient::RequestOptions]
|
44
44
|
# @return [CandidApiClient::PatientPayments::V4::Types::PatientPaymentsPage]
|
45
45
|
# @example
|
46
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
46
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
47
47
|
# api.patient_payments.v_4.get_multi(
|
48
48
|
# limit: 1,
|
49
49
|
# patient_external_id: "string",
|
@@ -93,7 +93,7 @@ module CandidApiClient
|
|
93
93
|
# @param request_options [CandidApiClient::RequestOptions]
|
94
94
|
# @return [CandidApiClient::PatientPayments::V4::Types::PatientPayment]
|
95
95
|
# @example
|
96
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
96
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
97
97
|
# api.patient_payments.v_4.get(patient_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
98
98
|
def get(patient_payment_id:, request_options: nil)
|
99
99
|
response = @request_client.conn.get do |req|
|
@@ -127,7 +127,7 @@ module CandidApiClient
|
|
127
127
|
# @param request_options [CandidApiClient::RequestOptions]
|
128
128
|
# @return [CandidApiClient::PatientPayments::V4::Types::PatientPayment]
|
129
129
|
# @example
|
130
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
130
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
131
131
|
# api.patient_payments.v_4.create(
|
132
132
|
# amount_cents: 1,
|
133
133
|
# payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z),
|
@@ -170,7 +170,7 @@ module CandidApiClient
|
|
170
170
|
# @param request_options [CandidApiClient::RequestOptions]
|
171
171
|
# @return [CandidApiClient::PatientPayments::V4::Types::PatientPayment]
|
172
172
|
# @example
|
173
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
173
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
174
174
|
# api.patient_payments.v_4.update(patient_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
|
175
175
|
def update(patient_payment_id:, payment_timestamp: nil, payment_note: nil, invoice: nil, request_options: nil)
|
176
176
|
response = @request_client.conn.patch do |req|
|
@@ -199,7 +199,7 @@ module CandidApiClient
|
|
199
199
|
# @param request_options [CandidApiClient::RequestOptions]
|
200
200
|
# @return [Void]
|
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.patient_payments.v_4.delete(patient_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
204
204
|
def delete(patient_payment_id:, request_options: nil)
|
205
205
|
@request_client.conn.delete do |req|
|
@@ -244,7 +244,7 @@ module CandidApiClient
|
|
244
244
|
# @param request_options [CandidApiClient::RequestOptions]
|
245
245
|
# @return [CandidApiClient::PatientPayments::V4::Types::PatientPaymentsPage]
|
246
246
|
# @example
|
247
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
247
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
248
248
|
# api.patient_payments.v_4.get_multi(
|
249
249
|
# limit: 1,
|
250
250
|
# patient_external_id: "string",
|
@@ -296,7 +296,7 @@ module CandidApiClient
|
|
296
296
|
# @param request_options [CandidApiClient::RequestOptions]
|
297
297
|
# @return [CandidApiClient::PatientPayments::V4::Types::PatientPayment]
|
298
298
|
# @example
|
299
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
299
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
300
300
|
# api.patient_payments.v_4.get(patient_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
301
301
|
def get(patient_payment_id:, request_options: nil)
|
302
302
|
Async do
|
@@ -332,7 +332,7 @@ module CandidApiClient
|
|
332
332
|
# @param request_options [CandidApiClient::RequestOptions]
|
333
333
|
# @return [CandidApiClient::PatientPayments::V4::Types::PatientPayment]
|
334
334
|
# @example
|
335
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
335
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
336
336
|
# api.patient_payments.v_4.create(
|
337
337
|
# amount_cents: 1,
|
338
338
|
# payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z),
|
@@ -377,7 +377,7 @@ module CandidApiClient
|
|
377
377
|
# @param request_options [CandidApiClient::RequestOptions]
|
378
378
|
# @return [CandidApiClient::PatientPayments::V4::Types::PatientPayment]
|
379
379
|
# @example
|
380
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
380
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
381
381
|
# api.patient_payments.v_4.update(patient_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
|
382
382
|
def update(patient_payment_id:, payment_timestamp: nil, payment_note: nil, invoice: nil, request_options: nil)
|
383
383
|
Async do
|
@@ -408,7 +408,7 @@ module CandidApiClient
|
|
408
408
|
# @param request_options [CandidApiClient::RequestOptions]
|
409
409
|
# @return [Void]
|
410
410
|
# @example
|
411
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
411
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
412
412
|
# api.patient_payments.v_4.delete(patient_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
413
413
|
def delete(patient_payment_id:, request_options: nil)
|
414
414
|
Async do
|
@@ -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",
|