candidhealth 0.39.5 → 0.39.7

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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/charge_capture/v_1/client.rb +8 -0
  3. data/lib/candidhealth/commons/types/procedure_modifier.rb +1 -0
  4. data/lib/candidhealth/encounters/v_4/client.rb +12 -4
  5. data/lib/candidhealth/encounters/v_4/types/payer_plan_group_payer_does_not_match_insurance_card_error.rb +77 -0
  6. data/lib/candidhealth/fee_schedules/v_3/client.rb +16 -4
  7. data/lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb +16 -2
  8. data/lib/candidhealth/fee_schedules/v_3/types/dimensions.rb +16 -2
  9. data/lib/candidhealth/fee_schedules/v_3/types/match_payer_plan_groups.rb +85 -0
  10. data/lib/candidhealth/fee_schedules/v_3/types/optional_dimensions.rb +15 -2
  11. data/lib/candidhealth/fee_schedules/v_3/types/payer_plan_group_does_not_match_rate_payer_error.rb +75 -0
  12. data/lib/candidhealth/fee_schedules/v_3/types/validation_error.rb +39 -14
  13. data/lib/candidhealth/insurance_cards/v_2/types/insurance_card.rb +10 -2
  14. data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_base.rb +10 -2
  15. data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_create.rb +10 -2
  16. data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +27 -0
  17. data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +98 -4
  18. data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +2 -2
  19. data/lib/candidhealth/pre_encounter/appointments/v_1/types/mutable_appointment.rb +2 -2
  20. data/lib/candidhealth/pre_encounter/appointments/v_1/types/visit.rb +96 -0
  21. data/lib/candidhealth/pre_encounter/appointments/v_1/types/visits_page.rb +98 -0
  22. data/lib/candidhealth/pre_encounter/common/types/external_identifier.rb +87 -0
  23. data/lib/candidhealth/pre_encounter/common/types/external_provider.rb +10 -2
  24. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +89 -4
  25. data/lib/candidhealth/pre_encounter/coverages/v_1/types/address.rb +118 -0
  26. data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefits_related_entity.rb +11 -2
  27. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverages_page.rb +98 -0
  28. data/lib/candidhealth/pre_encounter/coverages/v_1/types/expanded_member_info.rb +133 -0
  29. data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb +10 -2
  30. data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_type_code.rb +1 -0
  31. data/lib/candidhealth/pre_encounter/coverages/v_1/types/member_info.rb +93 -0
  32. data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_metadata.rb +38 -3
  33. data/lib/candidhealth/pre_encounter/eligibility_checks/client.rb +32 -0
  34. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +116 -0
  35. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check.rb +119 -0
  36. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_request.rb +135 -0
  37. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_response.rb +15 -0
  38. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/encounter.rb +83 -0
  39. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/individual_provider.rb +81 -0
  40. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/organization_provider.rb +74 -0
  41. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/parsed_response.rb +99 -0
  42. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/provider.rb +66 -0
  43. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/request_correction.rb +79 -0
  44. data/lib/candidhealth/pre_encounter/lists/v_1/types/appointment_list_item.rb +5 -5
  45. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +70 -14
  46. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +14 -2
  47. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +14 -2
  48. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +13 -1
  49. data/lib/requests.rb +2 -2
  50. data/lib/types_export.rb +19 -0
  51. metadata +23 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a6175830f8109fe2b7fe90399bd9422ed89eedc824b3155655044a2e222435f
4
- data.tar.gz: 4e05499a27bb1e6551c640a6ce8123704eed9cf730ff22b01c4b9fe997f63db1
3
+ metadata.gz: 4eec5407e950493f23639bdcce0f5990e66ffa00186921b75fbc92c8947359bd
4
+ data.tar.gz: fb4a3fdf6062acca6de24d0fa12f857f6f594f16dac7bc623c28b3ef42695199
5
5
  SHA512:
