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
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)
|
@@ -244,6 +271,7 @@ module CandidApiClient
|
|
244
271
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
245
272
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
246
273
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
274
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
247
275
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
|
248
276
|
# internal encounter ID or a Dr. Chrono encounter ID. This field should not
|
249
277
|
# contain PHI.
|
@@ -396,6 +424,33 @@ module CandidApiClient
|
|
396
424
|
# * :first_name (String)
|
397
425
|
# * :last_name (String)
|
398
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)
|
399
454
|
# * :additional_information (String)
|
400
455
|
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
401
456
|
# * :admission_date (Date)
|
@@ -533,6 +588,7 @@ module CandidApiClient
|
|
533
588
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
534
589
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
535
590
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
591
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
536
592
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
537
593
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
538
594
|
# This field should not contain PHI.
|
@@ -612,6 +668,8 @@ module CandidApiClient
|
|
612
668
|
# This field should not contain PHI.
|
613
669
|
# @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
614
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.
|
615
673
|
# @param request_options [CandidApiClient::RequestOptions]
|
616
674
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
617
675
|
# @example
|
@@ -622,10 +680,11 @@ module CandidApiClient
|
|
622
680
|
# patient_external_id: "string",
|
623
681
|
# status: PLANNED,
|
624
682
|
# charge_external_id: "string",
|
625
|
-
# date_of_service: DateTime.parse(2023-01-15)
|
683
|
+
# date_of_service: DateTime.parse(2023-01-15),
|
684
|
+
# exclude_bundled: true
|
626
685
|
# )
|
627
686
|
def get_all(limit: nil, page_token: nil, patient_external_id: nil, status: nil, charge_external_id: nil,
|
628
|
-
date_of_service: nil, request_options: nil)
|
687
|
+
date_of_service: nil, exclude_bundled: nil, request_options: nil)
|
629
688
|
response = @request_client.conn.get do |req|
|
630
689
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
631
690
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -641,7 +700,8 @@ module CandidApiClient
|
|
641
700
|
"patient_external_id": patient_external_id,
|
642
701
|
"status": status,
|
643
702
|
"charge_external_id": charge_external_id,
|
644
|
-
"date_of_service": date_of_service
|
703
|
+
"date_of_service": date_of_service,
|
704
|
+
"exclude_bundled": exclude_bundled
|
645
705
|
}.compact
|
646
706
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
647
707
|
request_options: request_options)}/api/charge_captures/v1"
|
@@ -746,6 +806,33 @@ module CandidApiClient
|
|
746
806
|
# * :first_name (String)
|
747
807
|
# * :last_name (String)
|
748
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)
|
749
836
|
# * :additional_information (String)
|
750
837
|
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
751
838
|
# * :admission_date (Date)
|
@@ -883,6 +970,7 @@ module CandidApiClient
|
|
883
970
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
884
971
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
885
972
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
973
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
886
974
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
|
887
975
|
# internal encounter ID or a Dr. Chrono encounter ID. This field should not
|
888
976
|
# contain PHI.
|
@@ -1039,6 +1127,33 @@ module CandidApiClient
|
|
1039
1127
|
# * :first_name (String)
|
1040
1128
|
# * :last_name (String)
|
1041
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)
|
1042
1157
|
# * :additional_information (String)
|
1043
1158
|
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
1044
1159
|
# * :admission_date (Date)
|
@@ -1176,6 +1291,7 @@ module CandidApiClient
|
|
1176
1291
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1177
1292
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1178
1293
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1294
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
1179
1295
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
1180
1296
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
1181
1297
|
# This field should not contain PHI.
|
@@ -1259,6 +1375,8 @@ module CandidApiClient
|
|
1259
1375
|
# This field should not contain PHI.
|
1260
1376
|
# @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
1261
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.
|
1262
1380
|
# @param request_options [CandidApiClient::RequestOptions]
|
1263
1381
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
1264
1382
|
# @example
|
@@ -1269,10 +1387,11 @@ module CandidApiClient
|
|
1269
1387
|
# patient_external_id: "string",
|
1270
1388
|
# status: PLANNED,
|
1271
1389
|
# charge_external_id: "string",
|
1272
|
-
# date_of_service: DateTime.parse(2023-01-15)
|
1390
|
+
# date_of_service: DateTime.parse(2023-01-15),
|
1391
|
+
# exclude_bundled: true
|
1273
1392
|
# )
|
1274
1393
|
def get_all(limit: nil, page_token: nil, patient_external_id: nil, status: nil, charge_external_id: nil,
|
1275
|
-
date_of_service: nil, request_options: nil)
|
1394
|
+
date_of_service: nil, exclude_bundled: nil, request_options: nil)
|
1276
1395
|
Async do
|
1277
1396
|
response = @request_client.conn.get do |req|
|
1278
1397
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1289,7 +1408,8 @@ module CandidApiClient
|
|
1289
1408
|
"patient_external_id": patient_external_id,
|
1290
1409
|
"status": status,
|
1291
1410
|
"charge_external_id": charge_external_id,
|
1292
|
-
"date_of_service": date_of_service
|
1411
|
+
"date_of_service": date_of_service,
|
1412
|
+
"exclude_bundled": exclude_bundled
|
1293
1413
|
}.compact
|
1294
1414
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
1295
1415
|
request_options: request_options)}/api/charge_captures/v1"
|
@@ -28,6 +28,7 @@ require_relative "../../../encounter_providers/v_2/types/supervising_provider_up
|
|
28
28
|
require_relative "../../../encounter_providers/v_2/types/referring_provider_update"
|
29
29
|
require_relative "../../../encounter_providers/v_2/types/initial_referring_provider_update"
|
30
30
|
require_relative "../../../encounters/v_4/types/epsdt_referral"
|
31
|
+
require_relative "../../../encounters/v_4/types/claim_supplemental_information"
|
31
32
|
require "ostruct"
|
32
33
|
require "json"
|
33
34
|
|
@@ -122,6 +123,8 @@ module CandidApiClient
|
|
122
123
|
attr_reader :subscriber_primary
|
123
124
|
# @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the secondary insurance subscriber.
|
124
125
|
attr_reader :subscriber_secondary
|
126
|
+
# @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
|
127
|
+
attr_reader :subscriber_tertiary
|
125
128
|
# @return [String] Defines additional information on the claim needed by the payer.
|
126
129
|
# Box 19 on the CMS-1500 claim form.
|
127
130
|
attr_reader :additional_information
|
@@ -225,6 +228,9 @@ module CandidApiClient
|
|
225
228
|
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
226
229
|
# 837P form
|
227
230
|
attr_reader :epsdt_referral
|
231
|
+
# @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
232
|
+
# permitted.
|
233
|
+
attr_reader :claim_supplemental_information
|
228
234
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
229
235
|
attr_reader :additional_properties
|
230
236
|
# @return [Object]
|
@@ -297,6 +303,7 @@ module CandidApiClient
|
|
297
303
|
# end_date_of_service will update all service line date_of_service values.
|
298
304
|
# @param subscriber_primary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the primary insurance subscriber.
|
299
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.
|
300
307
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
301
308
|
# Box 19 on the CMS-1500 claim form.
|
302
309
|
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF\*4N
|
@@ -379,10 +386,12 @@ module CandidApiClient
|
|
379
386
|
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
380
387
|
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
381
388
|
# 837P form
|
389
|
+
# @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
|
390
|
+
# permitted.
|
382
391
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
383
392
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData]
|
384
393
|
def initialize(diagnoses: OMIT, interventions: OMIT, external_claim_submission: OMIT, service_lines: OMIT,
|
385
|
-
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, 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)
|
386
395
|
@diagnoses = diagnoses if diagnoses != OMIT
|
387
396
|
@interventions = interventions if interventions != OMIT
|
388
397
|
@external_claim_submission = external_claim_submission if external_claim_submission != OMIT
|
@@ -405,6 +414,7 @@ module CandidApiClient
|
|
405
414
|
@end_date_of_service = end_date_of_service if end_date_of_service != OMIT
|
406
415
|
@subscriber_primary = subscriber_primary if subscriber_primary != OMIT
|
407
416
|
@subscriber_secondary = subscriber_secondary if subscriber_secondary != OMIT
|
417
|
+
@subscriber_tertiary = subscriber_tertiary if subscriber_tertiary != OMIT
|
408
418
|
@additional_information = additional_information if additional_information != OMIT
|
409
419
|
if service_authorization_exception_code != OMIT
|
410
420
|
@service_authorization_exception_code = service_authorization_exception_code
|
@@ -430,6 +440,7 @@ module CandidApiClient
|
|
430
440
|
@initial_referring_provider = initial_referring_provider if initial_referring_provider != OMIT
|
431
441
|
@referral_number = referral_number if referral_number != OMIT
|
432
442
|
@epsdt_referral = epsdt_referral if epsdt_referral != OMIT
|
443
|
+
@claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
|
433
444
|
@additional_properties = additional_properties
|
434
445
|
@_field_set = {
|
435
446
|
"diagnoses": diagnoses,
|
@@ -454,6 +465,7 @@ module CandidApiClient
|
|
454
465
|
"end_date_of_service": end_date_of_service,
|
455
466
|
"subscriber_primary": subscriber_primary,
|
456
467
|
"subscriber_secondary": subscriber_secondary,
|
468
|
+
"subscriber_tertiary": subscriber_tertiary,
|
457
469
|
"additional_information": additional_information,
|
458
470
|
"service_authorization_exception_code": service_authorization_exception_code,
|
459
471
|
"admission_date": admission_date,
|
@@ -474,7 +486,8 @@ module CandidApiClient
|
|
474
486
|
"referring_provider": referring_provider,
|
475
487
|
"initial_referring_provider": initial_referring_provider,
|
476
488
|
"referral_number": referral_number,
|
477
|
-
"epsdt_referral": epsdt_referral
|
489
|
+
"epsdt_referral": epsdt_referral,
|
490
|
+
"claim_supplemental_information": claim_supplemental_information
|
478
491
|
}.reject do |_k, v|
|
479
492
|
v == OMIT
|
480
493
|
end
|
@@ -549,6 +562,12 @@ module CandidApiClient
|
|
549
562
|
subscriber_secondary = parsed_json["subscriber_secondary"].to_json
|
550
563
|
subscriber_secondary = CandidApiClient::Individual::Types::SubscriberCreate.from_json(json_object: subscriber_secondary)
|
551
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
|
552
571
|
additional_information = struct["additional_information"]
|
553
572
|
service_authorization_exception_code = struct["service_authorization_exception_code"]
|
554
573
|
admission_date = (Date.parse(parsed_json["admission_date"]) unless parsed_json["admission_date"].nil?)
|
@@ -630,6 +649,10 @@ module CandidApiClient
|
|
630
649
|
epsdt_referral = parsed_json["epsdt_referral"].to_json
|
631
650
|
epsdt_referral = CandidApiClient::Encounters::V4::Types::EpsdtReferral.from_json(json_object: epsdt_referral)
|
632
651
|
end
|
652
|
+
claim_supplemental_information = parsed_json["claim_supplemental_information"]&.map do |item|
|
653
|
+
item = item.to_json
|
654
|
+
CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation.from_json(json_object: item)
|
655
|
+
end
|
633
656
|
new(
|
634
657
|
diagnoses: diagnoses,
|
635
658
|
interventions: interventions,
|
@@ -653,6 +676,7 @@ module CandidApiClient
|
|
653
676
|
end_date_of_service: end_date_of_service,
|
654
677
|
subscriber_primary: subscriber_primary,
|
655
678
|
subscriber_secondary: subscriber_secondary,
|
679
|
+
subscriber_tertiary: subscriber_tertiary,
|
656
680
|
additional_information: additional_information,
|
657
681
|
service_authorization_exception_code: service_authorization_exception_code,
|
658
682
|
admission_date: admission_date,
|
@@ -674,6 +698,7 @@ module CandidApiClient
|
|
674
698
|
initial_referring_provider: initial_referring_provider,
|
675
699
|
referral_number: referral_number,
|
676
700
|
epsdt_referral: epsdt_referral,
|
701
|
+
claim_supplemental_information: claim_supplemental_information,
|
677
702
|
additional_properties: struct
|
678
703
|
)
|
679
704
|
end
|
@@ -714,6 +739,7 @@ module CandidApiClient
|
|
714
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.")
|
715
740
|
obj.subscriber_primary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_primary)
|
716
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)
|
717
743
|
obj.additional_information&.is_a?(String) != false || raise("Passed value for field obj.additional_information is not the expected type, validation failed.")
|
718
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.")
|
719
745
|
obj.admission_date&.is_a?(Date) != false || raise("Passed value for field obj.admission_date is not the expected type, validation failed.")
|
@@ -735,6 +761,7 @@ module CandidApiClient
|
|
735
761
|
obj.initial_referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate.validate_raw(obj: obj.initial_referring_provider)
|
736
762
|
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
737
763
|
obj.epsdt_referral.nil? || CandidApiClient::Encounters::V4::Types::EpsdtReferral.validate_raw(obj: obj.epsdt_referral)
|
764
|
+
obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
|
738
765
|
end
|
739
766
|
end
|
740
767
|
end
|