candidhealth 0.39.4 → 0.39.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 572605bf76573ce2d8d9eaccd88180433c5be33fa943f7261688ace20469bbe6
4
- data.tar.gz: 544866f8416241becd4a6e5074020eee68eeac084e86f1f479bfb4b90ecc78ab
3
+ metadata.gz: 896d5796a5f736d6e36dfc1d1f36d661515f8d64bd241445bd8014773bf07ec3
4
+ data.tar.gz: 58914250d2b0c91dc1ad4d5d90f164321c42518f86fd65ecb1887113df56bf39
5
5
  SHA512:
6
- metadata.gz: f2e391cc83792d6344b8887a3b26f003d6178fc63174d569b709bbe8eaea0a47d6baff7d2e219f5c01702fdc8c8b597fd6a14a84b7024c59ecbfa1e91383395a
7
- data.tar.gz: 7936a2bc0e3ec043357ef1f32f8e652fa97c0292352c6f8ef11cda87e325318b5188f61f7c03d282337c9c7929a1df6c8988bcaef90d12e2b4f28f72988061c6
6
+ metadata.gz: fb43ac7ebddee0182ba94b038c4fb221f6d0a64a91b61b7f8c4035a2337ce4fd1e71587c4114441bc9cacbdc1614d65552cdeff19aeedb1c3b5ec0ddd20881b3
7
+ data.tar.gz: 4c94c53956fd089f8d5e563394101651ebb2cc8294140d6b38388b1875b476386afded7baf896eb218b0ba55dfbbfde43e458f13d143e8eae4c8b7ee3d0b8c14
@@ -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)
@@ -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" }],
@@ -789,161 +791,6 @@ module CandidApiClient
789
791
  CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
790
792
  end
791
793
 