6
- metadata.gz: 2298a18c4b4233472d9e62e9924f799b6ad57881cc63b94a8a68711cfcba0e9eee77452177f2e88a686544177652ac3ebc12c41ec34a691e1aba6f335783c243
7
- data.tar.gz: e3a49be84ad1c5cbfa7c774967768ef29f97b8ac7b9cfff886ee48166e230b9934cfad6e5ae29bfd8b7df0abd357c1aa4048011d63b0fd8d070a65e18b7fa05c
6
+ metadata.gz: 071e4fb6dde0dd9a710d6844cb9b47ed0112c7e88b62ddb636f83827dbb5a78463c8320f817bf7aa2bd947759edcc0131f7fbd5f3b32121aaf73a01c25bc181e
7
+ data.tar.gz: 20cf62ab9e09e479b2f7fd762fbee83aff625247f66ec2f6bc2a9510f7a42006dd9901e9932a76b2dbdfec4639c30a1e9ec01c9756a5b1111c7005acaaa7ee8b
@@ -67,6 +67,7 @@ module CandidApiClient
67
67
  # * :plan_name (String)
68
68
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
69
69
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
70
+ # * :payer_plan_group_id (String)
70
71
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
71
72
  # * :date_of_birth (Date)
72
73
  # * :address (Hash)
@@ -93,6 +94,7 @@ module CandidApiClient
93
94
  # * :plan_name (String)
94
95
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
95
96
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
97
+ # * :payer_plan_group_id (String)
96
98
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
97
99
  # * :date_of_birth (Date)
98
100
  # * :address (Hash)
@@ -354,6 +356,7 @@ module CandidApiClient
354
356
  # * :plan_name (String)
355
357
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
356
358
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
359
+ # * :payer_plan_group_id (String)
357
360
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
358
361
  # * :date_of_birth (Date)
359
362
  # * :address (Hash)
@@ -380,6 +383,7 @@ module CandidApiClient
380
383
  # * :plan_name (String)
381
384
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
382
385
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
386
+ # * :payer_plan_group_id (String)
383
387
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
384
388
  # * :date_of_birth (Date)
385
389
  # * :address (Hash)
@@ -702,6 +706,7 @@ module CandidApiClient
702
706
  # * :plan_name (String)
703
707
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
704
708
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
709
+ # * :payer_plan_group_id (String)
705
710
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
706
711
  # * :date_of_birth (Date)
707
712
  # * :address (Hash)
@@ -728,6 +733,7 @@ module CandidApiClient
728
733
  # * :plan_name (String)
729
734
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
730
735
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
736
+ # * :payer_plan_group_id (String)
731
737
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
732
738
  # * :date_of_birth (Date)
733
739
  # * :address (Hash)
@@ -993,6 +999,7 @@ module CandidApiClient
993
999
  # * :plan_name (String)
994
1000
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
995
1001
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
1002
+ # * :payer_plan_group_id (String)
996
1003
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
997
1004
  # * :date_of_birth (Date)
998
1005
  # * :address (Hash)
@@ -1019,6 +1026,7 @@ module CandidApiClient
1019
1026
  # * :plan_name (String)
1020
1027
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
1021
1028
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
1029
+ # * :payer_plan_group_id (String)
1022
1030
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
1023
1031
  # * :date_of_birth (Date)
1024
1032
  # * :address (Hash)
@@ -393,6 +393,7 @@ module CandidApiClient
393
393
  V_3 = "V3"
394
394
  XE = "XE"
395
395
  XS = "XS"
396
+ XU = "XU"
396
397
  end
397
398
  end
398
399
  end
@@ -408,6 +408,7 @@ module CandidApiClient
408
408
  # * :plan_name (String)
409
409
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
410
410
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
411
+ # * :payer_plan_group_id (String)
411
412
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
412
413
  # * :date_of_birth (Date)
413
414
  # * :address (Hash)
@@ -434,6 +435,7 @@ module CandidApiClient
434
435
  # * :plan_name (String)
435
436
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
436
437
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
438
+ # * :payer_plan_group_id (String)
437
439
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
438
440
  # * :date_of_birth (Date)
439
441
  # * :address (Hash)
@@ -553,8 +555,8 @@ module CandidApiClient
553
555
  # initial_referring_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, qualifier: DQ, first_name: "string", last_name: "string", organization_name: "string" },
554
556
  # supervising_provider: { npi: "string", taxonomy_code: "string", 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", organization_name: "string" },
