candidhealth 0.37.0 → 0.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/charge_capture/v_1/client.rb +63 -34
  3. data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +21 -10
  4. data/lib/candidhealth/encounters/v_4/client.rb +10 -4
  5. data/lib/candidhealth/encounters/v_4/types/invalid_tag_names_error_type.rb +60 -0
  6. data/lib/candidhealth/pre_encounter/common/types/resource_page.rb +13 -2
  7. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +96 -0
  8. data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefit_type.rb +2 -0
  9. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_level.rb +1 -0
  10. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value.rb +13 -2
  11. data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_coverage_details.rb +28 -2
  12. data/lib/candidhealth/pre_encounter/lists/v_1/types/appointment_list_page.rb +10 -2
  13. data/lib/candidhealth/pre_encounter/lists/v_1/types/patient_list_page.rb +10 -2
  14. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient_page.rb +10 -2
  15. data/lib/candidhealth/pre_encounter/tags/v_1/types/tag_page.rb +10 -2
  16. data/lib/candidhealth/service_facility/client.rb +2 -0
  17. data/lib/candidhealth/service_facility/types/encounter_service_facility.rb +19 -2
  18. data/lib/candidhealth/service_facility/types/encounter_service_facility_base.rb +23 -2
  19. data/lib/candidhealth/service_facility/types/encounter_service_facility_update.rb +23 -2
  20. data/lib/candidhealth/x_12/v_1/types/rarc.rb +3 -0
  21. data/lib/requests.rb +2 -2
  22. data/lib/types_export.rb +1 -1
  23. metadata +3 -3
  24. data/lib/candidhealth/commons/types/not_implemented_error_message.rb +0 -60
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d301f9e959a7fc2ae9d5ed40836c9e0b02485268ec8e63a277c058acea8e44f5
4
- data.tar.gz: d17c8bbc99f1b2317bd3eb18b323b84f06c752db4779fbcead070cb0fefbc679
3
+ metadata.gz: 66ecbeaebd8dadb70e95ca6e10183307c06b8be8ba82f72f070c782acb377e8f
4
+ data.tar.gz: 5a9b4676d8a0fd4a5e0f5f5e11a3ece135bfcfafaf96c78b3d2fd0ca516c76e9
5
5
  SHA512:
6
- metadata.gz: 78d774f2a984b68be910553cef2e65319b3cc5f645ca8dbc090acab309db4940c5c8ae4b44ce349174e9abc8fff0314b2b4251b6a413c22f7c2c3743a7a68629
7
- data.tar.gz: e7f1dde99f5b853818448c9ab1b962a6159d1016a9f885622fe46748d42acdc82dde21338d68581298a812c1d7bad9956b07eee682ebbfa4509b7629c9c4f241
6
+ metadata.gz: 68a096c503b4924b63fd63131111ed108ea3c9b89f02093a7fd3c6404ef2916caa1214d61917076805ea3384fe80f059bd287375e707c75e546d2d94d259b8c1
7
+ data.tar.gz: 588f239a88023ea50f1599057b66503f2af206e76e34689fb8a9076db2f20f7d876d872874b394b5217d517892636b5c855e7ebcf4c2daed27a9adb985281b8f
@@ -2,6 +2,7 @@
2
2
 
3
3
  require_relative "../../../requests"
4
4
  require_relative "types/charge_capture_data"
5
+ require "date"
5
6
  require_relative "types/charge_capture_status"
6
7
  require_relative "types/charge_capture"
7
8
  require_relative "types/charge_capture_page"
@@ -164,6 +165,7 @@ module CandidApiClient
164
165
  # * :city (String)
165
166
  # * :state (CandidApiClient::Commons::Types::State)
166
167
  # * :zip_code (String)
168
+ # * :secondary_identification (String)
167
169
  # * :guarantor (Hash)
168
170
  # * :first_name (String)
169
171
  # * :last_name (String)
@@ -236,12 +238,14 @@ module CandidApiClient
236
238
  # * :last_name (String)
237
239
  # * :organization_name (String)
238
240
  # * :referral_number (String)
239
- # @param encounter_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
241
+ # @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
240
242
  # internal encounter ID or a Dr. Chrono encounter ID. This field should not
241
243
  # contain PHI.
242
244
  # @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
243
245
  # system (e.g. the EHR visit page). Send full URL format for the external link