792
- # Create an encounter from a pre-encounter patient and appointment. This endpoint
793
- # is intended to be used by consumers who are managing
794
- # patients and appointments in the pre-encounter service and is currently under
795
- # development. Consumers who are not taking advantage
796
- # of the pre-encounter service should use the standard create endpoint.
797
- # The endpoint will create an encounter from the provided fields, pulling
798
- # information from the provided patient and appointment objects
799
- # where applicable. In particular, the following fields are populated from the
800
- # patient and appointment objects:
801
- # - Patient
802
- # - Referring Provider
803
- # - Subscriber Primary
804
- # - Subscriber Secondary
805
- # - Referral Number
806
- # - Responsible Party
807
- # - Guarantor
808
- # Utilizing this endpoint opts you into automatic updating of the encounter when
809
- # the patient or appointment is updated, assuming the
810
- # encounter has not already been submitted or adjudicated.
811
- #
812
- # @param request [Hash] Request of type CandidApiClient::Encounters::V4::Types::EncounterCreateFromPreEncounter, as a Hash
813
- # * :pre_encounter_patient_id (String)
814
- # * :pre_encounter_appointment_ids (Array<String>)
815
- # * :billing_provider (Hash)
816
- # * :address (Hash)
817
- # * :zip_plus_four_code (String)
818
- # * :address_1 (String)
819
- # * :address_2 (String)
820
- # * :city (String)
821
- # * :state (CandidApiClient::Commons::Types::State)
822
- # * :zip_code (String)
823
- # * :tax_id (String)
824
- # * :npi (String)
825
- # * :taxonomy_code (String)
826
- # * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
827
- # * :first_name (String)
828
- # * :last_name (String)
829
- # * :organization_name (String)
830
- # * :rendering_provider (Hash)
831
- # * :npi (String)
832
- # * :taxonomy_code (String)
833
- # * :address (Hash)
834
- # * :zip_plus_four_code (String)
835
- # * :address_1 (String)
836
- # * :address_2 (String)
837
- # * :city (String)
838
- # * :state (CandidApiClient::Commons::Types::State)
839
- # * :zip_code (String)
840
- # * :first_name (String)
841
- # * :last_name (String)
842
- # * :organization_name (String)
843
- # * :initial_referring_provider (Hash)
844
- # * :npi (String)
845
- # * :taxonomy_code (String)
846
- # * :address (Hash)
847
- # * :zip_plus_four_code (String)
848
- # * :address_1 (String)
849
- # * :address_2 (String)
850
- # * :city (String)
851
- # * :state (CandidApiClient::Commons::Types::State)
852
- # * :zip_code (String)
853
- # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
854
- # * :first_name (String)
855
- # * :last_name (String)
856
- # * :organization_name (String)
857
- # * :supervising_provider (Hash)
858
- # * :npi (String)
859
- # * :taxonomy_code (String)
860
- # * :address (Hash)
861
- # * :zip_plus_four_code (String)
862
- # * :address_1 (String)
863
- # * :address_2 (String)
864
- # * :city (String)
865
- # * :state (CandidApiClient::Commons::Types::State)
866
- # * :zip_code (String)
867
- # * :first_name (String)
868
- # * :last_name (String)
869
- # * :organization_name (String)
870
- # * :service_facility (Hash)
871
- # * :organization_name (String)
872
- # * :npi (String)
873
- # * :address (Hash)
874
- # * :zip_plus_four_code (String)
875
- # * :address_1 (String)
876
- # * :address_2 (String)
877
- # * :city (String)
878
- # * :state (CandidApiClient::Commons::Types::State)
879
- # * :zip_code (String)
880
- # * :secondary_identification (String)
881
- # * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>)
882
- # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
883
- # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
884
- # * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
885
- # * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
886
- # * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
887
- # * :external_claim_submission (Hash)
888
- # * :claim_created_at (DateTime)
889
- # * :patient_control_number (String)
890
- # * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
891
- # * :tag_ids (Array<String>)
892
- # * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
893
- # * :external_id (String)
894
- # * :date_of_service (Date)
895
- # * :end_date_of_service (Date)
896
- # * :patient_authorized_release (Boolean)
897
- # * :benefits_assigned_to_provider (Boolean)
898
- # * :provider_accepts_assignment (Boolean)
899
- # * :appointment_type (String)
900
- # * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
901
- # * :vitals (Hash)
902
- # * :height_in (Integer)
903
- # * :weight_lbs (Integer)
904
- # * :blood_pressure_systolic_mmhg (Integer)
905
- # * :blood_pressure_diastolic_mmhg (Integer)
906
- # * :body_temperature_f (Float)
907
- # * :hemoglobin_gdl (Float)
908
- # * :hematocrit_pct (Float)
909
- # * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
910
- # * :pay_to_address (Hash)
911
- # * :zip_plus_four_code (String)
912
- # * :address_1 (String)
913
- # * :address_2 (String)
914
- # * :city (String)
915
- # * :state (CandidApiClient::Commons::Types::State)
916
- # * :zip_code (String)
917
- # * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
918
- # * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
919
- # * :additional_information (String)
920
- # * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
921
- # * :admission_date (Date)
922
- # * :discharge_date (Date)
923
- # * :onset_of_current_illness_or_symptom_date (Date)
924
- # * :last_menstrual_period_date (Date)
925
- # * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
926
- # @param request_options [CandidApiClient::RequestOptions]
927
- # @return [CandidApiClient::Encounters::V4::Types::Encounter]
928
- # @example
929
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
930
- # api.encounters.v_4.create_from_pre_encounter_patient_internal(request: { pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], billing_provider: { address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, tax_id: "string", npi: "string", taxonomy_code: "string", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER, first_name: "string", last_name: "string", organization_name: "string" }, rendering_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" }, 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" }, 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" }, 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" }, diagnoses: [{ name: "string", code_type: ABF, code: "string" }], clinical_notes: [{ category: CLINICAL, notes: }], billing_notes: [{ text: "string" }], place_of_service_code: PHARMACY, patient_histories: [{ category: PRESENT_ILLNESS, questions: [{ id: "6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176", text: "Do you have any allergies?", responses: [{ response: "No allergies", follow_ups: [{ id: "4F3D57F9-AC94-49D6-87E4-E804B709917A", text: "Do you have any allergies?", response: "No allergies" }] }] }] }], service_lines: [{ procedure_code: "string", quantity: "string", units: MJ, diagnosis_pointers: }], external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, tag_ids: ["string"], schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }], external_id: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, appointment_type: "string", existing_medications: [{ name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }], vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, interventions: [{ name: "Physical Therapy Session", category: LIFESTYLE, description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.", medication: { name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }, labs: [{ name: "Genetic Health Labs", code: "GH12345", code_type: QUEST }] }], pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, synchronicity: SYNCHRONOUS, billable_status: BILLABLE, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1 })
931
- def create_from_pre_encounter_patient_internal(request:, request_options: nil)
932
- response = @request_client.conn.post do |req|
933
- req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
934
- req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
935
- req.headers = {
936
- **(req.headers || {}),
937
- **@request_client.get_headers,
938
- **(request_options&.additional_headers || {})
939
- }.compact
940
- req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
941
- req.url "#{@request_client.get_url(environment: CandidApi,
942
- request_options: request_options)}/api/encounters/v4/create-from-pre-encounter-internal"
943
- end
944
- CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
945
- end
946
-
947
794
  # @param encounter_id [String]