555
557
  # 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" },
556
- # 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 }, 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 },
557
- # 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 }, 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 },
558
+ # 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
+ # 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 },
558
560
  # prior_authorization_number: "string",
559
561
  # responsible_party: INSURANCE_PAY,
560
562
  # diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
@@ -858,6 +860,7 @@ module CandidApiClient
858
860
  # * :plan_name (String)
859
861
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
860
862
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
863
+ # * :payer_plan_group_id (String)
861
864
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
862
865
  # * :date_of_birth (Date)
863
866
  # * :address (Hash)
@@ -884,6 +887,7 @@ module CandidApiClient
884
887
  # * :plan_name (String)
885
888
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
886
889
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
890
+ # * :payer_plan_group_id (String)
887
891
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
888
892
  # * :date_of_birth (Date)
889
893
  # * :address (Hash)
@@ -1544,6 +1548,7 @@ module CandidApiClient
1544
1548
  # * :plan_name (String)
1545
1549
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
1546
1550
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
1551
+ # * :payer_plan_group_id (String)
1547
1552
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
1548
1553
  # * :date_of_birth (Date)
1549
1554
  # * :address (Hash)
@@ -1570,6 +1575,7 @@ module CandidApiClient
1570
1575
  # * :plan_name (String)
1571
1576
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
1572
1577
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
1578
+ # * :payer_plan_group_id (String)
1573
1579
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
1574
1580
  # * :date_of_birth (Date)
1575
1581
  # * :address (Hash)
@@ -1689,8 +1695,8 @@ module CandidApiClient
1689
1695
  # initial_referring_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, qualifier: DQ, first_name: "string", last_name: "string", organization_name: "string" },
1690
1696
  # supervising_provider: { npi: "string", taxonomy_code: "string", 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", organization_name: "string" },
1691
1697
  # 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" },
1692
- # 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 }, 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 },
1693
- # 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 }, 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 },
1698
+ # 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
+ # 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 },
1694
1700
  # prior_authorization_number: "string",
1695
1701
  # responsible_party: INSURANCE_PAY,
1696
1702
  # diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
@@ -1998,6 +2004,7 @@ module CandidApiClient
1998
2004
  # * :plan_name (String)
1999
2005
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
2000
2006
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
2007
+ # * :payer_plan_group_id (String)
2001
2008
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
2002
2009
  # * :date_of_birth (Date)
2003
2010
  # * :address (Hash)
@@ -2024,6 +2031,7 @@ module CandidApiClient
2024
2031
  # * :plan_name (String)
2025
2032
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
2026
2033
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
2034
+ # * :payer_plan_group_id (String)
2027
2035
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
2028
2036
  # * :date_of_birth (Date)
2029
2037
  # * :address (Hash)