244
246
  # (e.g. https://emr_charge_capture_url.com/123).
247
+ # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
248
+ # This date must be the local date in the timezone where the service occurred.
245
249
  # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
246
250
  # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
247
251
  # @param request_options [CandidApiClient::RequestOptions]
@@ -250,13 +254,14 @@ module CandidApiClient
250
254
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
251
255
  # api.charge_capture.v_1.create(
252
256
  # data: { diagnoses: , interventions: , 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 }] }, service_lines: , patient_histories: , billing_notes: , benefits_assigned_to_provider: true, prior_authorization_number: "string", external_id: "string", date_of_service: DateTime.parse(2023-01-15), tag_ids: , clinical_notes: , 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" }, billable_status: BILLABLE, responsible_party: INSURANCE_PAY, provider_accepts_assignment: true, synchronicity: SYNCHRONOUS, place_of_service_code: PHARMACY, appointment_type: "string", end_date_of_service: DateTime.parse(2023-01-15), subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, 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, patient: { }, patient_authorized_release: true, schema_instances: , 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 }, existing_medications: , rendering_provider: { }, service_facility: { organization_name: "Test Organization", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, guarantor: { }, billing_provider: { }, supervising_provider: { }, referring_provider: { }, initial_referring_provider: { }, referral_number: "string" },
253
- # encounter_external_id: "string",
257
+ # charge_external_id: "string",
254
258
  # ehr_source_url: "string",
259
+ # date_of_service: DateTime.parse(2023-01-15),
255
260
  # patient_external_id: "string",
256
261
  # status: PLANNED
257
262
  # )
258
- def create(data:, encounter_external_id:, patient_external_id:, status:, ehr_source_url: nil,
259
- request_options: nil)
263
+ def create(data:, charge_external_id:, patient_external_id:, status:, ehr_source_url: nil,
264
+ date_of_service: nil, request_options: nil)
260
265
  response = @request_client.conn.post do |req|
261
266
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
262
267
  req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
@@ -268,8 +273,9 @@ module CandidApiClient
268
273
  req.body = {
269
274
  **(request_options&.additional_body_parameters || {}),
270
275
  data: data,
271
- encounter_external_id: encounter_external_id,
276
+ charge_external_id: charge_external_id,
272
277
  ehr_source_url: ehr_source_url,
278
+ date_of_service: date_of_service,
273
279
  patient_external_id: patient_external_id,
274
280
  status: status
275
281
  }.compact
@@ -442,6 +448,7 @@ module CandidApiClient
442
448
  # * :city (String)
443
449
  # * :state (CandidApiClient::Commons::Types::State)
444
450
  # * :zip_code (String)
451
+ # * :secondary_identification (String)
445
452
  # * :guarantor (Hash)
446
453
  # * :first_name (String)
447
454
  # * :last_name (String)
@@ -514,7 +521,7 @@ module CandidApiClient
514
521
  # * :last_name (String)
515
522
  # * :organization_name (String)
516
523
  # * :referral_number (String)
517
- # @param encounter_external_id [String] A client-specified unique ID to associate with this encounter;
524
+ # @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
518
525
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
519
526
  # This field should not contain PHI.
520
527
  # @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
@@ -523,6 +530,8 @@ module CandidApiClient
523
530
  # https://emr_charge_capture_url.com/123).
524
531
  # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
525
532
  # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
533
+ # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
534
+ # This date must be the local date in the timezone where the service occurred.
526
535
  # @param request_options [CandidApiClient::RequestOptions]
527
536
  # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
528
537
  # @example
@@ -530,13 +539,14 @@ module CandidApiClient
530
539
  # api.charge_capture.v_1.update(
531
540
  # charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
532
541
  # data: { diagnoses: , interventions: , 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 }] }, service_lines: , patient_histories: , billing_notes: , benefits_assigned_to_provider: true, prior_authorization_number: "string", external_id: "string", date_of_service: DateTime.parse(2023-01-15), tag_ids: , clinical_notes: , 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" }, billable_status: BILLABLE, responsible_party: INSURANCE_PAY, provider_accepts_assignment: true, synchronicity: SYNCHRONOUS, place_of_service_code: PHARMACY, appointment_type: "string", end_date_of_service: DateTime.parse(2023-01-15), subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, 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, patient: { }, patient_authorized_release: true, schema_instances: , 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 }, existing_medications: , rendering_provider: { }, service_facility: { organization_name: "Test Organization", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, guarantor: { }, billing_provider: { }, supervising_provider: { }, referring_provider: { }, initial_referring_provider: { }, referral_number: "string" },