948
795
  # @param benefits_assigned_to_provider [Boolean] Whether this patient has authorized insurance payments to be made to you, not
949
796
  # them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
@@ -1013,6 +860,7 @@ module CandidApiClient
1013
860
  # * :plan_name (String)
1014
861
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
1015
862
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
863
+ # * :payer_plan_group_id (String)
1016
864
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
1017
865
  # * :date_of_birth (Date)
1018
866
  # * :address (Hash)
@@ -1039,6 +887,7 @@ module CandidApiClient
1039
887
  # * :plan_name (String)
1040
888
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
1041
889
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
890
+ # * :payer_plan_group_id (String)
1042
891
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
1043
892
  # * :date_of_birth (Date)
1044
893
  # * :address (Hash)
@@ -1699,6 +1548,7 @@ module CandidApiClient
1699
1548
  # * :plan_name (String)
1700
1549
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
1701
1550
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
1551
+ # * :payer_plan_group_id (String)
1702
1552
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
1703
1553
  # * :date_of_birth (Date)
1704
1554
  # * :address (Hash)
@@ -1725,6 +1575,7 @@ module CandidApiClient
1725
1575
  # * :plan_name (String)
1726
1576
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
1727
1577
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
1578
+ # * :payer_plan_group_id (String)
1728
1579
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
1729
1580
  # * :date_of_birth (Date)
1730
1581
  # * :address (Hash)
@@ -1844,8 +1695,8 @@ module CandidApiClient
1844
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" },
1845
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" },
1846
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" },
1847
- # 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 },
1848
- # 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 },
1849
1700
  # prior_authorization_number: "string",
1850
1701
  # responsible_party: INSURANCE_PAY,
1851
1702
  # diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
@@ -2084,163 +1935,6 @@ module CandidApiClient
2084
1935
  end
2085
1936
  end
2086
1937
 