@@ -0,0 +1,77 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module CandidApiClient
7
+ module Encounters
8
+ module V4
9
+ module Types
10
+ class PayerPlanGroupPayerDoesNotMatchInsuranceCardError
11
+ # @return [String]
12
+ attr_reader :payer_plan_group_payer_uuid
13
+ # @return [String]
14
+ attr_reader :insurance_card_payer_uuid
15
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
16
+ attr_reader :additional_properties
17
+ # @return [Object]
18
+ attr_reader :_field_set
19
+ protected :_field_set
20
+
21
+ OMIT = Object.new
22
+
23
+ # @param payer_plan_group_payer_uuid [String]
24
+ # @param insurance_card_payer_uuid [String]
25
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
+ # @return [CandidApiClient::Encounters::V4::Types::PayerPlanGroupPayerDoesNotMatchInsuranceCardError]
27
+ def initialize(payer_plan_group_payer_uuid:, insurance_card_payer_uuid: OMIT, additional_properties: nil)
28
+ @payer_plan_group_payer_uuid = payer_plan_group_payer_uuid
29
+ @insurance_card_payer_uuid = insurance_card_payer_uuid if insurance_card_payer_uuid != OMIT
30
+ @additional_properties = additional_properties
31
+ @_field_set = {
32
+ "payer_plan_group_payer_uuid": payer_plan_group_payer_uuid,
33
+ "insurance_card_payer_uuid": insurance_card_payer_uuid
34
+ }.reject do |_k, v|
35
+ v == OMIT
36
+ end
37
+ end
38
+
39
+ # Deserialize a JSON object to an instance of
40
+ # PayerPlanGroupPayerDoesNotMatchInsuranceCardError
41
+ #
42
+ # @param json_object [String]
43
+ # @return [CandidApiClient::Encounters::V4::Types::PayerPlanGroupPayerDoesNotMatchInsuranceCardError]
44
+ def self.from_json(json_object:)
45
+ struct = JSON.parse(json_object, object_class: OpenStruct)
46
+ payer_plan_group_payer_uuid = struct["payer_plan_group_payer_uuid"]
47
+ insurance_card_payer_uuid = struct["insurance_card_payer_uuid"]
48
+ new(
49
+ payer_plan_group_payer_uuid: payer_plan_group_payer_uuid,
50
+ insurance_card_payer_uuid: insurance_card_payer_uuid,
51
+ additional_properties: struct
52
+ )
53
+ end
54
+
55
+ # Serialize an instance of PayerPlanGroupPayerDoesNotMatchInsuranceCardError to a
56
+ # JSON object
57
+ #
58
+ # @return [String]
59
+ def to_json(*_args)
60
+ @_field_set&.to_json
61
+ end
62
+
63
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
64
+ # hash and check each fields type against the current object's property
65
+ # definitions.
66
+ #
67
+ # @param obj [Object]
68
+ # @return [Void]
69
+ def self.validate_raw(obj:)
70
+ obj.payer_plan_group_payer_uuid.is_a?(String) != false || raise("Passed value for field obj.payer_plan_group_payer_uuid is not the expected type, validation failed.")
71
+ obj.insurance_card_payer_uuid&.is_a?(String) != false || raise("Passed value for field obj.insurance_card_payer_uuid is not the expected type, validation failed.")
72
+ end
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
@@ -93,6 +93,7 @@ module CandidApiClient
93
93
  # @param license_types [CandidApiClient::OrganizationProviders::V2::Types::LicenseType]
94
94
  # @param facility_type_codes [CandidApiClient::Commons::Types::FacilityTypeCode]
95
95
  # @param network_types [CandidApiClient::Commons::Types::NetworkType]
96
+ # @param payer_plan_group_ids [String]
96
97
  # @param cpt_code [String]
97
98
  # @param modifiers [CandidApiClient::Commons::Types::ProcedureModifier]
98
99
  # @param request_options [CandidApiClient::RequestOptions]
@@ -110,11 +111,12 @@ module CandidApiClient
110
111
  # license_types: MD,
111
112
  # facility_type_codes: PHARMACY,
112
113
  # network_types: PPO,
114
+ # payer_plan_group_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
113
115
  # cpt_code: "string",
114
116
  # modifiers: TWENTY_TWO
115
117
  # )
116
118
  def get_multi(page_token: nil, limit: nil, active_date: nil, payer_uuid: nil,
117
- organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, cpt_code: nil, modifiers: nil, request_options: nil)
119
+ organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, payer_plan_group_ids: nil, cpt_code: nil, modifiers: nil, request_options: nil)
118
120
  response = @request_client.conn.get do |req|
119
121
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
120
122
  req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
@@ -135,6 +137,7 @@ module CandidApiClient
135
137
  "license_types": license_types,
136
138
  "facility_type_codes": facility_type_codes,
137
139
  "network_types": network_types,
140
+ "payer_plan_group_ids": payer_plan_group_ids,
138
141
  "cpt_code": cpt_code,
139
142
  "modifiers": modifiers
140
143
  }.compact
@@ -158,6 +161,7 @@ module CandidApiClient
158
161
  # @param license_types [CandidApiClient::OrganizationProviders::V2::Types::LicenseType]
159
162
  # @param facility_type_codes [CandidApiClient::Commons::Types::FacilityTypeCode]
160
163
  # @param network_types [CandidApiClient::Commons::Types::NetworkType]
164
+ # @param payer_plan_group_ids [String]
161
165
  # @param cpt_code [String]
162
166
  # @param modifiers [CandidApiClient::Commons::Types::ProcedureModifier]
