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
@@ -35,6 +35,7 @@ require_relative "../../guarantor/v_1/types/guarantor_create"
|
|
35
35
|
require_relative "../../claim_submission/v_1/types/external_claim_submission_create"
|
36
36
|
require_relative "../../custom_schemas/v_1/types/schema_instance"
|
37
37
|
require_relative "types/epsdt_referral"
|
38
|
+
require_relative "types/claim_supplemental_information"
|
38
39
|
require_relative "types/encounter_create_from_pre_encounter"
|
39
40
|
require_relative "../../individual/types/patient_update"
|
40
41
|
require_relative "types/vitals_update"
|
@@ -448,6 +449,33 @@ module CandidApiClient
|
|
448
449
|
# * :first_name (String)
|
449
450
|
# * :last_name (String)
|
450
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)
|
451
479
|
# @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form.
|
452
480
|
# @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim.
|
453
481
|
# @param diagnoses [Array<Hash>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
@@ -543,6 +571,11 @@ module CandidApiClient
|
|
543
571
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
544
572
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
545
573
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
574
|
+
# @param claim_supplemental_information [Array<Hash>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
575
|
+
# permitted.Request of type Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>, as a Hash
|
576
|
+
# * :attachment_report_type_code (CandidApiClient::Encounters::V4::Types::ReportTypeCode)
|
577
|
+
# * :attachment_transmission_code (CandidApiClient::Encounters::V4::Types::ReportTransmissionCode)
|
578
|
+
# * :attachment_control_number (String)
|
546
579
|
# @param request_options [CandidApiClient::RequestOptions]
|
547
580
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
548
581
|
# @example
|
@@ -557,6 +590,7 @@ module CandidApiClient
|
|
557
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" },
|
558
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 },
|
559
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 },
|
560
594
|
# prior_authorization_number: "string",
|
561
595
|
# responsible_party: INSURANCE_PAY,
|
562
596
|
# diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
|
@@ -570,10 +604,11 @@ module CandidApiClient
|
|
570
604
|
# tag_ids: ["string"],
|
571
605
|
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }],
|
572
606
|
# referral_number: "string",
|
573
|
-
# epsdt_referral: { condition_indicator_1: AV, condition_indicator_2: AV, condition_indicator_3: AV }
|
607
|
+
# epsdt_referral: { condition_indicator_1: AV, condition_indicator_2: AV, condition_indicator_3: AV },
|
608
|
+
# claim_supplemental_information: [{ attachment_report_type_code: C_03, attachment_transmission_code: CBM }]
|
574
609
|
# )
|
575
610
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
576
|
-
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, 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)
|
577
612
|
response = @request_client.conn.post do |req|
|
578
613
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
579
614
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -615,6 +650,7 @@ module CandidApiClient
|
|
615
650
|
service_facility: service_facility,
|
616
651
|
subscriber_primary: subscriber_primary,
|
617
652
|
subscriber_secondary: subscriber_secondary,
|
653
|
+
subscriber_tertiary: subscriber_tertiary,
|
618
654
|
prior_authorization_number: prior_authorization_number,
|
619
655
|
responsible_party: responsible_party,
|
620
656
|
diagnoses: diagnoses,
|
@@ -628,7 +664,8 @@ module CandidApiClient
|
|
628
664
|
tag_ids: tag_ids,
|
629
665
|
schema_instances: schema_instances,
|
630
666
|
referral_number: referral_number,
|
631
|
-
epsdt_referral: epsdt_referral
|
667
|
+
epsdt_referral: epsdt_referral,
|
668
|
+
claim_supplemental_information: claim_supplemental_information
|
632
669
|
}.compact
|
633
670
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
634
671
|
request_options: request_options)}/api/encounters/v4"
|
@@ -900,6 +937,33 @@ module CandidApiClient
|
|
900
937
|
# * :first_name (String)
|
901
938
|
# * :last_name (String)
|
902
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)
|
903
967
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
904
968
|
# Box 19 on the CMS-1500 claim form.
|
905
969
|
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF\*4N
|
@@ -1106,6 +1170,11 @@ module CandidApiClient
|
|
1106
1170
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1107
1171
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1108
1172
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1173
|
+
# @param claim_supplemental_information [Array<Hash>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
1174
|
+
# permitted.Request of type Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>, as a Hash
|
1175
|
+
# * :attachment_report_type_code (CandidApiClient::Encounters::V4::Types::ReportTypeCode)
|
1176
|
+
# * :attachment_transmission_code (CandidApiClient::Encounters::V4::Types::ReportTransmissionCode)
|
1177
|
+
# * :attachment_control_number (String)
|
1109
1178
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
1110
1179
|
# @param _field_set [Object]
|
1111
1180
|
# @param diagnosis_ids [Array<String>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
@@ -1126,7 +1195,7 @@ module CandidApiClient
|
|
1126
1195
|
# place_of_service_code_as_submitted: PHARMACY
|
1127
1196
|
# )
|
1128
1197
|
def update(encounter_id:, benefits_assigned_to_provider: nil, prior_authorization_number: nil,
|
1129
|
-
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, 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)
|
1130
1199
|
response = @request_client.conn.patch do |req|
|
1131
1200
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
1132
1201
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -1153,6 +1222,7 @@ module CandidApiClient
|
|
1153
1222
|
end_date_of_service: end_date_of_service,
|
1154
1223
|
subscriber_primary: subscriber_primary,
|
1155
1224
|
subscriber_secondary: subscriber_secondary,
|
1225
|
+
subscriber_tertiary: subscriber_tertiary,
|
1156
1226
|
additional_information: additional_information,
|
1157
1227
|
service_authorization_exception_code: service_authorization_exception_code,
|
1158
1228
|
admission_date: admission_date,
|
@@ -1174,6 +1244,7 @@ module CandidApiClient
|
|
1174
1244
|
initial_referring_provider: initial_referring_provider,
|
1175
1245
|
referral_number: referral_number,
|
1176
1246
|
epsdt_referral: epsdt_referral,
|
1247
|
+
claim_supplemental_information: claim_supplemental_information,
|
1177
1248
|
additional_properties: additional_properties,
|
1178
1249
|
_field_set: _field_set,
|
1179
1250
|
diagnosis_ids: diagnosis_ids,
|
@@ -1588,6 +1659,33 @@ module CandidApiClient
|
|
1588
1659
|
# * :first_name (String)
|
1589
1660
|
# * :last_name (String)
|
1590
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)
|
1591
1689
|
# @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form.
|
1592
1690
|
# @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim.
|
1593
1691
|
# @param diagnoses [Array<Hash>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
@@ -1683,6 +1781,11 @@ module CandidApiClient
|
|
1683
1781
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1684
1782
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1685
1783
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1784
|
+
# @param claim_supplemental_information [Array<Hash>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
1785
|
+
# permitted.Request of type Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>, as a Hash
|
1786
|
+
# * :attachment_report_type_code (CandidApiClient::Encounters::V4::Types::ReportTypeCode)
|
1787
|
+
# * :attachment_transmission_code (CandidApiClient::Encounters::V4::Types::ReportTransmissionCode)
|
1788
|
+
# * :attachment_control_number (String)
|
1686
1789
|
# @param request_options [CandidApiClient::RequestOptions]
|
1687
1790
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
1688
1791
|
# @example
|
@@ -1697,6 +1800,7 @@ module CandidApiClient
|
|
1697
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" },
|
1698
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 },
|
1699
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 },
|
1700
1804
|
# prior_authorization_number: "string",
|
1701
1805
|
# responsible_party: INSURANCE_PAY,
|
1702
1806
|
# diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
|
@@ -1710,10 +1814,11 @@ module CandidApiClient
|
|
1710
1814
|
# tag_ids: ["string"],
|
1711
1815
|
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }],
|
1712
1816
|
# referral_number: "string",
|
1713
|
-
# epsdt_referral: { condition_indicator_1: AV, condition_indicator_2: AV, condition_indicator_3: AV }
|
1817
|
+
# epsdt_referral: { condition_indicator_1: AV, condition_indicator_2: AV, condition_indicator_3: AV },
|
1818
|
+
# claim_supplemental_information: [{ attachment_report_type_code: C_03, attachment_transmission_code: CBM }]
|
1714
1819
|
# )
|
1715
1820
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
1716
|
-
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, 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)
|
1717
1822
|
Async do
|
1718
1823
|
response = @request_client.conn.post do |req|
|
1719
1824
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1756,6 +1861,7 @@ module CandidApiClient
|
|
1756
1861
|
service_facility: service_facility,
|
1757
1862
|
subscriber_primary: subscriber_primary,
|
1758
1863
|
subscriber_secondary: subscriber_secondary,
|
1864
|
+
subscriber_tertiary: subscriber_tertiary,
|
1759
1865
|
prior_authorization_number: prior_authorization_number,
|
1760
1866
|
responsible_party: responsible_party,
|
1761
1867
|
diagnoses: diagnoses,
|
@@ -1769,7 +1875,8 @@ module CandidApiClient
|
|
1769
1875
|
tag_ids: tag_ids,
|
1770
1876
|
schema_instances: schema_instances,
|
1771
1877
|
referral_number: referral_number,
|
1772
|
-
epsdt_referral: epsdt_referral
|
1878
|
+
epsdt_referral: epsdt_referral,
|
1879
|
+
claim_supplemental_information: claim_supplemental_information
|
1773
1880
|
}.compact
|
1774
1881
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
1775
1882
|
request_options: request_options)}/api/encounters/v4"
|
@@ -2044,6 +2151,33 @@ module CandidApiClient
|
|
2044
2151
|
# * :first_name (String)
|
2045
2152
|
# * :last_name (String)
|
2046
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)
|
2047
2181
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
2048
2182
|
# Box 19 on the CMS-1500 claim form.
|
2049
2183
|
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF\*4N
|
@@ -2250,6 +2384,11 @@ module CandidApiClient
|
|
2250
2384
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
2251
2385
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
2252
2386
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
2387
|
+
# @param claim_supplemental_information [Array<Hash>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
2388
|
+
# permitted.Request of type Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>, as a Hash
|
2389
|
+
# * :attachment_report_type_code (CandidApiClient::Encounters::V4::Types::ReportTypeCode)
|
2390
|
+
# * :attachment_transmission_code (CandidApiClient::Encounters::V4::Types::ReportTransmissionCode)
|
2391
|
+
# * :attachment_control_number (String)
|
2253
2392
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
2254
2393
|
# @param _field_set [Object]
|
2255
2394
|
# @param diagnosis_ids [Array<String>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
@@ -2270,7 +2409,7 @@ module CandidApiClient
|
|
2270
2409
|
# place_of_service_code_as_submitted: PHARMACY
|
2271
2410
|
# )
|
2272
2411
|
def update(encounter_id:, benefits_assigned_to_provider: nil, prior_authorization_number: nil,
|
2273
|
-
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, 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)
|
2274
2413
|
Async do
|
2275
2414
|
response = @request_client.conn.patch do |req|
|
2276
2415
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -2298,6 +2437,7 @@ module CandidApiClient
|
|
2298
2437
|
end_date_of_service: end_date_of_service,
|
2299
2438
|
subscriber_primary: subscriber_primary,
|
2300
2439
|
subscriber_secondary: subscriber_secondary,
|
2440
|
+
subscriber_tertiary: subscriber_tertiary,
|
2301
2441
|
additional_information: additional_information,
|
2302
2442
|
service_authorization_exception_code: service_authorization_exception_code,
|
2303
2443
|
admission_date: admission_date,
|
@@ -2319,6 +2459,7 @@ module CandidApiClient
|
|
2319
2459
|
initial_referring_provider: initial_referring_provider,
|
2320
2460
|
referral_number: referral_number,
|
2321
2461
|
epsdt_referral: epsdt_referral,
|
2462
|
+
claim_supplemental_information: claim_supplemental_information,
|
2322
2463
|
additional_properties: additional_properties,
|
2323
2464
|
_field_set: _field_set,
|
2324
2465
|
diagnosis_ids: diagnosis_ids,
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "report_type_code"
|
4
|
+
require_relative "report_transmission_code"
|
5
|
+
require "ostruct"
|
6
|
+
require "json"
|
7
|
+
|
8
|
+
module CandidApiClient
|
9
|
+
module Encounters
|
10
|
+
module V4
|
11
|
+
module Types
|
12
|
+
class ClaimSupplementalInformation
|
13
|
+
# @return [CandidApiClient::Encounters::V4::Types::ReportTypeCode]
|
14
|
+
attr_reader :attachment_report_type_code
|
15
|
+
# @return [CandidApiClient::Encounters::V4::Types::ReportTransmissionCode]
|
16
|
+
attr_reader :attachment_transmission_code
|
17
|
+
# @return [String]
|
18
|
+
attr_reader :attachment_control_number
|
19
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
20
|
+
attr_reader :additional_properties
|
21
|
+
# @return [Object]
|
22
|
+
attr_reader :_field_set
|
23
|
+
protected :_field_set
|
24
|
+
|
25
|
+
OMIT = Object.new
|
26
|
+
|
27
|
+
# @param attachment_report_type_code [CandidApiClient::Encounters::V4::Types::ReportTypeCode]
|
28
|
+
# @param attachment_transmission_code [CandidApiClient::Encounters::V4::Types::ReportTransmissionCode]
|
29
|
+
# @param attachment_control_number [String]
|
30
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
31
|
+
# @return [CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation]
|
32
|
+
def initialize(attachment_report_type_code:, attachment_transmission_code:, attachment_control_number: OMIT,
|
33
|
+
additional_properties: nil)
|
34
|
+
@attachment_report_type_code = attachment_report_type_code
|
35
|
+
@attachment_transmission_code = attachment_transmission_code
|
36
|
+
@attachment_control_number = attachment_control_number if attachment_control_number != OMIT
|
37
|
+
@additional_properties = additional_properties
|
38
|
+
@_field_set = {
|
39
|
+
"attachment_report_type_code": attachment_report_type_code,
|
40
|
+
"attachment_transmission_code": attachment_transmission_code,
|
41
|
+
"attachment_control_number": attachment_control_number
|
42
|
+
}.reject do |_k, v|
|
43
|
+
v == OMIT
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Deserialize a JSON object to an instance of ClaimSupplementalInformation
|
48
|
+
#
|
49
|
+
# @param json_object [String]
|
50
|
+
# @return [CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation]
|
51
|
+
def self.from_json(json_object:)
|
52
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
53
|
+
attachment_report_type_code = struct["attachment_report_type_code"]
|
54
|
+
attachment_transmission_code = struct["attachment_transmission_code"]
|
55
|
+
attachment_control_number = struct["attachment_control_number"]
|
56
|
+
new(
|
57
|
+
attachment_report_type_code: attachment_report_type_code,
|
58
|
+
attachment_transmission_code: attachment_transmission_code,
|
59
|
+
attachment_control_number: attachment_control_number,
|
60
|
+
additional_properties: struct
|
61
|
+
)
|
62
|
+
end
|
63
|
+
|
64
|
+
# Serialize an instance of ClaimSupplementalInformation to a JSON object
|
65
|
+
#
|
66
|
+
# @return [String]
|
67
|
+
def to_json(*_args)
|
68
|
+
@_field_set&.to_json
|
69
|
+
end
|
70
|
+
|
71
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
72
|
+
# hash and check each fields type against the current object's property
|
73
|
+
# definitions.
|
74
|
+
#
|
75
|
+
# @param obj [Object]
|
76
|
+
# @return [Void]
|
77
|
+
def self.validate_raw(obj:)
|
78
|
+
obj.attachment_report_type_code.is_a?(CandidApiClient::Encounters::V4::Types::ReportTypeCode) != false || raise("Passed value for field obj.attachment_report_type_code is not the expected type, validation failed.")
|
79
|
+
obj.attachment_transmission_code.is_a?(CandidApiClient::Encounters::V4::Types::ReportTransmissionCode) != false || raise("Passed value for field obj.attachment_transmission_code is not the expected type, validation failed.")
|
80
|
+
obj.attachment_control_number&.is_a?(String) != false || raise("Passed value for field obj.attachment_control_number is not the expected type, validation failed.")
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -20,6 +20,7 @@ require_relative "encounter_owner_of_next_action_type"
|
|
20
20
|
require_relative "encounter_submission_origin_type"
|
21
21
|
require_relative "../../../custom_schemas/v_1/types/schema_instance"
|
22
22
|
require_relative "epsdt_referral"
|
23
|
+
require_relative "claim_supplemental_information"
|
23
24
|
require_relative "medication"
|
24
25
|
require_relative "vitals"
|
25
26
|
require_relative "intervention"
|
@@ -93,6 +94,8 @@ module CandidApiClient
|
|
93
94
|
attr_reader :subscriber_primary
|
94
95
|
# @return [CandidApiClient::Individual::Types::Subscriber] Contains details of the secondary insurance subscriber.
|
95
96
|
attr_reader :subscriber_secondary
|
97
|
+
# @return [CandidApiClient::Individual::Types::Subscriber] Contains details of the tertiary insurance subscriber.
|
98
|
+
attr_reader :subscriber_tertiary
|
96
99
|
# @return [String] Box 23 on the CMS-1500 claim form.
|
97
100
|
attr_reader :prior_authorization_number
|
98
101
|
# @return [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim.
|
@@ -147,6 +150,9 @@ module CandidApiClient
|
|
147
150
|
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
148
151
|
# 837P form
|
149
152
|
attr_reader :epsdt_referral
|
153
|
+
# @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
154
|
+
# permitted.
|
155
|
+
attr_reader :claim_supplemental_information
|
150
156
|
# @return [DateTime] The date and time the encounter was last submitted to a payer.
|
151
157
|
attr_reader :last_submitted_at
|
152
158
|
# @return [DateTime] The date and time the encounter was created.
|
@@ -295,6 +301,7 @@ module CandidApiClient
|
|
295
301
|
# Note: Cash Pay is no longer a valid payer_id in v4, please use responsible party
|
296
302
|
# to define self-pay claims.
|
297
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.
|
298
305
|
# @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form.
|
299
306
|
# @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim.
|
300
307
|
# @param url [String] URL that links directly to the claim created in Candid.
|
@@ -330,6 +337,8 @@ module CandidApiClient
|
|
330
337
|
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
331
338
|
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
332
339
|
# 837P form
|
340
|
+
# @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
|
341
|
+
# permitted.
|
333
342
|
# @param last_submitted_at [DateTime] The date and time the encounter was last submitted to a payer.
|
334
343
|
# @param created_at [DateTime] The date and time the encounter was created.
|
335
344
|
# @param external_id [String] A client-specified unique ID to associate with this encounter;
|
@@ -407,7 +416,7 @@ module CandidApiClient
|
|
407
416
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
408
417
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
409
418
|
def initialize(encounter_id:, claims:, patient:, billing_provider:, rendering_provider:, service_facility:,
|
410
|
-
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, 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)
|
411
420
|
@patient_control_number = patient_control_number if patient_control_number != OMIT
|
412
421
|
@encounter_id = encounter_id
|
413
422
|
@claims = claims
|
@@ -421,6 +430,7 @@ module CandidApiClient
|
|
421
430
|
@service_facility = service_facility
|
422
431
|
@subscriber_primary = subscriber_primary if subscriber_primary != OMIT
|
423
432
|
@subscriber_secondary = subscriber_secondary if subscriber_secondary != OMIT
|
433
|
+
@subscriber_tertiary = subscriber_tertiary if subscriber_tertiary != OMIT
|
424
434
|
@prior_authorization_number = prior_authorization_number if prior_authorization_number != OMIT
|
425
435
|
@responsible_party = responsible_party
|
426
436
|
@url = url
|
@@ -444,6 +454,7 @@ module CandidApiClient
|
|
444
454
|
@schema_instances = schema_instances
|
445
455
|
@referral_number = referral_number if referral_number != OMIT
|
446
456
|
@epsdt_referral = epsdt_referral if epsdt_referral != OMIT
|
457
|
+
@claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
|
447
458
|
@last_submitted_at = last_submitted_at if last_submitted_at != OMIT
|
448
459
|
@created_at = created_at
|
449
460
|
@external_id = external_id
|
@@ -485,6 +496,7 @@ module CandidApiClient
|
|
485
496
|
"service_facility": service_facility,
|
486
497
|
"subscriber_primary": subscriber_primary,
|
487
498
|
"subscriber_secondary": subscriber_secondary,
|
499
|
+
"subscriber_tertiary": subscriber_tertiary,
|
488
500
|
"prior_authorization_number": prior_authorization_number,
|
489
501
|
"responsible_party": responsible_party,
|
490
502
|
"url": url,
|
@@ -504,6 +516,7 @@ module CandidApiClient
|
|
504
516
|
"schema_instances": schema_instances,
|
505
517
|
"referral_number": referral_number,
|
506
518
|
"epsdt_referral": epsdt_referral,
|
519
|
+
"claim_supplemental_information": claim_supplemental_information,
|
507
520
|
"last_submitted_at": last_submitted_at,
|
508
521
|
"created_at": created_at,
|
509
522
|
"external_id": external_id,
|
@@ -604,6 +617,12 @@ module CandidApiClient
|
|
604
617
|
subscriber_secondary = parsed_json["subscriber_secondary"].to_json
|
605
618
|
subscriber_secondary = CandidApiClient::Individual::Types::Subscriber.from_json(json_object: subscriber_secondary)
|
606
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
|
607
626
|
prior_authorization_number = struct["prior_authorization_number"]
|
608
627
|
responsible_party = struct["responsible_party"]
|
609
628
|
url = struct["url"]
|
@@ -651,6 +670,10 @@ module CandidApiClient
|
|
651
670
|
epsdt_referral = parsed_json["epsdt_referral"].to_json
|
652
671
|
epsdt_referral = CandidApiClient::Encounters::V4::Types::EpsdtReferral.from_json(json_object: epsdt_referral)
|
653
672
|
end
|
673
|
+
claim_supplemental_information = parsed_json["claim_supplemental_information"]&.map do |item|
|
674
|
+
item = item.to_json
|
675
|
+
CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation.from_json(json_object: item)
|
676
|
+
end
|
654
677
|
last_submitted_at = unless parsed_json["last_submitted_at"].nil?
|
655
678
|
DateTime.parse(parsed_json["last_submitted_at"])
|
656
679
|
end
|
@@ -711,6 +734,7 @@ module CandidApiClient
|
|
711
734
|
service_facility: service_facility,
|
712
735
|
subscriber_primary: subscriber_primary,
|
713
736
|
subscriber_secondary: subscriber_secondary,
|
737
|
+
subscriber_tertiary: subscriber_tertiary,
|
714
738
|
prior_authorization_number: prior_authorization_number,
|
715
739
|
responsible_party: responsible_party,
|
716
740
|
url: url,
|
@@ -730,6 +754,7 @@ module CandidApiClient
|
|
730
754
|
schema_instances: schema_instances,
|
731
755
|
referral_number: referral_number,
|
732
756
|
epsdt_referral: epsdt_referral,
|
757
|
+
claim_supplemental_information: claim_supplemental_information,
|
733
758
|
last_submitted_at: last_submitted_at,
|
734
759
|
created_at: created_at,
|
735
760
|
external_id: external_id,
|
@@ -783,6 +808,7 @@ module CandidApiClient
|
|
783
808
|
CandidApiClient::ServiceFacility::Types::EncounterServiceFacility.validate_raw(obj: obj.service_facility)
|
784
809
|
obj.subscriber_primary.nil? || CandidApiClient::Individual::Types::Subscriber.validate_raw(obj: obj.subscriber_primary)
|
785
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)
|
786
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.")
|
787
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.")
|
788
814
|
obj.url.is_a?(String) != false || raise("Passed value for field obj.url is not the expected type, validation failed.")
|
@@ -802,6 +828,7 @@ module CandidApiClient
|
|
802
828
|
obj.schema_instances.is_a?(Array) != false || raise("Passed value for field obj.schema_instances is not the expected type, validation failed.")
|
803
829
|
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
804
830
|
obj.epsdt_referral.nil? || CandidApiClient::Encounters::V4::Types::EpsdtReferral.validate_raw(obj: obj.epsdt_referral)
|
831
|
+
obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
|
805
832
|
obj.last_submitted_at&.is_a?(DateTime) != false || raise("Passed value for field obj.last_submitted_at is not the expected type, validation failed.")
|
806
833
|
obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
|
807
834
|
obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|