2087
- # Create an encounter from a pre-encounter patient and appointment. This endpoint
2088
- # is intended to be used by consumers who are managing
2089
- # patients and appointments in the pre-encounter service and is currently under
2090
- # development. Consumers who are not taking advantage
2091
- # of the pre-encounter service should use the standard create endpoint.
2092
- # The endpoint will create an encounter from the provided fields, pulling
2093
- # information from the provided patient and appointment objects
2094
- # where applicable. In particular, the following fields are populated from the
2095
- # patient and appointment objects:
2096
- # - Patient
2097
- # - Referring Provider
2098
- # - Subscriber Primary
2099
- # - Subscriber Secondary
2100
- # - Referral Number
2101
- # - Responsible Party
2102
- # - Guarantor
2103
- # Utilizing this endpoint opts you into automatic updating of the encounter when
2104
- # the patient or appointment is updated, assuming the
2105
- # encounter has not already been submitted or adjudicated.
2106
- #
2107
- # @param request [Hash] Request of type CandidApiClient::Encounters::V4::Types::EncounterCreateFromPreEncounter, as a Hash
2108
- # * :pre_encounter_patient_id (String)
2109
- # * :pre_encounter_appointment_ids (Array<String>)
2110
- # * :billing_provider (Hash)
2111
- # * :address (Hash)
2112
- # * :zip_plus_four_code (String)
2113
- # * :address_1 (String)
2114
- # * :address_2 (String)
2115
- # * :city (String)
2116
- # * :state (CandidApiClient::Commons::Types::State)
2117
- # * :zip_code (String)
2118
- # * :tax_id (String)
2119
- # * :npi (String)
2120
- # * :taxonomy_code (String)
2121
- # * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
2122
- # * :first_name (String)
2123
- # * :last_name (String)
2124
- # * :organization_name (String)
2125
- # * :rendering_provider (Hash)
2126
- # * :npi (String)
2127
- # * :taxonomy_code (String)
2128
- # * :address (Hash)
2129
- # * :zip_plus_four_code (String)
2130
- # * :address_1 (String)
2131
- # * :address_2 (String)
2132
- # * :city (String)
2133
- # * :state (CandidApiClient::Commons::Types::State)
2134
- # * :zip_code (String)
2135
- # * :first_name (String)
2136
- # * :last_name (String)
2137
- # * :organization_name (String)
2138
- # * :initial_referring_provider (Hash)
2139
- # * :npi (String)
2140
- # * :taxonomy_code (String)
2141
- # * :address (Hash)
2142
- # * :zip_plus_four_code (String)
2143
- # * :address_1 (String)
2144
- # * :address_2 (String)
2145
- # * :city (String)
2146
- # * :state (CandidApiClient::Commons::Types::State)
2147
- # * :zip_code (String)
2148
- # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
2149
- # * :first_name (String)
2150
- # * :last_name (String)
2151
- # * :organization_name (String)
2152
- # * :supervising_provider (Hash)
2153
- # * :npi (String)
2154
- # * :taxonomy_code (String)
2155
- # * :address (Hash)
2156
- # * :zip_plus_four_code (String)
2157
- # * :address_1 (String)
2158
- # * :address_2 (String)
2159
- # * :city (String)
2160
- # * :state (CandidApiClient::Commons::Types::State)
2161
- # * :zip_code (String)
2162
- # * :first_name (String)
2163
- # * :last_name (String)
2164
- # * :organization_name (String)
2165
- # * :service_facility (Hash)
2166
- # * :organization_name (String)
2167
- # * :npi (String)
2168
- # * :address (Hash)
2169
- # * :zip_plus_four_code (String)
2170
- # * :address_1 (String)
2171
- # * :address_2 (String)
2172
- # * :city (String)
2173
- # * :state (CandidApiClient::Commons::Types::State)
2174
- # * :zip_code (String)
2175
- # * :secondary_identification (String)
2176
- # * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>)
2177
- # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
2178
- # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
2179
- # * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
2180
- # * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
2181
- # * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
2182
- # * :external_claim_submission (Hash)
2183
- # * :claim_created_at (DateTime)
2184
- # * :patient_control_number (String)
2185
- # * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
2186
- # * :tag_ids (Array<String>)
2187
- # * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
2188
- # * :external_id (String)
2189
- # * :date_of_service (Date)
2190
- # * :end_date_of_service (Date)
2191
- # * :patient_authorized_release (Boolean)
2192
- # * :benefits_assigned_to_provider (Boolean)
2193
- # * :provider_accepts_assignment (Boolean)
2194
- # * :appointment_type (String)
2195
- # * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
2196
- # * :vitals (Hash)
2197
- # * :height_in (Integer)
2198
- # * :weight_lbs (Integer)
2199
- # * :blood_pressure_systolic_mmhg (Integer)
2200
- # * :blood_pressure_diastolic_mmhg (Integer)
2201
- # * :body_temperature_f (Float)
2202
- # * :hemoglobin_gdl (Float)
2203
- # * :hematocrit_pct (Float)
2204
- # * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
2205
- # * :pay_to_address (Hash)
2206
- # * :zip_plus_four_code (String)
2207
- # * :address_1 (String)
2208
- # * :address_2 (String)
2209
- # * :city (String)
2210
- # * :state (CandidApiClient::Commons::Types::State)
2211
- # * :zip_code (String)
2212
- # * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
2213
- # * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
2214
- # * :additional_information (String)
2215
- # * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
2216
- # * :admission_date (Date)
2217
- # * :discharge_date (Date)
2218
- # * :onset_of_current_illness_or_symptom_date (Date)
2219
- # * :last_menstrual_period_date (Date)
2220
- # * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
2221
- # @param request_options [CandidApiClient::RequestOptions]
2222
- # @return [CandidApiClient::Encounters::V4::Types::Encounter]
2223
- # @example
2224
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
2225
- # api.encounters.v_4.create_from_pre_encounter_patient_internal(request: { pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], billing_provider: { address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, tax_id: "string", npi: "string", taxonomy_code: "string", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER, first_name: "string", last_name: "string", organization_name: "string" }, rendering_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" }, 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" }, 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" }, 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" }, diagnoses: [{ name: "string", code_type: ABF, code: "string" }], clinical_notes: [{ category: CLINICAL, notes: }], billing_notes: [{ text: "string" }], place_of_service_code: PHARMACY, patient_histories: [{ category: PRESENT_ILLNESS, questions: [{ id: "6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176", text: "Do you have any allergies?", responses: [{ response: "No allergies", follow_ups: [{ id: "4F3D57F9-AC94-49D6-87E4-E804B709917A", text: "Do you have any allergies?", response: "No allergies" }] }] }] }], service_lines: [{ procedure_code: "string", quantity: "string", units: MJ, diagnosis_pointers: }], external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, tag_ids: ["string"], schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }], external_id: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, appointment_type: "string", existing_medications: [{ name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }], vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, interventions: [{ name: "Physical Therapy Session", category: LIFESTYLE, description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.", medication: { name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }, labs: [{ name: "Genetic Health Labs", code: "GH12345", code_type: QUEST }] }], pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, synchronicity: SYNCHRONOUS, billable_status: BILLABLE, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1 })
2226
- def create_from_pre_encounter_patient_internal(request:, request_options: nil)
2227
- Async do
2228
- response = @request_client.conn.post do |req|
2229
- req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
2230
- req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
2231
- req.headers = {
2232
- **(req.headers || {}),
2233
- **@request_client.get_headers,
2234
- **(request_options&.additional_headers || {})
2235
- }.compact
2236
- req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
2237
- req.url "#{@request_client.get_url(environment: CandidApi,
2238
- request_options: request_options)}/api/encounters/v4/create-from-pre-encounter-internal"
2239
- end
2240
- CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
2241
- end
2242
- end
2243
-
2244
1938
  # @param encounter_id [String]