163
167
  # @param request_options [CandidApiClient::RequestOptions]
@@ -175,11 +179,12 @@ module CandidApiClient
175
179
  # license_types: MD,
176
180
  # facility_type_codes: PHARMACY,
177
181
  # network_types: PPO,
182
+ # payer_plan_group_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
178
183
  # cpt_code: "string",
179
184
  # modifiers: TWENTY_TWO
180
185
  # )
181
186
  def get_unique_values_for_dimension(pivot_dimension:, page_token: nil, limit: nil, payer_uuid: nil,
182
- organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, cpt_code: nil, modifiers: nil, request_options: nil)
187
+ organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, payer_plan_group_ids: nil, cpt_code: nil, modifiers: nil, request_options: nil)
183
188
  response = @request_client.conn.get do |req|
184
189
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
185
190
  req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
@@ -200,6 +205,7 @@ module CandidApiClient
200
205
  "license_types": license_types,
201
206
  "facility_type_codes": facility_type_codes,
202
207
  "network_types": network_types,
208
+ "payer_plan_group_ids": payer_plan_group_ids,
203
209
  "cpt_code": cpt_code,
204
210
  "modifiers": modifiers
205
211
  }.compact
@@ -444,6 +450,7 @@ module CandidApiClient
444
450
  # @param license_types [CandidApiClient::OrganizationProviders::V2::Types::LicenseType]
445
451
  # @param facility_type_codes [CandidApiClient::Commons::Types::FacilityTypeCode]
446
452
  # @param network_types [CandidApiClient::Commons::Types::NetworkType]
453
+ # @param payer_plan_group_ids [String]
447
454
  # @param cpt_code [String]
448
455
  # @param modifiers [CandidApiClient::Commons::Types::ProcedureModifier]
449
456
  # @param request_options [CandidApiClient::RequestOptions]
@@ -461,11 +468,12 @@ module CandidApiClient
461
468
  # license_types: MD,
462
469
  # facility_type_codes: PHARMACY,
463
470
  # network_types: PPO,
471
+ # payer_plan_group_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
464
472
  # cpt_code: "string",
465
473
  # modifiers: TWENTY_TWO
466
474
  # )
467
475
  def get_multi(page_token: nil, limit: nil, active_date: nil, payer_uuid: nil,
468
- organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, cpt_code: nil, modifiers: nil, request_options: nil)
476
+ organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, payer_plan_group_ids: nil, cpt_code: nil, modifiers: nil, request_options: nil)
469
477
  Async do
470
478
  response = @request_client.conn.get do |req|
471
479
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -487,6 +495,7 @@ module CandidApiClient
487
495
  "license_types": license_types,
488
496
  "facility_type_codes": facility_type_codes,
489
497
  "network_types": network_types,
498
+ "payer_plan_group_ids": payer_plan_group_ids,
490
499
  "cpt_code": cpt_code,
491
500
  "modifiers": modifiers
492
501
  }.compact
@@ -511,6 +520,7 @@ module CandidApiClient
511
520
  # @param license_types [CandidApiClient::OrganizationProviders::V2::Types::LicenseType]
512
521
  # @param facility_type_codes [CandidApiClient::Commons::Types::FacilityTypeCode]
513
522
  # @param network_types [CandidApiClient::Commons::Types::NetworkType]
523
+ # @param payer_plan_group_ids [String]
514
524
  # @param cpt_code [String]
515
525
  # @param modifiers [CandidApiClient::Commons::Types::ProcedureModifier]
516
526
  # @param request_options [CandidApiClient::RequestOptions]
@@ -528,11 +538,12 @@ module CandidApiClient
528
538
  # license_types: MD,
529
539
  # facility_type_codes: PHARMACY,
530
540
  # network_types: PPO,
541
+ # payer_plan_group_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
531
542
  # cpt_code: "string",
532
543
  # modifiers: TWENTY_TWO
533
544
  # )
534
545
  def get_unique_values_for_dimension(pivot_dimension:, page_token: nil, limit: nil, payer_uuid: nil,
535
- organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, cpt_code: nil, modifiers: nil, request_options: nil)
546
+ organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, payer_plan_group_ids: nil, cpt_code: nil, modifiers: nil, request_options: nil)
536
547
  Async do
