candidhealth 0.39.11 → 0.40.1
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/charge_capture/v_1/client.rb +126 -6
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +29 -2
- data/lib/candidhealth/encounters/v_4/client.rb +149 -8
- data/lib/candidhealth/encounters/v_4/types/claim_supplemental_information.rb +86 -0
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +28 -1
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +29 -2
- data/lib/candidhealth/encounters/v_4/types/report_transmission_code.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/report_type_code.rb +73 -0
- data/lib/candidhealth/non_insurance_payers/v_1/client.rb +4 -2
- data/lib/candidhealth/non_insurance_payers/v_1/types/create_non_insurance_payer_request.rb +15 -2
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +8 -4
- data/lib/candidhealth/pre_encounter/common/types/human_name.rb +15 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +8 -4
- data/lib/candidhealth/pre_encounter/images/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/images/v_1/client.rb +359 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/coverage_association.rb +74 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/coverage_image_side.rb +16 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/image.rb +188 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/image_status.rb +17 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/mutable_image.rb +125 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/patient_association.rb +75 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +89 -6
- data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization.rb +11 -1
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +6 -4
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +6 -4
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +6 -4
- data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +10 -8
- data/lib/candidhealth/service_lines/v_2/types/test_result_type.rb +1 -0
- data/lib/candidhealth/write_offs/v_1/types/non_insurance_payer_write_off.rb +143 -0
- data/lib/candidhealth/write_offs/v_1/types/non_insurance_payer_write_off_create.rb +113 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off.rb +13 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off_create.rb +13 -0
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +114 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +11 -0
- metadata +15 -2
@@ -22,6 +22,7 @@ require_relative "../../../encounter_providers/v_2/types/supervising_provider_up
|
|
22
22
|
require_relative "../../../encounter_providers/v_2/types/referring_provider_update"
|
23
23
|
require_relative "../../../encounter_providers/v_2/types/initial_referring_provider_update"
|
24
24
|
require_relative "epsdt_referral"
|
25
|
+
require_relative "claim_supplemental_information"
|
25
26
|
require "ostruct"
|
26
27
|
require "json"
|
27
28
|
|
@@ -94,6 +95,8 @@ module CandidApiClient
|
|
94
95
|
attr_reader :subscriber_primary
|
95
96
|
# @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the secondary insurance subscriber.
|
96
97
|
attr_reader :subscriber_secondary
|
98
|
+
# @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
|
99
|
+
attr_reader :subscriber_tertiary
|
97
100
|
# @return [String] Defines additional information on the claim needed by the payer.
|
98
101
|
# Box 19 on the CMS-1500 claim form.
|
99
102
|
attr_reader :additional_information
|
@@ -197,6 +200,9 @@ module CandidApiClient
|
|
197
200
|
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
198
201
|
# 837P form
|
199
202
|
attr_reader :epsdt_referral
|
203
|
+
# @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
204
|
+
# permitted.
|
205
|
+
attr_reader :claim_supplemental_information
|
200
206
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
201
207
|
attr_reader :additional_properties
|
202
208
|
# @return [Object]
|
@@ -253,6 +259,7 @@ module CandidApiClient
|
|
253
259
|
# end_date_of_service will update all service line date_of_service values.
|
254
260
|
# @param subscriber_primary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the primary insurance subscriber.
|
255
261
|
# @param subscriber_secondary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the secondary insurance subscriber.
|
262
|
+
# @param subscriber_tertiary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
|
256
263
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
257
264
|
# Box 19 on the CMS-1500 claim form.
|
258
265
|
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF\*4N
|
@@ -335,10 +342,12 @@ module CandidApiClient
|
|
335
342
|
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
336
343
|
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
337
344
|
# 837P form
|
345
|
+
# @param claim_supplemental_information [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
346
|
+
# permitted.
|
338
347
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
339
348
|
# @return [CandidApiClient::Encounters::V4::Types::EncounterOptional]
|
340
349
|
def initialize(benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT,
|
341
|
-
date_of_service: OMIT, tag_ids: OMIT, clinical_notes: OMIT, pay_to_address: OMIT, billable_status: OMIT, responsible_party: OMIT, provider_accepts_assignment: OMIT, synchronicity: OMIT, place_of_service_code: OMIT, appointment_type: OMIT, end_date_of_service: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, patient: OMIT, patient_authorized_release: OMIT, schema_instances: OMIT, vitals: OMIT, existing_medications: OMIT, rendering_provider: OMIT, service_facility: OMIT, guarantor: OMIT, billing_provider: OMIT, supervising_provider: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, referral_number: OMIT, epsdt_referral: OMIT, additional_properties: nil)
|
350
|
+
date_of_service: OMIT, tag_ids: OMIT, clinical_notes: OMIT, pay_to_address: OMIT, billable_status: OMIT, responsible_party: OMIT, provider_accepts_assignment: OMIT, synchronicity: OMIT, place_of_service_code: OMIT, appointment_type: OMIT, end_date_of_service: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, subscriber_tertiary: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, patient: OMIT, patient_authorized_release: OMIT, schema_instances: OMIT, vitals: OMIT, existing_medications: OMIT, rendering_provider: OMIT, service_facility: OMIT, guarantor: OMIT, billing_provider: OMIT, supervising_provider: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, referral_number: OMIT, epsdt_referral: OMIT, claim_supplemental_information: OMIT, additional_properties: nil)
|
342
351
|
@benefits_assigned_to_provider = benefits_assigned_to_provider if benefits_assigned_to_provider != OMIT
|
343
352
|
@prior_authorization_number = prior_authorization_number if prior_authorization_number != OMIT
|
344
353
|
@external_id = external_id if external_id != OMIT
|
@@ -355,6 +364,7 @@ module CandidApiClient
|
|
355
364
|
@end_date_of_service = end_date_of_service if end_date_of_service != OMIT
|
356
365
|
@subscriber_primary = subscriber_primary if subscriber_primary != OMIT
|
357
366
|
@subscriber_secondary = subscriber_secondary if subscriber_secondary != OMIT
|
367
|
+
@subscriber_tertiary = subscriber_tertiary if subscriber_tertiary != OMIT
|
358
368
|
@additional_information = additional_information if additional_information != OMIT
|
359
369
|
if service_authorization_exception_code != OMIT
|
360
370
|
@service_authorization_exception_code = service_authorization_exception_code
|
@@ -380,6 +390,7 @@ module CandidApiClient
|
|
380
390
|
@initial_referring_provider = initial_referring_provider if initial_referring_provider != OMIT
|
381
391
|
@referral_number = referral_number if referral_number != OMIT
|
382
392
|
@epsdt_referral = epsdt_referral if epsdt_referral != OMIT
|
393
|
+
@claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
|
383
394
|
@additional_properties = additional_properties
|
384
395
|
@_field_set = {
|
385
396
|
"benefits_assigned_to_provider": benefits_assigned_to_provider,
|
@@ -398,6 +409,7 @@ module CandidApiClient
|
|
398
409
|
"end_date_of_service": end_date_of_service,
|
399
410
|
"subscriber_primary": subscriber_primary,
|
400
411
|
"subscriber_secondary": subscriber_secondary,
|
412
|
+
"subscriber_tertiary": subscriber_tertiary,
|
401
413
|
"additional_information": additional_information,
|
402
414
|
"service_authorization_exception_code": service_authorization_exception_code,
|
403
415
|
"admission_date": admission_date,
|
@@ -418,7 +430,8 @@ module CandidApiClient
|
|
418
430
|
"referring_provider": referring_provider,
|
419
431
|
"initial_referring_provider": initial_referring_provider,
|
420
432
|
"referral_number": referral_number,
|
421
|
-
"epsdt_referral": epsdt_referral
|
433
|
+
"epsdt_referral": epsdt_referral,
|
434
|
+
"claim_supplemental_information": claim_supplemental_information
|
422
435
|
}.reject do |_k, v|
|
423
436
|
v == OMIT
|
424
437
|
end
|
@@ -467,6 +480,12 @@ module CandidApiClient
|
|
467
480
|
subscriber_secondary = parsed_json["subscriber_secondary"].to_json
|
468
481
|
subscriber_secondary = CandidApiClient::Individual::Types::SubscriberCreate.from_json(json_object: subscriber_secondary)
|
469
482
|
end
|
483
|
+
if parsed_json["subscriber_tertiary"].nil?
|
484
|
+
subscriber_tertiary = nil
|
485
|
+
else
|
486
|
+
subscriber_tertiary = parsed_json["subscriber_tertiary"].to_json
|
487
|
+
subscriber_tertiary = CandidApiClient::Individual::Types::SubscriberCreate.from_json(json_object: subscriber_tertiary)
|
488
|
+
end
|
470
489
|
additional_information = struct["additional_information"]
|
471
490
|
service_authorization_exception_code = struct["service_authorization_exception_code"]
|
472
491
|
admission_date = (Date.parse(parsed_json["admission_date"]) unless parsed_json["admission_date"].nil?)
|
@@ -548,6 +567,10 @@ module CandidApiClient
|
|
548
567
|
epsdt_referral = parsed_json["epsdt_referral"].to_json
|
549
568
|
epsdt_referral = CandidApiClient::Encounters::V4::Types::EpsdtReferral.from_json(json_object: epsdt_referral)
|
550
569
|
end
|
570
|
+
claim_supplemental_information = parsed_json["claim_supplemental_information"]&.map do |item|
|
571
|
+
item = item.to_json
|
572
|
+
CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation.from_json(json_object: item)
|
573
|
+
end
|
551
574
|
new(
|
552
575
|
benefits_assigned_to_provider: benefits_assigned_to_provider,
|
553
576
|
prior_authorization_number: prior_authorization_number,
|
@@ -565,6 +588,7 @@ module CandidApiClient
|
|
565
588
|
end_date_of_service: end_date_of_service,
|
566
589
|
subscriber_primary: subscriber_primary,
|
567
590
|
subscriber_secondary: subscriber_secondary,
|
591
|
+
subscriber_tertiary: subscriber_tertiary,
|
568
592
|
additional_information: additional_information,
|
569
593
|
service_authorization_exception_code: service_authorization_exception_code,
|
570
594
|
admission_date: admission_date,
|
@@ -586,6 +610,7 @@ module CandidApiClient
|
|
586
610
|
initial_referring_provider: initial_referring_provider,
|
587
611
|
referral_number: referral_number,
|
588
612
|
epsdt_referral: epsdt_referral,
|
613
|
+
claim_supplemental_information: claim_supplemental_information,
|
589
614
|
additional_properties: struct
|
590
615
|
)
|
591
616
|
end
|
@@ -620,6 +645,7 @@ module CandidApiClient
|
|
620
645
|
obj.end_date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.end_date_of_service is not the expected type, validation failed.")
|
621
646
|
obj.subscriber_primary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_primary)
|
622
647
|
obj.subscriber_secondary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_secondary)
|
648
|
+
obj.subscriber_tertiary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_tertiary)
|
623
649
|
obj.additional_information&.is_a?(String) != false || raise("Passed value for field obj.additional_information is not the expected type, validation failed.")
|
624
650
|
obj.service_authorization_exception_code&.is_a?(CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode) != false || raise("Passed value for field obj.service_authorization_exception_code is not the expected type, validation failed.")
|
625
651
|
obj.admission_date&.is_a?(Date) != false || raise("Passed value for field obj.admission_date is not the expected type, validation failed.")
|
@@ -641,6 +667,7 @@ module CandidApiClient
|
|
641
667
|
obj.initial_referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate.validate_raw(obj: obj.initial_referring_provider)
|
642
668
|
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
643
669
|
obj.epsdt_referral.nil? || CandidApiClient::Encounters::V4::Types::EpsdtReferral.validate_raw(obj: obj.epsdt_referral)
|
670
|
+
obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
|
644
671
|
end
|
645
672
|
end
|
646
673
|
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CandidApiClient
|
4
|
+
module Encounters
|
5
|
+
module V4
|
6
|
+
module Types
|
7
|
+
class ReportTypeCode
|
8
|
+
C_03 = "03"
|
9
|
+
C_04 = "04"
|
10
|
+
C_05 = "05"
|
11
|
+
C_06 = "06"
|
12
|
+
C_07 = "07"
|
13
|
+
C_08 = "08"
|
14
|
+
C_09 = "09"
|
15
|
+
C_10 = "10"
|
16
|
+
C_11 = "11"
|
17
|
+
C_13 = "13"
|
18
|
+
C_15 = "15"
|
19
|
+
C_21 = "21"
|
20
|
+
CA_3 = "A3"
|
21
|
+
CA_4 = "A4"
|
22
|
+
CAM = "AM"
|
23
|
+
CAS = "AS"
|
24
|
+
CB_2 = "B2"
|
25
|
+
CB_3 = "B3"
|
26
|
+
CB_4 = "B4"
|
27
|
+
CBR = "BR"
|
28
|
+
CBS = "BS"
|
29
|
+
CBT = "BT"
|
30
|
+
CCB = "CB"
|
31
|
+
CCK = "CK"
|
32
|
+
CCT = "CT"
|
33
|
+
CD_2 = "D2"
|
34
|
+
CDA = "DA"
|
35
|
+
CDB = "DB"
|
36
|
+
CDG = "DG"
|
37
|
+
CDJ = "DJ"
|
38
|
+
CDS = "DS"
|
39
|
+
CEB = "EB"
|
40
|
+
CHC = "HC"
|
41
|
+
CHR = "HR"
|
42
|
+
CI_5 = "I5"
|
43
|
+
CIR = "IR"
|
44
|
+
CLA = "LA"
|
45
|
+
CM_1 = "M1"
|
46
|
+
CMT = "MT"
|
47
|
+
CNN = "NN"
|
48
|
+
COB = "OB"
|
49
|
+
COC = "OC"
|
50
|
+
COD = "OD"
|
51
|
+
COE = "OE"
|
52
|
+
COX = "OX"
|
53
|
+
COZ = "OZ"
|
54
|
+
CP_4 = "P4"
|
55
|
+
CP_5 = "P5"
|
56
|
+
CPE = "PE"
|
57
|
+
CPN = "PN"
|
58
|
+
CPO = "PO"
|
59
|
+
CPQ = "PQ"
|
60
|
+
CPY = "PY"
|
61
|
+
CPZ = "PZ"
|
62
|
+
CRB = "RB"
|
63
|
+
CRR = "RR"
|
64
|
+
CRT = "RT"
|
65
|
+
CRX = "RX"
|
66
|
+
CSG = "SG"
|
67
|
+
CV_5 = "V5"
|
68
|
+
CXP = "XP"
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -34,11 +34,12 @@ module CandidApiClient
|
|
34
34
|
# * :city (String)
|
35
35
|
# * :state (CandidApiClient::Commons::Types::State)
|
36
36
|
# * :zip_code (String)
|
37
|
+
# * :clinical_trials (Array<CandidApiClient::ClinicalTrials::V1::Types::MutableClinicalTrial>)
|
37
38
|
# @param request_options [CandidApiClient::RequestOptions]
|
38
39
|
# @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
|
39
40
|
# @example
|
40
41
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
41
|
-
# api.non_insurance_payers.v_1.create(request: { name: "string", description: "string", category: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
|
42
|
+
# api.non_insurance_payers.v_1.create(request: { name: "string", description: "string", category: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, clinical_trials: [{ name: "string", clinical_trial_number: "string", clinical_trial_phase: PHASE_ONE }] })
|
42
43
|
def create(request:, request_options: nil)
|
43
44
|
response = @request_client.conn.post do |req|
|
44
45
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -215,11 +216,12 @@ module CandidApiClient
|
|
215
216
|
# * :city (String)
|
216
217
|
# * :state (CandidApiClient::Commons::Types::State)
|
217
218
|
# * :zip_code (String)
|
219
|
+
# * :clinical_trials (Array<CandidApiClient::ClinicalTrials::V1::Types::MutableClinicalTrial>)
|
218
220
|
# @param request_options [CandidApiClient::RequestOptions]
|
219
221
|
# @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
|
220
222
|
# @example
|
221
223
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
222
|
-
# api.non_insurance_payers.v_1.create(request: { name: "string", description: "string", category: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
|
224
|
+
# api.non_insurance_payers.v_1.create(request: { name: "string", description: "string", category: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, clinical_trials: [{ name: "string", clinical_trial_number: "string", clinical_trial_phase: PHASE_ONE }] })
|
223
225
|
def create(request:, request_options: nil)
|
224
226
|
Async do
|
225
227
|
response = @request_client.conn.post do |req|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "../../../commons/types/street_address_short_zip"
|
4
|
+
require_relative "../../../clinical_trials/v_1/types/mutable_clinical_trial"
|
4
5
|
require "ostruct"
|
5
6
|
require "json"
|
6
7
|
|
@@ -17,6 +18,8 @@ module CandidApiClient
|
|
17
18
|
attr_reader :category
|
18
19
|
# @return [CandidApiClient::Commons::Types::StreetAddressShortZip]
|
19
20
|
attr_reader :address
|
21
|
+
# @return [Array<CandidApiClient::ClinicalTrials::V1::Types::MutableClinicalTrial>] The same name cannot be used across several clinical trials
|
22
|
+
attr_reader :clinical_trials
|
20
23
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
21
24
|
attr_reader :additional_properties
|
22
25
|
# @return [Object]
|
@@ -29,19 +32,23 @@ module CandidApiClient
|
|
29
32
|
# @param description [String] Max 255 characters allowed
|
30
33
|
# @param category [String] Max 255 characters allowed
|
31
34
|
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZip]
|
35
|
+
# @param clinical_trials [Array<CandidApiClient::ClinicalTrials::V1::Types::MutableClinicalTrial>] The same name cannot be used across several clinical trials
|
32
36
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
33
37
|
# @return [CandidApiClient::NonInsurancePayers::V1::Types::CreateNonInsurancePayerRequest]
|
34
|
-
def initialize(name:, description: OMIT, category: OMIT, address: OMIT,
|
38
|
+
def initialize(name:, description: OMIT, category: OMIT, address: OMIT, clinical_trials: OMIT,
|
39
|
+
additional_properties: nil)
|
35
40
|
@name = name
|
36
41
|
@description = description if description != OMIT
|
37
42
|
@category = category if category != OMIT
|
38
43
|
@address = address if address != OMIT
|
44
|
+
@clinical_trials = clinical_trials if clinical_trials != OMIT
|
39
45
|
@additional_properties = additional_properties
|
40
46
|
@_field_set = {
|
41
47
|
"name": name,
|
42
48
|
"description": description,
|
43
49
|
"category": category,
|
44
|
-
"address": address
|
50
|
+
"address": address,
|
51
|
+
"clinical_trials": clinical_trials
|
45
52
|
}.reject do |_k, v|
|
46
53
|
v == OMIT
|
47
54
|
end
|
@@ -63,11 +70,16 @@ module CandidApiClient
|
|
63
70
|
address = parsed_json["address"].to_json
|
64
71
|
address = CandidApiClient::Commons::Types::StreetAddressShortZip.from_json(json_object: address)
|
65
72
|
end
|
73
|
+
clinical_trials = parsed_json["clinical_trials"]&.map do |item|
|
74
|
+
item = item.to_json
|
75
|
+
CandidApiClient::ClinicalTrials::V1::Types::MutableClinicalTrial.from_json(json_object: item)
|
76
|
+
end
|
66
77
|
new(
|
67
78
|
name: name,
|
68
79
|
description: description,
|
69
80
|
category: category,
|
70
81
|
address: address,
|
82
|
+
clinical_trials: clinical_trials,
|
71
83
|
additional_properties: struct
|
72
84
|
)
|
73
85
|
end
|
@@ -90,6 +102,7 @@ module CandidApiClient
|
|
90
102
|
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
91
103
|
obj.category&.is_a?(String) != false || raise("Passed value for field obj.category is not the expected type, validation failed.")
|
92
104
|
obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
|
105
|
+
obj.clinical_trials&.is_a?(Array) != false || raise("Passed value for field obj.clinical_trials is not the expected type, validation failed.")
|
93
106
|
end
|
94
107
|
end
|
95
108
|
end
|
@@ -41,6 +41,7 @@ module CandidApiClient
|
|
41
41
|
# * :period (Hash)
|
42
42
|
# * :start (Date)
|
43
43
|
# * :end_ (Date)
|
44
|
+
# * :suffix (String)
|
44
45
|
# * :type (CandidApiClient::PreEncounter::Common::Types::ExternalProviderType)
|
45
46
|
# * :npi (String)
|
46
47
|
# * :telecoms (Array<CandidApiClient::PreEncounter::Common::Types::ContactPoint>)
|
@@ -62,7 +63,7 @@ module CandidApiClient
|
|
62
63
|
# @return [CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment]
|
63
64
|
# @example
|
64
65
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
65
|
-
# api.pre_encounter.appointments.v_1.create(request: { patient_id: "string", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), status: PENDING, service_duration: 1, services: [{ universal_service_identifier: MD_VISIT, start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }], placer_appointment_id: "string", attending_doctor: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "string", fax: "string" }, estimated_copay_cents: 1, estimated_patient_responsibility_cents: 1, patient_deposit_cents: 1, checked_in_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), notes: "string", location_resource_id: "string", automated_eligibility_check_complete: true, work_queue: EMERGENT_ISSUE })
|
66
|
+
# api.pre_encounter.appointments.v_1.create(request: { patient_id: "string", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), status: PENDING, service_duration: 1, services: [{ universal_service_identifier: MD_VISIT, start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }], placer_appointment_id: "string", attending_doctor: { name: { family: "string", given: ["string"], use: USUAL, period: { }, suffix: "string" }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "string", fax: "string" }, estimated_copay_cents: 1, estimated_patient_responsibility_cents: 1, patient_deposit_cents: 1, checked_in_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), notes: "string", location_resource_id: "string", automated_eligibility_check_complete: true, work_queue: EMERGENT_ISSUE })
|
66
67
|
def create(request:, request_options: nil)
|
67
68
|
response = @request_client.conn.post do |req|
|
68
69
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -193,6 +194,7 @@ module CandidApiClient
|
|
193
194
|
# * :period (Hash)
|
194
195
|
# * :start (Date)
|
195
196
|
# * :end_ (Date)
|
197
|
+
# * :suffix (String)
|
196
198
|
# * :type (CandidApiClient::PreEncounter::Common::Types::ExternalProviderType)
|
197
199
|
# * :npi (String)
|
198
200
|
# * :telecoms (Array<CandidApiClient::PreEncounter::Common::Types::ContactPoint>)
|
@@ -217,7 +219,7 @@ module CandidApiClient
|
|
217
219
|
# api.pre_encounter.appointments.v_1.update(
|
218
220
|
# id: "string",
|
219
221
|
# version: "string",
|
220
|
-
# request: { patient_id: "string", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), status: PENDING, service_duration: 1, services: [{ universal_service_identifier: MD_VISIT, start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }], placer_appointment_id: "string", attending_doctor: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "string", fax: "string" }, estimated_copay_cents: 1, estimated_patient_responsibility_cents: 1, patient_deposit_cents: 1, checked_in_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), notes: "string", location_resource_id: "string", automated_eligibility_check_complete: true, work_queue: EMERGENT_ISSUE }
|
222
|
+
# request: { patient_id: "string", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), status: PENDING, service_duration: 1, services: [{ universal_service_identifier: MD_VISIT, start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }], placer_appointment_id: "string", attending_doctor: { name: { family: "string", given: ["string"], use: USUAL, period: { }, suffix: "string" }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "string", fax: "string" }, estimated_copay_cents: 1, estimated_patient_responsibility_cents: 1, patient_deposit_cents: 1, checked_in_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), notes: "string", location_resource_id: "string", automated_eligibility_check_complete: true, work_queue: EMERGENT_ISSUE }
|
221
223
|
# )
|
222
224
|
def update(id:, version:, request:, request_options: nil)
|
223
225
|
response = @request_client.conn.put do |req|
|
@@ -319,6 +321,7 @@ module CandidApiClient
|
|
319
321
|
# * :period (Hash)
|
320
322
|
# * :start (Date)
|
321
323
|
# * :end_ (Date)
|
324
|
+
# * :suffix (String)
|
322
325
|
# * :type (CandidApiClient::PreEncounter::Common::Types::ExternalProviderType)
|
323
326
|
# * :npi (String)
|
324
327
|
# * :telecoms (Array<CandidApiClient::PreEncounter::Common::Types::ContactPoint>)
|
@@ -340,7 +343,7 @@ module CandidApiClient
|
|
340
343
|
# @return [CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment]
|
341
344
|
# @example
|
342
345
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
343
|
-
# api.pre_encounter.appointments.v_1.create(request: { patient_id: "string", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), status: PENDING, service_duration: 1, services: [{ universal_service_identifier: MD_VISIT, start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }], placer_appointment_id: "string", attending_doctor: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "string", fax: "string" }, estimated_copay_cents: 1, estimated_patient_responsibility_cents: 1, patient_deposit_cents: 1, checked_in_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), notes: "string", location_resource_id: "string", automated_eligibility_check_complete: true, work_queue: EMERGENT_ISSUE })
|
346
|
+
# api.pre_encounter.appointments.v_1.create(request: { patient_id: "string", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), status: PENDING, service_duration: 1, services: [{ universal_service_identifier: MD_VISIT, start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }], placer_appointment_id: "string", attending_doctor: { name: { family: "string", given: ["string"], use: USUAL, period: { }, suffix: "string" }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "string", fax: "string" }, estimated_copay_cents: 1, estimated_patient_responsibility_cents: 1, patient_deposit_cents: 1, checked_in_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), notes: "string", location_resource_id: "string", automated_eligibility_check_complete: true, work_queue: EMERGENT_ISSUE })
|
344
347
|
def create(request:, request_options: nil)
|
345
348
|
Async do
|
346
349
|
response = @request_client.conn.post do |req|
|
@@ -479,6 +482,7 @@ module CandidApiClient
|
|
479
482
|
# * :period (Hash)
|
480
483
|
# * :start (Date)
|
481
484
|
# * :end_ (Date)
|
485
|
+
# * :suffix (String)
|
482
486
|
# * :type (CandidApiClient::PreEncounter::Common::Types::ExternalProviderType)
|
483
487
|
# * :npi (String)
|
484
488
|
# * :telecoms (Array<CandidApiClient::PreEncounter::Common::Types::ContactPoint>)
|
@@ -503,7 +507,7 @@ module CandidApiClient
|
|
503
507
|
# api.pre_encounter.appointments.v_1.update(
|
504
508
|
# id: "string",
|
505
509
|
# version: "string",
|
506
|
-
# request: { patient_id: "string", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), status: PENDING, service_duration: 1, services: [{ universal_service_identifier: MD_VISIT, start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }], placer_appointment_id: "string", attending_doctor: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "string", fax: "string" }, estimated_copay_cents: 1, estimated_patient_responsibility_cents: 1, patient_deposit_cents: 1, checked_in_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), notes: "string", location_resource_id: "string", automated_eligibility_check_complete: true, work_queue: EMERGENT_ISSUE }
|
510
|
+
# request: { patient_id: "string", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), status: PENDING, service_duration: 1, services: [{ universal_service_identifier: MD_VISIT, start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }], placer_appointment_id: "string", attending_doctor: { name: { family: "string", given: ["string"], use: USUAL, period: { }, suffix: "string" }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "string", fax: "string" }, estimated_copay_cents: 1, estimated_patient_responsibility_cents: 1, patient_deposit_cents: 1, checked_in_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), notes: "string", location_resource_id: "string", automated_eligibility_check_complete: true, work_queue: EMERGENT_ISSUE }
|
507
511
|
# )
|
508
512
|
def update(id:, version:, request:, request_options: nil)
|
509
513
|
Async do
|
@@ -18,6 +18,8 @@ module CandidApiClient
|
|
18
18
|
attr_reader :use
|
19
19
|
# @return [CandidApiClient::PreEncounter::Common::Types::Period]
|
20
20
|
attr_reader :period
|
21
|
+
# @return [String]
|
22
|
+
attr_reader :suffix
|
21
23
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
22
24
|
attr_reader :additional_properties
|
23
25
|
# @return [Object]
|
@@ -30,15 +32,23 @@ module CandidApiClient
|
|
30
32
|
# @param given [Array<String>]
|
31
33
|
# @param use [CandidApiClient::PreEncounter::Common::Types::NameUse]
|
32
34
|
# @param period [CandidApiClient::PreEncounter::Common::Types::Period]
|
35
|
+
# @param suffix [String]
|
33
36
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
34
37
|
# @return [CandidApiClient::PreEncounter::Common::Types::HumanName]
|
35
|
-
def initialize(family:, given:, use:, period: OMIT, additional_properties: nil)
|
38
|
+
def initialize(family:, given:, use:, period: OMIT, suffix: OMIT, additional_properties: nil)
|
36
39
|
@family = family
|
37
40
|
@given = given
|
38
41
|
@use = use
|
39
42
|
@period = period if period != OMIT
|
43
|
+
@suffix = suffix if suffix != OMIT
|
40
44
|
@additional_properties = additional_properties
|
41
|
-
@_field_set = {
|
45
|
+
@_field_set = {
|
46
|
+
"family": family,
|
47
|
+
"given": given,
|
48
|
+
"use": use,
|
49
|
+
"period": period,
|
50
|
+
"suffix": suffix
|
51
|
+
}.reject do |_k, v|
|
42
52
|
v == OMIT
|
43
53
|
end
|
44
54
|
end
|
@@ -59,11 +69,13 @@ module CandidApiClient
|
|
59
69
|
period = parsed_json["period"].to_json
|
60
70
|
period = CandidApiClient::PreEncounter::Common::Types::Period.from_json(json_object: period)
|
61
71
|
end
|
72
|
+
suffix = struct["suffix"]
|
62
73
|
new(
|
63
74
|
family: family,
|
64
75
|
given: given,
|
65
76
|
use: use,
|
66
77
|
period: period,
|
78
|
+
suffix: suffix,
|
67
79
|
additional_properties: struct
|
68
80
|
)
|
69
81
|
end
|
@@ -86,6 +98,7 @@ module CandidApiClient
|
|
86
98
|
obj.given.is_a?(Array) != false || raise("Passed value for field obj.given is not the expected type, validation failed.")
|
87
99
|
obj.use.is_a?(CandidApiClient::PreEncounter::Common::Types::NameUse) != false || raise("Passed value for field obj.use is not the expected type, validation failed.")
|
88
100
|
obj.period.nil? || CandidApiClient::PreEncounter::Common::Types::Period.validate_raw(obj: obj.period)
|
101
|
+
obj.suffix&.is_a?(String) != false || raise("Passed value for field obj.suffix is not the expected type, validation failed.")
|
89
102
|
end
|
90
103
|
end
|
91
104
|
end
|
@@ -41,6 +41,7 @@ module CandidApiClient
|
|
41
41
|
# * :period (Hash)
|
42
42
|
# * :start (Date)
|
43
43
|
# * :end_ (Date)
|
44
|
+
# * :suffix (String)
|
44
45
|
# * :date_of_birth (Date)
|
45
46
|
# * :biological_sex (CandidApiClient::PreEncounter::Common::Types::Sex)
|
46
47
|
# * :address (Hash)
|
@@ -174,7 +175,7 @@ module CandidApiClient
|
|
174
175
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
|
175
176
|
# @example
|
176
177
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
177
|
-
# api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string", payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, verified: true, eligibility_checks: , latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } })
|
178
|
+
# api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { }, suffix: "string" }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string", payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, verified: true, eligibility_checks: , latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } })
|
178
179
|
def create(request:, request_options: nil)
|
179
180
|
response = @request_client.conn.post do |req|
|
180
181
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -206,6 +207,7 @@ module CandidApiClient
|
|
206
207
|
# * :period (Hash)
|
207
208
|
# * :start (Date)
|
208
209
|
# * :end_ (Date)
|
210
|
+
# * :suffix (String)
|
209
211
|
# * :date_of_birth (Date)
|
210
212
|
# * :biological_sex (CandidApiClient::PreEncounter::Common::Types::Sex)
|
211
213
|
# * :address (Hash)
|
@@ -342,7 +344,7 @@ module CandidApiClient
|
|
342
344
|
# api.pre_encounter.coverages.v_1.update(
|
343
345
|
# id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
344
346
|
# version: "string",
|
345
|
-
# request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string", payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, verified: true, eligibility_checks: , latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } }
|
347
|
+
# request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { }, suffix: "string" }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string", payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, verified: true, eligibility_checks: , latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } }
|
346
348
|
# )
|
347
349
|
def update(id:, version:, request:, request_options: nil)
|
348
350
|
response = @request_client.conn.put do |req|
|
@@ -596,6 +598,7 @@ module CandidApiClient
|
|
596
598
|
# * :period (Hash)
|
597
599
|
# * :start (Date)
|
598
600
|
# * :end_ (Date)
|
601
|
+
# * :suffix (String)
|
599
602
|
# * :date_of_birth (Date)
|
600
603
|
# * :biological_sex (CandidApiClient::PreEncounter::Common::Types::Sex)
|
601
604
|
# * :address (Hash)
|
@@ -729,7 +732,7 @@ module CandidApiClient
|
|
729
732
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
|
730
733
|
# @example
|
731
734
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
732
|
-
# api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string", payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, verified: true, eligibility_checks: , latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } })
|
735
|
+
# api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { }, suffix: "string" }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string", payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, verified: true, eligibility_checks: , latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } })
|
733
736
|
def create(request:, request_options: nil)
|
734
737
|
Async do
|
735
738
|
response = @request_client.conn.post do |req|
|
@@ -763,6 +766,7 @@ module CandidApiClient
|
|
763
766
|
# * :period (Hash)
|
764
767
|
# * :start (Date)
|
765
768
|
# * :end_ (Date)
|
769
|
+
# * :suffix (String)
|
766
770
|
# * :date_of_birth (Date)
|
767
771
|
# * :biological_sex (CandidApiClient::PreEncounter::Common::Types::Sex)
|
768
772
|
# * :address (Hash)
|
@@ -899,7 +903,7 @@ module CandidApiClient
|
|
899
903
|
# api.pre_encounter.coverages.v_1.update(
|
900
904
|
# id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
901
905
|
# version: "string",
|
902
|
-
# request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string", payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, verified: true, eligibility_checks: , latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } }
|
906
|
+
# request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { }, suffix: "string" }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string", payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, verified: true, eligibility_checks: , latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } }
|
903
907
|
# )
|
904
908
|
def update(id:, version:, request:, request_options: nil)
|
905
909
|
Async do
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../requests"
|
4
|
+
require_relative "v_1/client"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module PreEncounter
|
8
|
+
module Images
|
9
|
+
class Client
|
10
|
+
# @return [CandidApiClient::PreEncounter::Images::V1::V1Client]
|
11
|
+
attr_reader :v_1
|
12
|
+
|
13
|
+
# @param request_client [CandidApiClient::RequestClient]
|
14
|
+
# @return [CandidApiClient::PreEncounter::Images::Client]
|
15
|
+
def initialize(request_client:)
|
16
|
+
@v_1 = CandidApiClient::PreEncounter::Images::V1::V1Client.new(request_client: request_client)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class AsyncClient
|
21
|
+
# @return [CandidApiClient::PreEncounter::Images::V1::AsyncV1Client]
|
22
|
+
attr_reader :v_1
|
23
|
+
|
24
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
25
|
+
# @return [CandidApiClient::PreEncounter::Images::AsyncClient]
|
26
|
+
def initialize(request_client:)
|
27
|
+
@v_1 = CandidApiClient::PreEncounter::Images::V1::AsyncV1Client.new(request_client: request_client)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|