2245
1939
  # @param benefits_assigned_to_provider [Boolean] Whether this patient has authorized insurance payments to be made to you, not
2246
1940
  # them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
@@ -2310,6 +2004,7 @@ module CandidApiClient
2310
2004
  # * :plan_name (String)
2311
2005
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
2312
2006
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
2007
+ # * :payer_plan_group_id (String)
2313
2008
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
2314
2009
  # * :date_of_birth (Date)
2315
2010
  # * :address (Hash)
@@ -2336,6 +2031,7 @@ module CandidApiClient
2336
2031
  # * :plan_name (String)
2337
2032
  # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
2338
2033
  # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
2034
+ # * :payer_plan_group_id (String)
2339
2035
  # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
2340
2036
  # * :date_of_birth (Date)
2341
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
@@ -34,6 +34,8 @@ module CandidApiClient
34
34
  attr_reader :plan_type
35
35
  # @return [CandidApiClient::Commons::Types::InsuranceTypeCode]
36
36
  attr_reader :insurance_type
37
+ # @return [String]
38
+ attr_reader :payer_plan_group_id
37
39
  # @return [OpenStruct] Additional properties unmapped to the current class definition
38
40
  attr_reader :additional_properties
39
41
  # @return [Object]
@@ -54,10 +56,11 @@ module CandidApiClient
54
56
  # @param plan_name [String] Box 11c on the CMS-1500 claim form.
55
57
  # @param plan_type [CandidApiClient::Commons::Types::SourceOfPaymentCode]
56
58
  # @param insurance_type [CandidApiClient::Commons::Types::InsuranceTypeCode]
59
+ # @param payer_plan_group_id [String]
57
60
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
58
61
  # @return [CandidApiClient::InsuranceCards::V2::Types::InsuranceCard]
59
62
  def initialize(insurance_card_id:, member_id:, payer_name:, payer_id:, rx_bin: OMIT, rx_pcn: OMIT,
60
- image_url_front: OMIT, image_url_back: OMIT, group_number: OMIT, plan_name: OMIT, plan_type: OMIT, insurance_type: OMIT, additional_properties: nil)
63
+ image_url_front: OMIT, image_url_back: OMIT, group_number: OMIT, plan_name: OMIT, plan_type: OMIT, insurance_type: OMIT, payer_plan_group_id: OMIT, additional_properties: nil)
61
64
  @insurance_card_id = insurance_card_id
62
65
  @member_id = member_id
63
66
  @payer_name = payer_name
@@ -70,6 +73,7 @@ module CandidApiClient
70
73
  @plan_name = plan_name if plan_name != OMIT
71
74
  @plan_type = plan_type if plan_type != OMIT
72
75
  @insurance_type = insurance_type if insurance_type != OMIT