537
548
  response = @request_client.conn.get do |req|
538
549
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -554,6 +565,7 @@ module CandidApiClient
554
565
  "license_types": license_types,
555
566
  "facility_type_codes": facility_type_codes,
556
567
  "network_types": network_types,
568
+ "payer_plan_group_ids": payer_plan_group_ids,
557
569
  "cpt_code": cpt_code,
558
570
  "modifiers": modifiers
559
571
  }.compact
@@ -9,6 +9,7 @@ require_relative "match_modifiers"
9
9
  require_relative "match_license_type"
10
10
  require_relative "match_facility_type_code"
11
11
  require_relative "match_network_types"
12
+ require_relative "match_payer_plan_groups"
12
13
  require "ostruct"
13
14
  require "json"
14
15
 
@@ -36,6 +37,8 @@ module CandidApiClient
36
37
  attr_reader :facility_type_code
37
38
  # @return [CandidApiClient::FeeSchedules::V3::Types::MatchNetworkTypes]
38
39
  attr_reader :network_types
40
+ # @return [CandidApiClient::FeeSchedules::V3::Types::MatchPayerPlanGroups]
41
+ attr_reader :payer_plan_groups
39
42
  # @return [OpenStruct] Additional properties unmapped to the current class definition
40
43
  attr_reader :additional_properties
41
44
  # @return [Object]
@@ -53,10 +56,11 @@ module CandidApiClient
53
56
  # @param license_type [CandidApiClient::FeeSchedules::V3::Types::MatchLicenseType]
54
57
  # @param facility_type_code [CandidApiClient::FeeSchedules::V3::Types::MatchFacilityTypeCode]
55
58
  # @param network_types [CandidApiClient::FeeSchedules::V3::Types::MatchNetworkTypes]
59
+ # @param payer_plan_groups [CandidApiClient::FeeSchedules::V3::Types::MatchPayerPlanGroups]
56
60
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
57
61
  # @return [CandidApiClient::FeeSchedules::V3::Types::DimensionMatch]
58
62
  def initialize(payer:, geography:, organization_billing_provider:, date_of_service:, cpt_code:, modifiers:,
59
- license_type:, facility_type_code:, network_types:, additional_properties: nil)
63
+ license_type:, facility_type_code:, network_types:, payer_plan_groups:, additional_properties: nil)
60
64
  @payer = payer
61
65
  @geography = geography
62
66
  @organization_billing_provider = organization_billing_provider
@@ -66,6 +70,7 @@ module CandidApiClient
66
70
  @license_type = license_type
67
71
  @facility_type_code = facility_type_code
68
72
  @network_types = network_types
73
+ @payer_plan_groups = payer_plan_groups
69
74
  @additional_properties = additional_properties
70
75
  @_field_set = {
71
76
  "payer": payer,
@@ -76,7 +81,8 @@ module CandidApiClient
76
81
  "modifiers": modifiers,
77
82
  "license_type": license_type,
78
83
  "facility_type_code": facility_type_code,
79
- "network_types": network_types
84
+ "network_types": network_types,
85
+ "payer_plan_groups": payer_plan_groups
80
86
  }
81
87
  end
82
88
 
@@ -141,6 +147,12 @@ module CandidApiClient
141
147
  network_types = parsed_json["network_types"].to_json
142
148
  network_types = CandidApiClient::FeeSchedules::V3::Types::MatchNetworkTypes.from_json(json_object: network_types)
143
149
  end
150
+ if parsed_json["payer_plan_groups"].nil?
151
+ payer_plan_groups = nil
152
+ else
153
+ payer_plan_groups = parsed_json["payer_plan_groups"].to_json
154
+ payer_plan_groups = CandidApiClient::FeeSchedules::V3::Types::MatchPayerPlanGroups.from_json(json_object: payer_plan_groups)
155
+ end
144
156
  new(
145
157
  payer: payer,
146
158
  geography: geography,
@@ -151,6 +163,7 @@ module CandidApiClient
151
163
  license_type: license_type,
152
164
  facility_type_code: facility_type_code,
153
165
  network_types: network_types,
166
+ payer_plan_groups: payer_plan_groups,
154
167
  additional_properties: struct
155
168
  )