533
- # encounter_external_id: "string",
542
+ # charge_external_id: "string",
534
543
  # ehr_source_url: "string",
535
544
  # patient_external_id: "string",
536
- # status: PLANNED
545
+ # status: PLANNED,
546
+ # date_of_service: DateTime.parse(2023-01-15)
537
547
  # )
538
- def update(charge_capture_id:, data: nil, encounter_external_id: nil, ehr_source_url: nil,
539
- patient_external_id: nil, status: nil, request_options: nil)
548
+ def update(charge_capture_id:, data: nil, charge_external_id: nil, ehr_source_url: nil,
549
+ patient_external_id: nil, status: nil, date_of_service: nil, request_options: nil)
540
550
  response = @request_client.conn.patch do |req|
541
551
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
542
552
  req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
@@ -548,10 +558,11 @@ module CandidApiClient
548
558
  req.body = {
549
559
  **(request_options&.additional_body_parameters || {}),
550
560
  data: data,
551
- encounter_external_id: encounter_external_id,
561
+ charge_external_id: charge_external_id,
552
562
  ehr_source_url: ehr_source_url,
553
563
  patient_external_id: patient_external_id,
554
- status: status
564
+ status: status,
565
+ date_of_service: date_of_service
555
566
  }.compact
556
567
  req.url "#{@request_client.get_url(environment: CandidApi,
557
568
  request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
@@ -584,9 +595,11 @@ module CandidApiClient
584
595
  # @param page_token [String]
585
596
  # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
586
597
  # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge captures
587
- # @param external_id [String] A client-specified unique ID to associate with this encounter;
598
+ # @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
588
599
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
589
600
  # This field should not contain PHI.
601
+ # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
602
+ # This date must be the local date in the timezone where the service occurred.
590
603
  # @param request_options [CandidApiClient::RequestOptions]
591
604
  # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
592
605
  # @example
@@ -596,10 +609,11 @@ module CandidApiClient
596
609
  # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
597
610
  # patient_external_id: "string",
598
611
  # status: PLANNED,
599
- # external_id: "string"
612
+ # charge_external_id: "string",
613
+ # date_of_service: DateTime.parse(2023-01-15)
600
614
  # )
601
- def get_all(limit: nil, page_token: nil, patient_external_id: nil, status: nil, external_id: nil,
602
- request_options: nil)
615
+ def get_all(limit: nil, page_token: nil, patient_external_id: nil, status: nil, charge_external_id: nil,
616
+ date_of_service: nil, request_options: nil)
603
617
  response = @request_client.conn.get do |req|
604
618
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
605
619
  req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
@@ -614,7 +628,8 @@ module CandidApiClient
614
628
  "page_token": page_token,
615
629
  "patient_external_id": patient_external_id,
616
630
  "status": status,
617
- "external_id": external_id
631
+ "charge_external_id": charge_external_id,
632
+ "date_of_service": date_of_service
618
633
  }.compact
619
634
  req.url "#{@request_client.get_url(environment: CandidApi,
620
635
  request_options: request_options)}/api/charge_captures/v1"
@@ -777,6 +792,7 @@ module CandidApiClient
777
792
  # * :city (String)
778
793
  # * :state (CandidApiClient::Commons::Types::State)
779
794
  # * :zip_code (String)
795
+ # * :secondary_identification (String)
780
796
  # * :guarantor (Hash)
781
797
  # * :first_name (String)
782
798
  # * :last_name (String)
@@ -849,12 +865,14 @@ module CandidApiClient
849
865
  # * :last_name (String)
850
866
  # * :organization_name (String)
851
867
  # * :referral_number (String)
852
- # @param encounter_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
868
+ # @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
853
869
  # internal encounter ID or a Dr. Chrono encounter ID. This field should not
854
870
  # contain PHI.
855
871
  # @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
856
872
  # system (e.g. the EHR visit page). Send full URL format for the external link
857
873
  # (e.g. https://emr_charge_capture_url.com/123).
874
+ # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
875
+ # This date must be the local date in the timezone where the service occurred.
858
876
  # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