76
+ @payer_plan_group_id = payer_plan_group_id if payer_plan_group_id != OMIT
73
77
  @additional_properties = additional_properties
74
78
  @_field_set = {
75
79
  "insurance_card_id": insurance_card_id,
@@ -83,7 +87,8 @@ module CandidApiClient
83
87
  "group_number": group_number,
84
88
  "plan_name": plan_name,
85
89
  "plan_type": plan_type,
86
- "insurance_type": insurance_type
90
+ "insurance_type": insurance_type,
91
+ "payer_plan_group_id": payer_plan_group_id
87
92
  }.reject do |_k, v|
88
93
  v == OMIT
89
94
  end
@@ -107,6 +112,7 @@ module CandidApiClient
107
112
  plan_name = struct["plan_name"]
108
113
  plan_type = struct["plan_type"]
109
114
  insurance_type = struct["insurance_type"]
115
+ payer_plan_group_id = struct["payer_plan_group_id"]
110
116
  new(
111
117
  insurance_card_id: insurance_card_id,
112
118
  member_id: member_id,
@@ -120,6 +126,7 @@ module CandidApiClient
120
126
  plan_name: plan_name,
121
127
  plan_type: plan_type,
122
128
  insurance_type: insurance_type,
129
+ payer_plan_group_id: payer_plan_group_id,
123
130
  additional_properties: struct
124
131
  )
125
132
  end
@@ -150,6 +157,7 @@ module CandidApiClient
150
157
  obj.plan_name&.is_a?(String) != false || raise("Passed value for field obj.plan_name is not the expected type, validation failed.")
151
158
  obj.plan_type&.is_a?(CandidApiClient::Commons::Types::SourceOfPaymentCode) != false || raise("Passed value for field obj.plan_type is not the expected type, validation failed.")
152
159
  obj.insurance_type&.is_a?(CandidApiClient::Commons::Types::InsuranceTypeCode) != false || raise("Passed value for field obj.insurance_type is not the expected type, validation failed.")
160
+ obj.payer_plan_group_id&.is_a?(String) != false || raise("Passed value for field obj.payer_plan_group_id is not the expected type, validation failed.")
153
161
  end
154
162
  end
155
163
  end
@@ -18,6 +18,8 @@ module CandidApiClient
18
18
  attr_reader :plan_type
19
19
  # @return [CandidApiClient::Commons::Types::InsuranceTypeCode]
20
20
  attr_reader :insurance_type
21
+ # @return [String]
22
+ attr_reader :payer_plan_group_id
21
23
  # @return [OpenStruct] Additional properties unmapped to the current class definition
22
24
  attr_reader :additional_properties
23
25
  # @return [Object]
@@ -30,20 +32,23 @@ module CandidApiClient
30
32
  # @param plan_name [String] Box 11c on the CMS-1500 claim form.
31
33
  # @param plan_type [CandidApiClient::Commons::Types::SourceOfPaymentCode]
32
34
  # @param insurance_type [CandidApiClient::Commons::Types::InsuranceTypeCode]
35
+ # @param payer_plan_group_id [String]
33
36
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
34
37
  # @return [CandidApiClient::InsuranceCards::V2::Types::InsuranceCardBase]
35
38
  def initialize(group_number: OMIT, plan_name: OMIT, plan_type: OMIT, insurance_type: OMIT,
36
- additional_properties: nil)
39
+ payer_plan_group_id: OMIT, additional_properties: nil)
37
40
  @group_number = group_number if group_number != OMIT
38
41
  @plan_name = plan_name if plan_name != OMIT
39
42
  @plan_type = plan_type if plan_type != OMIT
40
43
  @insurance_type = insurance_type if insurance_type != OMIT
44
+ @payer_plan_group_id = payer_plan_group_id if payer_plan_group_id != OMIT
41
45
  @additional_properties = additional_properties
42
46
  @_field_set = {
43
47
  "group_number": group_number,
44
48
  "plan_name": plan_name,
45
49
  "plan_type": plan_type,
46
- "insurance_type": insurance_type
50
+ "insurance_type": insurance_type,
51
+ "payer_plan_group_id": payer_plan_group_id
47
52
  }.reject do |_k, v|
48
53
  v == OMIT
49
54
  end
@@ -59,11 +64,13 @@ module CandidApiClient
59
64
  plan_name = struct["plan_name"]
60
65
  plan_type = struct["plan_type"]
61
66
  insurance_type = struct["insurance_type"]
