candidhealth 1.6.0 → 1.8.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/default/client.rb +74 -0
- data/lib/candidhealth/charge_capture/v_1/client.rb +48 -48
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +70 -56
- data/lib/candidhealth/commons/types/clearinghouse.rb +18 -0
- data/lib/candidhealth/commons/types/procedure_modifier.rb +11 -0
- data/lib/candidhealth/credentialing/v_2/client.rb +342 -8
- data/lib/candidhealth/credentialing/v_2/types/base_credentialing_span.rb +143 -0
- data/lib/candidhealth/credentialing/v_2/types/facility_credentialing_span.rb +165 -0
- data/lib/candidhealth/credentialing/v_2/types/facility_credentialing_span_page.rb +88 -0
- data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span.rb +34 -34
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +1 -1
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update.rb +1 -1
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +1 -1
- data/lib/candidhealth/encounters/v_4/client.rb +3253 -2040
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +111 -86
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +39 -33
- data/lib/candidhealth/encounters/v_4/types/encounter_create.rb +796 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +131 -117
- data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +70 -56
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +29 -39
- data/lib/candidhealth/encounters/v_4/types/encounter_rendering_or_attending_provider_required_error.rb +55 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_update.rb +736 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +944 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_base.rb +691 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +791 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter_base.rb +572 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +872 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_update_base.rb +700 -0
- data/lib/candidhealth/fee_schedules/v_3/client.rb +57 -0
- data/lib/candidhealth/fee_schedules/v_3/types/validation_error.rb +12 -0
- data/lib/candidhealth/financials/types/patient_transaction_source.rb +1 -0
- data/lib/candidhealth/health_care_code_information/client.rb +30 -0
- data/lib/candidhealth/health_care_code_information/v_1/client.rb +268 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +1068 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +71 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +237 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +207 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +54 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +218 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +225 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +227 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +188 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +225 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +71 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +249 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +219 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +25 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +252 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +222 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +215 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +248 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +218 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/present_on_admission_indicator_code.rb +17 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +215 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +246 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_code_qualifier.rb +15 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +216 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +72 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_admitting_diagnosis.rb +69 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_diagnosis_related_group.rb +69 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_principal_diagnosis.rb +69 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_principal_procedure_information.rb +71 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_code.rb +119 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +215 -0
- data/lib/candidhealth/individual/types/patient.rb +6 -6
- data/lib/candidhealth/individual/types/patient_base.rb +6 -6
- data/lib/candidhealth/individual/types/patient_create.rb +6 -6
- data/lib/candidhealth/individual/types/patient_update.rb +6 -6
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +6 -6
- data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
- data/lib/candidhealth/patient_ar/client.rb +30 -0
- data/lib/candidhealth/patient_ar/v_1/client.rb +161 -0
- data/lib/candidhealth/patient_ar/v_1/types/insurance_adjustment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/insurance_payment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/invalid_filters_error_type.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/inventory_record.rb +101 -0
- data/lib/candidhealth/patient_ar/v_1/types/invoice_itemization_response.rb +103 -0
- data/lib/candidhealth/patient_ar/v_1/types/list_inventory_paged_response.rb +77 -0
- data/lib/candidhealth/patient_ar/v_1/types/non_insurance_adjustment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/non_insurance_payment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_adjustment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_ar_status.rb +14 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_payment_allocation.rb +76 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_payment_info.rb +75 -0
- data/lib/candidhealth/patient_ar/v_1/types/service_line_itemization.rb +210 -0
- data/lib/candidhealth/payers/client.rb +7 -0
- data/lib/candidhealth/payers/v_4/client.rb +137 -0
- data/lib/candidhealth/payers/v_4/types/clearinghouse_payer_info.rb +93 -0
- data/lib/candidhealth/payers/v_4/types/payer.rb +116 -0
- data/lib/candidhealth/payers/v_4/types/payer_ids.rb +107 -0
- data/lib/candidhealth/payers/v_4/types/payer_page.rb +88 -0
- data/lib/candidhealth/payers/v_4/types/support_state.rb +15 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +3 -3
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +204 -6
- data/lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb +3 -3
- data/lib/candidhealth/pre_encounter/patients/v_1/types/inferred_patient_metadata.rb +80 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +33 -5
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +33 -5
- data/lib/candidhealth/pre_encounter/patients/v_1/types/origination_detail.rb +104 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +32 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_source.rb +18 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_type.rb +17 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/specialization_category.rb +42 -0
- data/lib/candidhealth/service_lines/v_2/client.rb +252 -10
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +28 -10
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +52 -40
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +251 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +243 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +48 -24
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +58 -46
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base.rb +273 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base_base.rb +265 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +64 -54
- data/lib/candidhealth/service_lines/v_2/types/service_line_update_base.rb +263 -0
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +271 -0
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create_standalone.rb +317 -0
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_update.rb +307 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite.rb +2 -2
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_base.rb +90 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +112 -0
- data/lib/candidhealth.rb +21 -7
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +116 -13
- metadata +109 -2
@@ -1,24 +1,24 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "../../../encounter_providers/v_2/types/billing_provider"
|
4
3
|
require_relative "../../../encounter_providers/v_2/types/rendering_provider"
|
4
|
+
require_relative "../../../commons/types/facility_type_code"
|
5
|
+
require_relative "../../../diagnoses/types/diagnosis_create"
|
6
|
+
require_relative "../../../service_lines/v_2/types/service_line_create"
|
7
|
+
require_relative "../../../encounter_providers/v_2/types/billing_provider"
|
5
8
|
require_relative "../../../encounter_providers/v_2/types/initial_referring_provider"
|
6
9
|
require_relative "../../../encounter_providers/v_2/types/supervising_provider"
|
7
10
|
require_relative "../../../service_facility/types/encounter_service_facility_base"
|
8
|
-
require_relative "../../../diagnoses/types/diagnosis_create"
|
9
11
|
require_relative "clinical_note_category_create"
|
10
12
|
require_relative "../../../billing_notes/v_2/types/billing_note_base"
|
11
|
-
require_relative "../../../commons/types/facility_type_code"
|
12
13
|
require_relative "patient_history_category"
|
13
|
-
require_relative "../../../service_lines/v_2/types/service_line_create"
|
14
14
|
require_relative "../../../claim_submission/v_1/types/external_claim_submission_create"
|
15
15
|
require_relative "../../../custom_schemas/v_1/types/schema_instance"
|
16
16
|
require "date"
|
17
17
|
require_relative "medication"
|
18
|
-
require_relative "vitals"
|
19
18
|
require_relative "intervention"
|
20
19
|
require_relative "../../../commons/types/street_address_long_zip"
|
21
20
|
require_relative "synchronicity_type"
|
21
|
+
require_relative "vitals"
|
22
22
|
require_relative "billable_status_type"
|
23
23
|
require_relative "service_authorization_exception_code"
|
24
24
|
require_relative "../../../commons/types/delay_reason_code"
|
@@ -30,6 +30,26 @@ module CandidApiClient
|
|
30
30
|
module V4
|
31
31
|
module Types
|
32
32
|
class EncounterCreateFromPreEncounter
|
33
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProvider] The rendering provider is the practitioner -- physician, nurse practitioner,
|
34
|
+
# etc. -- performing the service.
|
35
|
+
# For telehealth services, the rendering provider performs the visit, asynchronous
|
36
|
+
# communication, or other service. The rendering provider address should generally
|
37
|
+
# be the same as the service facility address.
|
38
|
+
attr_reader :rendering_provider
|
39
|
+
# @return [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
|
40
|
+
# telemedicine, 11 for in-person. Full list
|
41
|
+
# //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
|
42
|
+
attr_reader :place_of_service_code
|
43
|
+
# @return [Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
44
|
+
# diagnoses
|
45
|
+
# may be submitted at this time, and coders will later prioritize the 12 that will
|
46
|
+
# be
|
47
|
+
# submitted to the payor.
|
48
|
+
attr_reader :diagnoses
|
49
|
+
# @return [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>] Each service line must be linked to a diagnosis. Concretely,
|
50
|
+
# `service_line.diagnosis_pointers`must contain at least one entry which should be
|
51
|
+
# in bounds of the diagnoses list field.
|
52
|
+
attr_reader :service_lines
|
33
53
|
# @return [String]
|
34
54
|
attr_reader :pre_encounter_patient_id
|
35
55
|
# @return [Array<String>]
|
@@ -42,19 +62,15 @@ module CandidApiClient
|
|
42
62
|
# circumstances, this will be an individual provider. In that case, submit that
|
43
63
|
# provider's NPI and the tax ID (TIN) that the provider gave to the payer during
|
44
64
|
# contracting. In other cases, the billing entity will be a medical group. If so,
|
45
|
-
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim
|
65
|
+
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim or
|
66
|
+
# Form Locator 1 on a UB-04 claim form.
|
46
67
|
attr_reader :billing_provider
|
47
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::
|
48
|
-
#
|
49
|
-
# For telehealth services, the rendering provider performs the visit, asynchronous
|
50
|
-
# communication, or other service. The rendering provider address should generally
|
51
|
-
# be the same as the service facility address.
|
52
|
-
attr_reader :rendering_provider
|
53
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider] The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in
|
54
|
-
# this loop to
|
68
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider] The second iteration of Loop ID-2310 on an 837P form. Use code "P3 - Primary
|
69
|
+
# Care Provider" in this loop to
|
55
70
|
# indicate the initial referral from the primary care provider or whatever
|
56
71
|
# provider wrote the initial referral for this patient's episode of care being
|
57
72
|
# billed/reported in this transaction.
|
73
|
+
# Not used in an 837i claim
|
58
74
|
attr_reader :initial_referring_provider
|
59
75
|
# @return [CandidApiClient::EncounterProviders::V2::Types::SupervisingProvider] Required when the rendering provider is supervised by a physician. If not
|
60
76
|
# required by this implementation guide, do not send.
|
@@ -64,17 +80,13 @@ module CandidApiClient
|
|
64
80
|
# facility can represent the provider's location when the service was delivered
|
65
81
|
# (e.g., home), or the location where an in-person visit would have taken place,
|
66
82
|
# whichever is easier to identify. If the provider is in-network, service facility
|
67
|
-
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form.
|
83
|
+
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is
|
84
|
+
# no equivalent on the paper UB-04 claim form, but this field is equivalent to
|
85
|
+
# Loop 2310E Service Facility Location details on an 837i form, and is used when
|
86
|
+
# this is different to the entity identified as the Billing Provider. Note that
|
68
87
|
# for an in-network claim to be successfully adjudicated, the service facility
|
69
|
-
# address listed
|
70
|
-
# credentialing process.
|
88
|
+
# address listed
|
71
89
|
attr_reader :service_facility
|
72
|
-
# @return [Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
73
|
-
# diagnoses
|
74
|
-
# may be submitted at this time, and coders will later prioritize the 12 that will
|
75
|
-
# be
|
76
|
-
# submitted to the payor.
|
77
|
-
attr_reader :diagnoses
|
78
90
|
# @return [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
|
79
91
|
# patient encounters. Please note that medical records for appeals should be sent
|
80
92
|
# using the Encounter Attachments API.
|
@@ -82,16 +94,8 @@ module CandidApiClient
|
|
82
94
|
# @return [Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>] Spot to store misc, human-readable, notes about this encounter to be used
|
83
95
|
# in the billing process.
|
84
96
|
attr_reader :billing_notes
|
85
|
-
# @return [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
|
86
|
-
# telemedicine, 11 for in-person. Full list [here](https://www.cms
|
87
|
-
# .gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
|
88
|
-
attr_reader :place_of_service_code
|
89
97
|
# @return [Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>]
|
90
98
|
attr_reader :patient_histories
|
91
|
-
# @return [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>] Each service line must be linked to a diagnosis. Concretely,
|
92
|
-
# `service_line.diagnosis_pointers`must contain at least one entry which should be
|
93
|
-
# in bounds of the diagnoses list field.
|
94
|
-
attr_reader :service_lines
|
95
99
|
# @return [CandidApiClient::ClaimSubmission::V1::Types::ExternalClaimSubmissionCreate] To be included for claims that have been submitted outside of Candid.
|
96
100
|
# Candid supports posting remits and payments to these claims and working them
|
97
101
|
# in-platform (e.g. editing, resubmitting).
|
@@ -108,7 +112,7 @@ module CandidApiClient
|
|
108
112
|
attr_reader :external_id
|
109
113
|
# @return [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
110
114
|
# This date must be the local date in the timezone where the service occurred.
|
111
|
-
# Box 24a on the CMS-1500 claim form.
|
115
|
+
# Box 24a on the CMS-1500 claim form or Form Locator 45 on the UB-04 claim form.
|
112
116
|
# If service occurred over a range of dates, this should be the start date.
|
113
117
|
# date_of_service must be defined on either the encounter or the service lines but
|
114
118
|
# not both.
|
@@ -126,23 +130,22 @@ module CandidApiClient
|
|
126
130
|
attr_reader :end_date_of_service
|
127
131
|
# @return [Boolean] Whether this patient has authorized the release of medical information
|
128
132
|
# for billing purpose.
|
129
|
-
# Box 12 on the CMS-1500 claim form.
|
133
|
+
# Box 12 on the CMS-1500 claim form or Form Locator 52 on a UB-04 claim form.
|
130
134
|
attr_reader :patient_authorized_release
|
131
135
|
# @return [Boolean] Whether this patient has authorized insurance payments to be made to you,
|
132
136
|
# not them. If false, patient may receive reimbursement.
|
133
|
-
# Box 13 on the CMS-1500 claim form.
|
137
|
+
# Box 13 on the CMS-1500 claim form or Form Locator 53 on a UB-04 claim form.
|
134
138
|
attr_reader :benefits_assigned_to_provider
|
135
139
|
# @return [Boolean] Whether you have accepted the patient's authorization for insurance payments
|
136
140
|
# to be made to you, not them.
|
137
|
-
# Box 27 on the CMS-1500 claim form.
|
141
|
+
# Box 27 on the CMS-1500 claim form. There is no exact equivalent of this field on
|
142
|
+
# a UB-04 claim, however contributes to the concept of Form Locator 53.
|
138
143
|
attr_reader :provider_accepts_assignment
|
139
144
|
# @return [String] Human-readable description of the appointment type (ex: "Acupuncture -
|
140
145
|
# Headaches").
|
141
146
|
attr_reader :appointment_type
|
142
147
|
# @return [Array<CandidApiClient::Encounters::V4::Types::Medication>]
|
143
148
|
attr_reader :existing_medications
|
144
|
-
# @return [CandidApiClient::Encounters::V4::Types::Vitals]
|
145
|
-
attr_reader :vitals
|
146
149
|
# @return [Array<CandidApiClient::Encounters::V4::Types::Intervention>]
|
147
150
|
attr_reader :interventions
|
148
151
|
# @return [CandidApiClient::Commons::Types::StreetAddressLongZip] Specifies the address to which payments for the claim should be sent.
|
@@ -155,13 +158,15 @@ module CandidApiClient
|
|
155
158
|
# interacts
|
156
159
|
# directly with the provider, such as over video or a phone call.
|
157
160
|
attr_reader :synchronicity
|
161
|
+
# @return [CandidApiClient::Encounters::V4::Types::Vitals]
|
162
|
+
attr_reader :vitals
|
158
163
|
# @return [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
159
164
|
# Examples for when this should be set to NOT_BILLABLE include
|
160
165
|
# if the Encounter has not occurred yet or if there is no intention of ever
|
161
166
|
# billing the responsible_party.
|
162
167
|
attr_reader :billable_status
|
163
168
|
# @return [String] Defines additional information on the claim needed by the payer.
|
164
|
-
# Box 19 on the CMS-1500 claim form.
|
169
|
+
# Box 19 on the CMS-1500 claim form or Form Locator 80 on a UB-04 claim form.
|
165
170
|
attr_reader :additional_information
|
166
171
|
# @return [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
167
172
|
# Required when mandated by government law or regulation to obtain authorization
|
@@ -170,15 +175,15 @@ module CandidApiClient
|
|
170
175
|
# the service was performed without
|
171
176
|
# obtaining the authorization.
|
172
177
|
attr_reader :service_authorization_exception_code
|
173
|
-
# @return [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
178
|
+
# @return [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18 or UB-04 Form Locator 12.
|
174
179
|
# Required on all ambulance claims when the patient was known to be admitted to
|
175
180
|
# the hospital.
|
176
181
|
# OR
|
177
182
|
# Required on all claims involving inpatient medical visits.
|
178
183
|
attr_reader :admission_date
|
179
|
-
# @return [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
180
|
-
#
|
181
|
-
#
|
184
|
+
# @return [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18 Required for inpatient claims when the
|
185
|
+
# patient was discharged from the facility and the discharge date is known. Not
|
186
|
+
# used on an institutional claim.
|
182
187
|
attr_reader :discharge_date
|
183
188
|
# @return [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
184
189
|
# Required for the initial medical service or visit performed in response to a
|
@@ -186,10 +191,12 @@ module CandidApiClient
|
|
186
191
|
# service.
|
187
192
|
# OR
|
188
193
|
# This date is the onset of acute symptoms for the current illness or condition.
|
194
|
+
# For UB-04 claims, this is populated separately via occurrence codes.
|
189
195
|
attr_reader :onset_of_current_illness_or_symptom_date
|
190
196
|
# @return [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
191
197
|
# Required when, in the judgment of the provider, the services on this claim are
|
192
198
|
# related to the patient's pregnancy.
|
199
|
+
# This field is populated separately via occurrence codes for UB-04 claim forms.
|
193
200
|
attr_reader :last_menstrual_period_date
|
194
201
|
# @return [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
195
202
|
# Code indicating the reason why a request was delayed
|
@@ -202,6 +209,22 @@ module CandidApiClient
|
|
202
209
|
|
203
210
|
OMIT = Object.new
|
204
211
|
|
212
|
+
# @param rendering_provider [CandidApiClient::EncounterProviders::V2::Types::RenderingProvider] The rendering provider is the practitioner -- physician, nurse practitioner,
|
213
|
+
# etc. -- performing the service.
|
214
|
+
# For telehealth services, the rendering provider performs the visit, asynchronous
|
215
|
+
# communication, or other service. The rendering provider address should generally
|
216
|
+
# be the same as the service facility address.
|
217
|
+
# @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
|
218
|
+
# telemedicine, 11 for in-person. Full list
|
219
|
+
# //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
|
220
|
+
# @param diagnoses [Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
221
|
+
# diagnoses
|
222
|
+
# may be submitted at this time, and coders will later prioritize the 12 that will
|
223
|
+
# be
|
224
|
+
# submitted to the payor.
|
225
|
+
# @param service_lines [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>] Each service line must be linked to a diagnosis. Concretely,
|
226
|
+
# `service_line.diagnosis_pointers`must contain at least one entry which should be
|
227
|
+
# in bounds of the diagnoses list field.
|
205
228
|
# @param pre_encounter_patient_id [String]
|
206
229
|
# @param pre_encounter_appointment_ids [Array<String>]
|
207
230
|
# @param billing_provider [CandidApiClient::EncounterProviders::V2::Types::BillingProvider] The billing provider is the provider or business entity submitting the claim.
|
@@ -212,17 +235,14 @@ module CandidApiClient
|
|
212
235
|
# circumstances, this will be an individual provider. In that case, submit that
|
213
236
|
# provider's NPI and the tax ID (TIN) that the provider gave to the payer during
|
214
237
|
# contracting. In other cases, the billing entity will be a medical group. If so,
|
215
|
-
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
219
|
-
# communication, or other service. The rendering provider address should generally
|
220
|
-
# be the same as the service facility address.
|
221
|
-
# @param initial_referring_provider [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider] The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in
|
222
|
-
# this loop to
|
238
|
+
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim or
|
239
|
+
# Form Locator 1 on a UB-04 claim form.
|
240
|
+
# @param initial_referring_provider [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider] The second iteration of Loop ID-2310 on an 837P form. Use code "P3 - Primary
|
241
|
+
# Care Provider" in this loop to
|
223
242
|
# indicate the initial referral from the primary care provider or whatever
|
224
243
|
# provider wrote the initial referral for this patient's episode of care being
|
225
244
|
# billed/reported in this transaction.
|
245
|
+
# Not used in an 837i claim
|
226
246
|
# @param supervising_provider [CandidApiClient::EncounterProviders::V2::Types::SupervisingProvider] Required when the rendering provider is supervised by a physician. If not
|
227
247
|
# required by this implementation guide, do not send.
|
228
248
|
# @param service_facility [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityBase] Encounter Service facility is typically the location a medical service was
|
@@ -230,27 +250,18 @@ module CandidApiClient
|
|
230
250
|
# facility can represent the provider's location when the service was delivered
|
231
251
|
# (e.g., home), or the location where an in-person visit would have taken place,
|
232
252
|
# whichever is easier to identify. If the provider is in-network, service facility
|
233
|
-
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form.
|
253
|
+
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is
|
254
|
+
# no equivalent on the paper UB-04 claim form, but this field is equivalent to
|
255
|
+
# Loop 2310E Service Facility Location details on an 837i form, and is used when
|
256
|
+
# this is different to the entity identified as the Billing Provider. Note that
|
234
257
|
# for an in-network claim to be successfully adjudicated, the service facility
|
235
|
-
# address listed
|
236
|
-
# credentialing process.
|
237
|
-
# @param diagnoses [Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
238
|
-
# diagnoses
|
239
|
-
# may be submitted at this time, and coders will later prioritize the 12 that will
|
240
|
-
# be
|
241
|
-
# submitted to the payor.
|
258
|
+
# address listed
|
242
259
|
# @param clinical_notes [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
|
243
260
|
# patient encounters. Please note that medical records for appeals should be sent
|
244
261
|
# using the Encounter Attachments API.
|
245
262
|
# @param billing_notes [Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>] Spot to store misc, human-readable, notes about this encounter to be used
|
246
263
|
# in the billing process.
|
247
|
-
# @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
|
248
|
-
# telemedicine, 11 for in-person. Full list [here](https://www.cms
|
249
|
-
# .gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
|
250
264
|
# @param patient_histories [Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>]
|
251
|
-
# @param service_lines [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>] Each service line must be linked to a diagnosis. Concretely,
|
252
|
-
# `service_line.diagnosis_pointers`must contain at least one entry which should be
|
253
|
-
# in bounds of the diagnoses list field.
|
254
265
|
# @param external_claim_submission [CandidApiClient::ClaimSubmission::V1::Types::ExternalClaimSubmissionCreate] To be included for claims that have been submitted outside of Candid.
|
255
266
|
# Candid supports posting remits and payments to these claims and working them
|
256
267
|
# in-platform (e.g. editing, resubmitting).
|
@@ -263,7 +274,7 @@ module CandidApiClient
|
|
263
274
|
# This field should not contain PHI.
|
264
275
|
# @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
265
276
|
# This date must be the local date in the timezone where the service occurred.
|
266
|
-
# Box 24a on the CMS-1500 claim form.
|
277
|
+
# Box 24a on the CMS-1500 claim form or Form Locator 45 on the UB-04 claim form.
|
267
278
|
# If service occurred over a range of dates, this should be the start date.
|
268
279
|
# date_of_service must be defined on either the encounter or the service lines but
|
269
280
|
# not both.
|
@@ -279,17 +290,17 @@ module CandidApiClient
|
|
279
290
|
# for future API versions.
|
280
291
|
# @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
|
281
292
|
# for billing purpose.
|
282
|
-
# Box 12 on the CMS-1500 claim form.
|
293
|
+
# Box 12 on the CMS-1500 claim form or Form Locator 52 on a UB-04 claim form.
|
283
294
|
# @param benefits_assigned_to_provider [Boolean] Whether this patient has authorized insurance payments to be made to you,
|
284
295
|
# not them. If false, patient may receive reimbursement.
|
285
|
-
# Box 13 on the CMS-1500 claim form.
|
296
|
+
# Box 13 on the CMS-1500 claim form or Form Locator 53 on a UB-04 claim form.
|
286
297
|
# @param provider_accepts_assignment [Boolean] Whether you have accepted the patient's authorization for insurance payments
|
287
298
|
# to be made to you, not them.
|
288
|
-
# Box 27 on the CMS-1500 claim form.
|
299
|
+
# Box 27 on the CMS-1500 claim form. There is no exact equivalent of this field on
|
300
|
+
# a UB-04 claim, however contributes to the concept of Form Locator 53.
|
289
301
|
# @param appointment_type [String] Human-readable description of the appointment type (ex: "Acupuncture -
|
290
302
|
# Headaches").
|
291
303
|
# @param existing_medications [Array<CandidApiClient::Encounters::V4::Types::Medication>]
|
292
|
-
# @param vitals [CandidApiClient::Encounters::V4::Types::Vitals]
|
293
304
|
# @param interventions [Array<CandidApiClient::Encounters::V4::Types::Intervention>]
|
294
305
|
# @param pay_to_address [CandidApiClient::Commons::Types::StreetAddressLongZip] Specifies the address to which payments for the claim should be sent.
|
295
306
|
# @param synchronicity [CandidApiClient::Encounters::V4::Types::SynchronicityType] Whether or not this was a synchronous or asynchronous encounter.
|
@@ -299,54 +310,57 @@ module CandidApiClient
|
|
299
310
|
# Synchronous encounters occur in live, real-time settings where the patient
|
300
311
|
# interacts
|
301
312
|
# directly with the provider, such as over video or a phone call.
|
313
|
+
# @param vitals [CandidApiClient::Encounters::V4::Types::Vitals]
|
302
314
|
# @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
303
315
|
# Examples for when this should be set to NOT_BILLABLE include
|
304
316
|
# if the Encounter has not occurred yet or if there is no intention of ever
|
305
317
|
# billing the responsible_party.
|
306
318
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
307
|
-
# Box 19 on the CMS-1500 claim form.
|
319
|
+
# Box 19 on the CMS-1500 claim form or Form Locator 80 on a UB-04 claim form.
|
308
320
|
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
309
321
|
# Required when mandated by government law or regulation to obtain authorization
|
310
322
|
# for specific service(s) but, for the
|
311
323
|
# reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
|
312
324
|
# the service was performed without
|
313
325
|
# obtaining the authorization.
|
314
|
-
# @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
326
|
+
# @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18 or UB-04 Form Locator 12.
|
315
327
|
# Required on all ambulance claims when the patient was known to be admitted to
|
316
328
|
# the hospital.
|
317
329
|
# OR
|
318
330
|
# Required on all claims involving inpatient medical visits.
|
319
|
-
# @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
320
|
-
#
|
321
|
-
#
|
331
|
+
# @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18 Required for inpatient claims when the
|
332
|
+
# patient was discharged from the facility and the discharge date is known. Not
|
333
|
+
# used on an institutional claim.
|
322
334
|
# @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
323
335
|
# Required for the initial medical service or visit performed in response to a
|
324
336
|
# medical emergency when the date is available and is different than the date of
|
325
337
|
# service.
|
326
338
|
# OR
|
327
339
|
# This date is the onset of acute symptoms for the current illness or condition.
|
340
|
+
# For UB-04 claims, this is populated separately via occurrence codes.
|
328
341
|
# @param last_menstrual_period_date [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
329
342
|
# Required when, in the judgment of the provider, the services on this claim are
|
330
343
|
# related to the patient's pregnancy.
|
344
|
+
# This field is populated separately via occurrence codes for UB-04 claim forms.
|
331
345
|
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
332
346
|
# Code indicating the reason why a request was delayed
|
333
347
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
334
348
|
# @return [CandidApiClient::Encounters::V4::Types::EncounterCreateFromPreEncounter]
|
335
|
-
def initialize(
|
336
|
-
|
349
|
+
def initialize(rendering_provider:, place_of_service_code:, diagnoses:, pre_encounter_patient_id:,
|
350
|
+
pre_encounter_appointment_ids:, billing_provider:, external_id:, patient_authorized_release:, benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, service_lines: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, service_facility: OMIT, clinical_notes: OMIT, billing_notes: OMIT, patient_histories: OMIT, external_claim_submission: OMIT, tag_ids: OMIT, schema_instances: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, appointment_type: OMIT, existing_medications: OMIT, interventions: OMIT, pay_to_address: OMIT, synchronicity: OMIT, vitals: 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, additional_properties: nil)
|
351
|
+
@rendering_provider = rendering_provider
|
352
|
+
@place_of_service_code = place_of_service_code
|
353
|
+
@diagnoses = diagnoses
|
354
|
+
@service_lines = service_lines if service_lines != OMIT
|
337
355
|
@pre_encounter_patient_id = pre_encounter_patient_id
|
338
356
|
@pre_encounter_appointment_ids = pre_encounter_appointment_ids
|
339
357
|
@billing_provider = billing_provider
|
340
|
-
@rendering_provider = rendering_provider
|
341
358
|
@initial_referring_provider = initial_referring_provider if initial_referring_provider != OMIT
|
342
359
|
@supervising_provider = supervising_provider if supervising_provider != OMIT
|
343
360
|
@service_facility = service_facility if service_facility != OMIT
|
344
|
-
@diagnoses = diagnoses
|
345
361
|
@clinical_notes = clinical_notes if clinical_notes != OMIT
|
346
362
|
@billing_notes = billing_notes if billing_notes != OMIT
|
347
|
-
@place_of_service_code = place_of_service_code
|
348
363
|
@patient_histories = patient_histories if patient_histories != OMIT
|
349
|
-
@service_lines = service_lines if service_lines != OMIT
|
350
364
|
@external_claim_submission = external_claim_submission if external_claim_submission != OMIT
|
351
365
|
@tag_ids = tag_ids if tag_ids != OMIT
|
352
366
|
@schema_instances = schema_instances if schema_instances != OMIT
|
@@ -358,10 +372,10 @@ module CandidApiClient
|
|
358
372
|
@provider_accepts_assignment = provider_accepts_assignment
|
359
373
|
@appointment_type = appointment_type if appointment_type != OMIT
|
360
374
|
@existing_medications = existing_medications if existing_medications != OMIT
|
361
|
-
@vitals = vitals if vitals != OMIT
|
362
375
|
@interventions = interventions if interventions != OMIT
|
363
376
|
@pay_to_address = pay_to_address if pay_to_address != OMIT
|
364
377
|
@synchronicity = synchronicity if synchronicity != OMIT
|
378
|
+
@vitals = vitals if vitals != OMIT
|
365
379
|
@billable_status = billable_status
|
366
380
|
@additional_information = additional_information if additional_information != OMIT
|
367
381
|
if service_authorization_exception_code != OMIT
|
@@ -376,19 +390,19 @@ module CandidApiClient
|
|
376
390
|
@delay_reason_code = delay_reason_code if delay_reason_code != OMIT
|
377
391
|
@additional_properties = additional_properties
|
378
392
|
@_field_set = {
|
393
|
+
"rendering_provider": rendering_provider,
|
394
|
+
"place_of_service_code": place_of_service_code,
|
395
|
+
"diagnoses": diagnoses,
|
396
|
+
"service_lines": service_lines,
|
379
397
|
"pre_encounter_patient_id": pre_encounter_patient_id,
|
380
398
|
"pre_encounter_appointment_ids": pre_encounter_appointment_ids,
|
381
399
|
"billing_provider": billing_provider,
|
382
|
-
"rendering_provider": rendering_provider,
|
383
400
|
"initial_referring_provider": initial_referring_provider,
|
384
401
|
"supervising_provider": supervising_provider,
|
385
402
|
"service_facility": service_facility,
|
386
|
-
"diagnoses": diagnoses,
|
387
403
|
"clinical_notes": clinical_notes,
|
388
404
|
"billing_notes": billing_notes,
|
389
|
-
"place_of_service_code": place_of_service_code,
|
390
405
|
"patient_histories": patient_histories,
|
391
|
-
"service_lines": service_lines,
|
392
406
|
"external_claim_submission": external_claim_submission,
|
393
407
|
"tag_ids": tag_ids,
|
394
408
|
"schema_instances": schema_instances,
|
@@ -400,10 +414,10 @@ module CandidApiClient
|
|
400
414
|
"provider_accepts_assignment": provider_accepts_assignment,
|
401
415
|
"appointment_type": appointment_type,
|
402
416
|
"existing_medications": existing_medications,
|
403
|
-
"vitals": vitals,
|
404
417
|
"interventions": interventions,
|
405
418
|
"pay_to_address": pay_to_address,
|
406
419
|
"synchronicity": synchronicity,
|
420
|
+
"vitals": vitals,
|
407
421
|
"billable_status": billable_status,
|
408
422
|
"additional_information": additional_information,
|
409
423
|
"service_authorization_exception_code": service_authorization_exception_code,
|
@@ -424,6 +438,21 @@ module CandidApiClient
|
|
424
438
|
def self.from_json(json_object:)
|
425
439
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
426
440
|
parsed_json = JSON.parse(json_object)
|
441
|
+
if parsed_json["rendering_provider"].nil?
|
442
|
+
rendering_provider = nil
|
443
|
+
else
|
444
|
+
rendering_provider = parsed_json["rendering_provider"].to_json
|
445
|
+
rendering_provider = CandidApiClient::EncounterProviders::V2::Types::RenderingProvider.from_json(json_object: rendering_provider)
|
446
|
+
end
|
447
|
+
place_of_service_code = struct["place_of_service_code"]
|
448
|
+
diagnoses = parsed_json["diagnoses"]&.map do |item|
|
449
|
+
item = item.to_json
|
450
|
+
CandidApiClient::Diagnoses::Types::DiagnosisCreate.from_json(json_object: item)
|
451
|
+
end
|
452
|
+
service_lines = parsed_json["service_lines"]&.map do |item|
|
453
|
+
item = item.to_json
|
454
|
+
CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate.from_json(json_object: item)
|
455
|
+
end
|
427
456
|
pre_encounter_patient_id = struct["pre_encounter_patient_id"]
|
428
457
|
pre_encounter_appointment_ids = struct["pre_encounter_appointment_ids"]
|
429
458
|
if parsed_json["billing_provider"].nil?
|
@@ -432,12 +461,6 @@ module CandidApiClient
|
|
432
461
|
billing_provider = parsed_json["billing_provider"].to_json
|
433
462
|
billing_provider = CandidApiClient::EncounterProviders::V2::Types::BillingProvider.from_json(json_object: billing_provider)
|
434
463
|
end
|
435
|
-
if parsed_json["rendering_provider"].nil?
|
436
|
-
rendering_provider = nil
|
437
|
-
else
|
438
|
-
rendering_provider = parsed_json["rendering_provider"].to_json
|
439
|
-
rendering_provider = CandidApiClient::EncounterProviders::V2::Types::RenderingProvider.from_json(json_object: rendering_provider)
|
440
|
-
end
|
441
464
|
if parsed_json["initial_referring_provider"].nil?
|
442
465
|
initial_referring_provider = nil
|
443
466
|
else
|
@@ -456,10 +479,6 @@ module CandidApiClient
|
|
456
479
|
service_facility = parsed_json["service_facility"].to_json
|
457
480
|
service_facility = CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityBase.from_json(json_object: service_facility)
|
458
481
|
end
|
459
|
-
diagnoses = parsed_json["diagnoses"]&.map do |item|
|
460
|
-
item = item.to_json
|
461
|
-
CandidApiClient::Diagnoses::Types::DiagnosisCreate.from_json(json_object: item)
|
462
|
-
end
|
463
482
|
clinical_notes = parsed_json["clinical_notes"]&.map do |item|
|
464
483
|
item = item.to_json
|
465
484
|
CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate.from_json(json_object: item)
|
@@ -468,15 +487,10 @@ module CandidApiClient
|
|
468
487
|
item = item.to_json
|
469
488
|
CandidApiClient::BillingNotes::V2::Types::BillingNoteBase.from_json(json_object: item)
|
470
489
|
end
|
471
|
-
place_of_service_code = struct["place_of_service_code"]
|
472
490
|
patient_histories = parsed_json["patient_histories"]&.map do |item|
|
473
491
|
item = item.to_json
|
474
492
|
CandidApiClient::Encounters::V4::Types::PatientHistoryCategory.from_json(json_object: item)
|
475
493
|
end
|
476
|
-
service_lines = parsed_json["service_lines"]&.map do |item|
|
477
|
-
item = item.to_json
|
478
|
-
CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate.from_json(json_object: item)
|
479
|
-
end
|
480
494
|
if parsed_json["external_claim_submission"].nil?
|
481
495
|
external_claim_submission = nil
|
482
496
|
else
|
@@ -501,12 +515,6 @@ module CandidApiClient
|
|
501
515
|
item = item.to_json
|
502
516
|
CandidApiClient::Encounters::V4::Types::Medication.from_json(json_object: item)
|
503
517
|
end
|
504
|
-
if parsed_json["vitals"].nil?
|
505
|
-
vitals = nil
|
506
|
-
else
|
507
|
-
vitals = parsed_json["vitals"].to_json
|
508
|
-
vitals = CandidApiClient::Encounters::V4::Types::Vitals.from_json(json_object: vitals)
|
509
|
-
end
|
510
518
|
interventions = parsed_json["interventions"]&.map do |item|
|
511
519
|
item = item.to_json
|
512
520
|
CandidApiClient::Encounters::V4::Types::Intervention.from_json(json_object: item)
|
@@ -518,6 +526,12 @@ module CandidApiClient
|
|
518
526
|
pay_to_address = CandidApiClient::Commons::Types::StreetAddressLongZip.from_json(json_object: pay_to_address)
|
519
527
|
end
|
520
528
|
synchronicity = struct["synchronicity"]
|
529
|
+
if parsed_json["vitals"].nil?
|
530
|
+
vitals = nil
|
531
|
+
else
|
532
|
+
vitals = parsed_json["vitals"].to_json
|
533
|
+
vitals = CandidApiClient::Encounters::V4::Types::Vitals.from_json(json_object: vitals)
|
534
|
+
end
|
521
535
|
billable_status = struct["billable_status"]
|
522
536
|
additional_information = struct["additional_information"]
|
523
537
|
service_authorization_exception_code = struct["service_authorization_exception_code"]
|
@@ -531,19 +545,19 @@ module CandidApiClient
|
|
531
545
|
end
|
532
546
|
delay_reason_code = struct["delay_reason_code"]
|
533
547
|
new(
|
548
|
+
rendering_provider: rendering_provider,
|
549
|
+
place_of_service_code: place_of_service_code,
|
550
|
+
diagnoses: diagnoses,
|
551
|
+
service_lines: service_lines,
|
534
552
|
pre_encounter_patient_id: pre_encounter_patient_id,
|
535
553
|
pre_encounter_appointment_ids: pre_encounter_appointment_ids,
|
536
554
|
billing_provider: billing_provider,
|
537
|
-
rendering_provider: rendering_provider,
|
538
555
|
initial_referring_provider: initial_referring_provider,
|
539
556
|
supervising_provider: supervising_provider,
|
540
557
|
service_facility: service_facility,
|
541
|
-
diagnoses: diagnoses,
|
542
558
|
clinical_notes: clinical_notes,
|
543
559
|
billing_notes: billing_notes,
|
544
|
-
place_of_service_code: place_of_service_code,
|
545
560
|
patient_histories: patient_histories,
|
546
|
-
service_lines: service_lines,
|
547
561
|
external_claim_submission: external_claim_submission,
|
548
562
|
tag_ids: tag_ids,
|
549
563
|
schema_instances: schema_instances,
|
@@ -555,10 +569,10 @@ module CandidApiClient
|
|
555
569
|
provider_accepts_assignment: provider_accepts_assignment,
|
556
570
|
appointment_type: appointment_type,
|
557
571
|
existing_medications: existing_medications,
|
558
|
-
vitals: vitals,
|
559
572
|
interventions: interventions,
|
560
573
|
pay_to_address: pay_to_address,
|
561
574
|
synchronicity: synchronicity,
|
575
|
+
vitals: vitals,
|
562
576
|
billable_status: billable_status,
|
563
577
|
additional_information: additional_information,
|
564
578
|
service_authorization_exception_code: service_authorization_exception_code,
|
@@ -585,19 +599,19 @@ module CandidApiClient
|
|
585
599
|
# @param obj [Object]
|
586
600
|
# @return [Void]
|
587
601
|
def self.validate_raw(obj:)
|
602
|
+
CandidApiClient::EncounterProviders::V2::Types::RenderingProvider.validate_raw(obj: obj.rendering_provider)
|
603
|
+
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.")
|
604
|
+
obj.diagnoses.is_a?(Array) != false || raise("Passed value for field obj.diagnoses is not the expected type, validation failed.")
|
605
|
+
obj.service_lines&.is_a?(Array) != false || raise("Passed value for field obj.service_lines is not the expected type, validation failed.")
|
588
606
|
obj.pre_encounter_patient_id.is_a?(String) != false || raise("Passed value for field obj.pre_encounter_patient_id is not the expected type, validation failed.")
|
589
607
|
obj.pre_encounter_appointment_ids.is_a?(Array) != false || raise("Passed value for field obj.pre_encounter_appointment_ids is not the expected type, validation failed.")
|
590
608
|
CandidApiClient::EncounterProviders::V2::Types::BillingProvider.validate_raw(obj: obj.billing_provider)
|
591
|
-
CandidApiClient::EncounterProviders::V2::Types::RenderingProvider.validate_raw(obj: obj.rendering_provider)
|
592
609
|
obj.initial_referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider.validate_raw(obj: obj.initial_referring_provider)
|
593
610
|
obj.supervising_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::SupervisingProvider.validate_raw(obj: obj.supervising_provider)
|
594
611
|
obj.service_facility.nil? || CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityBase.validate_raw(obj: obj.service_facility)
|
595
|
-
obj.diagnoses.is_a?(Array) != false || raise("Passed value for field obj.diagnoses is not the expected type, validation failed.")
|
596
612
|
obj.clinical_notes&.is_a?(Array) != false || raise("Passed value for field obj.clinical_notes is not the expected type, validation failed.")
|
597
613
|
obj.billing_notes&.is_a?(Array) != false || raise("Passed value for field obj.billing_notes is not the expected type, validation failed.")
|
598
|
-
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.")
|
599
614
|
obj.patient_histories&.is_a?(Array) != false || raise("Passed value for field obj.patient_histories is not the expected type, validation failed.")
|
600
|
-
obj.service_lines&.is_a?(Array) != false || raise("Passed value for field obj.service_lines is not the expected type, validation failed.")
|
601
615
|
obj.external_claim_submission.nil? || CandidApiClient::ClaimSubmission::V1::Types::ExternalClaimSubmissionCreate.validate_raw(obj: obj.external_claim_submission)
|
602
616
|
obj.tag_ids&.is_a?(Array) != false || raise("Passed value for field obj.tag_ids is not the expected type, validation failed.")
|
603
617
|
obj.schema_instances&.is_a?(Array) != false || raise("Passed value for field obj.schema_instances is not the expected type, validation failed.")
|
@@ -609,10 +623,10 @@ module CandidApiClient
|
|
609
623
|
obj.provider_accepts_assignment.is_a?(Boolean) != false || raise("Passed value for field obj.provider_accepts_assignment is not the expected type, validation failed.")
|
610
624
|
obj.appointment_type&.is_a?(String) != false || raise("Passed value for field obj.appointment_type is not the expected type, validation failed.")
|
611
625
|
obj.existing_medications&.is_a?(Array) != false || raise("Passed value for field obj.existing_medications is not the expected type, validation failed.")
|
612
|
-
obj.vitals.nil? || CandidApiClient::Encounters::V4::Types::Vitals.validate_raw(obj: obj.vitals)
|
613
626
|
obj.interventions&.is_a?(Array) != false || raise("Passed value for field obj.interventions is not the expected type, validation failed.")
|
614
627
|
obj.pay_to_address.nil? || CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.pay_to_address)
|
615
628
|
obj.synchronicity&.is_a?(CandidApiClient::Encounters::V4::Types::SynchronicityType) != false || raise("Passed value for field obj.synchronicity is not the expected type, validation failed.")
|
629
|
+
obj.vitals.nil? || CandidApiClient::Encounters::V4::Types::Vitals.validate_raw(obj: obj.vitals)
|
616
630
|
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.")
|
617
631
|
obj.additional_information&.is_a?(String) != false || raise("Passed value for field obj.additional_information is not the expected type, validation failed.")
|
618
632
|
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.")
|