859
877
  # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
860
878
  # @param request_options [CandidApiClient::RequestOptions]
@@ -863,13 +881,14 @@ module CandidApiClient
863
881
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
864
882
  # api.charge_capture.v_1.create(
865
883
  # data: { diagnoses: , interventions: , 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 }] }, service_lines: , patient_histories: , billing_notes: , benefits_assigned_to_provider: true, prior_authorization_number: "string", external_id: "string", date_of_service: DateTime.parse(2023-01-15), tag_ids: , clinical_notes: , 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" }, billable_status: BILLABLE, responsible_party: INSURANCE_PAY, provider_accepts_assignment: true, synchronicity: SYNCHRONOUS, place_of_service_code: PHARMACY, appointment_type: "string", end_date_of_service: DateTime.parse(2023-01-15), subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, 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, patient: { }, patient_authorized_release: true, schema_instances: , 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 }, existing_medications: , rendering_provider: { }, service_facility: { organization_name: "Test Organization", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, guarantor: { }, billing_provider: { }, supervising_provider: { }, referring_provider: { }, initial_referring_provider: { }, referral_number: "string" },
866
- # encounter_external_id: "string",
884
+ # charge_external_id: "string",
867
885
  # ehr_source_url: "string",
886
+ # date_of_service: DateTime.parse(2023-01-15),
868
887
  # patient_external_id: "string",
869
888
  # status: PLANNED
870
889
  # )
871
- def create(data:, encounter_external_id:, patient_external_id:, status:, ehr_source_url: nil,
872
- request_options: nil)
890
+ def create(data:, charge_external_id:, patient_external_id:, status:, ehr_source_url: nil,
891
+ date_of_service: nil, request_options: nil)
873
892
  Async do
874
893
  response = @request_client.conn.post do |req|
875
894
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -882,8 +901,9 @@ module CandidApiClient
882
901
  req.body = {
883
902
  **(request_options&.additional_body_parameters || {}),
884
903
  data: data,
885
- encounter_external_id: encounter_external_id,
904
+ charge_external_id: charge_external_id,
886
905
  ehr_source_url: ehr_source_url,
906
+ date_of_service: date_of_service,
887
907
  patient_external_id: patient_external_id,
888
908
  status: status
889
909
  }.compact
@@ -1059,6 +1079,7 @@ module CandidApiClient
1059
1079
  # * :city (String)
1060
1080
  # * :state (CandidApiClient::Commons::Types::State)
1061
1081
  # * :zip_code (String)
1082
+ # * :secondary_identification (String)
1062
1083
  # * :guarantor (Hash)
1063
1084
  # * :first_name (String)
1064
1085
  # * :last_name (String)
@@ -1131,7 +1152,7 @@ module CandidApiClient
1131
1152
  # * :last_name (String)
1132
1153
  # * :organization_name (String)
1133
1154
  # * :referral_number (String)
1134
- # @param encounter_external_id [String] A client-specified unique ID to associate with this encounter;
1155
+ # @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
1135
1156
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
1136
1157
  # This field should not contain PHI.
1137
1158
  # @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
@@ -1140,6 +1161,8 @@ module CandidApiClient
1140
1161
  # https://emr_charge_capture_url.com/123).
1141
1162
  # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
1142
1163
  # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
1164
+ # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
1165
+ # This date must be the local date in the timezone where the service occurred.
1143
1166
  # @param request_options [CandidApiClient::RequestOptions]
1144
1167
  # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
1145
1168
  # @example
@@ -1147,13 +1170,14 @@ module CandidApiClient
1147
1170
  # api.charge_capture.v_1.update(
1148
1171
  # charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
1149
1172
  # data: { diagnoses: , interventions: , 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 }] }, service_lines: , patient_histories: , billing_notes: , benefits_assigned_to_provider: true, prior_authorization_number: "string", external_id: "string", date_of_service: DateTime.parse(2023-01-15), tag_ids: , clinical_notes: , 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" }, billable_status: BILLABLE, responsible_party: INSURANCE_PAY, provider_accepts_assignment: true, synchronicity: SYNCHRONOUS, place_of_service_code: PHARMACY, appointment_type: "string", end_date_of_service: DateTime.parse(2023-01-15), subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, 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, patient: { }, patient_authorized_release: true, schema_instances: , 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 }, existing_medications: , rendering_provider: { }, service_facility: { organization_name: "Test Organization", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, guarantor: { }, billing_provider: { }, supervising_provider: { }, referring_provider: { }, initial_referring_provider: { }, referral_number: "string" },