67
+ payer_plan_group_id = struct["payer_plan_group_id"]
62
68
  new(
63
69
  group_number: group_number,
64
70
  plan_name: plan_name,
65
71
  plan_type: plan_type,
66
72
  insurance_type: insurance_type,
73
+ payer_plan_group_id: payer_plan_group_id,
67
74
  additional_properties: struct
68
75
  )
69
76
  end
@@ -86,6 +93,7 @@ module CandidApiClient
86
93
  obj.plan_name&.is_a?(String) != false || raise("Passed value for field obj.plan_name is not the expected type, validation failed.")
87
94
  obj.plan_type&.is_a?(CandidApiClient::Commons::Types::SourceOfPaymentCode) != false || raise("Passed value for field obj.plan_type is not the expected type, validation failed.")
88
95
  obj.insurance_type&.is_a?(CandidApiClient::Commons::Types::InsuranceTypeCode) != false || raise("Passed value for field obj.insurance_type is not the expected type, validation failed.")
96
+ obj.payer_plan_group_id&.is_a?(String) != false || raise("Passed value for field obj.payer_plan_group_id is not the expected type, validation failed.")
89
97
  end
90
98
  end
91
99
  end
@@ -35,6 +35,8 @@ module CandidApiClient
35
35
  attr_reader :plan_type
36
36
  # @return [CandidApiClient::Commons::Types::InsuranceTypeCode]
37
37
  attr_reader :insurance_type
38
+ # @return [String]
39
+ attr_reader :payer_plan_group_id
38
40
  # @return [OpenStruct] Additional properties unmapped to the current class definition
39
41
  attr_reader :additional_properties
40
42
  # @return [Object]
@@ -55,10 +57,11 @@ module CandidApiClient
55
57
  # @param plan_name [String] Box 11c on the CMS-1500 claim form.
56
58
  # @param plan_type [CandidApiClient::Commons::Types::SourceOfPaymentCode]
57
59
  # @param insurance_type [CandidApiClient::Commons::Types::InsuranceTypeCode]
60
+ # @param payer_plan_group_id [String]
58
61
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
59
62
  # @return [CandidApiClient::InsuranceCards::V2::Types::InsuranceCardCreate]
60
63
  def initialize(member_id:, payer_name:, payer_id:, rx_bin: OMIT, rx_pcn: OMIT, image_url_front: OMIT,
61
- image_url_back: OMIT, emr_payer_crosswalk: OMIT, group_number: OMIT, plan_name: OMIT, plan_type: OMIT, insurance_type: OMIT, additional_properties: nil)
64
+ image_url_back: OMIT, emr_payer_crosswalk: OMIT, group_number: OMIT, plan_name: OMIT, plan_type: OMIT, insurance_type: OMIT, payer_plan_group_id: OMIT, additional_properties: nil)
62
65
  @member_id = member_id
63
66
  @payer_name = payer_name
64
67
  @payer_id = payer_id
@@ -71,6 +74,7 @@ module CandidApiClient
71
74
  @plan_name = plan_name if plan_name != OMIT
72
75
  @plan_type = plan_type if plan_type != OMIT
73
76
  @insurance_type = insurance_type if insurance_type != OMIT
77
+ @payer_plan_group_id = payer_plan_group_id if payer_plan_group_id != OMIT
74
78
  @additional_properties = additional_properties
75
79
  @_field_set = {
76
80
  "member_id": member_id,
@@ -84,7 +88,8 @@ module CandidApiClient
84
88
  "group_number": group_number,
85
89
  "plan_name": plan_name,
86
90
  "plan_type": plan_type,
87
- "insurance_type": insurance_type
91
+ "insurance_type": insurance_type,
92
+ "payer_plan_group_id": payer_plan_group_id
88
93
  }.reject do |_k, v|
89
94
  v == OMIT
90
95
  end
@@ -108,6 +113,7 @@ module CandidApiClient
108
113
  plan_name = struct["plan_name"]
109
114
  plan_type = struct["plan_type"]
110
115
  insurance_type = struct["insurance_type"]
116
+ payer_plan_group_id = struct["payer_plan_group_id"]
111
117
  new(
112
118
  member_id: member_id,
113
119
  payer_name: payer_name,
@@ -121,6 +127,7 @@ module CandidApiClient
121
127
  plan_name: plan_name,
122
128
  plan_type: plan_type,
123
129
  insurance_type: insurance_type,
130
+ payer_plan_group_id: payer_plan_group_id,
124
131
  additional_properties: struct
125
132
  )
