candidhealth 1.0.0 → 1.3.0
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/auth/client.rb +7 -7
- data/lib/candidhealth/auth/{v_2 → default}/client.rb +39 -13
- data/lib/candidhealth/auth/{v_2 → default}/types/auth_get_token_response.rb +3 -3
- data/lib/candidhealth/auth/default/types/invalid_content_type_error_type.rb +60 -0
- data/lib/candidhealth/auth/{v_2 → default}/types/too_many_requests_error_type.rb +3 -3
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_base_optional.rb +62 -0
- data/lib/candidhealth/charge_capture/v_1/client.rb +504 -482
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +17 -1
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +173 -173
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_error.rb +26 -2
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +58 -0
- data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create_optional.rb +100 -0
- data/lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create_optional.rb +101 -0
- data/lib/candidhealth/commons/types/phone_number_optional.rb +71 -0
- data/lib/candidhealth/commons/types/procedure_modifier.rb +2 -0
- data/lib/candidhealth/commons/types/street_address_long_zip_optional.rb +107 -0
- data/lib/candidhealth/custom_schemas/v_1/types/schema_instance_optional.rb +78 -0
- data/lib/candidhealth/diagnoses/client.rb +23 -4
- data/lib/candidhealth/diagnoses/types/diagnosis.rb +21 -2
- data/lib/candidhealth/diagnoses/types/diagnosis_create.rb +25 -2
- data/lib/candidhealth/diagnoses/types/diagnosis_create_optional.rb +126 -0
- data/lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb +22 -2
- data/lib/candidhealth/encounter_providers/v_2/types/ordering_provider_optional.rb +123 -0
- data/lib/candidhealth/encounters/v_4/client.rb +214 -208
- data/lib/candidhealth/encounters/v_4/types/claim_supplemental_information_optional.rb +86 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note_category_create_optional.rb +78 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note_optional.rb +93 -0
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +16 -4
- data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +4 -2
- data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +780 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +1 -139
- data/lib/candidhealth/encounters/v_4/types/epsdt_referral_optional.rb +85 -0
- data/lib/candidhealth/encounters/v_4/types/intake_question_optional.rb +84 -0
- data/lib/candidhealth/encounters/v_4/types/intervention_optional.rb +114 -0
- data/lib/candidhealth/encounters/v_4/types/lab_optional.rb +80 -0
- data/lib/candidhealth/encounters/v_4/types/medication_optional.rb +108 -0
- data/lib/candidhealth/encounters/v_4/types/patient_history_category_optional.rb +78 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb +144 -0
- data/lib/candidhealth/individual/types/individual_base_optional.rb +78 -0
- data/lib/candidhealth/individual/types/patient_non_insurance_payer_info_create_optional.rb +89 -0
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +8 -8
- data/lib/candidhealth/individual/types/subscriber_base_optional.rb +118 -0
- data/lib/candidhealth/individual/types/subscriber_create_optional.rb +132 -0
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_create.rb +9 -1
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_create_optional.rb +167 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization.rb +13 -1
- data/lib/candidhealth/service_lines/v_2/types/drug_identification_optional.rb +126 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +239 -0
- data/lib/candidhealth/service_lines/v_2/types/test_result_optional.rb +73 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_reason.rb +1 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off_reason.rb +1 -0
- data/lib/candidhealth/yes_no_indicator/types/yes_no_indicator.rb +14 -0
- data/lib/core/oauth.rb +2 -2
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +32 -3
- metadata +34 -5
@@ -1,11 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "../../../diagnoses/types/
|
4
|
-
require_relative "../../../encounters/v_4/types/
|
5
|
-
require_relative "../../../
|
6
|
-
require_relative "../../../
|
7
|
-
require_relative "../../../encounters/v_4/types/
|
8
|
-
require_relative "../../../
|
3
|
+
require_relative "../../../diagnoses/types/diagnosis_create_optional"
|
4
|
+
require_relative "../../../encounters/v_4/types/clinical_note_category_create_optional"
|
5
|
+
require_relative "../../../encounters/v_4/types/claim_supplemental_information_optional"
|
6
|
+
require_relative "../../../encounters/v_4/types/epsdt_referral_optional"
|
7
|
+
require_relative "../../../encounters/v_4/types/medication_optional"
|
8
|
+
require_relative "../../../guarantor/v_1/types/guarantor_optional"
|
9
|
+
require_relative "../../../individual/types/subscriber_create_optional"
|
10
|
+
require_relative "../../../encounters/v_4/types/intervention_optional"
|
11
|
+
require_relative "../../../custom_schemas/v_1/types/schema_instance_optional"
|
12
|
+
require_relative "../../../claim_submission/v_1/types/external_claim_submission_create_optional"
|
13
|
+
require_relative "../../../service_lines/v_2/types/service_line_create_optional"
|
14
|
+
require_relative "../../../encounters/v_4/types/patient_history_category_optional"
|
15
|
+
require_relative "../../../billing_notes/v_2/types/billing_note_base_optional"
|
9
16
|
require_relative "../../../individual/types/patient_update_with_optional_address"
|
10
17
|
require_relative "../../../service_facility/types/encounter_service_facility_update_with_optional_address"
|
11
18
|
require_relative "../../../encounter_providers/v_2/types/rendering_provider_update_with_optional_address"
|
@@ -15,20 +22,13 @@ require_relative "../../../encounter_providers/v_2/types/supervising_provider_up
|
|
15
22
|
require_relative "../../../encounter_providers/v_2/types/billing_provider_update_with_optional_address"
|
16
23
|
require_relative "../../../commons/types/street_address_short_zip_optional"
|
17
24
|
require "date"
|
18
|
-
require_relative "../../../encounters/v_4/types/clinical_note_category_create"
|
19
25
|
require_relative "../../../encounters/v_4/types/billable_status_type"
|
20
26
|
require_relative "../../../encounters/v_4/types/responsible_party_type"
|
21
27
|
require_relative "../../../encounters/v_4/types/synchronicity_type"
|
22
28
|
require_relative "../../../commons/types/facility_type_code"
|
23
|
-
require_relative "../../../individual/types/subscriber_create"
|
24
29
|
require_relative "../../../encounters/v_4/types/service_authorization_exception_code"
|
25
30
|
require_relative "../../../commons/types/delay_reason_code"
|
26
|
-
require_relative "../../../custom_schemas/v_1/types/schema_instance"
|
27
31
|
require_relative "../../../encounters/v_4/types/vitals_update"
|
28
|
-
require_relative "../../../encounters/v_4/types/medication"
|
29
|
-
require_relative "../../../guarantor/v_1/types/guarantor_update"
|
30
|
-
require_relative "../../../encounters/v_4/types/epsdt_referral"
|
31
|
-
require_relative "../../../encounters/v_4/types/claim_supplemental_information"
|
32
32
|
require "ostruct"
|
33
33
|
require "json"
|
34
34
|
|
@@ -37,26 +37,56 @@ module CandidApiClient
|
|
37
37
|
module V1
|
38
38
|
module Types
|
39
39
|
class ChargeCaptureData
|
40
|
-
# @return [Array<CandidApiClient::Diagnoses::Types::
|
40
|
+
# @return [Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
41
41
|
# diagnoses
|
42
42
|
# may be submitted at this time, and coders will later prioritize the 12 that will
|
43
43
|
# be
|
44
44
|
# submitted to the payor.
|
45
45
|
attr_reader :diagnoses
|
46
|
-
# @return [Array<CandidApiClient::Encounters::V4::Types::
|
46
|
+
# @return [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>] Holds a collection of clinical observations made by healthcare providers during
|
47
|
+
# patient encounters. Please note that medical records for appeals should be sent
|
48
|
+
# using the Encounter Attachments API.
|
49
|
+
attr_reader :clinical_notes
|
50
|
+
# @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
51
|
+
# permitted.
|
52
|
+
attr_reader :claim_supplemental_information
|
53
|
+
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferralOptional] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
54
|
+
# 837P form
|
55
|
+
attr_reader :epsdt_referral
|
56
|
+
# @return [Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>] Existing medications that should be on the encounter.
|
57
|
+
# Note all current existing medications on encounter will be overridden with this
|
58
|
+
# list.
|
59
|
+
attr_reader :existing_medications
|
60
|
+
# @return [CandidApiClient::Guarantor::V1::Types::GuarantorOptional] Personal and contact info for the guarantor of the patient responsibility.
|
61
|
+
attr_reader :guarantor
|
62
|
+
# @return [CandidApiClient::Individual::Types::SubscriberCreateOptional] Contains details of the primary insurance subscriber.
|
63
|
+
attr_reader :subscriber_primary
|
64
|
+
# @return [CandidApiClient::Individual::Types::SubscriberCreateOptional] Contains details of the secondary insurance subscriber.
|
65
|
+
attr_reader :subscriber_secondary
|
66
|
+
# @return [CandidApiClient::Individual::Types::SubscriberCreateOptional] Contains details of the tertiary insurance subscriber.
|
67
|
+
attr_reader :subscriber_tertiary
|
68
|
+
# @return [Array<CandidApiClient::Encounters::V4::Types::InterventionOptional>]
|
47
69
|
attr_reader :interventions
|
48
|
-
# @return [CandidApiClient::
|
70
|
+
# @return [Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstanceOptional>] Key-value pairs that must adhere to a schema created via the Custom Schema API.
|
71
|
+
# Multiple schema
|
72
|
+
# instances cannot be created for the same schema on an encounter. Updating schema
|
73
|
+
# instances utilizes PUT
|
74
|
+
# semantics, so the schema instances on the encounter will be set to whatever
|
75
|
+
# inputs are provided. If null
|
76
|
+
# is provided as an input, then the encounter's schema instances will be cleared.
|
77
|
+
attr_reader :schema_instances
|
78
|
+
# @return [CandidApiClient::ClaimSubmission::V1::Types::ExternalClaimSubmissionCreateOptional] ***This field is in beta.***
|
49
79
|
# To be included for claims that have been submitted outside of Candid.
|
50
80
|
# Candid supports posting remits and payments to these claims and working them
|
51
81
|
# in-platform (e.g. editing, resubmitting).
|
52
82
|
attr_reader :external_claim_submission
|
53
|
-
# @return [Array<CandidApiClient::ServiceLines::V2::Types::
|
83
|
+
# @return [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateOptional>] Each service line must be linked to a diagnosis. Concretely,
|
54
84
|
# `service_line.diagnosis_pointers`must contain at least one entry which should be
|
55
85
|
# in bounds of the diagnoses list field.
|
56
86
|
attr_reader :service_lines
|
57
|
-
# @return [Array<CandidApiClient::Encounters::V4::Types::
|
87
|
+
# @return [Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryOptional>]
|
58
88
|
attr_reader :patient_histories
|
59
|
-
# @return [Array<CandidApiClient::BillingNotes::V2::Types::
|
89
|
+
# @return [Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBaseOptional>] Spot to store misc, human-readable, notes about this encounter to be
|
60
90
|
# used in the billing process.
|
61
91
|
attr_reader :billing_notes
|
62
92
|
# @return [CandidApiClient::Individual::Types::PatientUpdateWithOptionalAddress] Contains the identification information of the individual receiving medical
|
@@ -73,10 +103,9 @@ module CandidApiClient
|
|
73
103
|
# credentialing process.
|
74
104
|
attr_reader :service_facility
|
75
105
|
# @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdateWithOptionalAddress] The rendering provider is the practitioner -- physician, nurse practitioner,
|
76
|
-
# etc. -- performing the service.
|
77
|
-
#
|
78
|
-
#
|
79
|
-
# be the same as the service facility address.
|
106
|
+
# etc. -- performing the service. For telehealth services, the rendering provider
|
107
|
+
# performs the visit, asynchronous communication, or other service. The rendering
|
108
|
+
# provider address should generally be the same as the service facility address.
|
80
109
|
attr_reader :rendering_provider
|
81
110
|
# @return [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdateWithOptionalAddress] The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in
|
82
111
|
# this loop to
|
@@ -125,9 +154,6 @@ module CandidApiClient
|
|
125
154
|
# @return [Array<String>] Names of tags that should be on the encounter. Note all tags on encounter will
|
126
155
|
# be overridden with this list.
|
127
156
|
attr_reader :tag_ids
|
128
|
-
# @return [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
|
129
|
-
# patient encounters.
|
130
|
-
attr_reader :clinical_notes
|
131
157
|
# @return [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
132
158
|
# Examples for when this should be set to NOT_BILLABLE include if the Encounter
|
133
159
|
# has not occurred yet or if there is no intention of ever billing the
|
@@ -161,12 +187,6 @@ module CandidApiClient
|
|
161
187
|
# end_date_of_service values are the same, updating the encounter's
|
162
188
|
# end_date_of_service will update all service line date_of_service values.
|
163
189
|
attr_reader :end_date_of_service
|
164
|
-
# @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the primary insurance subscriber.
|
165
|
-
attr_reader :subscriber_primary
|
166
|
-
# @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the secondary insurance subscriber.
|
167
|
-
attr_reader :subscriber_secondary
|
168
|
-
# @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
|
169
|
-
attr_reader :subscriber_tertiary
|
170
190
|
# @return [String] Defines additional information on the claim needed by the payer.
|
171
191
|
# Box 19 on the CMS-1500 claim form.
|
172
192
|
attr_reader :additional_information
|
@@ -205,32 +225,12 @@ module CandidApiClient
|
|
205
225
|
# for billing purpose.
|
206
226
|
# Box 12 on the CMS-1500 claim form.
|
207
227
|
attr_reader :patient_authorized_release
|
208
|
-
# @return [Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>] Key-value pairs that must adhere to a schema created via the Custom Schema API.
|
209
|
-
# Multiple schema
|
210
|
-
# instances cannot be created for the same schema on an encounter. Updating schema
|
211
|
-
# instances utilizes PUT
|
212
|
-
# semantics, so the schema instances on the encounter will be set to whatever
|
213
|
-
# inputs are provided. If null
|
214
|
-
# is provided as an input, then the encounter's schema instances will be cleared.
|
215
|
-
attr_reader :schema_instances
|
216
228
|
# @return [CandidApiClient::Encounters::V4::Types::VitalsUpdate] If a vitals entity already exists for the encounter, then all values will be
|
217
229
|
# updated to the provided values.
|
218
230
|
# Otherwise, a new vitals object will be created for the encounter.
|
219
231
|
attr_reader :vitals
|
220
|
-
# @return [Array<CandidApiClient::Encounters::V4::Types::Medication>] Existing medications that should be on the encounter.
|
221
|
-
# Note all current existing medications on encounter will be overridden with this
|
222
|
-
# list.
|
223
|
-
attr_reader :existing_medications
|
224
|
-
# @return [CandidApiClient::Guarantor::V1::Types::GuarantorUpdate] Personal and contact info for the guarantor of the patient responsibility.
|
225
|
-
attr_reader :guarantor
|
226
232
|
# @return [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
227
233
|
attr_reader :referral_number
|
228
|
-
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
229
|
-
# 837P form
|
230
|
-
attr_reader :epsdt_referral
|
231
|
-
# @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
232
|
-
# permitted.
|
233
|
-
attr_reader :claim_supplemental_information
|
234
234
|
# @return [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
|
235
235
|
# identify the primary payer. This is required for certain states.
|
236
236
|
attr_reader :secondary_payer_carrier_code
|
@@ -242,21 +242,42 @@ module CandidApiClient
|
|
242
242
|
|
243
243
|
OMIT = Object.new
|
244
244
|
|
245
|
-
# @param diagnoses [Array<CandidApiClient::Diagnoses::Types::
|
245
|
+
# @param diagnoses [Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
246
246
|
# diagnoses
|
247
247
|
# may be submitted at this time, and coders will later prioritize the 12 that will
|
248
248
|
# be
|
249
249
|
# submitted to the payor.
|
250
|
-
# @param
|
251
|
-
#
|
250
|
+
# @param clinical_notes [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>] Holds a collection of clinical observations made by healthcare providers during
|
251
|
+
# patient encounters. Please note that medical records for appeals should be sent
|
252
|
+
# using the Encounter Attachments API.
|
253
|
+
# @param claim_supplemental_information [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
254
|
+
# permitted.
|
255
|
+
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferralOptional] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
256
|
+
# 837P form
|
257
|
+
# @param existing_medications [Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>] Existing medications that should be on the encounter.
|
258
|
+
# Note all current existing medications on encounter will be overridden with this
|
259
|
+
# list.
|
260
|
+
# @param guarantor [CandidApiClient::Guarantor::V1::Types::GuarantorOptional] Personal and contact info for the guarantor of the patient responsibility.
|
261
|
+
# @param subscriber_primary [CandidApiClient::Individual::Types::SubscriberCreateOptional] Contains details of the primary insurance subscriber.
|
262
|
+
# @param subscriber_secondary [CandidApiClient::Individual::Types::SubscriberCreateOptional] Contains details of the secondary insurance subscriber.
|
263
|
+
# @param subscriber_tertiary [CandidApiClient::Individual::Types::SubscriberCreateOptional] Contains details of the tertiary insurance subscriber.
|
264
|
+
# @param interventions [Array<CandidApiClient::Encounters::V4::Types::InterventionOptional>]
|
265
|
+
# @param schema_instances [Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstanceOptional>] Key-value pairs that must adhere to a schema created via the Custom Schema API.
|
266
|
+
# Multiple schema
|
267
|
+
# instances cannot be created for the same schema on an encounter. Updating schema
|
268
|
+
# instances utilizes PUT
|
269
|
+
# semantics, so the schema instances on the encounter will be set to whatever
|
270
|
+
# inputs are provided. If null
|
271
|
+
# is provided as an input, then the encounter's schema instances will be cleared.
|
272
|
+
# @param external_claim_submission [CandidApiClient::ClaimSubmission::V1::Types::ExternalClaimSubmissionCreateOptional] ***This field is in beta.***
|
252
273
|
# To be included for claims that have been submitted outside of Candid.
|
253
274
|
# Candid supports posting remits and payments to these claims and working them
|
254
275
|
# in-platform (e.g. editing, resubmitting).
|
255
|
-
# @param service_lines [Array<CandidApiClient::ServiceLines::V2::Types::
|
276
|
+
# @param service_lines [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateOptional>] Each service line must be linked to a diagnosis. Concretely,
|
256
277
|
# `service_line.diagnosis_pointers`must contain at least one entry which should be
|
257
278
|
# in bounds of the diagnoses list field.
|
258
|
-
# @param patient_histories [Array<CandidApiClient::Encounters::V4::Types::
|
259
|
-
# @param billing_notes [Array<CandidApiClient::BillingNotes::V2::Types::
|
279
|
+
# @param patient_histories [Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryOptional>]
|
280
|
+
# @param billing_notes [Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBaseOptional>] Spot to store misc, human-readable, notes about this encounter to be
|
260
281
|
# used in the billing process.
|
261
282
|
# @param patient [CandidApiClient::Individual::Types::PatientUpdateWithOptionalAddress] Contains the identification information of the individual receiving medical
|
262
283
|
# services.
|
@@ -270,10 +291,9 @@ module CandidApiClient
|
|
270
291
|
# address listed on claims must match what was provided to the payer during the
|
271
292
|
# credentialing process.
|
272
293
|
# @param rendering_provider [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdateWithOptionalAddress] The rendering provider is the practitioner -- physician, nurse practitioner,
|
273
|
-
# etc. -- performing the service.
|
274
|
-
#
|
275
|
-
#
|
276
|
-
# be the same as the service facility address.
|
294
|
+
# etc. -- performing the service. For telehealth services, the rendering provider
|
295
|
+
# performs the visit, asynchronous communication, or other service. The rendering
|
296
|
+
# provider address should generally be the same as the service facility address.
|
277
297
|
# @param initial_referring_provider [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdateWithOptionalAddress] The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in
|
278
298
|
# this loop to
|
279
299
|
# indicate the initial referral from the primary care provider or whatever
|
@@ -311,8 +331,6 @@ module CandidApiClient
|
|
311
331
|
# date_of_service values.
|
312
332
|
# @param tag_ids [Array<String>] Names of tags that should be on the encounter. Note all tags on encounter will
|
313
333
|
# be overridden with this list.
|
314
|
-
# @param clinical_notes [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
|
315
|
-
# patient encounters.
|
316
334
|
# @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
317
335
|
# Examples for when this should be set to NOT_BILLABLE include if the Encounter
|
318
336
|
# has not occurred yet or if there is no intention of ever billing the
|
@@ -339,9 +357,6 @@ module CandidApiClient
|
|
339
357
|
# encounter's end_date_of_service will fail. If all service line
|
340
358
|
# end_date_of_service values are the same, updating the encounter's
|
341
359
|
# end_date_of_service will update all service line date_of_service values.
|
342
|
-
# @param subscriber_primary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the primary insurance subscriber.
|
343
|
-
# @param subscriber_secondary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the secondary insurance subscriber.
|
344
|
-
# @param subscriber_tertiary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
|
345
360
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
346
361
|
# Box 19 on the CMS-1500 claim form.
|
347
362
|
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
@@ -372,33 +387,27 @@ module CandidApiClient
|
|
372
387
|
# @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
|
373
388
|
# for billing purpose.
|
374
389
|
# Box 12 on the CMS-1500 claim form.
|
375
|
-
# @param schema_instances [Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>] Key-value pairs that must adhere to a schema created via the Custom Schema API.
|
376
|
-
# Multiple schema
|
377
|
-
# instances cannot be created for the same schema on an encounter. Updating schema
|
378
|
-
# instances utilizes PUT
|
379
|
-
# semantics, so the schema instances on the encounter will be set to whatever
|
380
|
-
# inputs are provided. If null
|
381
|
-
# is provided as an input, then the encounter's schema instances will be cleared.
|
382
390
|
# @param vitals [CandidApiClient::Encounters::V4::Types::VitalsUpdate] If a vitals entity already exists for the encounter, then all values will be
|
383
391
|
# updated to the provided values.
|
384
392
|
# Otherwise, a new vitals object will be created for the encounter.
|
385
|
-
# @param existing_medications [Array<CandidApiClient::Encounters::V4::Types::Medication>] Existing medications that should be on the encounter.
|
386
|
-
# Note all current existing medications on encounter will be overridden with this
|
387
|
-
# list.
|
388
|
-
# @param guarantor [CandidApiClient::Guarantor::V1::Types::GuarantorUpdate] Personal and contact info for the guarantor of the patient responsibility.
|
389
393
|
# @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
390
|
-
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
391
|
-
# 837P form
|
392
|
-
# @param claim_supplemental_information [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
393
|
-
# permitted.
|
394
394
|
# @param secondary_payer_carrier_code [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
|
395
395
|
# identify the primary payer. This is required for certain states.
|
396
396
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
397
397
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData]
|
398
|
-
def initialize(diagnoses: OMIT,
|
399
|
-
|
398
|
+
def initialize(diagnoses: OMIT, clinical_notes: OMIT, claim_supplemental_information: OMIT,
|
399
|
+
epsdt_referral: OMIT, existing_medications: OMIT, guarantor: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, subscriber_tertiary: OMIT, interventions: OMIT, schema_instances: OMIT, external_claim_submission: OMIT, service_lines: OMIT, patient_histories: OMIT, billing_notes: OMIT, patient: OMIT, service_facility: OMIT, rendering_provider: OMIT, initial_referring_provider: OMIT, referring_provider: OMIT, supervising_provider: OMIT, billing_provider: OMIT, pay_to_address: OMIT, benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT, date_of_service: OMIT, tag_ids: OMIT, billable_status: OMIT, responsible_party: OMIT, provider_accepts_assignment: OMIT, synchronicity: OMIT, place_of_service_code: OMIT, appointment_type: OMIT, end_date_of_service: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, patient_authorized_release: OMIT, vitals: OMIT, referral_number: OMIT, secondary_payer_carrier_code: OMIT, additional_properties: nil)
|
400
400
|
@diagnoses = diagnoses if diagnoses != OMIT
|
401
|
+
@clinical_notes = clinical_notes if clinical_notes != OMIT
|
402
|
+
@claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
|
403
|
+
@epsdt_referral = epsdt_referral if epsdt_referral != OMIT
|
404
|
+
@existing_medications = existing_medications if existing_medications != OMIT
|
405
|
+
@guarantor = guarantor if guarantor != OMIT
|
406
|
+
@subscriber_primary = subscriber_primary if subscriber_primary != OMIT
|
407
|
+
@subscriber_secondary = subscriber_secondary if subscriber_secondary != OMIT
|
408
|
+
@subscriber_tertiary = subscriber_tertiary if subscriber_tertiary != OMIT
|
401
409
|
@interventions = interventions if interventions != OMIT
|
410
|
+
@schema_instances = schema_instances if schema_instances != OMIT
|
402
411
|
@external_claim_submission = external_claim_submission if external_claim_submission != OMIT
|
403
412
|
@service_lines = service_lines if service_lines != OMIT
|
404
413
|
@patient_histories = patient_histories if patient_histories != OMIT
|
@@ -416,7 +425,6 @@ module CandidApiClient
|
|
416
425
|
@external_id = external_id if external_id != OMIT
|
417
426
|
@date_of_service = date_of_service if date_of_service != OMIT
|
418
427
|
@tag_ids = tag_ids if tag_ids != OMIT
|
419
|
-
@clinical_notes = clinical_notes if clinical_notes != OMIT
|
420
428
|
@billable_status = billable_status if billable_status != OMIT
|
421
429
|
@responsible_party = responsible_party if responsible_party != OMIT
|
422
430
|
@provider_accepts_assignment = provider_accepts_assignment if provider_accepts_assignment != OMIT
|
@@ -424,9 +432,6 @@ module CandidApiClient
|
|
424
432
|
@place_of_service_code = place_of_service_code if place_of_service_code != OMIT
|
425
433
|
@appointment_type = appointment_type if appointment_type != OMIT
|
426
434
|
@end_date_of_service = end_date_of_service if end_date_of_service != OMIT
|
427
|
-
@subscriber_primary = subscriber_primary if subscriber_primary != OMIT
|
428
|
-
@subscriber_secondary = subscriber_secondary if subscriber_secondary != OMIT
|
429
|
-
@subscriber_tertiary = subscriber_tertiary if subscriber_tertiary != OMIT
|
430
435
|
@additional_information = additional_information if additional_information != OMIT
|
431
436
|
if service_authorization_exception_code != OMIT
|
432
437
|
@service_authorization_exception_code = service_authorization_exception_code
|
@@ -439,18 +444,22 @@ module CandidApiClient
|
|
439
444
|
@last_menstrual_period_date = last_menstrual_period_date if last_menstrual_period_date != OMIT
|
440
445
|
@delay_reason_code = delay_reason_code if delay_reason_code != OMIT
|
441
446
|
@patient_authorized_release = patient_authorized_release if patient_authorized_release != OMIT
|
442
|
-
@schema_instances = schema_instances if schema_instances != OMIT
|
443
447
|
@vitals = vitals if vitals != OMIT
|
444
|
-
@existing_medications = existing_medications if existing_medications != OMIT
|
445
|
-
@guarantor = guarantor if guarantor != OMIT
|
446
448
|
@referral_number = referral_number if referral_number != OMIT
|
447
|
-
@epsdt_referral = epsdt_referral if epsdt_referral != OMIT
|
448
|
-
@claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
|
449
449
|
@secondary_payer_carrier_code = secondary_payer_carrier_code if secondary_payer_carrier_code != OMIT
|
450
450
|
@additional_properties = additional_properties
|
451
451
|
@_field_set = {
|
452
452
|
"diagnoses": diagnoses,
|
453
|
+
"clinical_notes": clinical_notes,
|
454
|
+
"claim_supplemental_information": claim_supplemental_information,
|
455
|
+
"epsdt_referral": epsdt_referral,
|
456
|
+
"existing_medications": existing_medications,
|
457
|
+
"guarantor": guarantor,
|
458
|
+
"subscriber_primary": subscriber_primary,
|
459
|
+
"subscriber_secondary": subscriber_secondary,
|
460
|
+
"subscriber_tertiary": subscriber_tertiary,
|
453
461
|
"interventions": interventions,
|
462
|
+
"schema_instances": schema_instances,
|
454
463
|
"external_claim_submission": external_claim_submission,
|
455
464
|
"service_lines": service_lines,
|
456
465
|
"patient_histories": patient_histories,
|
@@ -468,7 +477,6 @@ module CandidApiClient
|
|
468
477
|
"external_id": external_id,
|
469
478
|
"date_of_service": date_of_service,
|
470
479
|
"tag_ids": tag_ids,
|
471
|
-
"clinical_notes": clinical_notes,
|
472
480
|
"billable_status": billable_status,
|
473
481
|
"responsible_party": responsible_party,
|
474
482
|
"provider_accepts_assignment": provider_accepts_assignment,
|
@@ -476,9 +484,6 @@ module CandidApiClient
|
|
476
484
|
"place_of_service_code": place_of_service_code,
|
477
485
|
"appointment_type": appointment_type,
|
478
486
|
"end_date_of_service": end_date_of_service,
|
479
|
-
"subscriber_primary": subscriber_primary,
|
480
|
-
"subscriber_secondary": subscriber_secondary,
|
481
|
-
"subscriber_tertiary": subscriber_tertiary,
|
482
487
|
"additional_information": additional_information,
|
483
488
|
"service_authorization_exception_code": service_authorization_exception_code,
|
484
489
|
"admission_date": admission_date,
|
@@ -487,13 +492,8 @@ module CandidApiClient
|
|
487
492
|
"last_menstrual_period_date": last_menstrual_period_date,
|
488
493
|
"delay_reason_code": delay_reason_code,
|
489
494
|
"patient_authorized_release": patient_authorized_release,
|
490
|
-
"schema_instances": schema_instances,
|
491
495
|
"vitals": vitals,
|
492
|
-
"existing_medications": existing_medications,
|
493
|
-
"guarantor": guarantor,
|
494
496
|
"referral_number": referral_number,
|
495
|
-
"epsdt_referral": epsdt_referral,
|
496
|
-
"claim_supplemental_information": claim_supplemental_information,
|
497
497
|
"secondary_payer_carrier_code": secondary_payer_carrier_code
|
498
498
|
}.reject do |_k, v|
|
499
499
|
v == OMIT
|
@@ -509,29 +509,75 @@ module CandidApiClient
|
|
509
509
|
parsed_json = JSON.parse(json_object)
|
510
510
|
diagnoses = parsed_json["diagnoses"]&.map do |item|
|
511
511
|
item = item.to_json
|
512
|
-
CandidApiClient::Diagnoses::Types::
|
512
|
+
CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional.from_json(json_object: item)
|
513
|
+
end
|
514
|
+
clinical_notes = parsed_json["clinical_notes"]&.map do |item|
|
515
|
+
item = item.to_json
|
516
|
+
CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional.from_json(json_object: item)
|
517
|
+
end
|
518
|
+
claim_supplemental_information = parsed_json["claim_supplemental_information"]&.map do |item|
|
519
|
+
item = item.to_json
|
520
|
+
CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional.from_json(json_object: item)
|
521
|
+
end
|
522
|
+
if parsed_json["epsdt_referral"].nil?
|
523
|
+
epsdt_referral = nil
|
524
|
+
else
|
525
|
+
epsdt_referral = parsed_json["epsdt_referral"].to_json
|
526
|
+
epsdt_referral = CandidApiClient::Encounters::V4::Types::EpsdtReferralOptional.from_json(json_object: epsdt_referral)
|
527
|
+
end
|
528
|
+
existing_medications = parsed_json["existing_medications"]&.map do |item|
|
529
|
+
item = item.to_json
|
530
|
+
CandidApiClient::Encounters::V4::Types::MedicationOptional.from_json(json_object: item)
|
531
|
+
end
|
532
|
+
if parsed_json["guarantor"].nil?
|
533
|
+
guarantor = nil
|
534
|
+
else
|
535
|
+
guarantor = parsed_json["guarantor"].to_json
|
536
|
+
guarantor = CandidApiClient::Guarantor::V1::Types::GuarantorOptional.from_json(json_object: guarantor)
|
537
|
+
end
|
538
|
+
if parsed_json["subscriber_primary"].nil?
|
539
|
+
subscriber_primary = nil
|
540
|
+
else
|
541
|
+
subscriber_primary = parsed_json["subscriber_primary"].to_json
|
542
|
+
subscriber_primary = CandidApiClient::Individual::Types::SubscriberCreateOptional.from_json(json_object: subscriber_primary)
|
543
|
+
end
|
544
|
+
if parsed_json["subscriber_secondary"].nil?
|
545
|
+
subscriber_secondary = nil
|
546
|
+
else
|
547
|
+
subscriber_secondary = parsed_json["subscriber_secondary"].to_json
|
548
|
+
subscriber_secondary = CandidApiClient::Individual::Types::SubscriberCreateOptional.from_json(json_object: subscriber_secondary)
|
549
|
+
end
|
550
|
+
if parsed_json["subscriber_tertiary"].nil?
|
551
|
+
subscriber_tertiary = nil
|
552
|
+
else
|
553
|
+
subscriber_tertiary = parsed_json["subscriber_tertiary"].to_json
|
554
|
+
subscriber_tertiary = CandidApiClient::Individual::Types::SubscriberCreateOptional.from_json(json_object: subscriber_tertiary)
|
513
555
|
end
|
514
556
|
interventions = parsed_json["interventions"]&.map do |item|
|
515
557
|
item = item.to_json
|
516
|
-
CandidApiClient::Encounters::V4::Types::
|
558
|
+
CandidApiClient::Encounters::V4::Types::InterventionOptional.from_json(json_object: item)
|
559
|
+
end
|
560
|
+
schema_instances = parsed_json["schema_instances"]&.map do |item|
|
561
|
+
item = item.to_json
|
562
|
+
CandidApiClient::CustomSchemas::V1::Types::SchemaInstanceOptional.from_json(json_object: item)
|
517
563
|
end
|
518
564
|
if parsed_json["external_claim_submission"].nil?
|
519
565
|
external_claim_submission = nil
|
520
566
|
else
|
521
567
|
external_claim_submission = parsed_json["external_claim_submission"].to_json
|
522
|
-
external_claim_submission = CandidApiClient::ClaimSubmission::V1::Types::
|
568
|
+
external_claim_submission = CandidApiClient::ClaimSubmission::V1::Types::ExternalClaimSubmissionCreateOptional.from_json(json_object: external_claim_submission)
|
523
569
|
end
|
524
570
|
service_lines = parsed_json["service_lines"]&.map do |item|
|
525
571
|
item = item.to_json
|
526
|
-
CandidApiClient::ServiceLines::V2::Types::
|
572
|
+
CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateOptional.from_json(json_object: item)
|
527
573
|
end
|
528
574
|
patient_histories = parsed_json["patient_histories"]&.map do |item|
|
529
575
|
item = item.to_json
|
530
|
-
CandidApiClient::Encounters::V4::Types::
|
576
|
+
CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryOptional.from_json(json_object: item)
|
531
577
|
end
|
532
578
|
billing_notes = parsed_json["billing_notes"]&.map do |item|
|
533
579
|
item = item.to_json
|
534
|
-
CandidApiClient::BillingNotes::V2::Types::
|
580
|
+
CandidApiClient::BillingNotes::V2::Types::BillingNoteBaseOptional.from_json(json_object: item)
|
535
581
|
end
|
536
582
|
if parsed_json["patient"].nil?
|
537
583
|
patient = nil
|
@@ -586,10 +632,6 @@ module CandidApiClient
|
|
586
632
|
external_id = struct["external_id"]
|
587
633
|
date_of_service = (Date.parse(parsed_json["date_of_service"]) unless parsed_json["date_of_service"].nil?)
|
588
634
|
tag_ids = struct["tag_ids"]
|
589
|
-
clinical_notes = parsed_json["clinical_notes"]&.map do |item|
|
590
|
-
item = item.to_json
|
591
|
-
CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate.from_json(json_object: item)
|
592
|
-
end
|
593
635
|
billable_status = struct["billable_status"]
|
594
636
|
responsible_party = struct["responsible_party"]
|
595
637
|
provider_accepts_assignment = struct["provider_accepts_assignment"]
|
@@ -599,24 +641,6 @@ module CandidApiClient
|
|
599
641
|
end_date_of_service = unless parsed_json["end_date_of_service"].nil?
|
600
642
|
Date.parse(parsed_json["end_date_of_service"])
|
601
643
|
end
|
602
|
-
if parsed_json["subscriber_primary"].nil?
|
603
|
-
subscriber_primary = nil
|
604
|
-
else
|
605
|
-
subscriber_primary = parsed_json["subscriber_primary"].to_json
|
606
|
-
subscriber_primary = CandidApiClient::Individual::Types::SubscriberCreate.from_json(json_object: subscriber_primary)
|
607
|
-
end
|
608
|
-
if parsed_json["subscriber_secondary"].nil?
|
609
|
-
subscriber_secondary = nil
|
610
|
-
else
|
611
|
-
subscriber_secondary = parsed_json["subscriber_secondary"].to_json
|
612
|
-
subscriber_secondary = CandidApiClient::Individual::Types::SubscriberCreate.from_json(json_object: subscriber_secondary)
|
613
|
-
end
|
614
|
-
if parsed_json["subscriber_tertiary"].nil?
|
615
|
-
subscriber_tertiary = nil
|
616
|
-
else
|
617
|
-
subscriber_tertiary = parsed_json["subscriber_tertiary"].to_json
|
618
|
-
subscriber_tertiary = CandidApiClient::Individual::Types::SubscriberCreate.from_json(json_object: subscriber_tertiary)
|
619
|
-
end
|
620
644
|
additional_information = struct["additional_information"]
|
621
645
|
service_authorization_exception_code = struct["service_authorization_exception_code"]
|
622
646
|
admission_date = (Date.parse(parsed_json["admission_date"]) unless parsed_json["admission_date"].nil?)
|
@@ -629,41 +653,26 @@ module CandidApiClient
|
|
629
653
|
end
|
630
654
|
delay_reason_code = struct["delay_reason_code"]
|
631
655
|
patient_authorized_release = struct["patient_authorized_release"]
|
632
|
-
schema_instances = parsed_json["schema_instances"]&.map do |item|
|
633
|
-
item = item.to_json
|
634
|
-
CandidApiClient::CustomSchemas::V1::Types::SchemaInstance.from_json(json_object: item)
|
635
|
-
end
|
636
656
|
if parsed_json["vitals"].nil?
|
637
657
|
vitals = nil
|
638
658
|
else
|
639
659
|
vitals = parsed_json["vitals"].to_json
|
640
660
|
vitals = CandidApiClient::Encounters::V4::Types::VitalsUpdate.from_json(json_object: vitals)
|
641
661
|
end
|
642
|
-
existing_medications = parsed_json["existing_medications"]&.map do |item|
|
643
|
-
item = item.to_json
|
644
|
-
CandidApiClient::Encounters::V4::Types::Medication.from_json(json_object: item)
|
645
|
-
end
|
646
|
-
if parsed_json["guarantor"].nil?
|
647
|
-
guarantor = nil
|
648
|
-
else
|
649
|
-
guarantor = parsed_json["guarantor"].to_json
|
650
|
-
guarantor = CandidApiClient::Guarantor::V1::Types::GuarantorUpdate.from_json(json_object: guarantor)
|
651
|
-
end
|
652
662
|
referral_number = struct["referral_number"]
|
653
|
-
if parsed_json["epsdt_referral"].nil?
|
654
|
-
epsdt_referral = nil
|
655
|
-
else
|
656
|
-
epsdt_referral = parsed_json["epsdt_referral"].to_json
|
657
|
-
epsdt_referral = CandidApiClient::Encounters::V4::Types::EpsdtReferral.from_json(json_object: epsdt_referral)
|
658
|
-
end
|
659
|
-
claim_supplemental_information = parsed_json["claim_supplemental_information"]&.map do |item|
|
660
|
-
item = item.to_json
|
661
|
-
CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation.from_json(json_object: item)
|
662
|
-
end
|
663
663
|
secondary_payer_carrier_code = struct["secondary_payer_carrier_code"]
|
664
664
|
new(
|
665
665
|
diagnoses: diagnoses,
|
666
|
+
clinical_notes: clinical_notes,
|
667
|
+
claim_supplemental_information: claim_supplemental_information,
|
668
|
+
epsdt_referral: epsdt_referral,
|
669
|
+
existing_medications: existing_medications,
|
670
|
+
guarantor: guarantor,
|
671
|
+
subscriber_primary: subscriber_primary,
|
672
|
+
subscriber_secondary: subscriber_secondary,
|
673
|
+
subscriber_tertiary: subscriber_tertiary,
|
666
674
|
interventions: interventions,
|
675
|
+
schema_instances: schema_instances,
|
667
676
|
external_claim_submission: external_claim_submission,
|
668
677
|
service_lines: service_lines,
|
669
678
|
patient_histories: patient_histories,
|
@@ -681,7 +690,6 @@ module CandidApiClient
|
|
681
690
|
external_id: external_id,
|
682
691
|
date_of_service: date_of_service,
|
683
692
|
tag_ids: tag_ids,
|
684
|
-
clinical_notes: clinical_notes,
|
685
693
|
billable_status: billable_status,
|
686
694
|
responsible_party: responsible_party,
|
687
695
|
provider_accepts_assignment: provider_accepts_assignment,
|
@@ -689,9 +697,6 @@ module CandidApiClient
|
|
689
697
|
place_of_service_code: place_of_service_code,
|
690
698
|
appointment_type: appointment_type,
|
691
699
|
end_date_of_service: end_date_of_service,
|
692
|
-
subscriber_primary: subscriber_primary,
|
693
|
-
subscriber_secondary: subscriber_secondary,
|
694
|
-
subscriber_tertiary: subscriber_tertiary,
|
695
700
|
additional_information: additional_information,
|
696
701
|
service_authorization_exception_code: service_authorization_exception_code,
|
697
702
|
admission_date: admission_date,
|
@@ -700,13 +705,8 @@ module CandidApiClient
|
|
700
705
|
last_menstrual_period_date: last_menstrual_period_date,
|
701
706
|
delay_reason_code: delay_reason_code,
|
702
707
|
patient_authorized_release: patient_authorized_release,
|
703
|
-
schema_instances: schema_instances,
|
704
708
|
vitals: vitals,
|
705
|
-
existing_medications: existing_medications,
|
706
|
-
guarantor: guarantor,
|
707
709
|
referral_number: referral_number,
|
708
|
-
epsdt_referral: epsdt_referral,
|
709
|
-
claim_supplemental_information: claim_supplemental_information,
|
710
710
|
secondary_payer_carrier_code: secondary_payer_carrier_code,
|
711
711
|
additional_properties: struct
|
712
712
|
)
|
@@ -727,8 +727,17 @@ module CandidApiClient
|
|
727
727
|
# @return [Void]
|
728
728
|
def self.validate_raw(obj:)
|
729
729
|
obj.diagnoses&.is_a?(Array) != false || raise("Passed value for field obj.diagnoses is not the expected type, validation failed.")
|
730
|
+
obj.clinical_notes&.is_a?(Array) != false || raise("Passed value for field obj.clinical_notes is not the expected type, validation failed.")
|
731
|
+
obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
|
732
|
+
obj.epsdt_referral.nil? || CandidApiClient::Encounters::V4::Types::EpsdtReferralOptional.validate_raw(obj: obj.epsdt_referral)
|
733
|
+
obj.existing_medications&.is_a?(Array) != false || raise("Passed value for field obj.existing_medications is not the expected type, validation failed.")
|
734
|
+
obj.guarantor.nil? || CandidApiClient::Guarantor::V1::Types::GuarantorOptional.validate_raw(obj: obj.guarantor)
|
735
|
+
obj.subscriber_primary.nil? || CandidApiClient::Individual::Types::SubscriberCreateOptional.validate_raw(obj: obj.subscriber_primary)
|
736
|
+
obj.subscriber_secondary.nil? || CandidApiClient::Individual::Types::SubscriberCreateOptional.validate_raw(obj: obj.subscriber_secondary)
|
737
|
+
obj.subscriber_tertiary.nil? || CandidApiClient::Individual::Types::SubscriberCreateOptional.validate_raw(obj: obj.subscriber_tertiary)
|
730
738
|
obj.interventions&.is_a?(Array) != false || raise("Passed value for field obj.interventions is not the expected type, validation failed.")
|
731
|
-
obj.
|
739
|
+
obj.schema_instances&.is_a?(Array) != false || raise("Passed value for field obj.schema_instances is not the expected type, validation failed.")
|
740
|
+
obj.external_claim_submission.nil? || CandidApiClient::ClaimSubmission::V1::Types::ExternalClaimSubmissionCreateOptional.validate_raw(obj: obj.external_claim_submission)
|
732
741
|
obj.service_lines&.is_a?(Array) != false || raise("Passed value for field obj.service_lines is not the expected type, validation failed.")
|
733
742
|
obj.patient_histories&.is_a?(Array) != false || raise("Passed value for field obj.patient_histories is not the expected type, validation failed.")
|
734
743
|
obj.billing_notes&.is_a?(Array) != false || raise("Passed value for field obj.billing_notes is not the expected type, validation failed.")
|
@@ -745,7 +754,6 @@ module CandidApiClient
|
|
745
754
|
obj.external_id&.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
746
755
|
obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
|
747
756
|
obj.tag_ids&.is_a?(Array) != false || raise("Passed value for field obj.tag_ids is not the expected type, validation failed.")
|
748
|
-
obj.clinical_notes&.is_a?(Array) != false || raise("Passed value for field obj.clinical_notes is not the expected type, validation failed.")
|
749
757
|
obj.billable_status&.is_a?(CandidApiClient::Encounters::V4::Types::BillableStatusType) != false || raise("Passed value for field obj.billable_status is not the expected type, validation failed.")
|
750
758
|
obj.responsible_party&.is_a?(CandidApiClient::Encounters::V4::Types::ResponsiblePartyType) != false || raise("Passed value for field obj.responsible_party is not the expected type, validation failed.")
|
751
759
|
obj.provider_accepts_assignment&.is_a?(Boolean) != false || raise("Passed value for field obj.provider_accepts_assignment is not the expected type, validation failed.")
|
@@ -753,9 +761,6 @@ module CandidApiClient
|
|
753
761
|
obj.place_of_service_code&.is_a?(CandidApiClient::Commons::Types::FacilityTypeCode) != false || raise("Passed value for field obj.place_of_service_code is not the expected type, validation failed.")
|
754
762
|
obj.appointment_type&.is_a?(String) != false || raise("Passed value for field obj.appointment_type is not the expected type, validation failed.")
|
755
763
|
obj.end_date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.end_date_of_service is not the expected type, validation failed.")
|
756
|
-
obj.subscriber_primary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_primary)
|
757
|
-
obj.subscriber_secondary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_secondary)
|
758
|
-
obj.subscriber_tertiary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_tertiary)
|
759
764
|
obj.additional_information&.is_a?(String) != false || raise("Passed value for field obj.additional_information is not the expected type, validation failed.")
|
760
765
|
obj.service_authorization_exception_code&.is_a?(CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode) != false || raise("Passed value for field obj.service_authorization_exception_code is not the expected type, validation failed.")
|
761
766
|
obj.admission_date&.is_a?(Date) != false || raise("Passed value for field obj.admission_date is not the expected type, validation failed.")
|
@@ -764,13 +769,8 @@ module CandidApiClient
|
|
764
769
|
obj.last_menstrual_period_date&.is_a?(Date) != false || raise("Passed value for field obj.last_menstrual_period_date is not the expected type, validation failed.")
|
765
770
|
obj.delay_reason_code&.is_a?(CandidApiClient::Commons::Types::DelayReasonCode) != false || raise("Passed value for field obj.delay_reason_code is not the expected type, validation failed.")
|
766
771
|
obj.patient_authorized_release&.is_a?(Boolean) != false || raise("Passed value for field obj.patient_authorized_release is not the expected type, validation failed.")
|
767
|
-
obj.schema_instances&.is_a?(Array) != false || raise("Passed value for field obj.schema_instances is not the expected type, validation failed.")
|
768
772
|
obj.vitals.nil? || CandidApiClient::Encounters::V4::Types::VitalsUpdate.validate_raw(obj: obj.vitals)
|
769
|
-
obj.existing_medications&.is_a?(Array) != false || raise("Passed value for field obj.existing_medications is not the expected type, validation failed.")
|
770
|
-
obj.guarantor.nil? || CandidApiClient::Guarantor::V1::Types::GuarantorUpdate.validate_raw(obj: obj.guarantor)
|
771
773
|
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
772
|
-
obj.epsdt_referral.nil? || CandidApiClient::Encounters::V4::Types::EpsdtReferral.validate_raw(obj: obj.epsdt_referral)
|
773
|
-
obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
|
774
774
|
obj.secondary_payer_carrier_code&.is_a?(String) != false || raise("Passed value for field obj.secondary_payer_carrier_code is not the expected type, validation failed.")
|
775
775
|
end
|
776
776
|
end
|