156
169
  end
@@ -178,6 +191,7 @@ module CandidApiClient
178
191
  CandidApiClient::FeeSchedules::V3::Types::MatchLicenseType.validate_raw(obj: obj.license_type)
179
192
  CandidApiClient::FeeSchedules::V3::Types::MatchFacilityTypeCode.validate_raw(obj: obj.facility_type_code)
180
193
  CandidApiClient::FeeSchedules::V3::Types::MatchNetworkTypes.validate_raw(obj: obj.network_types)
194
+ CandidApiClient::FeeSchedules::V3::Types::MatchPayerPlanGroups.validate_raw(obj: obj.payer_plan_groups)
181
195
  end
182
196
  end
183
197
  end
@@ -10,7 +10,8 @@ module CandidApiClient
10
10
  module Types
11
11
  # Dimension values that qualify a rate. For the optional dimensions, a null value
12
12
  # signifies "all apply". For set-type dimensions, an empty set signifies "all
13
- # apply".
13
+ # apply". Only one of, but not both, of `network_types` and `payer_plan_group_id`
14
+ # may be populated.
14
15
  class Dimensions
15
16
  # @return [String]
16
17
  attr_reader :payer_uuid
@@ -26,6 +27,8 @@ module CandidApiClient
26
27
  attr_reader :facility_type_codes
27
28
  # @return [Set<CandidApiClient::Commons::Types::NetworkType>]
28
29
  attr_reader :network_types
30
+ # @return [Set<String>]
31
+ attr_reader :payer_plan_group_ids
29
32
  # @return [String]
30
33
  attr_reader :cpt_code
31
34
  # @return [Set<CandidApiClient::Commons::Types::ProcedureModifier>]
@@ -45,12 +48,13 @@ module CandidApiClient
45
48
  # @param license_types [Set<CandidApiClient::OrganizationProviders::V2::Types::LicenseType>]
46
49
  # @param facility_type_codes [Set<CandidApiClient::Commons::Types::FacilityTypeCode>]
47
50
  # @param network_types [Set<CandidApiClient::Commons::Types::NetworkType>]
51
+ # @param payer_plan_group_ids [Set<String>]
48
52
  # @param cpt_code [String]
49
53
  # @param modifiers [Set<CandidApiClient::Commons::Types::ProcedureModifier>]
50
54
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
51
55
  # @return [CandidApiClient::FeeSchedules::V3::Types::Dimensions]
52
56
  def initialize(payer_uuid:, organization_billing_provider_id:, states:, zip_codes:, license_types:,
53
- facility_type_codes:, network_types:, cpt_code:, modifiers:, additional_properties: nil)
57
+ facility_type_codes:, network_types:, payer_plan_group_ids:, cpt_code:, modifiers:, additional_properties: nil)
54
58
  @payer_uuid = payer_uuid
55
59
  @organization_billing_provider_id = organization_billing_provider_id
56
60
  @states = states
@@ -58,6 +62,7 @@ module CandidApiClient
58
62
  @license_types = license_types
59
63
  @facility_type_codes = facility_type_codes
60
64
  @network_types = network_types
65
+ @payer_plan_group_ids = payer_plan_group_ids
61
66
  @cpt_code = cpt_code
62
67
  @modifiers = modifiers
63
68
  @additional_properties = additional_properties
@@ -69,6 +74,7 @@ module CandidApiClient
69
74
  "license_types": license_types,
70
75
  "facility_type_codes": facility_type_codes,
71
76
  "network_types": network_types,
77
+ "payer_plan_group_ids": payer_plan_group_ids,
72
78
  "cpt_code": cpt_code,
73
79
  "modifiers": modifiers
74
80
  }
@@ -113,6 +119,12 @@ module CandidApiClient
113
119
  network_types = parsed_json["network_types"].to_json
114
120
  network_types = Set.new(network_types)
115
121
  end
