candidhealth 0.40.0 → 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 +122 -6
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +14 -1
- data/lib/candidhealth/encounters/v_4/client.rb +118 -4
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +14 -1
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +14 -1
- data/lib/requests.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa002f0e711739e36d1f3c510ad27c75a1cf45fc96c4a4dd44081ea3e2b49e5c
|
4
|
+
data.tar.gz: 29cc8291b41f39e82053b95ab208d80d7773cb7c476f3076ceeeaf0c49e83944
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be6292a526e8dba61087eaef8a57390c8f2a867c38352bc95c7e9091af9a8700a1ee4f2b2fa8a6856c15ecd8b268a428717ef9b0b23043ee9687fe1757d72ff4
|
7
|
+
data.tar.gz: '09721826454fbe3c24231837092e81170fc0112eea585e860da4e39b047ad1c094eb3126bb04cb48175694efdb5dee2bcc4fcad16cc6779d57979d33fa82268f'
|
@@ -107,6 +107,33 @@ module CandidApiClient
|
|
107
107
|
# * :first_name (String)
|
108
108
|
# * :last_name (String)
|
109
109
|
# * :gender (CandidApiClient::Individual::Types::Gender)
|
110
|
+
# * :subscriber_tertiary (Hash)
|
111
|
+
# * :insurance_card (Hash)
|
112
|
+
# * :member_id (String)
|
113
|
+
# * :payer_name (String)
|
114
|
+
# * :payer_id (String)
|
115
|
+
# * :rx_bin (String)
|
116
|
+
# * :rx_pcn (String)
|
117
|
+
# * :image_url_front (String)
|
118
|
+
# * :image_url_back (String)
|
119
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
120
|
+
# * :group_number (String)
|
121
|
+
# * :plan_name (String)
|
122
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
123
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
124
|
+
# * :payer_plan_group_id (String)
|
125
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
126
|
+
# * :date_of_birth (Date)
|
127
|
+
# * :address (Hash)
|
128
|
+
# * :zip_plus_four_code (String)
|
129
|
+
# * :address_1 (String)
|
130
|
+
# * :address_2 (String)
|
131
|
+
# * :city (String)
|
132
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
133
|
+
# * :zip_code (String)
|
134
|
+
# * :first_name (String)
|
135
|
+
# * :last_name (String)
|
136
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
110
137
|
# * :additional_information (String)
|
111
138
|
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
112
139
|
# * :admission_date (Date)
|
@@ -397,6 +424,33 @@ module CandidApiClient
|
|
397
424
|
# * :first_name (String)
|
398
425
|
# * :last_name (String)
|
399
426
|
# * :gender (CandidApiClient::Individual::Types::Gender)
|
427
|
+
# * :subscriber_tertiary (Hash)
|
428
|
+
# * :insurance_card (Hash)
|
429
|
+
# * :member_id (String)
|
430
|
+
# * :payer_name (String)
|
431
|
+
# * :payer_id (String)
|
432
|
+
# * :rx_bin (String)
|
433
|
+
# * :rx_pcn (String)
|
434
|
+
# * :image_url_front (String)
|
435
|
+
# * :image_url_back (String)
|
436
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
437
|
+
# * :group_number (String)
|
438
|
+
# * :plan_name (String)
|
439
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
440
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
441
|
+
# * :payer_plan_group_id (String)
|
442
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
443
|
+
# * :date_of_birth (Date)
|
444
|
+
# * :address (Hash)
|
445
|
+
# * :zip_plus_four_code (String)
|
446
|
+
# * :address_1 (String)
|
447
|
+
# * :address_2 (String)
|
448
|
+
# * :city (String)
|
449
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
450
|
+
# * :zip_code (String)
|
451
|
+
# * :first_name (String)
|
452
|
+
# * :last_name (String)
|
453
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
400
454
|
# * :additional_information (String)
|
401
455
|
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
402
456
|
# * :admission_date (Date)
|
@@ -614,6 +668,8 @@ module CandidApiClient
|
|
614
668
|
# This field should not contain PHI.
|
615
669
|
# @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
616
670
|
# This date must be the local date in the timezone where the service occurred.
|
671
|
+
# @param exclude_bundled [Boolean] Whether to exclude charge captures which are associated with a charge capture
|
672
|
+
# bundle.
|
617
673
|
# @param request_options [CandidApiClient::RequestOptions]
|
618
674
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
619
675
|
# @example
|
@@ -624,10 +680,11 @@ module CandidApiClient
|
|
624
680
|
# patient_external_id: "string",
|
625
681
|
# status: PLANNED,
|
626
682
|
# charge_external_id: "string",
|
627
|
-
# date_of_service: DateTime.parse(2023-01-15)
|
683
|
+
# date_of_service: DateTime.parse(2023-01-15),
|
684
|
+
# exclude_bundled: true
|
628
685
|
# )
|
629
686
|
def get_all(limit: nil, page_token: nil, patient_external_id: nil, status: nil, charge_external_id: nil,
|
630
|
-
date_of_service: nil, request_options: nil)
|
687
|
+
date_of_service: nil, exclude_bundled: nil, request_options: nil)
|
631
688
|
response = @request_client.conn.get do |req|
|
632
689
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
633
690
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -643,7 +700,8 @@ module CandidApiClient
|
|
643
700
|
"patient_external_id": patient_external_id,
|
644
701
|
"status": status,
|
645
702
|
"charge_external_id": charge_external_id,
|
646
|
-
"date_of_service": date_of_service
|
703
|
+
"date_of_service": date_of_service,
|
704
|
+
"exclude_bundled": exclude_bundled
|
647
705
|
}.compact
|
648
706
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
649
707
|
request_options: request_options)}/api/charge_captures/v1"
|
@@ -748,6 +806,33 @@ module CandidApiClient
|
|
748
806
|
# * :first_name (String)
|
749
807
|
# * :last_name (String)
|
750
808
|
# * :gender (CandidApiClient::Individual::Types::Gender)
|
809
|
+
# * :subscriber_tertiary (Hash)
|
810
|
+
# * :insurance_card (Hash)
|
811
|
+
# * :member_id (String)
|
812
|
+
# * :payer_name (String)
|
813
|
+
# * :payer_id (String)
|
814
|
+
# * :rx_bin (String)
|
815
|
+
# * :rx_pcn (String)
|
816
|
+
# * :image_url_front (String)
|
817
|
+
# * :image_url_back (String)
|
818
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
819
|
+
# * :group_number (String)
|
820
|
+
# * :plan_name (String)
|
821
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
822
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
823
|
+
# * :payer_plan_group_id (String)
|
824
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
825
|
+
# * :date_of_birth (Date)
|
826
|
+
# * :address (Hash)
|
827
|
+
# * :zip_plus_four_code (String)
|
828
|
+
# * :address_1 (String)
|
829
|
+
# * :address_2 (String)
|
830
|
+
# * :city (String)
|
831
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
832
|
+
# * :zip_code (String)
|
833
|
+
# * :first_name (String)
|
834
|
+
# * :last_name (String)
|
835
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
751
836
|
# * :additional_information (String)
|
752
837
|
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
753
838
|
# * :admission_date (Date)
|
@@ -1042,6 +1127,33 @@ module CandidApiClient
|
|
1042
1127
|
# * :first_name (String)
|
1043
1128
|
# * :last_name (String)
|
1044
1129
|
# * :gender (CandidApiClient::Individual::Types::Gender)
|
1130
|
+
# * :subscriber_tertiary (Hash)
|
1131
|
+
# * :insurance_card (Hash)
|
1132
|
+
# * :member_id (String)
|
1133
|
+
# * :payer_name (String)
|
1134
|
+
# * :payer_id (String)
|
1135
|
+
# * :rx_bin (String)
|
1136
|
+
# * :rx_pcn (String)
|
1137
|
+
# * :image_url_front (String)
|
1138
|
+
# * :image_url_back (String)
|
1139
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
1140
|
+
# * :group_number (String)
|
1141
|
+
# * :plan_name (String)
|
1142
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
1143
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
1144
|
+
# * :payer_plan_group_id (String)
|
1145
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
1146
|
+
# * :date_of_birth (Date)
|
1147
|
+
# * :address (Hash)
|
1148
|
+
# * :zip_plus_four_code (String)
|
1149
|
+
# * :address_1 (String)
|
1150
|
+
# * :address_2 (String)
|
1151
|
+
# * :city (String)
|
1152
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1153
|
+
# * :zip_code (String)
|
1154
|
+
# * :first_name (String)
|
1155
|
+
# * :last_name (String)
|
1156
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
1045
1157
|
# * :additional_information (String)
|
1046
1158
|
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
1047
1159
|
# * :admission_date (Date)
|
@@ -1263,6 +1375,8 @@ module CandidApiClient
|
|
1263
1375
|
# This field should not contain PHI.
|
1264
1376
|
# @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
1265
1377
|
# This date must be the local date in the timezone where the service occurred.
|
1378
|
+
# @param exclude_bundled [Boolean] Whether to exclude charge captures which are associated with a charge capture
|
1379
|
+
# bundle.
|
1266
1380
|
# @param request_options [CandidApiClient::RequestOptions]
|
1267
1381
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
1268
1382
|
# @example
|
@@ -1273,10 +1387,11 @@ module CandidApiClient
|
|
1273
1387
|
# patient_external_id: "string",
|
1274
1388
|
# status: PLANNED,
|
1275
1389
|
# charge_external_id: "string",
|
1276
|
-
# date_of_service: DateTime.parse(2023-01-15)
|
1390
|
+
# date_of_service: DateTime.parse(2023-01-15),
|
1391
|
+
# exclude_bundled: true
|
1277
1392
|
# )
|
1278
1393
|
def get_all(limit: nil, page_token: nil, patient_external_id: nil, status: nil, charge_external_id: nil,
|
1279
|
-
date_of_service: nil, request_options: nil)
|
1394
|
+
date_of_service: nil, exclude_bundled: nil, request_options: nil)
|
1280
1395
|
Async do
|
1281
1396
|
response = @request_client.conn.get do |req|
|
1282
1397
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1293,7 +1408,8 @@ module CandidApiClient
|
|
1293
1408
|
"patient_external_id": patient_external_id,
|
1294
1409
|
"status": status,
|
1295
1410
|
"charge_external_id": charge_external_id,
|
1296
|
-
"date_of_service": date_of_service
|
1411
|
+
"date_of_service": date_of_service,
|
1412
|
+
"exclude_bundled": exclude_bundled
|
1297
1413
|
}.compact
|
1298
1414
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
1299
1415
|
request_options: request_options)}/api/charge_captures/v1"
|
@@ -123,6 +123,8 @@ module CandidApiClient
|
|
123
123
|
attr_reader :subscriber_primary
|
124
124
|
# @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the secondary insurance subscriber.
|
125
125
|
attr_reader :subscriber_secondary
|
126
|
+
# @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
|
127
|
+
attr_reader :subscriber_tertiary
|
126
128
|
# @return [String] Defines additional information on the claim needed by the payer.
|
127
129
|
# Box 19 on the CMS-1500 claim form.
|
128
130
|
attr_reader :additional_information
|
@@ -301,6 +303,7 @@ module CandidApiClient
|
|
301
303
|
# end_date_of_service will update all service line date_of_service values.
|
302
304
|
# @param subscriber_primary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the primary insurance subscriber.
|
303
305
|
# @param subscriber_secondary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the secondary insurance subscriber.
|
306
|
+
# @param subscriber_tertiary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
|
304
307
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
305
308
|
# Box 19 on the CMS-1500 claim form.
|
306
309
|
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF\*4N
|
@@ -388,7 +391,7 @@ module CandidApiClient
|
|
388
391
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
389
392
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData]
|
390
393
|
def initialize(diagnoses: OMIT, interventions: OMIT, external_claim_submission: OMIT, service_lines: OMIT,
|
391
|
-
patient_histories: OMIT, billing_notes: OMIT, benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT, 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, claim_supplemental_information: OMIT, additional_properties: nil)
|
394
|
+
patient_histories: OMIT, billing_notes: OMIT, benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT, 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)
|
392
395
|
@diagnoses = diagnoses if diagnoses != OMIT
|
393
396
|
@interventions = interventions if interventions != OMIT
|
394
397
|
@external_claim_submission = external_claim_submission if external_claim_submission != OMIT
|
@@ -411,6 +414,7 @@ module CandidApiClient
|
|
411
414
|
@end_date_of_service = end_date_of_service if end_date_of_service != OMIT
|
412
415
|
@subscriber_primary = subscriber_primary if subscriber_primary != OMIT
|
413
416
|
@subscriber_secondary = subscriber_secondary if subscriber_secondary != OMIT
|
417
|
+
@subscriber_tertiary = subscriber_tertiary if subscriber_tertiary != OMIT
|
414
418
|
@additional_information = additional_information if additional_information != OMIT
|
415
419
|
if service_authorization_exception_code != OMIT
|
416
420
|
@service_authorization_exception_code = service_authorization_exception_code
|
@@ -461,6 +465,7 @@ module CandidApiClient
|
|
461
465
|
"end_date_of_service": end_date_of_service,
|
462
466
|
"subscriber_primary": subscriber_primary,
|
463
467
|
"subscriber_secondary": subscriber_secondary,
|
468
|
+
"subscriber_tertiary": subscriber_tertiary,
|
464
469
|
"additional_information": additional_information,
|
465
470
|
"service_authorization_exception_code": service_authorization_exception_code,
|
466
471
|
"admission_date": admission_date,
|
@@ -557,6 +562,12 @@ module CandidApiClient
|
|
557
562
|
subscriber_secondary = parsed_json["subscriber_secondary"].to_json
|
558
563
|
subscriber_secondary = CandidApiClient::Individual::Types::SubscriberCreate.from_json(json_object: subscriber_secondary)
|
559
564
|
end
|
565
|
+
if parsed_json["subscriber_tertiary"].nil?
|
566
|
+
subscriber_tertiary = nil
|
567
|
+
else
|
568
|
+
subscriber_tertiary = parsed_json["subscriber_tertiary"].to_json
|
569
|
+
subscriber_tertiary = CandidApiClient::Individual::Types::SubscriberCreate.from_json(json_object: subscriber_tertiary)
|
570
|
+
end
|
560
571
|
additional_information = struct["additional_information"]
|
561
572
|
service_authorization_exception_code = struct["service_authorization_exception_code"]
|
562
573
|
admission_date = (Date.parse(parsed_json["admission_date"]) unless parsed_json["admission_date"].nil?)
|
@@ -665,6 +676,7 @@ module CandidApiClient
|
|
665
676
|
end_date_of_service: end_date_of_service,
|
666
677
|
subscriber_primary: subscriber_primary,
|
667
678
|
subscriber_secondary: subscriber_secondary,
|
679
|
+
subscriber_tertiary: subscriber_tertiary,
|
668
680
|
additional_information: additional_information,
|
669
681
|
service_authorization_exception_code: service_authorization_exception_code,
|
670
682
|
admission_date: admission_date,
|
@@ -727,6 +739,7 @@ module CandidApiClient
|
|
727
739
|
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.")
|
728
740
|
obj.subscriber_primary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_primary)
|
729
741
|
obj.subscriber_secondary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_secondary)
|
742
|
+
obj.subscriber_tertiary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_tertiary)
|
730
743
|
obj.additional_information&.is_a?(String) != false || raise("Passed value for field obj.additional_information is not the expected type, validation failed.")
|
731
744
|
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.")
|
732
745
|
obj.admission_date&.is_a?(Date) != false || raise("Passed value for field obj.admission_date is not the expected type, validation failed.")
|
@@ -449,6 +449,33 @@ module CandidApiClient
|
|
449
449
|
# * :first_name (String)
|
450
450
|
# * :last_name (String)
|
451
451
|
# * :gender (CandidApiClient::Individual::Types::Gender)
|
452
|
+
# @param subscriber_tertiary [Hash] Please always include this when you have it, even for self-pay claims.Request of type CandidApiClient::Individual::Types::SubscriberCreate, as a Hash
|
453
|
+
# * :insurance_card (Hash)
|
454
|
+
# * :member_id (String)
|
455
|
+
# * :payer_name (String)
|
456
|
+
# * :payer_id (String)
|
457
|
+
# * :rx_bin (String)
|
458
|
+
# * :rx_pcn (String)
|
459
|
+
# * :image_url_front (String)
|
460
|
+
# * :image_url_back (String)
|
461
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
462
|
+
# * :group_number (String)
|
463
|
+
# * :plan_name (String)
|
464
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
465
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
466
|
+
# * :payer_plan_group_id (String)
|
467
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
468
|
+
# * :date_of_birth (Date)
|
469
|
+
# * :address (Hash)
|
470
|
+
# * :zip_plus_four_code (String)
|
471
|
+
# * :address_1 (String)
|
472
|
+
# * :address_2 (String)
|
473
|
+
# * :city (String)
|
474
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
475
|
+
# * :zip_code (String)
|
476
|
+
# * :first_name (String)
|
477
|
+
# * :last_name (String)
|
478
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
452
479
|
# @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form.
|
453
480
|
# @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim.
|
454
481
|
# @param diagnoses [Array<Hash>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
@@ -563,6 +590,7 @@ module CandidApiClient
|
|
563
590
|
# service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" },
|
564
591
|
# subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01, payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
565
592
|
# subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01, payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
593
|
+
# subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01, payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
566
594
|
# prior_authorization_number: "string",
|
567
595
|
# responsible_party: INSURANCE_PAY,
|
568
596
|
# diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
|
@@ -580,7 +608,7 @@ module CandidApiClient
|
|
580
608
|
# claim_supplemental_information: [{ attachment_report_type_code: C_03, attachment_transmission_code: CBM }]
|
581
609
|
# )
|
582
610
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
583
|
-
provider_accepts_assignment:, billable_status:, patient:, billing_provider:, rendering_provider:, responsible_party:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, referring_provider: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, prior_authorization_number: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, referral_number: nil, epsdt_referral: nil, claim_supplemental_information: nil, request_options: nil)
|
611
|
+
provider_accepts_assignment:, billable_status:, patient:, billing_provider:, rendering_provider:, responsible_party:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, referring_provider: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, subscriber_tertiary: nil, prior_authorization_number: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, referral_number: nil, epsdt_referral: nil, claim_supplemental_information: nil, request_options: nil)
|
584
612
|
response = @request_client.conn.post do |req|
|
585
613
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
586
614
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -622,6 +650,7 @@ module CandidApiClient
|
|
622
650
|
service_facility: service_facility,
|
623
651
|
subscriber_primary: subscriber_primary,
|
624
652
|
subscriber_secondary: subscriber_secondary,
|
653
|
+
subscriber_tertiary: subscriber_tertiary,
|
625
654
|
prior_authorization_number: prior_authorization_number,
|
626
655
|
responsible_party: responsible_party,
|
627
656
|
diagnoses: diagnoses,
|
@@ -908,6 +937,33 @@ module CandidApiClient
|
|
908
937
|
# * :first_name (String)
|
909
938
|
# * :last_name (String)
|
910
939
|
# * :gender (CandidApiClient::Individual::Types::Gender)
|
940
|
+
# @param subscriber_tertiary [Hash] Contains details of the tertiary insurance subscriber.Request of type CandidApiClient::Individual::Types::SubscriberCreate, as a Hash
|
941
|
+
# * :insurance_card (Hash)
|
942
|
+
# * :member_id (String)
|
943
|
+
# * :payer_name (String)
|
944
|
+
# * :payer_id (String)
|
945
|
+
# * :rx_bin (String)
|
946
|
+
# * :rx_pcn (String)
|
947
|
+
# * :image_url_front (String)
|
948
|
+
# * :image_url_back (String)
|
949
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
950
|
+
# * :group_number (String)
|
951
|
+
# * :plan_name (String)
|
952
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
953
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
954
|
+
# * :payer_plan_group_id (String)
|
955
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
956
|
+
# * :date_of_birth (Date)
|
957
|
+
# * :address (Hash)
|
958
|
+
# * :zip_plus_four_code (String)
|
959
|
+
# * :address_1 (String)
|
960
|
+
# * :address_2 (String)
|
961
|
+
# * :city (String)
|
962
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
963
|
+
# * :zip_code (String)
|
964
|
+
# * :first_name (String)
|
965
|
+
# * :last_name (String)
|
966
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
911
967
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
912
968
|
# Box 19 on the CMS-1500 claim form.
|
913
969
|
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF\*4N
|
@@ -1139,7 +1195,7 @@ module CandidApiClient
|
|
1139
1195
|
# place_of_service_code_as_submitted: PHARMACY
|
1140
1196
|
# )
|
1141
1197
|
def update(encounter_id:, benefits_assigned_to_provider: nil, prior_authorization_number: nil,
|
1142
|
-
external_id: nil, date_of_service: nil, tag_ids: nil, clinical_notes: nil, pay_to_address: nil, billable_status: nil, responsible_party: nil, provider_accepts_assignment: nil, synchronicity: nil, place_of_service_code: nil, appointment_type: nil, end_date_of_service: nil, subscriber_primary: nil, subscriber_secondary: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, patient: nil, patient_authorized_release: nil, schema_instances: nil, vitals: nil, existing_medications: nil, rendering_provider: nil, service_facility: nil, guarantor: nil, billing_provider: nil, supervising_provider: nil, referring_provider: nil, initial_referring_provider: nil, referral_number: nil, epsdt_referral: nil, claim_supplemental_information: nil, additional_properties: nil, _field_set: nil, diagnosis_ids: nil, place_of_service_code_as_submitted: nil, request_options: nil)
|
1198
|
+
external_id: nil, date_of_service: nil, tag_ids: nil, clinical_notes: nil, pay_to_address: nil, billable_status: nil, responsible_party: nil, provider_accepts_assignment: nil, synchronicity: nil, place_of_service_code: nil, appointment_type: nil, end_date_of_service: nil, subscriber_primary: nil, subscriber_secondary: nil, subscriber_tertiary: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, patient: nil, patient_authorized_release: nil, schema_instances: nil, vitals: nil, existing_medications: nil, rendering_provider: nil, service_facility: nil, guarantor: nil, billing_provider: nil, supervising_provider: nil, referring_provider: nil, initial_referring_provider: nil, referral_number: nil, epsdt_referral: nil, claim_supplemental_information: nil, additional_properties: nil, _field_set: nil, diagnosis_ids: nil, place_of_service_code_as_submitted: nil, request_options: nil)
|
1143
1199
|
response = @request_client.conn.patch do |req|
|
1144
1200
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
1145
1201
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -1166,6 +1222,7 @@ module CandidApiClient
|
|
1166
1222
|
end_date_of_service: end_date_of_service,
|
1167
1223
|
subscriber_primary: subscriber_primary,
|
1168
1224
|
subscriber_secondary: subscriber_secondary,
|
1225
|
+
subscriber_tertiary: subscriber_tertiary,
|
1169
1226
|
additional_information: additional_information,
|
1170
1227
|
service_authorization_exception_code: service_authorization_exception_code,
|
1171
1228
|
admission_date: admission_date,
|
@@ -1602,6 +1659,33 @@ module CandidApiClient
|
|
1602
1659
|
# * :first_name (String)
|
1603
1660
|
# * :last_name (String)
|
1604
1661
|
# * :gender (CandidApiClient::Individual::Types::Gender)
|
1662
|
+
# @param subscriber_tertiary [Hash] Please always include this when you have it, even for self-pay claims.Request of type CandidApiClient::Individual::Types::SubscriberCreate, as a Hash
|
1663
|
+
# * :insurance_card (Hash)
|
1664
|
+
# * :member_id (String)
|
1665
|
+
# * :payer_name (String)
|
1666
|
+
# * :payer_id (String)
|
1667
|
+
# * :rx_bin (String)
|
1668
|
+
# * :rx_pcn (String)
|
1669
|
+
# * :image_url_front (String)
|
1670
|
+
# * :image_url_back (String)
|
1671
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
1672
|
+
# * :group_number (String)
|
1673
|
+
# * :plan_name (String)
|
1674
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
1675
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
1676
|
+
# * :payer_plan_group_id (String)
|
1677
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
1678
|
+
# * :date_of_birth (Date)
|
1679
|
+
# * :address (Hash)
|
1680
|
+
# * :zip_plus_four_code (String)
|
1681
|
+
# * :address_1 (String)
|
1682
|
+
# * :address_2 (String)
|
1683
|
+
# * :city (String)
|
1684
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1685
|
+
# * :zip_code (String)
|
1686
|
+
# * :first_name (String)
|
1687
|
+
# * :last_name (String)
|
1688
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
1605
1689
|
# @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form.
|
1606
1690
|
# @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim.
|
1607
1691
|
# @param diagnoses [Array<Hash>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
@@ -1716,6 +1800,7 @@ module CandidApiClient
|
|
1716
1800
|
# service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" },
|
1717
1801
|
# subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01, payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
1718
1802
|
# subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01, payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
1803
|
+
# subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01, payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
1719
1804
|
# prior_authorization_number: "string",
|
1720
1805
|
# responsible_party: INSURANCE_PAY,
|
1721
1806
|
# diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
|
@@ -1733,7 +1818,7 @@ module CandidApiClient
|
|
1733
1818
|
# claim_supplemental_information: [{ attachment_report_type_code: C_03, attachment_transmission_code: CBM }]
|
1734
1819
|
# )
|
1735
1820
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
1736
|
-
provider_accepts_assignment:, billable_status:, patient:, billing_provider:, rendering_provider:, responsible_party:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, referring_provider: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, prior_authorization_number: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, referral_number: nil, epsdt_referral: nil, claim_supplemental_information: nil, request_options: nil)
|
1821
|
+
provider_accepts_assignment:, billable_status:, patient:, billing_provider:, rendering_provider:, responsible_party:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, referring_provider: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, subscriber_tertiary: nil, prior_authorization_number: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, referral_number: nil, epsdt_referral: nil, claim_supplemental_information: nil, request_options: nil)
|
1737
1822
|
Async do
|
1738
1823
|
response = @request_client.conn.post do |req|
|
1739
1824
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1776,6 +1861,7 @@ module CandidApiClient
|
|
1776
1861
|
service_facility: service_facility,
|
1777
1862
|
subscriber_primary: subscriber_primary,
|
1778
1863
|
subscriber_secondary: subscriber_secondary,
|
1864
|
+
subscriber_tertiary: subscriber_tertiary,
|
1779
1865
|
prior_authorization_number: prior_authorization_number,
|
1780
1866
|
responsible_party: responsible_party,
|
1781
1867
|
diagnoses: diagnoses,
|
@@ -2065,6 +2151,33 @@ module CandidApiClient
|
|
2065
2151
|
# * :first_name (String)
|
2066
2152
|
# * :last_name (String)
|
2067
2153
|
# * :gender (CandidApiClient::Individual::Types::Gender)
|
2154
|
+
# @param subscriber_tertiary [Hash] Contains details of the tertiary insurance subscriber.Request of type CandidApiClient::Individual::Types::SubscriberCreate, as a Hash
|
2155
|
+
# * :insurance_card (Hash)
|
2156
|
+
# * :member_id (String)
|
2157
|
+
# * :payer_name (String)
|
2158
|
+
# * :payer_id (String)
|
2159
|
+
# * :rx_bin (String)
|
2160
|
+
# * :rx_pcn (String)
|
2161
|
+
# * :image_url_front (String)
|
2162
|
+
# * :image_url_back (String)
|
2163
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
2164
|
+
# * :group_number (String)
|
2165
|
+
# * :plan_name (String)
|
2166
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
2167
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
2168
|
+
# * :payer_plan_group_id (String)
|
2169
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
2170
|
+
# * :date_of_birth (Date)
|
2171
|
+
# * :address (Hash)
|
2172
|
+
# * :zip_plus_four_code (String)
|
2173
|
+
# * :address_1 (String)
|
2174
|
+
# * :address_2 (String)
|
2175
|
+
# * :city (String)
|
2176
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
2177
|
+
# * :zip_code (String)
|
2178
|
+
# * :first_name (String)
|
2179
|
+
# * :last_name (String)
|
2180
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
2068
2181
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
2069
2182
|
# Box 19 on the CMS-1500 claim form.
|
2070
2183
|
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF\*4N
|
@@ -2296,7 +2409,7 @@ module CandidApiClient
|
|
2296
2409
|
# place_of_service_code_as_submitted: PHARMACY
|
2297
2410
|
# )
|
2298
2411
|
def update(encounter_id:, benefits_assigned_to_provider: nil, prior_authorization_number: nil,
|
2299
|
-
external_id: nil, date_of_service: nil, tag_ids: nil, clinical_notes: nil, pay_to_address: nil, billable_status: nil, responsible_party: nil, provider_accepts_assignment: nil, synchronicity: nil, place_of_service_code: nil, appointment_type: nil, end_date_of_service: nil, subscriber_primary: nil, subscriber_secondary: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, patient: nil, patient_authorized_release: nil, schema_instances: nil, vitals: nil, existing_medications: nil, rendering_provider: nil, service_facility: nil, guarantor: nil, billing_provider: nil, supervising_provider: nil, referring_provider: nil, initial_referring_provider: nil, referral_number: nil, epsdt_referral: nil, claim_supplemental_information: nil, additional_properties: nil, _field_set: nil, diagnosis_ids: nil, place_of_service_code_as_submitted: nil, request_options: nil)
|
2412
|
+
external_id: nil, date_of_service: nil, tag_ids: nil, clinical_notes: nil, pay_to_address: nil, billable_status: nil, responsible_party: nil, provider_accepts_assignment: nil, synchronicity: nil, place_of_service_code: nil, appointment_type: nil, end_date_of_service: nil, subscriber_primary: nil, subscriber_secondary: nil, subscriber_tertiary: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, patient: nil, patient_authorized_release: nil, schema_instances: nil, vitals: nil, existing_medications: nil, rendering_provider: nil, service_facility: nil, guarantor: nil, billing_provider: nil, supervising_provider: nil, referring_provider: nil, initial_referring_provider: nil, referral_number: nil, epsdt_referral: nil, claim_supplemental_information: nil, additional_properties: nil, _field_set: nil, diagnosis_ids: nil, place_of_service_code_as_submitted: nil, request_options: nil)
|
2300
2413
|
Async do
|
2301
2414
|
response = @request_client.conn.patch do |req|
|
2302
2415
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -2324,6 +2437,7 @@ module CandidApiClient
|
|
2324
2437
|
end_date_of_service: end_date_of_service,
|
2325
2438
|
subscriber_primary: subscriber_primary,
|
2326
2439
|
subscriber_secondary: subscriber_secondary,
|
2440
|
+
subscriber_tertiary: subscriber_tertiary,
|
2327
2441
|
additional_information: additional_information,
|
2328
2442
|
service_authorization_exception_code: service_authorization_exception_code,
|
2329
2443
|
admission_date: admission_date,
|
@@ -94,6 +94,8 @@ module CandidApiClient
|
|
94
94
|
attr_reader :subscriber_primary
|
95
95
|
# @return [CandidApiClient::Individual::Types::Subscriber] Contains details of the secondary insurance subscriber.
|
96
96
|
attr_reader :subscriber_secondary
|
97
|
+
# @return [CandidApiClient::Individual::Types::Subscriber] Contains details of the tertiary insurance subscriber.
|
98
|
+
attr_reader :subscriber_tertiary
|
97
99
|
# @return [String] Box 23 on the CMS-1500 claim form.
|
98
100
|
attr_reader :prior_authorization_number
|
99
101
|
# @return [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim.
|
@@ -299,6 +301,7 @@ module CandidApiClient
|
|
299
301
|
# Note: Cash Pay is no longer a valid payer_id in v4, please use responsible party
|
300
302
|
# to define self-pay claims.
|
301
303
|
# @param subscriber_secondary [CandidApiClient::Individual::Types::Subscriber] Contains details of the secondary insurance subscriber.
|
304
|
+
# @param subscriber_tertiary [CandidApiClient::Individual::Types::Subscriber] Contains details of the tertiary insurance subscriber.
|
302
305
|
# @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form.
|
303
306
|
# @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim.
|
304
307
|
# @param url [String] URL that links directly to the claim created in Candid.
|
@@ -413,7 +416,7 @@ module CandidApiClient
|
|
413
416
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
414
417
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
415
418
|
def initialize(encounter_id:, claims:, patient:, billing_provider:, rendering_provider:, service_facility:,
|
416
|
-
responsible_party:, url:, diagnoses:, clinical_notes:, patient_histories:, patient_payments:, tags:, owner_of_next_action:, submission_origin:, schema_instances:, created_at:, external_id:, patient_authorized_release:, benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, patient_control_number: OMIT, guarantor: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, prior_authorization_number: OMIT, billing_notes: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, coding_attribution: OMIT, work_queue_id: OMIT, work_queue_membership_activated_at: OMIT, referral_number: OMIT, epsdt_referral: OMIT, claim_supplemental_information: OMIT, last_submitted_at: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, appointment_type: OMIT, existing_medications: OMIT, vitals: OMIT, interventions: OMIT, pay_to_address: OMIT, synchronicity: 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, additional_properties: nil)
|
419
|
+
responsible_party:, url:, diagnoses:, clinical_notes:, patient_histories:, patient_payments:, tags:, owner_of_next_action:, submission_origin:, schema_instances:, created_at:, external_id:, patient_authorized_release:, benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, patient_control_number: OMIT, guarantor: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, subscriber_tertiary: OMIT, prior_authorization_number: OMIT, billing_notes: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, coding_attribution: OMIT, work_queue_id: OMIT, work_queue_membership_activated_at: OMIT, referral_number: OMIT, epsdt_referral: OMIT, claim_supplemental_information: OMIT, last_submitted_at: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, appointment_type: OMIT, existing_medications: OMIT, vitals: OMIT, interventions: OMIT, pay_to_address: OMIT, synchronicity: 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, additional_properties: nil)
|
417
420
|
@patient_control_number = patient_control_number if patient_control_number != OMIT
|
418
421
|
@encounter_id = encounter_id
|
419
422
|
@claims = claims
|
@@ -427,6 +430,7 @@ module CandidApiClient
|
|
427
430
|
@service_facility = service_facility
|
428
431
|
@subscriber_primary = subscriber_primary if subscriber_primary != OMIT
|
429
432
|
@subscriber_secondary = subscriber_secondary if subscriber_secondary != OMIT
|
433
|
+
@subscriber_tertiary = subscriber_tertiary if subscriber_tertiary != OMIT
|
430
434
|
@prior_authorization_number = prior_authorization_number if prior_authorization_number != OMIT
|
431
435
|
@responsible_party = responsible_party
|
432
436
|
@url = url
|
@@ -492,6 +496,7 @@ module CandidApiClient
|
|
492
496
|
"service_facility": service_facility,
|
493
497
|
"subscriber_primary": subscriber_primary,
|
494
498
|
"subscriber_secondary": subscriber_secondary,
|
499
|
+
"subscriber_tertiary": subscriber_tertiary,
|
495
500
|
"prior_authorization_number": prior_authorization_number,
|
496
501
|
"responsible_party": responsible_party,
|
497
502
|
"url": url,
|
@@ -612,6 +617,12 @@ module CandidApiClient
|
|
612
617
|
subscriber_secondary = parsed_json["subscriber_secondary"].to_json
|
613
618
|
subscriber_secondary = CandidApiClient::Individual::Types::Subscriber.from_json(json_object: subscriber_secondary)
|
614
619
|
end
|
620
|
+
if parsed_json["subscriber_tertiary"].nil?
|
621
|
+
subscriber_tertiary = nil
|
622
|
+
else
|
623
|
+
subscriber_tertiary = parsed_json["subscriber_tertiary"].to_json
|
624
|
+
subscriber_tertiary = CandidApiClient::Individual::Types::Subscriber.from_json(json_object: subscriber_tertiary)
|
625
|
+
end
|
615
626
|
prior_authorization_number = struct["prior_authorization_number"]
|
616
627
|
responsible_party = struct["responsible_party"]
|
617
628
|
url = struct["url"]
|
@@ -723,6 +734,7 @@ module CandidApiClient
|
|
723
734
|
service_facility: service_facility,
|
724
735
|
subscriber_primary: subscriber_primary,
|
725
736
|
subscriber_secondary: subscriber_secondary,
|
737
|
+
subscriber_tertiary: subscriber_tertiary,
|
726
738
|
prior_authorization_number: prior_authorization_number,
|
727
739
|
responsible_party: responsible_party,
|
728
740
|
url: url,
|
@@ -796,6 +808,7 @@ module CandidApiClient
|
|
796
808
|
CandidApiClient::ServiceFacility::Types::EncounterServiceFacility.validate_raw(obj: obj.service_facility)
|
797
809
|
obj.subscriber_primary.nil? || CandidApiClient::Individual::Types::Subscriber.validate_raw(obj: obj.subscriber_primary)
|
798
810
|
obj.subscriber_secondary.nil? || CandidApiClient::Individual::Types::Subscriber.validate_raw(obj: obj.subscriber_secondary)
|
811
|
+
obj.subscriber_tertiary.nil? || CandidApiClient::Individual::Types::Subscriber.validate_raw(obj: obj.subscriber_tertiary)
|
799
812
|
obj.prior_authorization_number&.is_a?(String) != false || raise("Passed value for field obj.prior_authorization_number is not the expected type, validation failed.")
|
800
813
|
obj.responsible_party.is_a?(CandidApiClient::Encounters::V4::Types::ResponsiblePartyType) != false || raise("Passed value for field obj.responsible_party is not the expected type, validation failed.")
|
801
814
|
obj.url.is_a?(String) != false || raise("Passed value for field obj.url is not the expected type, validation failed.")
|
@@ -95,6 +95,8 @@ module CandidApiClient
|
|
95
95
|
attr_reader :subscriber_primary
|
96
96
|
# @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the secondary insurance subscriber.
|
97
97
|
attr_reader :subscriber_secondary
|
98
|
+
# @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
|
99
|
+
attr_reader :subscriber_tertiary
|
98
100
|
# @return [String] Defines additional information on the claim needed by the payer.
|
99
101
|
# Box 19 on the CMS-1500 claim form.
|
100
102
|
attr_reader :additional_information
|
@@ -257,6 +259,7 @@ module CandidApiClient
|
|
257
259
|
# end_date_of_service will update all service line date_of_service values.
|
258
260
|
# @param subscriber_primary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the primary insurance subscriber.
|
259
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.
|
260
263
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
261
264
|
# Box 19 on the CMS-1500 claim form.
|
262
265
|
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF\*4N
|
@@ -344,7 +347,7 @@ module CandidApiClient
|
|
344
347
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
345
348
|
# @return [CandidApiClient::Encounters::V4::Types::EncounterOptional]
|
346
349
|
def initialize(benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT,
|
347
|
-
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, claim_supplemental_information: 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)
|
348
351
|
@benefits_assigned_to_provider = benefits_assigned_to_provider if benefits_assigned_to_provider != OMIT
|
349
352
|
@prior_authorization_number = prior_authorization_number if prior_authorization_number != OMIT
|
350
353
|
@external_id = external_id if external_id != OMIT
|
@@ -361,6 +364,7 @@ module CandidApiClient
|
|
361
364
|
@end_date_of_service = end_date_of_service if end_date_of_service != OMIT
|
362
365
|
@subscriber_primary = subscriber_primary if subscriber_primary != OMIT
|
363
366
|
@subscriber_secondary = subscriber_secondary if subscriber_secondary != OMIT
|
367
|
+
@subscriber_tertiary = subscriber_tertiary if subscriber_tertiary != OMIT
|
364
368
|
@additional_information = additional_information if additional_information != OMIT
|
365
369
|
if service_authorization_exception_code != OMIT
|
366
370
|
@service_authorization_exception_code = service_authorization_exception_code
|
@@ -405,6 +409,7 @@ module CandidApiClient
|
|
405
409
|
"end_date_of_service": end_date_of_service,
|
406
410
|
"subscriber_primary": subscriber_primary,
|
407
411
|
"subscriber_secondary": subscriber_secondary,
|
412
|
+
"subscriber_tertiary": subscriber_tertiary,
|
408
413
|
"additional_information": additional_information,
|
409
414
|
"service_authorization_exception_code": service_authorization_exception_code,
|
410
415
|
"admission_date": admission_date,
|
@@ -475,6 +480,12 @@ module CandidApiClient
|
|
475
480
|
subscriber_secondary = parsed_json["subscriber_secondary"].to_json
|
476
481
|
subscriber_secondary = CandidApiClient::Individual::Types::SubscriberCreate.from_json(json_object: subscriber_secondary)
|
477
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
|
478
489
|
additional_information = struct["additional_information"]
|
479
490
|
service_authorization_exception_code = struct["service_authorization_exception_code"]
|
480
491
|
admission_date = (Date.parse(parsed_json["admission_date"]) unless parsed_json["admission_date"].nil?)
|
@@ -577,6 +588,7 @@ module CandidApiClient
|
|
577
588
|
end_date_of_service: end_date_of_service,
|
578
589
|
subscriber_primary: subscriber_primary,
|
579
590
|
subscriber_secondary: subscriber_secondary,
|
591
|
+
subscriber_tertiary: subscriber_tertiary,
|
580
592
|
additional_information: additional_information,
|
581
593
|
service_authorization_exception_code: service_authorization_exception_code,
|
582
594
|
admission_date: admission_date,
|
@@ -633,6 +645,7 @@ module CandidApiClient
|
|
633
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.")
|
634
646
|
obj.subscriber_primary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_primary)
|
635
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)
|
636
649
|
obj.additional_information&.is_a?(String) != false || raise("Passed value for field obj.additional_information is not the expected type, validation failed.")
|
637
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.")
|
638
651
|
obj.admission_date&.is_a?(Date) != false || raise("Passed value for field obj.admission_date is not the expected type, validation failed.")
|
data/lib/requests.rb
CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
|
44
44
|
# @return [Hash{String => String}]
|
45
45
|
def get_headers
|
46
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1" }
|
47
47
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
48
48
|
headers
|
49
49
|
end
|
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
|
88
88
|
# @return [Hash{String => String}]
|
89
89
|
def get_headers
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1" }
|
91
91
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
92
|
headers
|
93
93
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: candidhealth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.40.
|
4
|
+
version: 0.40.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|