candidhealth 0.38.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.
- checksums.yaml +4 -4
- data/lib/candidhealth/charge_capture/v_1/client.rb +59 -34
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +21 -10
- data/lib/candidhealth/encounters/v_4/types/invalid_tag_names_error_type.rb +60 -0
- data/lib/candidhealth/pre_encounter/common/types/resource_page.rb +13 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +96 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefit_type.rb +2 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_level.rb +1 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value.rb +13 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_coverage_details.rb +28 -2
- data/lib/candidhealth/pre_encounter/lists/v_1/types/appointment_list_page.rb +10 -2
- data/lib/candidhealth/pre_encounter/lists/v_1/types/patient_list_page.rb +10 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient_page.rb +10 -2
- data/lib/candidhealth/pre_encounter/tags/v_1/types/tag_page.rb +10 -2
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +3 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66ecbeaebd8dadb70e95ca6e10183307c06b8be8ba82f72f070c782acb377e8f
|
4
|
+
data.tar.gz: 5a9b4676d8a0fd4a5e0f5f5e11a3ece135bfcfafaf96c78b3d2fd0ca516c76e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"
|
@@ -237,12 +238,14 @@ module CandidApiClient
|
|
237
238
|
# * :last_name (String)
|
238
239
|
# * :organization_name (String)
|
239
240
|
# * :referral_number (String)
|
240
|
-
# @param
|
241
|
+
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
|
241
242
|
# internal encounter ID or a Dr. Chrono encounter ID. This field should not
|
242
243
|
# contain PHI.
|
243
244
|
# @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
|
244
245
|
# system (e.g. the EHR visit page). Send full URL format for the external link
|
245
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.
|
246
249
|
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
247
250
|
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
|
248
251
|
# @param request_options [CandidApiClient::RequestOptions]
|
@@ -251,13 +254,14 @@ module CandidApiClient
|
|
251
254
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
252
255
|
# api.charge_capture.v_1.create(
|
253
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" },
|
254
|
-
#
|
257
|
+
# charge_external_id: "string",
|
255
258
|
# ehr_source_url: "string",
|
259
|
+
# date_of_service: DateTime.parse(2023-01-15),
|
256
260
|
# patient_external_id: "string",
|
257
261
|
# status: PLANNED
|
258
262
|
# )
|
259
|
-
def create(data:,
|
260
|
-
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)
|
261
265
|
response = @request_client.conn.post do |req|
|
262
266
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
263
267
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -269,8 +273,9 @@ module CandidApiClient
|
|
269
273
|
req.body = {
|
270
274
|
**(request_options&.additional_body_parameters || {}),
|
271
275
|
data: data,
|
272
|
-
|
276
|
+
charge_external_id: charge_external_id,
|
273
277
|
ehr_source_url: ehr_source_url,
|
278
|
+
date_of_service: date_of_service,
|
274
279
|
patient_external_id: patient_external_id,
|
275
280
|
status: status
|
276
281
|
}.compact
|
@@ -516,7 +521,7 @@ module CandidApiClient
|
|
516
521
|
# * :last_name (String)
|
517
522
|
# * :organization_name (String)
|
518
523
|
# * :referral_number (String)
|
519
|
-
# @param
|
524
|
+
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
520
525
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
521
526
|
# This field should not contain PHI.
|
522
527
|
# @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
|
@@ -525,6 +530,8 @@ module CandidApiClient
|
|
525
530
|
# https://emr_charge_capture_url.com/123).
|
526
531
|
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
527
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.
|
528
535
|
# @param request_options [CandidApiClient::RequestOptions]
|
529
536
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
|
530
537
|
# @example
|
@@ -532,13 +539,14 @@ module CandidApiClient
|
|
532
539
|
# api.charge_capture.v_1.update(
|
533
540
|
# charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
534
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" },
|
535
|
-
#
|
542
|
+
# charge_external_id: "string",
|
536
543
|
# ehr_source_url: "string",
|
537
544
|
# patient_external_id: "string",
|
538
|
-
# status: PLANNED
|
545
|
+
# status: PLANNED,
|
546
|
+
# date_of_service: DateTime.parse(2023-01-15)
|
539
547
|
# )
|
540
|
-
def update(charge_capture_id:, data: nil,
|
541
|
-
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)
|
542
550
|
response = @request_client.conn.patch do |req|
|
543
551
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
544
552
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -550,10 +558,11 @@ module CandidApiClient
|
|
550
558
|
req.body = {
|
551
559
|
**(request_options&.additional_body_parameters || {}),
|
552
560
|
data: data,
|
553
|
-
|
561
|
+
charge_external_id: charge_external_id,
|
554
562
|
ehr_source_url: ehr_source_url,
|
555
563
|
patient_external_id: patient_external_id,
|
556
|
-
status: status
|
564
|
+
status: status,
|
565
|
+
date_of_service: date_of_service
|
557
566
|
}.compact
|
558
567
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
559
568
|
request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
|
@@ -586,9 +595,11 @@ module CandidApiClient
|
|
586
595
|
# @param page_token [String]
|
587
596
|
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
588
597
|
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge captures
|
589
|
-
# @param
|
598
|
+
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
590
599
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
591
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.
|
592
603
|
# @param request_options [CandidApiClient::RequestOptions]
|
593
604
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
594
605
|
# @example
|
@@ -598,10 +609,11 @@ module CandidApiClient
|
|
598
609
|
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
599
610
|
# patient_external_id: "string",
|
600
611
|
# status: PLANNED,
|
601
|
-
#
|
612
|
+
# charge_external_id: "string",
|
613
|
+
# date_of_service: DateTime.parse(2023-01-15)
|
602
614
|
# )
|
603
|
-
def get_all(limit: nil, page_token: nil, patient_external_id: nil, status: nil,
|
604
|
-
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)
|
605
617
|
response = @request_client.conn.get do |req|
|
606
618
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
607
619
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -616,7 +628,8 @@ module CandidApiClient
|
|
616
628
|
"page_token": page_token,
|
617
629
|
"patient_external_id": patient_external_id,
|
618
630
|
"status": status,
|
619
|
-
"
|
631
|
+
"charge_external_id": charge_external_id,
|
632
|
+
"date_of_service": date_of_service
|
620
633
|
}.compact
|
621
634
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
622
635
|
request_options: request_options)}/api/charge_captures/v1"
|
@@ -852,12 +865,14 @@ module CandidApiClient
|
|
852
865
|
# * :last_name (String)
|
853
866
|
# * :organization_name (String)
|
854
867
|
# * :referral_number (String)
|
855
|
-
# @param
|
868
|
+
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
|
856
869
|
# internal encounter ID or a Dr. Chrono encounter ID. This field should not
|
857
870
|
# contain PHI.
|
858
871
|
# @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
|
859
872
|
# system (e.g. the EHR visit page). Send full URL format for the external link
|
860
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.
|
861
876
|
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
862
877
|
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
|
863
878
|
# @param request_options [CandidApiClient::RequestOptions]
|
@@ -866,13 +881,14 @@ module CandidApiClient
|
|
866
881
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
867
882
|
# api.charge_capture.v_1.create(
|
868
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" },
|
869
|
-
#
|
884
|
+
# charge_external_id: "string",
|
870
885
|
# ehr_source_url: "string",
|
886
|
+
# date_of_service: DateTime.parse(2023-01-15),
|
871
887
|
# patient_external_id: "string",
|
872
888
|
# status: PLANNED
|
873
889
|
# )
|
874
|
-
def create(data:,
|
875
|
-
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)
|
876
892
|
Async do
|
877
893
|
response = @request_client.conn.post do |req|
|
878
894
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -885,8 +901,9 @@ module CandidApiClient
|
|
885
901
|
req.body = {
|
886
902
|
**(request_options&.additional_body_parameters || {}),
|
887
903
|
data: data,
|
888
|
-
|
904
|
+
charge_external_id: charge_external_id,
|
889
905
|
ehr_source_url: ehr_source_url,
|
906
|
+
date_of_service: date_of_service,
|
890
907
|
patient_external_id: patient_external_id,
|
891
908
|
status: status
|
892
909
|
}.compact
|
@@ -1135,7 +1152,7 @@ module CandidApiClient
|
|
1135
1152
|
# * :last_name (String)
|
1136
1153
|
# * :organization_name (String)
|
1137
1154
|
# * :referral_number (String)
|
1138
|
-
# @param
|
1155
|
+
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
1139
1156
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
1140
1157
|
# This field should not contain PHI.
|
1141
1158
|
# @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
|
@@ -1144,6 +1161,8 @@ module CandidApiClient
|
|
1144
1161
|
# https://emr_charge_capture_url.com/123).
|
1145
1162
|
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
1146
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.
|
1147
1166
|
# @param request_options [CandidApiClient::RequestOptions]
|
1148
1167
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
|
1149
1168
|
# @example
|
@@ -1151,13 +1170,14 @@ module CandidApiClient
|
|
1151
1170
|
# api.charge_capture.v_1.update(
|
1152
1171
|
# charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1153
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" },
|
1154
|
-
#
|
1173
|
+
# charge_external_id: "string",
|
1155
1174
|
# ehr_source_url: "string",
|
1156
1175
|
# patient_external_id: "string",
|
1157
|
-
# status: PLANNED
|
1176
|
+
# status: PLANNED,
|
1177
|
+
# date_of_service: DateTime.parse(2023-01-15)
|
1158
1178
|
# )
|
1159
|
-
def update(charge_capture_id:, data: nil,
|
1160
|
-
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)
|
1161
1181
|
Async do
|
1162
1182
|
response = @request_client.conn.patch do |req|
|
1163
1183
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1170,10 +1190,11 @@ module CandidApiClient
|
|
1170
1190
|
req.body = {
|
1171
1191
|
**(request_options&.additional_body_parameters || {}),
|
1172
1192
|
data: data,
|
1173
|
-
|
1193
|
+
charge_external_id: charge_external_id,
|
1174
1194
|
ehr_source_url: ehr_source_url,
|
1175
1195
|
patient_external_id: patient_external_id,
|
1176
|
-
status: status
|
1196
|
+
status: status,
|
1197
|
+
date_of_service: date_of_service
|
1177
1198
|
}.compact
|
1178
1199
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
1179
1200
|
request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
|
@@ -1209,9 +1230,11 @@ module CandidApiClient
|
|
1209
1230
|
# @param page_token [String]
|
1210
1231
|
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
1211
1232
|
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge captures
|
1212
|
-
# @param
|
1233
|
+
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
1213
1234
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
1214
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.
|
1215
1238
|
# @param request_options [CandidApiClient::RequestOptions]
|
1216
1239
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
1217
1240
|
# @example
|
@@ -1221,10 +1244,11 @@ module CandidApiClient
|
|
1221
1244
|
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
1222
1245
|
# patient_external_id: "string",
|
1223
1246
|
# status: PLANNED,
|
1224
|
-
#
|
1247
|
+
# charge_external_id: "string",
|
1248
|
+
# date_of_service: DateTime.parse(2023-01-15)
|
1225
1249
|
# )
|
1226
|
-
def get_all(limit: nil, page_token: nil, patient_external_id: nil, status: nil,
|
1227
|
-
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)
|
1228
1252
|
Async do
|
1229
1253
|
response = @request_client.conn.get do |req|
|
1230
1254
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1240,7 +1264,8 @@ module CandidApiClient
|
|
1240
1264
|
"page_token": page_token,
|
1241
1265
|
"patient_external_id": patient_external_id,
|
1242
1266
|
"status": status,
|
1243
|
-
"
|
1267
|
+
"charge_external_id": charge_external_id,
|
1268
|
+
"date_of_service": date_of_service
|
1244
1269
|
}.compact
|
1245
1270
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
1246
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 :
|
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
|
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:,
|
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
|
-
@
|
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
|
-
"
|
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
|
-
|
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
|
-
|
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.
|
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
|
@@ -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 = {
|
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
|
@@ -83,30 +83,54 @@ module CandidApiClient
|
|
83
83
|
# * :deductible (Hash)
|
84
84
|
# * :family (Float)
|
85
85
|
# * :individual (Float)
|
86
|
+
# * :employee_and_spouse (Float)
|
86
87
|
# * :deductible_remaining (Hash)
|
87
88
|
# * :family (Float)
|
88
89
|
# * :individual (Float)
|
90
|
+
# * :employee_and_spouse (Float)
|
91
|
+
# * :deductible_year_to_date (Hash)
|
92
|
+
# * :family (Float)
|
93
|
+
# * :individual (Float)
|
94
|
+
# * :employee_and_spouse (Float)
|
89
95
|
# * :oop_max (Hash)
|
90
96
|
# * :family (Float)
|
91
97
|
# * :individual (Float)
|
98
|
+
# * :employee_and_spouse (Float)
|
92
99
|
# * :oop_max_remaining (Hash)
|
93
100
|
# * :family (Float)
|
94
101
|
# * :individual (Float)
|
102
|
+
# * :employee_and_spouse (Float)
|
103
|
+
# * :oop_year_to_date (Hash)
|
104
|
+
# * :family (Float)
|
105
|
+
# * :individual (Float)
|
106
|
+
# * :employee_and_spouse (Float)
|
95
107
|
# * :additional_notes (String)
|
96
108
|
# * :in_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
|
97
109
|
# * :out_of_network (Hash)
|
98
110
|
# * :deductible (Hash)
|
99
111
|
# * :family (Float)
|
100
112
|
# * :individual (Float)
|
113
|
+
# * :employee_and_spouse (Float)
|
101
114
|
# * :deductible_remaining (Hash)
|
102
115
|
# * :family (Float)
|
103
116
|
# * :individual (Float)
|
117
|
+
# * :employee_and_spouse (Float)
|
118
|
+
# * :deductible_year_to_date (Hash)
|
119
|
+
# * :family (Float)
|
120
|
+
# * :individual (Float)
|
121
|
+
# * :employee_and_spouse (Float)
|
104
122
|
# * :oop_max (Hash)
|
105
123
|
# * :family (Float)
|
106
124
|
# * :individual (Float)
|
125
|
+
# * :employee_and_spouse (Float)
|
107
126
|
# * :oop_max_remaining (Hash)
|
108
127
|
# * :family (Float)
|
109
128
|
# * :individual (Float)
|
129
|
+
# * :employee_and_spouse (Float)
|
130
|
+
# * :oop_year_to_date (Hash)
|
131
|
+
# * :family (Float)
|
132
|
+
# * :individual (Float)
|
133
|
+
# * :employee_and_spouse (Float)
|
110
134
|
# * :additional_notes (String)
|
111
135
|
# * :out_of_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
|
112
136
|
# * :service_specific_coverage (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>)
|
@@ -190,30 +214,54 @@ module CandidApiClient
|
|
190
214
|
# * :deductible (Hash)
|
191
215
|
# * :family (Float)
|
192
216
|
# * :individual (Float)
|
217
|
+
# * :employee_and_spouse (Float)
|
193
218
|
# * :deductible_remaining (Hash)
|
194
219
|
# * :family (Float)
|
195
220
|
# * :individual (Float)
|
221
|
+
# * :employee_and_spouse (Float)
|
222
|
+
# * :deductible_year_to_date (Hash)
|
223
|
+
# * :family (Float)
|
224
|
+
# * :individual (Float)
|
225
|
+
# * :employee_and_spouse (Float)
|
196
226
|
# * :oop_max (Hash)
|
197
227
|
# * :family (Float)
|
198
228
|
# * :individual (Float)
|
229
|
+
# * :employee_and_spouse (Float)
|
199
230
|
# * :oop_max_remaining (Hash)
|
200
231
|
# * :family (Float)
|
201
232
|
# * :individual (Float)
|
233
|
+
# * :employee_and_spouse (Float)
|
234
|
+
# * :oop_year_to_date (Hash)
|
235
|
+
# * :family (Float)
|
236
|
+
# * :individual (Float)
|
237
|
+
# * :employee_and_spouse (Float)
|
202
238
|
# * :additional_notes (String)
|
203
239
|
# * :in_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
|
204
240
|
# * :out_of_network (Hash)
|
205
241
|
# * :deductible (Hash)
|
206
242
|
# * :family (Float)
|
207
243
|
# * :individual (Float)
|
244
|
+
# * :employee_and_spouse (Float)
|
208
245
|
# * :deductible_remaining (Hash)
|
209
246
|
# * :family (Float)
|
210
247
|
# * :individual (Float)
|
248
|
+
# * :employee_and_spouse (Float)
|
249
|
+
# * :deductible_year_to_date (Hash)
|
250
|
+
# * :family (Float)
|
251
|
+
# * :individual (Float)
|
252
|
+
# * :employee_and_spouse (Float)
|
211
253
|
# * :oop_max (Hash)
|
212
254
|
# * :family (Float)
|
213
255
|
# * :individual (Float)
|
256
|
+
# * :employee_and_spouse (Float)
|
214
257
|
# * :oop_max_remaining (Hash)
|
215
258
|
# * :family (Float)
|
216
259
|
# * :individual (Float)
|
260
|
+
# * :employee_and_spouse (Float)
|
261
|
+
# * :oop_year_to_date (Hash)
|
262
|
+
# * :family (Float)
|
263
|
+
# * :individual (Float)
|
264
|
+
# * :employee_and_spouse (Float)
|
217
265
|
# * :additional_notes (String)
|
218
266
|
# * :out_of_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
|
219
267
|
# * :service_specific_coverage (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>)
|
@@ -483,30 +531,54 @@ module CandidApiClient
|
|
483
531
|
# * :deductible (Hash)
|
484
532
|
# * :family (Float)
|
485
533
|
# * :individual (Float)
|
534
|
+
# * :employee_and_spouse (Float)
|
486
535
|
# * :deductible_remaining (Hash)
|
487
536
|
# * :family (Float)
|
488
537
|
# * :individual (Float)
|
538
|
+
# * :employee_and_spouse (Float)
|
539
|
+
# * :deductible_year_to_date (Hash)
|
540
|
+
# * :family (Float)
|
541
|
+
# * :individual (Float)
|
542
|
+
# * :employee_and_spouse (Float)
|
489
543
|
# * :oop_max (Hash)
|
490
544
|
# * :family (Float)
|
491
545
|
# * :individual (Float)
|
546
|
+
# * :employee_and_spouse (Float)
|
492
547
|
# * :oop_max_remaining (Hash)
|
493
548
|
# * :family (Float)
|
494
549
|
# * :individual (Float)
|
550
|
+
# * :employee_and_spouse (Float)
|
551
|
+
# * :oop_year_to_date (Hash)
|
552
|
+
# * :family (Float)
|
553
|
+
# * :individual (Float)
|
554
|
+
# * :employee_and_spouse (Float)
|
495
555
|
# * :additional_notes (String)
|
496
556
|
# * :in_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
|
497
557
|
# * :out_of_network (Hash)
|
498
558
|
# * :deductible (Hash)
|
499
559
|
# * :family (Float)
|
500
560
|
# * :individual (Float)
|
561
|
+
# * :employee_and_spouse (Float)
|
501
562
|
# * :deductible_remaining (Hash)
|
502
563
|
# * :family (Float)
|
503
564
|
# * :individual (Float)
|
565
|
+
# * :employee_and_spouse (Float)
|
566
|
+
# * :deductible_year_to_date (Hash)
|
567
|
+
# * :family (Float)
|
568
|
+
# * :individual (Float)
|
569
|
+
# * :employee_and_spouse (Float)
|
504
570
|
# * :oop_max (Hash)
|
505
571
|
# * :family (Float)
|
506
572
|
# * :individual (Float)
|
573
|
+
# * :employee_and_spouse (Float)
|
507
574
|
# * :oop_max_remaining (Hash)
|
508
575
|
# * :family (Float)
|
509
576
|
# * :individual (Float)
|
577
|
+
# * :employee_and_spouse (Float)
|
578
|
+
# * :oop_year_to_date (Hash)
|
579
|
+
# * :family (Float)
|
580
|
+
# * :individual (Float)
|
581
|
+
# * :employee_and_spouse (Float)
|
510
582
|
# * :additional_notes (String)
|
511
583
|
# * :out_of_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
|
512
584
|
# * :service_specific_coverage (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>)
|
@@ -592,30 +664,54 @@ module CandidApiClient
|
|
592
664
|
# * :deductible (Hash)
|
593
665
|
# * :family (Float)
|
594
666
|
# * :individual (Float)
|
667
|
+
# * :employee_and_spouse (Float)
|
595
668
|
# * :deductible_remaining (Hash)
|
596
669
|
# * :family (Float)
|
597
670
|
# * :individual (Float)
|
671
|
+
# * :employee_and_spouse (Float)
|
672
|
+
# * :deductible_year_to_date (Hash)
|
673
|
+
# * :family (Float)
|
674
|
+
# * :individual (Float)
|
675
|
+
# * :employee_and_spouse (Float)
|
598
676
|
# * :oop_max (Hash)
|
599
677
|
# * :family (Float)
|
600
678
|
# * :individual (Float)
|
679
|
+
# * :employee_and_spouse (Float)
|
601
680
|
# * :oop_max_remaining (Hash)
|
602
681
|
# * :family (Float)
|
603
682
|
# * :individual (Float)
|
683
|
+
# * :employee_and_spouse (Float)
|
684
|
+
# * :oop_year_to_date (Hash)
|
685
|
+
# * :family (Float)
|
686
|
+
# * :individual (Float)
|
687
|
+
# * :employee_and_spouse (Float)
|
604
688
|
# * :additional_notes (String)
|
605
689
|
# * :in_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
|
606
690
|
# * :out_of_network (Hash)
|
607
691
|
# * :deductible (Hash)
|
608
692
|
# * :family (Float)
|
609
693
|
# * :individual (Float)
|
694
|
+
# * :employee_and_spouse (Float)
|
610
695
|
# * :deductible_remaining (Hash)
|
611
696
|
# * :family (Float)
|
612
697
|
# * :individual (Float)
|
698
|
+
# * :employee_and_spouse (Float)
|
699
|
+
# * :deductible_year_to_date (Hash)
|
700
|
+
# * :family (Float)
|
701
|
+
# * :individual (Float)
|
702
|
+
# * :employee_and_spouse (Float)
|
613
703
|
# * :oop_max (Hash)
|
614
704
|
# * :family (Float)
|
615
705
|
# * :individual (Float)
|
706
|
+
# * :employee_and_spouse (Float)
|
616
707
|
# * :oop_max_remaining (Hash)
|
617
708
|
# * :family (Float)
|
618
709
|
# * :individual (Float)
|
710
|
+
# * :employee_and_spouse (Float)
|
711
|
+
# * :oop_year_to_date (Hash)
|
712
|
+
# * :family (Float)
|
713
|
+
# * :individual (Float)
|
714
|
+
# * :employee_and_spouse (Float)
|
619
715
|
# * :additional_notes (String)
|
620
716
|
# * :out_of_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
|
621
717
|
# * :service_specific_coverage (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>)
|
@@ -8,8 +8,10 @@ module CandidApiClient
|
|
8
8
|
class BenefitType
|
9
9
|
DEDUCTIBLE = "DEDUCTIBLE"
|
10
10
|
DEDUCTIBLE_REMAINING = "DEDUCTIBLE_REMAINING"
|
11
|
+
DEDUCTIBLE_YEAR_TO_DATE = "DEDUCTIBLE_YEAR_TO_DATE"
|
11
12
|
OOP_MAX = "OOP_MAX"
|
12
13
|
OOP_MAX_REMAINING = "OOP_MAX_REMAINING"
|
14
|
+
OOP_YEAR_TO_DATE = "OOP_YEAR_TO_DATE"
|
13
15
|
COPAY = "COPAY"
|
14
16
|
COINSURANCE = "COINSURANCE"
|
15
17
|
end
|
@@ -13,6 +13,8 @@ module CandidApiClient
|
|
13
13
|
attr_reader :family
|
14
14
|
# @return [Float]
|
15
15
|
attr_reader :individual
|
16
|
+
# @return [Float]
|
17
|
+
attr_reader :employee_and_spouse
|
16
18
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
17
19
|
attr_reader :additional_properties
|
18
20
|
# @return [Object]
|
@@ -23,13 +25,19 @@ module CandidApiClient
|
|
23
25
|
|
24
26
|
# @param family [Float]
|
25
27
|
# @param individual [Float]
|
28
|
+
# @param employee_and_spouse [Float]
|
26
29
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
27
30
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
|
28
|
-
def initialize(family: OMIT, individual: OMIT, additional_properties: nil)
|
31
|
+
def initialize(family: OMIT, individual: OMIT, employee_and_spouse: OMIT, additional_properties: nil)
|
29
32
|
@family = family if family != OMIT
|
30
33
|
@individual = individual if individual != OMIT
|
34
|
+
@employee_and_spouse = employee_and_spouse if employee_and_spouse != OMIT
|
31
35
|
@additional_properties = additional_properties
|
32
|
-
@_field_set = {
|
36
|
+
@_field_set = {
|
37
|
+
"family": family,
|
38
|
+
"individual": individual,
|
39
|
+
"employeeAndSpouse": employee_and_spouse
|
40
|
+
}.reject do |_k, v|
|
33
41
|
v == OMIT
|
34
42
|
end
|
35
43
|
end
|
@@ -42,9 +50,11 @@ module CandidApiClient
|
|
42
50
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
43
51
|
family = struct["family"]
|
44
52
|
individual = struct["individual"]
|
53
|
+
employee_and_spouse = struct["employeeAndSpouse"]
|
45
54
|
new(
|
46
55
|
family: family,
|
47
56
|
individual: individual,
|
57
|
+
employee_and_spouse: employee_and_spouse,
|
48
58
|
additional_properties: struct
|
49
59
|
)
|
50
60
|
end
|
@@ -65,6 +75,7 @@ module CandidApiClient
|
|
65
75
|
def self.validate_raw(obj:)
|
66
76
|
obj.family&.is_a?(Float) != false || raise("Passed value for field obj.family is not the expected type, validation failed.")
|
67
77
|
obj.individual&.is_a?(Float) != false || raise("Passed value for field obj.individual is not the expected type, validation failed.")
|
78
|
+
obj.employee_and_spouse&.is_a?(Float) != false || raise("Passed value for field obj.employee_and_spouse is not the expected type, validation failed.")
|
68
79
|
end
|
69
80
|
end
|
70
81
|
end
|
@@ -15,9 +15,13 @@ module CandidApiClient
|
|
15
15
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
|
16
16
|
attr_reader :deductible_remaining
|
17
17
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
|
18
|
+
attr_reader :deductible_year_to_date
|
19
|
+
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
|
18
20
|
attr_reader :oop_max
|
19
21
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
|
20
22
|
attr_reader :oop_max_remaining
|
23
|
+
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
|
24
|
+
attr_reader :oop_year_to_date
|
21
25
|
# @return [String]
|
22
26
|
attr_reader :additional_notes
|
23
27
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
@@ -30,24 +34,30 @@ module CandidApiClient
|
|
30
34
|
|
31
35
|
# @param deductible [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
|
32
36
|
# @param deductible_remaining [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
|
37
|
+
# @param deductible_year_to_date [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
|
33
38
|
# @param oop_max [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
|
34
39
|
# @param oop_max_remaining [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
|
40
|
+
# @param oop_year_to_date [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
|
35
41
|
# @param additional_notes [String]
|
36
42
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
37
43
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::PlanCoverageDetails]
|
38
|
-
def initialize(deductible: OMIT, deductible_remaining: OMIT,
|
39
|
-
additional_notes: OMIT, additional_properties: nil)
|
44
|
+
def initialize(deductible: OMIT, deductible_remaining: OMIT, deductible_year_to_date: OMIT, oop_max: OMIT,
|
45
|
+
oop_max_remaining: OMIT, oop_year_to_date: OMIT, additional_notes: OMIT, additional_properties: nil)
|
40
46
|
@deductible = deductible if deductible != OMIT
|
41
47
|
@deductible_remaining = deductible_remaining if deductible_remaining != OMIT
|
48
|
+
@deductible_year_to_date = deductible_year_to_date if deductible_year_to_date != OMIT
|
42
49
|
@oop_max = oop_max if oop_max != OMIT
|
43
50
|
@oop_max_remaining = oop_max_remaining if oop_max_remaining != OMIT
|
51
|
+
@oop_year_to_date = oop_year_to_date if oop_year_to_date != OMIT
|
44
52
|
@additional_notes = additional_notes if additional_notes != OMIT
|
45
53
|
@additional_properties = additional_properties
|
46
54
|
@_field_set = {
|
47
55
|
"deductible": deductible,
|
48
56
|
"deductible_remaining": deductible_remaining,
|
57
|
+
"deductible_year_to_date": deductible_year_to_date,
|
49
58
|
"oop_max": oop_max,
|
50
59
|
"oop_max_remaining": oop_max_remaining,
|
60
|
+
"oop_year_to_date": oop_year_to_date,
|
51
61
|
"additional_notes": additional_notes
|
52
62
|
}.reject do |_k, v|
|
53
63
|
v == OMIT
|
@@ -73,6 +83,12 @@ module CandidApiClient
|
|
73
83
|
deductible_remaining = parsed_json["deductible_remaining"].to_json
|
74
84
|
deductible_remaining = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.from_json(json_object: deductible_remaining)
|
75
85
|
end
|
86
|
+
if parsed_json["deductible_year_to_date"].nil?
|
87
|
+
deductible_year_to_date = nil
|
88
|
+
else
|
89
|
+
deductible_year_to_date = parsed_json["deductible_year_to_date"].to_json
|
90
|
+
deductible_year_to_date = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.from_json(json_object: deductible_year_to_date)
|
91
|
+
end
|
76
92
|
if parsed_json["oop_max"].nil?
|
77
93
|
oop_max = nil
|
78
94
|
else
|
@@ -85,12 +101,20 @@ module CandidApiClient
|
|
85
101
|
oop_max_remaining = parsed_json["oop_max_remaining"].to_json
|
86
102
|
oop_max_remaining = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.from_json(json_object: oop_max_remaining)
|
87
103
|
end
|
104
|
+
if parsed_json["oop_year_to_date"].nil?
|
105
|
+
oop_year_to_date = nil
|
106
|
+
else
|
107
|
+
oop_year_to_date = parsed_json["oop_year_to_date"].to_json
|
108
|
+
oop_year_to_date = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.from_json(json_object: oop_year_to_date)
|
109
|
+
end
|
88
110
|
additional_notes = struct["additional_notes"]
|
89
111
|
new(
|
90
112
|
deductible: deductible,
|
91
113
|
deductible_remaining: deductible_remaining,
|
114
|
+
deductible_year_to_date: deductible_year_to_date,
|
92
115
|
oop_max: oop_max,
|
93
116
|
oop_max_remaining: oop_max_remaining,
|
117
|
+
oop_year_to_date: oop_year_to_date,
|
94
118
|
additional_notes: additional_notes,
|
95
119
|
additional_properties: struct
|
96
120
|
)
|
@@ -112,8 +136,10 @@ module CandidApiClient
|
|
112
136
|
def self.validate_raw(obj:)
|
113
137
|
obj.deductible.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.deductible)
|
114
138
|
obj.deductible_remaining.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.deductible_remaining)
|
139
|
+
obj.deductible_year_to_date.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.deductible_year_to_date)
|
115
140
|
obj.oop_max.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.oop_max)
|
116
141
|
obj.oop_max_remaining.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.oop_max_remaining)
|
142
|
+
obj.oop_year_to_date.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.oop_year_to_date)
|
117
143
|
obj.additional_notes&.is_a?(String) != false || raise("Passed value for field obj.additional_notes is not the expected type, validation failed.")
|
118
144
|
end
|
119
145
|
end
|
@@ -16,6 +16,8 @@ module CandidApiClient
|
|
16
16
|
attr_reader :next_page_token
|
17
17
|
# @return [String]
|
18
18
|
attr_reader :prev_page_token
|
19
|
+
# @return [Integer]
|
20
|
+
attr_reader :total
|
19
21
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
20
22
|
attr_reader :additional_properties
|
21
23
|
# @return [Object]
|
@@ -27,17 +29,20 @@ module CandidApiClient
|
|
27
29
|
# @param items [Array<CandidApiClient::PreEncounter::Lists::V1::Types::AppointmentListItem>]
|
28
30
|
# @param next_page_token [String]
|
29
31
|
# @param prev_page_token [String]
|
32
|
+
# @param total [Integer]
|
30
33
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
31
34
|
# @return [CandidApiClient::PreEncounter::Lists::V1::Types::AppointmentListPage]
|
32
|
-
def initialize(items:, next_page_token: OMIT, prev_page_token: OMIT, additional_properties: nil)
|
35
|
+
def initialize(items:, total:, next_page_token: OMIT, prev_page_token: OMIT, additional_properties: nil)
|
33
36
|
@items = items
|
34
37
|
@next_page_token = next_page_token if next_page_token != OMIT
|
35
38
|
@prev_page_token = prev_page_token if prev_page_token != OMIT
|
39
|
+
@total = total
|
36
40
|
@additional_properties = additional_properties
|
37
41
|
@_field_set = {
|
38
42
|
"items": items,
|
39
43
|
"next_page_token": next_page_token,
|
40
|
-
"prev_page_token": prev_page_token
|
44
|
+
"prev_page_token": prev_page_token,
|
45
|
+
"total": total
|
41
46
|
}.reject do |_k, v|
|
42
47
|
v == OMIT
|
43
48
|
end
|
@@ -56,10 +61,12 @@ module CandidApiClient
|
|
56
61
|
end
|
57
62
|
next_page_token = struct["next_page_token"]
|
58
63
|
prev_page_token = struct["prev_page_token"]
|
64
|
+
total = struct["total"]
|
59
65
|
new(
|
60
66
|
items: items,
|
61
67
|
next_page_token: next_page_token,
|
62
68
|
prev_page_token: prev_page_token,
|
69
|
+
total: total,
|
63
70
|
additional_properties: struct
|
64
71
|
)
|
65
72
|
end
|
@@ -81,6 +88,7 @@ module CandidApiClient
|
|
81
88
|
obj.items.is_a?(Array) != false || raise("Passed value for field obj.items is not the expected type, validation failed.")
|
82
89
|
obj.next_page_token&.is_a?(String) != false || raise("Passed value for field obj.next_page_token is not the expected type, validation failed.")
|
83
90
|
obj.prev_page_token&.is_a?(String) != false || raise("Passed value for field obj.prev_page_token is not the expected type, validation failed.")
|
91
|
+
obj.total.is_a?(Integer) != false || raise("Passed value for field obj.total is not the expected type, validation failed.")
|
84
92
|
end
|
85
93
|
end
|
86
94
|
end
|
@@ -16,6 +16,8 @@ module CandidApiClient
|
|
16
16
|
attr_reader :next_page_token
|
17
17
|
# @return [String]
|
18
18
|
attr_reader :prev_page_token
|
19
|
+
# @return [Integer]
|
20
|
+
attr_reader :total
|
19
21
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
20
22
|
attr_reader :additional_properties
|
21
23
|
# @return [Object]
|
@@ -27,17 +29,20 @@ module CandidApiClient
|
|
27
29
|
# @param items [Array<CandidApiClient::PreEncounter::Lists::V1::Types::PatientListItem>]
|
28
30
|
# @param next_page_token [String]
|
29
31
|
# @param prev_page_token [String]
|
32
|
+
# @param total [Integer]
|
30
33
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
31
34
|
# @return [CandidApiClient::PreEncounter::Lists::V1::Types::PatientListPage]
|
32
|
-
def initialize(items:, next_page_token: OMIT, prev_page_token: OMIT, additional_properties: nil)
|
35
|
+
def initialize(items:, total:, next_page_token: OMIT, prev_page_token: OMIT, additional_properties: nil)
|
33
36
|
@items = items
|
34
37
|
@next_page_token = next_page_token if next_page_token != OMIT
|
35
38
|
@prev_page_token = prev_page_token if prev_page_token != OMIT
|
39
|
+
@total = total
|
36
40
|
@additional_properties = additional_properties
|
37
41
|
@_field_set = {
|
38
42
|
"items": items,
|
39
43
|
"next_page_token": next_page_token,
|
40
|
-
"prev_page_token": prev_page_token
|
44
|
+
"prev_page_token": prev_page_token,
|
45
|
+
"total": total
|
41
46
|
}.reject do |_k, v|
|
42
47
|
v == OMIT
|
43
48
|
end
|
@@ -56,10 +61,12 @@ module CandidApiClient
|
|
56
61
|
end
|
57
62
|
next_page_token = struct["next_page_token"]
|
58
63
|
prev_page_token = struct["prev_page_token"]
|
64
|
+
total = struct["total"]
|
59
65
|
new(
|
60
66
|
items: items,
|
61
67
|
next_page_token: next_page_token,
|
62
68
|
prev_page_token: prev_page_token,
|
69
|
+
total: total,
|
63
70
|
additional_properties: struct
|
64
71
|
)
|
65
72
|
end
|
@@ -81,6 +88,7 @@ module CandidApiClient
|
|
81
88
|
obj.items.is_a?(Array) != false || raise("Passed value for field obj.items is not the expected type, validation failed.")
|
82
89
|
obj.next_page_token&.is_a?(String) != false || raise("Passed value for field obj.next_page_token is not the expected type, validation failed.")
|
83
90
|
obj.prev_page_token&.is_a?(String) != false || raise("Passed value for field obj.prev_page_token is not the expected type, validation failed.")
|
91
|
+
obj.total.is_a?(Integer) != false || raise("Passed value for field obj.total is not the expected type, validation failed.")
|
84
92
|
end
|
85
93
|
end
|
86
94
|
end
|
@@ -16,6 +16,8 @@ module CandidApiClient
|
|
16
16
|
attr_reader :next_page_token
|
17
17
|
# @return [String]
|
18
18
|
attr_reader :prev_page_token
|
19
|
+
# @return [Integer]
|
20
|
+
attr_reader :total
|
19
21
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
20
22
|
attr_reader :additional_properties
|
21
23
|
# @return [Object]
|
@@ -27,17 +29,20 @@ module CandidApiClient
|
|
27
29
|
# @param items [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
|
28
30
|
# @param next_page_token [String]
|
29
31
|
# @param prev_page_token [String]
|
32
|
+
# @param total [Integer]
|
30
33
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
31
34
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::PatientPage]
|
32
|
-
def initialize(items:, next_page_token: OMIT, prev_page_token: OMIT, additional_properties: nil)
|
35
|
+
def initialize(items:, total:, next_page_token: OMIT, prev_page_token: OMIT, additional_properties: nil)
|
33
36
|
@items = items
|
34
37
|
@next_page_token = next_page_token if next_page_token != OMIT
|
35
38
|
@prev_page_token = prev_page_token if prev_page_token != OMIT
|
39
|
+
@total = total
|
36
40
|
@additional_properties = additional_properties
|
37
41
|
@_field_set = {
|
38
42
|
"items": items,
|
39
43
|
"next_page_token": next_page_token,
|
40
|
-
"prev_page_token": prev_page_token
|
44
|
+
"prev_page_token": prev_page_token,
|
45
|
+
"total": total
|
41
46
|
}.reject do |_k, v|
|
42
47
|
v == OMIT
|
43
48
|
end
|
@@ -56,10 +61,12 @@ module CandidApiClient
|
|
56
61
|
end
|
57
62
|
next_page_token = struct["next_page_token"]
|
58
63
|
prev_page_token = struct["prev_page_token"]
|
64
|
+
total = struct["total"]
|
59
65
|
new(
|
60
66
|
items: items,
|
61
67
|
next_page_token: next_page_token,
|
62
68
|
prev_page_token: prev_page_token,
|
69
|
+
total: total,
|
63
70
|
additional_properties: struct
|
64
71
|
)
|
65
72
|
end
|
@@ -81,6 +88,7 @@ module CandidApiClient
|
|
81
88
|
obj.items.is_a?(Array) != false || raise("Passed value for field obj.items is not the expected type, validation failed.")
|
82
89
|
obj.next_page_token&.is_a?(String) != false || raise("Passed value for field obj.next_page_token is not the expected type, validation failed.")
|
83
90
|
obj.prev_page_token&.is_a?(String) != false || raise("Passed value for field obj.prev_page_token is not the expected type, validation failed.")
|
91
|
+
obj.total.is_a?(Integer) != false || raise("Passed value for field obj.total is not the expected type, validation failed.")
|
84
92
|
end
|
85
93
|
end
|
86
94
|
end
|
@@ -16,6 +16,8 @@ module CandidApiClient
|
|
16
16
|
attr_reader :next_page_token
|
17
17
|
# @return [String]
|
18
18
|
attr_reader :prev_page_token
|
19
|
+
# @return [Integer]
|
20
|
+
attr_reader :total
|
19
21
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
20
22
|
attr_reader :additional_properties
|
21
23
|
# @return [Object]
|
@@ -27,17 +29,20 @@ module CandidApiClient
|
|
27
29
|
# @param items [Array<CandidApiClient::PreEncounter::Tags::V1::Types::Tag>]
|
28
30
|
# @param next_page_token [String]
|
29
31
|
# @param prev_page_token [String]
|
32
|
+
# @param total [Integer]
|
30
33
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
31
34
|
# @return [CandidApiClient::PreEncounter::Tags::V1::Types::TagPage]
|
32
|
-
def initialize(items:, next_page_token: OMIT, prev_page_token: OMIT, additional_properties: nil)
|
35
|
+
def initialize(items:, total:, next_page_token: OMIT, prev_page_token: OMIT, additional_properties: nil)
|
33
36
|
@items = items
|
34
37
|
@next_page_token = next_page_token if next_page_token != OMIT
|
35
38
|
@prev_page_token = prev_page_token if prev_page_token != OMIT
|
39
|
+
@total = total
|
36
40
|
@additional_properties = additional_properties
|
37
41
|
@_field_set = {
|
38
42
|
"items": items,
|
39
43
|
"next_page_token": next_page_token,
|
40
|
-
"prev_page_token": prev_page_token
|
44
|
+
"prev_page_token": prev_page_token,
|
45
|
+
"total": total
|
41
46
|
}.reject do |_k, v|
|
42
47
|
v == OMIT
|
43
48
|
end
|
@@ -56,10 +61,12 @@ module CandidApiClient
|
|
56
61
|
end
|
57
62
|
next_page_token = struct["next_page_token"]
|
58
63
|
prev_page_token = struct["prev_page_token"]
|
64
|
+
total = struct["total"]
|
59
65
|
new(
|
60
66
|
items: items,
|
61
67
|
next_page_token: next_page_token,
|
62
68
|
prev_page_token: prev_page_token,
|
69
|
+
total: total,
|
63
70
|
additional_properties: struct
|
64
71
|
)
|
65
72
|
end
|
@@ -81,6 +88,7 @@ module CandidApiClient
|
|
81
88
|
obj.items.is_a?(Array) != false || raise("Passed value for field obj.items is not the expected type, validation failed.")
|
82
89
|
obj.next_page_token&.is_a?(String) != false || raise("Passed value for field obj.next_page_token is not the expected type, validation failed.")
|
83
90
|
obj.prev_page_token&.is_a?(String) != false || raise("Passed value for field obj.prev_page_token is not the expected type, validation failed.")
|
91
|
+
obj.total.is_a?(Integer) != false || raise("Passed value for field obj.total is not the expected type, validation failed.")
|
84
92
|
end
|
85
93
|
end
|
86
94
|
end
|
@@ -37,6 +37,7 @@ module CandidApiClient
|
|
37
37
|
M_30 = "M30"
|
38
38
|
M_31 = "M31"
|
39
39
|
M_32 = "M32"
|
40
|
+
M_34 = "M34"
|
40
41
|
M_36 = "M36"
|
41
42
|
M_37 = "M37"
|
42
43
|
M_38 = "M38"
|
@@ -264,6 +265,7 @@ module CandidApiClient
|
|
264
265
|
N_26 = "N26"
|
265
266
|
N_27 = "N27"
|
266
267
|
N_28 = "N28"
|
268
|
+
N_29 = "N29"
|
267
269
|
N_30 = "N30"
|
268
270
|
N_31 = "N31"
|
269
271
|
N_32 = "N32"
|
@@ -1072,6 +1074,7 @@ module CandidApiClient
|
|
1072
1074
|
N_860 = "N860"
|
1073
1075
|
N_880 = "N880"
|
1074
1076
|
N_887 = "N887"
|
1077
|
+
N_888 = "N888"
|
1075
1078
|
N_891 = "N891"
|
1076
1079
|
end
|
1077
1080
|
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.38.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.38.1" }
|
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.38.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.38.1" }
|
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
@@ -79,6 +79,7 @@ require_relative "candidhealth/encounters/v_4/types/encounter_external_id_unique
|
|
79
79
|
require_relative "candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type"
|
80
80
|
require_relative "candidhealth/encounters/v_4/types/encounter_guarantor_missing_contact_info_error_type"
|
81
81
|
require_relative "candidhealth/encounters/v_4/types/cash_pay_payer_error_message"
|
82
|
+
require_relative "candidhealth/encounters/v_4/types/invalid_tag_names_error_type"
|
82
83
|
require_relative "candidhealth/encounters/v_4/types/service_authorization_exception_code"
|
83
84
|
require_relative "candidhealth/encounters/v_4/types/schema_instance_validation_failure"
|
84
85
|
require_relative "candidhealth/encounters/v_4/types/key_does_not_exist_error"
|
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.38.
|
4
|
+
version: 0.38.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -228,6 +228,7 @@ files:
|
|
228
228
|
- lib/candidhealth/encounters/v_4/types/intake_response_and_follow_ups.rb
|
229
229
|
- lib/candidhealth/encounters/v_4/types/intervention.rb
|
230
230
|
- lib/candidhealth/encounters/v_4/types/intervention_category.rb
|
231
|
+
- lib/candidhealth/encounters/v_4/types/invalid_tag_names_error_type.rb
|
231
232
|
- lib/candidhealth/encounters/v_4/types/key_does_not_exist_error.rb
|
232
233
|
- lib/candidhealth/encounters/v_4/types/lab.rb
|
233
234
|
- lib/candidhealth/encounters/v_4/types/lab_code_type.rb
|