122
+ if parsed_json["payer_plan_group_ids"].nil?
123
+ payer_plan_group_ids = nil
124
+ else
125
+ payer_plan_group_ids = parsed_json["payer_plan_group_ids"].to_json
126
+ payer_plan_group_ids = Set.new(payer_plan_group_ids)
127
+ end
116
128
  cpt_code = struct["cpt_code"]
117
129
  if parsed_json["modifiers"].nil?
118
130
  modifiers = nil
@@ -128,6 +140,7 @@ module CandidApiClient
128
140
  license_types: license_types,
129
141
  facility_type_codes: facility_type_codes,
130
142
  network_types: network_types,
143
+ payer_plan_group_ids: payer_plan_group_ids,
131
144
  cpt_code: cpt_code,
132
145
  modifiers: modifiers,
133
146
  additional_properties: struct
@@ -155,6 +168,7 @@ module CandidApiClient
155
168
  obj.license_types.is_a?(Set) != false || raise("Passed value for field obj.license_types is not the expected type, validation failed.")
156
169
  obj.facility_type_codes.is_a?(Set) != false || raise("Passed value for field obj.facility_type_codes is not the expected type, validation failed.")
157
170
  obj.network_types.is_a?(Set) != false || raise("Passed value for field obj.network_types is not the expected type, validation failed.")
171
+ obj.payer_plan_group_ids.is_a?(Set) != false || raise("Passed value for field obj.payer_plan_group_ids is not the expected type, validation failed.")
158
172
  obj.cpt_code.is_a?(String) != false || raise("Passed value for field obj.cpt_code is not the expected type, validation failed.")
159
173
  obj.modifiers.is_a?(Set) != false || raise("Passed value for field obj.modifiers is not the expected type, validation failed.")
160
174
  end
@@ -0,0 +1,85 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "set"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module CandidApiClient
8
+ module FeeSchedules
9
+ module V3
10
+ module Types
11
+ # Match information for a payer plan group
12
+ class MatchPayerPlanGroups
13
+ # @return [Set<String>]
14
+ attr_reader :value
15
+ # @return [Boolean]
16
+ attr_reader :match
17
+ # @return [String]
18
+ attr_reader :explanation
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 value [Set<String>]
28
+ # @param match [Boolean]
29
+ # @param explanation [String]
30
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
31
+ # @return [CandidApiClient::FeeSchedules::V3::Types::MatchPayerPlanGroups]
32
+ def initialize(value:, match:, explanation:, additional_properties: nil)
33
+ @value = value
34
+ @match = match
35
+ @explanation = explanation
36
+ @additional_properties = additional_properties
37
+ @_field_set = { "value": value, "match": match, "explanation": explanation }
38
+ end
39
+
40
+ # Deserialize a JSON object to an instance of MatchPayerPlanGroups
41
+ #
42
+ # @param json_object [String]
43
+ # @return [CandidApiClient::FeeSchedules::V3::Types::MatchPayerPlanGroups]
44
+ def self.from_json(json_object:)
45
+ struct = JSON.parse(json_object, object_class: OpenStruct)
46
+ parsed_json = JSON.parse(json_object)
47
+ if parsed_json["value"].nil?
48
+ value = nil
49
+ else
50
+ value = parsed_json["value"].to_json
51
+ value = Set.new(value)
52
+ end
53
+ match = struct["match"]
54
+ explanation = struct["explanation"]
55
+ new(
56
+ value: value,
57
+ match: match,
58
+ explanation: explanation,
59
+ additional_properties: struct
60
+ )
61
+ end
62
+
63
+ # Serialize an instance of MatchPayerPlanGroups to a JSON object
64
+ #
65
+ # @return [String]
66
+ def to_json(*_args)
67
+ @_field_set&.to_json
68
+ end
69
+
70
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
71
+ # hash and check each fields type against the current object's property
72
+ # definitions.
73
+ #
74
+ # @param obj [Object]
75
+ # @return [Void]
76
+ def self.validate_raw(obj:)
77
+ obj.value.is_a?(Set) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
78
+ obj.match.is_a?(Boolean) != false || raise("Passed value for field obj.match is not the expected type, validation failed.")
79
+ obj.explanation.is_a?(String) != false || raise("Passed value for field obj.explanation is not the expected type, validation failed.")
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end