1150
- # encounter_external_id: "string",
1173
+ # charge_external_id: "string",
1151
1174
  # ehr_source_url: "string",
1152
1175
  # patient_external_id: "string",
1153
- # status: PLANNED
1176
+ # status: PLANNED,
1177
+ # date_of_service: DateTime.parse(2023-01-15)
1154
1178
  # )
1155
- def update(charge_capture_id:, data: nil, encounter_external_id: nil, ehr_source_url: nil,
1156
- patient_external_id: nil, status: nil, request_options: nil)
1179
+ def update(charge_capture_id:, data: nil, charge_external_id: nil, ehr_source_url: nil,
1180
+ patient_external_id: nil, status: nil, date_of_service: nil, request_options: nil)
1157
1181
  Async do
1158
1182
  response = @request_client.conn.patch do |req|
1159
1183
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -1166,10 +1190,11 @@ module CandidApiClient
1166
1190
  req.body = {
1167
1191
  **(request_options&.additional_body_parameters || {}),
1168
1192
  data: data,
1169
- encounter_external_id: encounter_external_id,
1193
+ charge_external_id: charge_external_id,
1170
1194
  ehr_source_url: ehr_source_url,
1171
1195
  patient_external_id: patient_external_id,
1172
- status: status
1196
+ status: status,
1197
+ date_of_service: date_of_service
1173
1198
  }.compact
1174
1199
  req.url "#{@request_client.get_url(environment: CandidApi,
1175
1200
  request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
@@ -1205,9 +1230,11 @@ module CandidApiClient
1205
1230
  # @param page_token [String]
1206
1231
  # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
1207
1232
  # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge captures
1208
- # @param external_id [String] A client-specified unique ID to associate with this encounter;
1233
+ # @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
1209
1234
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
1210
1235
  # This field should not contain PHI.
1236
+ # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
1237
+ # This date must be the local date in the timezone where the service occurred.
1211
1238
  # @param request_options [CandidApiClient::RequestOptions]
1212
1239
  # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
1213
1240
  # @example
@@ -1217,10 +1244,11 @@ module CandidApiClient
1217
1244
  # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
1218
1245
  # patient_external_id: "string",
1219
1246
  # status: PLANNED,
1220
- # external_id: "string"
1247
+ # charge_external_id: "string",
1248
+ # date_of_service: DateTime.parse(2023-01-15)
1221
1249
  # )
1222
- def get_all(limit: nil, page_token: nil, patient_external_id: nil, status: nil, external_id: nil,
1223
- request_options: nil)
1250
+ def get_all(limit: nil, page_token: nil, patient_external_id: nil, status: nil, charge_external_id: nil,
1251
+ date_of_service: nil, request_options: nil)
1224
1252
  Async do
1225
1253
  response = @request_client.conn.get do |req|
1226
1254
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -1236,7 +1264,8 @@ module CandidApiClient
1236
1264
  "page_token": page_token,
1237
1265
  "patient_external_id": patient_external_id,
1238
1266
  "status": status,
1239
- "external_id": external_id
1267
+ "charge_external_id": charge_external_id,
1268
+ "date_of_service": date_of_service
1240
1269
  }.compact
1241
1270
  req.url "#{@request_client.get_url(environment: CandidApi,
1242
1271
  request_options: request_options)}/api/charge_captures/v1"
@@ -2,6 +2,7 @@
2
2
 
3
3
  require_relative "charge_capture_status"
4
4
  require_relative "charge_capture_data"
5
+ require "date"
5
6
  require "ostruct"
6
7
  require "json"
7
8
 
@@ -19,9 +20,12 @@ module CandidApiClient
19
20
  # @return [String]
20
21
  attr_reader :patient_external_id
21
22
  # @return [String]
22
- attr_reader :encounter_external_id
23
+ attr_reader :charge_external_id
23
24
  # @return [String]
24
25
  attr_reader :ehr_source_url
26
+ # @return [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
27
+ # This date must be the local date in the timezone where the service occurred.
28
+ attr_reader :date_of_service
25
29
  # @return [OpenStruct] Additional properties unmapped to the current class definition