126
133
  end
@@ -151,6 +158,7 @@ module CandidApiClient
151
158
  obj.plan_name&.is_a?(String) != false || raise("Passed value for field obj.plan_name is not the expected type, validation failed.")
152
159
  obj.plan_type&.is_a?(CandidApiClient::Commons::Types::SourceOfPaymentCode) != false || raise("Passed value for field obj.plan_type is not the expected type, validation failed.")
153
160
  obj.insurance_type&.is_a?(CandidApiClient::Commons::Types::InsuranceTypeCode) != false || raise("Passed value for field obj.insurance_type is not the expected type, validation failed.")
161
+ obj.payer_plan_group_id&.is_a?(String) != false || raise("Passed value for field obj.payer_plan_group_id is not the expected type, validation failed.")
154
162
  end
155
163
  end
156
164
  end
@@ -73,6 +73,29 @@ module CandidApiClient
73
73
  MFTA = "MFTA"
74
74
  APCC = "APCC"
75
75
  DNP = "DNP"
76
+ AGNPBC = "AGNPBC"
77
+ ANP = "ANP"
78
+ FNPPP = "FNPPP"
79
+ LCSWR = "LCSWR"
80
+ ALC = "ALC"
81
+ RMFTI = "RMFTI"
82
+ LAMFT = "LAMFT"
83
+ LPCA = "LPCA"
84
+ LSWI = "LSWI"
85
+ CSW = "CSW"
86
+ CPC = "CPC"
87
+ LGMFT = "LGMFT"
88
+ LLPC = "LLPC"
89
+ PLPC = "PLPC"
90
+ PLMFT = "PLMFT"
91
+ LMHCA = "LMHCA"
92
+ CIT = "CIT"
93
+ CT = "CT"
94
+ MFT = "MFT"
95
+ LSW = "LSW"
96
+ PLMHP = "PLMHP"
97
+ PCMSW = "PCMSW"
98
+ LMHP = "LMHP"
76
99
  end
77
100
  end
78
101
  end
data/lib/requests.rb CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
43
43
 
44
44
  # @return [Hash{String => String}]
45
45
  def get_headers
46
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.4" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.6" }
47
47
  headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
48
48
  headers
49
49
  end
@@ -87,7 +87,7 @@ module CandidApiClient
87
87
 
88
88
  # @return [Hash{String => String}]
89
89
  def get_headers
90
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.4" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.6" }
91
91
  headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
92
92
  headers
93
93
  end
data/lib/types_export.rb CHANGED
@@ -94,6 +94,7 @@ require_relative "candidhealth/encounters/v_4/types/schema_unauthorized_access_e
94
94
  require_relative "candidhealth/encounters/v_4/types/value_does_not_match_key_type_error"
95
95
  require_relative "candidhealth/encounters/v_4/types/multiple_instances_for_schema_error"
96
96
  require_relative "candidhealth/encounters/v_4/types/schema_instance_validation_error"
97
+ require_relative "candidhealth/encounters/v_4/types/payer_plan_group_payer_does_not_match_insurance_card_error"
97
98
  require_relative "candidhealth/expected_network_status/v_1/types/expected_network_status"
98
99
  require_relative "candidhealth/expected_network_status/v_1/types/expected_network_status_response"
99
100
  require_relative "candidhealth/expected_network_status/v_2/types/line_of_business"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: candidhealth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.4
4
+ version: 0.39.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-10 00:00:00.000000000 Z
11
+ date: 2025-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday
@@ -247,6 +247,7 @@ files:
247
247
  - lib/candidhealth/encounters/v_4/types/note_category.rb
248
248
  - lib/candidhealth/encounters/v_4/types/patient_history_category.rb
249
249
  - lib/candidhealth/encounters/v_4/types/patient_history_category_enum.rb
250
+ - lib/candidhealth/encounters/v_4/types/payer_plan_group_payer_does_not_match_insurance_card_error.rb
250
251
  - lib/candidhealth/encounters/v_4/types/responsible_party_type.rb
251
252
  - lib/candidhealth/encounters/v_4/types/schema_does_not_exist_error.rb
252
253
  - lib/candidhealth/encounters/v_4/types/schema_instance_validation_error.rb