26
30
  attr_reader :additional_properties
27
31
  # @return [Object]
@@ -34,26 +38,30 @@ module CandidApiClient
34
38
  # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus]
35
39
  # @param charge_capture_data [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData]
36
40
  # @param patient_external_id [String]
37
- # @param encounter_external_id [String]
41
+ # @param charge_external_id [String]
38
42
  # @param ehr_source_url [String]
43
+ # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
44
+ # This date must be the local date in the timezone where the service occurred.
39
45
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
40
46
  # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
41
- def initialize(id:, status:, charge_capture_data:, patient_external_id:, encounter_external_id:,
42
- ehr_source_url: OMIT, additional_properties: nil)
47
+ def initialize(id:, status:, charge_capture_data:, patient_external_id:, charge_external_id:,
48
+ ehr_source_url: OMIT, date_of_service: OMIT, additional_properties: nil)
43
49
  @id = id
44
50
  @status = status
45
51
  @charge_capture_data = charge_capture_data
46
52
  @patient_external_id = patient_external_id
47
- @encounter_external_id = encounter_external_id
53
+ @charge_external_id = charge_external_id
48
54
  @ehr_source_url = ehr_source_url if ehr_source_url != OMIT
55
+ @date_of_service = date_of_service if date_of_service != OMIT
49
56
  @additional_properties = additional_properties
50
57
  @_field_set = {
51
58
  "id": id,
52
59
  "status": status,
53
60
  "charge_capture_data": charge_capture_data,
54
61
  "patient_external_id": patient_external_id,
55
- "encounter_external_id": encounter_external_id,
56
- "ehr_source_url": ehr_source_url
62
+ "charge_external_id": charge_external_id,
63
+ "ehr_source_url": ehr_source_url,
64
+ "date_of_service": date_of_service
57
65
  }.reject do |_k, v|
58
66
  v == OMIT
59
67
  end
@@ -75,15 +83,17 @@ module CandidApiClient
75
83
  charge_capture_data = CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData.from_json(json_object: charge_capture_data)
76
84
  end
77
85
  patient_external_id = struct["patient_external_id"]
78
- encounter_external_id = struct["encounter_external_id"]
86
+ charge_external_id = struct["charge_external_id"]
79
87
  ehr_source_url = struct["ehr_source_url"]
88
+ date_of_service = (Date.parse(parsed_json["date_of_service"]) unless parsed_json["date_of_service"].nil?)
80
89
  new(
81
90
  id: id,
82
91
  status: status,
83
92
  charge_capture_data: charge_capture_data,
84
93
  patient_external_id: patient_external_id,
85
- encounter_external_id: encounter_external_id,
94
+ charge_external_id: charge_external_id,
86
95
  ehr_source_url: ehr_source_url,
96
+ date_of_service: date_of_service,
87
97
  additional_properties: struct
88
98
  )
89
99
  end
@@ -106,8 +116,9 @@ module CandidApiClient
106
116
  obj.status.is_a?(CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
107
117
  CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData.validate_raw(obj: obj.charge_capture_data)
108
118
  obj.patient_external_id.is_a?(String) != false || raise("Passed value for field obj.patient_external_id is not the expected type, validation failed.")
109
- obj.encounter_external_id.is_a?(String) != false || raise("Passed value for field obj.encounter_external_id is not the expected type, validation failed.")
119
+ obj.charge_external_id.is_a?(String) != false || raise("Passed value for field obj.charge_external_id is not the expected type, validation failed.")
110
120
  obj.ehr_source_url&.is_a?(String) != false || raise("Passed value for field obj.ehr_source_url is not the expected type, validation failed.")
121
+ obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
111
122
  end
112
123
  end
113
124
  end
@@ -384,6 +384,7 @@ module CandidApiClient
384
384
  # * :city (String)
385
385
  # * :state (CandidApiClient::Commons::Types::State)
386
386
  # * :zip_code (String)
387
+ # * :secondary_identification (String)
387
388
  # @param subscriber_primary [Hash] Subscriber_primary is required when responsible_party is INSURANCE_PAY (i.e.
388
389
  # when the claim should be billed to insurance).
389
390
  # These are not required fields when responsible_party is SELF_PAY (i.e. when the
@@ -543,7 +544,7 @@ module CandidApiClient
543
544
  # 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" } },
544
545
  # 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 },
545
546
  # 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" } },
546
- # 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" } },
547
+ # 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" },
547
548
  # subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE },
548
549
  # subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE },
549
550
  # prior_authorization_number: "string",
@@ -839,6 +840,7 @@ module CandidApiClient
839
840
  # * :city (String)
840
841
  # * :state (CandidApiClient::Commons::Types::State)
841
842
  # * :zip_code (String)
843
+ # * :secondary_identification (String)
842
844
  # @param diagnoses [Array<Hash>] Ideally, this field should contain no more than 12 diagnoses. However, more
843
845
  # diagnoses
844
846
  # may be submitted at this time, and coders will later prioritize the 12 that will
@@ -920,7 +922,7 @@ module CandidApiClient
920
922
  # 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" } },
921
923
  # 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 },
922
924
  # 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" } },
923
- # 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" } },
925
+ # 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" },
924
926
  # diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
925
927
  # clinical_notes: [{ category: CLINICAL, notes: [{ text: "string", author_name: "string", author_npi: "string", timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }] }],
926
928
  # billing_notes: [{ text: "string" }],
@@ -1208,6 +1210,7 @@ module CandidApiClient
1208
1210
  # * :city (String)
1209
1211
  # * :state (CandidApiClient::Commons::Types::State)
1210
1212
  # * :zip_code (String)
1213
+ # * :secondary_identification (String)
1211
1214
  # @param guarantor [Hash] Personal and contact info for the guarantor of the patient responsibility.Request of type CandidApiClient::Guarantor::V1::Types::GuarantorUpdate, as a Hash
1212
1215
  # * :first_name (String)
1213
1216
  # * :last_name (String)
@@ -1714,6 +1717,7 @@ module CandidApiClient
1714
1717
  # * :city (String)
1715
1718
  # * :state (CandidApiClient::Commons::Types::State)
1716
1719
  # * :zip_code (String)
1720
+ # * :secondary_identification (String)
1717
1721
  # @param subscriber_primary [Hash] Subscriber_primary is required when responsible_party is INSURANCE_PAY (i.e.
1718
1722
  # when the claim should be billed to insurance).
1719
1723
  # These are not required fields when responsible_party is SELF_PAY (i.e. when the
@@ -1873,7 +1877,7 @@ module CandidApiClient
1873
1877
  # 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" } },
1874
1878
  # 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 },
1875
1879
  # 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" } },
1876
- # 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" } },
1880
+ # 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" },
1877
1881
  # subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE },
1878
1882
  # subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE },
1879
1883
  # prior_authorization_number: "string",
@@ -2171,6 +2175,7 @@ module CandidApiClient
2171
2175
  # * :city (String)
2172
2176
  # * :state (CandidApiClient::Commons::Types::State)
2173
2177
  # * :zip_code (String)
2178
+ # * :secondary_identification (String)
2174
2179
  # @param diagnoses [Array<Hash>] Ideally, this field should contain no more than 12 diagnoses. However, more
2175
2180
  # diagnoses
2176
2181
  # may be submitted at this time, and coders will later prioritize the 12 that will
@@ -2252,7 +2257,7 @@ module CandidApiClient
2252
2257
  # 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" } },
2253
2258
  # 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 },
2254
2259
  # 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" } },
2255
- # 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" } },
2260
+ # 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" },
2256
2261
  # diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
2257
2262
  # clinical_notes: [{ category: CLINICAL, notes: [{ text: "string", author_name: "string", author_npi: "string", timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }] }],
2258
2263
  # billing_notes: [{ text: "string" }],
@@ -2542,6 +2547,7 @@ module CandidApiClient
2542
2547
  # * :city (String)
2543
2548
  # * :state (CandidApiClient::Commons::Types::State)
2544
2549
  # * :zip_code (String)
2550
+ # * :secondary_identification (String)
2545
2551
  # @param guarantor [Hash] Personal and contact info for the guarantor of the patient responsibility.Request of type CandidApiClient::Guarantor::V1::Types::GuarantorUpdate, as a Hash
2546
2552
  # * :first_name (String)
2547
2553
  # * :last_name (String)
@@ -0,0 +1,60 @@
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 InvalidTagNamesErrorType
11
+ # @return [Array<String>]
12
+ attr_reader :invalid_tag_names
13
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
14
+ attr_reader :additional_properties
15
+ # @return [Object]
16
+ attr_reader :_field_set
17
+ protected :_field_set
18
+
19
+ OMIT = Object.new
20
+
21
+ # @param invalid_tag_names [Array<String>]
22
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
+ # @return [CandidApiClient::Encounters::V4::Types::InvalidTagNamesErrorType]
24
+ def initialize(invalid_tag_names:, additional_properties: nil)
25
+ @invalid_tag_names = invalid_tag_names
26
+ @additional_properties = additional_properties
27
+ @_field_set = { "invalid_tag_names": invalid_tag_names }
28
+ end
29
+
30
+ # Deserialize a JSON object to an instance of InvalidTagNamesErrorType
31
+ #
32
+ # @param json_object [String]
33
+ # @return [CandidApiClient::Encounters::V4::Types::InvalidTagNamesErrorType]
34
+ def self.from_json(json_object:)
35
+ struct = JSON.parse(json_object, object_class: OpenStruct)
36
+ invalid_tag_names = struct["invalid_tag_names"]
37
+ new(invalid_tag_names: invalid_tag_names, additional_properties: struct)
38
+ end
39
+
40
+ # Serialize an instance of InvalidTagNamesErrorType to a JSON object
41
+ #
42
+ # @return [String]
43
+ def to_json(*_args)
44
+ @_field_set&.to_json
45
+ end
46
+
47
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
48
+ # hash and check each fields type against the current object's property
49
+ # definitions.
50
+ #
51
+ # @param obj [Object]
52
+ # @return [Void]
53
+ def self.validate_raw(obj:)
54
+ obj.invalid_tag_names.is_a?(Array) != false || raise("Passed value for field obj.invalid_tag_names is not the expected type, validation failed.")
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
@@ -12,6 +12,8 @@ module CandidApiClient
12
12
  attr_reader :next_page_token
13
13
  # @return [String]
14
14
  attr_reader :prev_page_token
15
+ # @return [Integer]
16
+ attr_reader :total
15
17
  # @return [OpenStruct] Additional properties unmapped to the current class definition
16
18
  attr_reader :additional_properties
17
19
  # @return [Object]
@@ -22,13 +24,19 @@ module CandidApiClient
22
24
 
23
25
  # @param next_page_token [String]
24
26
  # @param prev_page_token [String]
27
+ # @param total [Integer]
25
28
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
29
  # @return [CandidApiClient::PreEncounter::Common::Types::ResourcePage]
27
- def initialize(next_page_token: OMIT, prev_page_token: OMIT, additional_properties: nil)
30
+ def initialize(total:, next_page_token: OMIT, prev_page_token: OMIT, additional_properties: nil)
28
31
  @next_page_token = next_page_token if next_page_token != OMIT
29
32
  @prev_page_token = prev_page_token if prev_page_token != OMIT
33
+ @total = total
30
34
  @additional_properties = additional_properties
31
- @_field_set = { "next_page_token": next_page_token, "prev_page_token": prev_page_token }.reject do |_k, v|
35
+ @_field_set = {
36
+ "next_page_token": next_page_token,
37
+ "prev_page_token": prev_page_token,
38
+ "total": total
39
+ }.reject do |_k, v|
32
40
  v == OMIT
33
41
  end
34
42
  end
@@ -41,9 +49,11 @@ module CandidApiClient
41
49
  struct = JSON.parse(json_object, object_class: OpenStruct)
42
50
  next_page_token = struct["next_page_token"]
43
51
  prev_page_token = struct["prev_page_token"]
52
+ total = struct["total"]
44
53
  new(
45
54
  next_page_token: next_page_token,
46
55
  prev_page_token: prev_page_token,
56
+ total: total,
47
57
  additional_properties: struct
48
58
  )
49
59
  end
@@ -64,6 +74,7 @@ module CandidApiClient
64
74
  def self.validate_raw(obj:)
65
75
  obj.next_page_token&.is_a?(String) != false || raise("Passed value for field obj.next_page_token is not the expected type, validation failed.")
66
76
  obj.prev_page_token&.is_a?(String) != false || raise("Passed value for field obj.prev_page_token is not the expected type, validation failed.")
77
+ obj.total.is_a?(Integer) != false || raise("Passed value for field obj.total is not the expected type, validation failed.")
67
78
  end
68
79
  end
69
80
  end