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.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/auth/default/client.rb +74 -0
  3. data/lib/candidhealth/charge_capture/v_1/client.rb +48 -48
  4. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +70 -56
  5. data/lib/candidhealth/commons/types/clearinghouse.rb +18 -0
  6. data/lib/candidhealth/commons/types/procedure_modifier.rb +11 -0
  7. data/lib/candidhealth/credentialing/v_2/client.rb +342 -8
  8. data/lib/candidhealth/credentialing/v_2/types/base_credentialing_span.rb +143 -0
  9. data/lib/candidhealth/credentialing/v_2/types/facility_credentialing_span.rb +165 -0
  10. data/lib/candidhealth/credentialing/v_2/types/facility_credentialing_span_page.rb +88 -0
  11. data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span.rb +34 -34
  12. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +1 -1
  13. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update.rb +1 -1
  14. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +1 -1
  15. data/lib/candidhealth/encounters/v_4/client.rb +3253 -2040
  16. data/lib/candidhealth/encounters/v_4/types/encounter.rb +111 -86
  17. data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +39 -33
  18. data/lib/candidhealth/encounters/v_4/types/encounter_create.rb +796 -0
  19. data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +131 -117
  20. data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +70 -56
  21. data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +29 -39
  22. data/lib/candidhealth/encounters/v_4/types/encounter_rendering_or_attending_provider_required_error.rb +55 -0
  23. data/lib/candidhealth/encounters/v_4/types/encounter_update.rb +736 -0
  24. data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +944 -0
  25. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_base.rb +691 -0
  26. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +791 -0
  27. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter_base.rb +572 -0
  28. data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +872 -0
  29. data/lib/candidhealth/encounters_universal/types/universal_encounter_update_base.rb +700 -0
  30. data/lib/candidhealth/fee_schedules/v_3/client.rb +57 -0
  31. data/lib/candidhealth/fee_schedules/v_3/types/validation_error.rb +12 -0
  32. data/lib/candidhealth/financials/types/patient_transaction_source.rb +1 -0
  33. data/lib/candidhealth/health_care_code_information/client.rb +30 -0
  34. data/lib/candidhealth/health_care_code_information/v_1/client.rb +268 -0
  35. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +236 -0
  36. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_code_qualifier.rb +14 -0
  37. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +206 -0
  38. data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +1068 -0
  39. data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +71 -0
  40. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +237 -0
  41. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_code_qualifier.rb +13 -0
  42. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +207 -0
  43. data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +54 -0
  44. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +236 -0
  45. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_code_qualifier.rb +13 -0
  46. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +206 -0
  47. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +245 -0
  48. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_code_qualifier.rb +14 -0
  49. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +245 -0
  50. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +218 -0
  51. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +225 -0
  52. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +227 -0
  53. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +188 -0
  54. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +225 -0
  55. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +71 -0
  56. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +249 -0
  57. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_code_qualifier.rb +13 -0
  58. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +219 -0
  59. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +25 -0
  60. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code_qualifier.rb +13 -0
  61. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +252 -0
  62. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +222 -0
  63. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +245 -0
  64. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_code_qualifier.rb +14 -0
  65. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +215 -0
  66. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +248 -0
  67. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_code_qualifier.rb +14 -0
  68. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +218 -0
  69. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +236 -0
  70. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_code_qualifier.rb +14 -0
  71. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +206 -0
  72. data/lib/candidhealth/health_care_code_information/v_1/types/present_on_admission_indicator_code.rb +17 -0
  73. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +245 -0
  74. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_code_qualifier.rb +14 -0
  75. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +215 -0
  76. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +246 -0
  77. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_code_qualifier.rb +15 -0
  78. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +216 -0
  79. data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +72 -0
  80. data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_admitting_diagnosis.rb +69 -0
  81. data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_diagnosis_related_group.rb +69 -0
  82. data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_principal_diagnosis.rb +69 -0
  83. data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_principal_procedure_information.rb +71 -0
  84. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +236 -0
  85. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +206 -0
  86. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_qualifier.rb +13 -0
  87. data/lib/candidhealth/health_care_code_information/v_1/types/value_code.rb +119 -0
  88. data/lib/candidhealth/health_care_code_information/v_1/types/value_code_qualifier.rb +13 -0
  89. data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +245 -0
  90. data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +215 -0
  91. data/lib/candidhealth/individual/types/patient.rb +6 -6
  92. data/lib/candidhealth/individual/types/patient_base.rb +6 -6
  93. data/lib/candidhealth/individual/types/patient_create.rb +6 -6
  94. data/lib/candidhealth/individual/types/patient_update.rb +6 -6
  95. data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +6 -6
  96. data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
  97. data/lib/candidhealth/patient_ar/client.rb +30 -0
  98. data/lib/candidhealth/patient_ar/v_1/client.rb +161 -0
  99. data/lib/candidhealth/patient_ar/v_1/types/insurance_adjustment_info.rb +60 -0
  100. data/lib/candidhealth/patient_ar/v_1/types/insurance_payment_info.rb +60 -0
  101. data/lib/candidhealth/patient_ar/v_1/types/invalid_filters_error_type.rb +60 -0
  102. data/lib/candidhealth/patient_ar/v_1/types/inventory_record.rb +101 -0
  103. data/lib/candidhealth/patient_ar/v_1/types/invoice_itemization_response.rb +103 -0
  104. data/lib/candidhealth/patient_ar/v_1/types/list_inventory_paged_response.rb +77 -0
  105. data/lib/candidhealth/patient_ar/v_1/types/non_insurance_adjustment_info.rb +60 -0
  106. data/lib/candidhealth/patient_ar/v_1/types/non_insurance_payment_info.rb +60 -0
  107. data/lib/candidhealth/patient_ar/v_1/types/patient_adjustment_info.rb +60 -0
  108. data/lib/candidhealth/patient_ar/v_1/types/patient_ar_status.rb +14 -0
  109. data/lib/candidhealth/patient_ar/v_1/types/patient_payment_allocation.rb +76 -0
  110. data/lib/candidhealth/patient_ar/v_1/types/patient_payment_info.rb +75 -0
  111. data/lib/candidhealth/patient_ar/v_1/types/service_line_itemization.rb +210 -0
  112. data/lib/candidhealth/payers/client.rb +7 -0
  113. data/lib/candidhealth/payers/v_4/client.rb +137 -0
  114. data/lib/candidhealth/payers/v_4/types/clearinghouse_payer_info.rb +93 -0
  115. data/lib/candidhealth/payers/v_4/types/payer.rb +116 -0
  116. data/lib/candidhealth/payers/v_4/types/payer_ids.rb +107 -0
  117. data/lib/candidhealth/payers/v_4/types/payer_page.rb +88 -0
  118. data/lib/candidhealth/payers/v_4/types/support_state.rb +15 -0
  119. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +4 -4
  120. data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +3 -3
  121. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +204 -6
  122. data/lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb +3 -3
  123. data/lib/candidhealth/pre_encounter/patients/v_1/types/inferred_patient_metadata.rb +80 -0
  124. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +33 -5
  125. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +33 -5
  126. data/lib/candidhealth/pre_encounter/patients/v_1/types/origination_detail.rb +104 -0
  127. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +32 -4
  128. data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_source.rb +18 -0
  129. data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_type.rb +17 -0
  130. data/lib/candidhealth/pre_encounter/patients/v_1/types/specialization_category.rb +42 -0
  131. data/lib/candidhealth/service_lines/v_2/client.rb +252 -10
  132. data/lib/candidhealth/service_lines/v_2/types/service_line.rb +28 -10
  133. data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +52 -40
  134. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +251 -0
  135. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +243 -0
  136. data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +48 -24
  137. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +58 -46
  138. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base.rb +273 -0
  139. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base_base.rb +265 -0
  140. data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +64 -54
  141. data/lib/candidhealth/service_lines/v_2/types/service_line_update_base.rb +263 -0
  142. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +271 -0
  143. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create_standalone.rb +317 -0
  144. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_update.rb +307 -0
  145. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite.rb +2 -2
  146. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_base.rb +90 -0
  147. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +112 -0
  148. data/lib/candidhealth.rb +21 -7
  149. data/lib/requests.rb +2 -2
  150. data/lib/types_export.rb +116 -13
  151. metadata +109 -2
@@ -0,0 +1,872 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../health_care_code_information/v_1/types/health_care_code_information_update"
4
+ require_relative "../../encounter_providers/v_2/types/rendering_provider_update"
5
+ require_relative "../../x_12/v_1/types/type_of_admission_or_visit_code"
6
+ require_relative "../../x_12/v_1/types/point_of_origin_for_admission_or_visit_code"
7
+ require_relative "../../x_12/v_1/types/patient_discharge_status_code"
8
+ require_relative "../../x_12/v_1/types/type_of_bill_composite_update"
9
+ require_relative "../../commons/types/state"
10
+ require_relative "../../encounters/v_4/types/encounter_submission_expectation"
11
+ require_relative "../../encounters/v_4/types/epsdt_referral"
12
+ require_relative "../../encounters/v_4/types/clinical_note_category_create"
13
+ require_relative "../../encounters/v_4/types/claim_supplemental_information"
14
+ require_relative "../../custom_schemas/v_1/types/schema_instance"
15
+ require_relative "../../encounters/v_4/types/medication"
16
+ require_relative "../../guarantor/v_1/types/guarantor_update"
17
+ require_relative "../../individual/types/subscriber_create"
18
+ require_relative "../../commons/types/street_address_long_zip"
19
+ require_relative "../../encounter_providers/v_2/types/initial_referring_provider_update"
20
+ require_relative "../../encounter_providers/v_2/types/referring_provider_update"
21
+ require_relative "../../individual/types/patient_update"
22
+ require_relative "../../service_facility/types/encounter_service_facility_update"
23
+ require_relative "../../encounter_providers/v_2/types/supervising_provider_update"
24
+ require_relative "../../encounter_providers/v_2/types/billing_provider_update"
25
+ require_relative "../../commons/types/facility_type_code"
26
+ require "date"
27
+ require_relative "../../encounters/v_4/types/billable_status_type"
28
+ require_relative "../../encounters/v_4/types/responsible_party_type"
29
+ require_relative "../../encounters/v_4/types/synchronicity_type"
30
+ require_relative "../../encounters/v_4/types/service_authorization_exception_code"
31
+ require_relative "../../commons/types/delay_reason_code"
32
+ require "ostruct"
33
+ require "json"
34
+
35
+ module CandidApiClient
36
+ module EncountersUniversal
37
+ module Types
38
+ class UniversalEncounterUpdate
39
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationUpdate] The health care code information associated with this encounter, which includes
40
+ # things such as diagnoses, vitals, procedures, occurrences, reason for visit, and
41
+ # numerous other code related fields.
42
+ attr_reader :health_care_code_information
43
+ # @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate] 837i NM1 2500 variant for Loop ID-2310. Used to indicate the individual whom
44
+ # has overall responsibility for the patient in institutional claims processing.
45
+ attr_reader :attending_provider
46
+ # @return [Integer] 837i Loop 2300 DTP-03
47
+ # Extension of the admission date with hour (0-23 integer) details.
48
+ attr_reader :admission_hour
49
+ # @return [CandidApiClient::X12::V1::Types::TypeOfAdmissionOrVisitCode] 837i Loop 2300 CL1-01 Code used to indicate the priority of an admission or
50
+ # visit. Equivalent to Form Locator 14 Priority of Admission on a UB-04 claim, not
51
+ # used on CMS-1500 claim forms.
52
+ attr_reader :admission_type_code
53
+ # @return [CandidApiClient::X12::V1::Types::PointOfOriginForAdmissionOrVisitCode] 837i Loop 2300 CLI1-02 Code used to indicate the conditions under which an
54
+ # admission occurs. Equivalent to Form Locator 15 Point of Origin on a UB-04
55
+ # claim, not used on CMS-1500 claim forms.
56
+ attr_reader :admission_source_code
57
+ # @return [Integer] 837i Loop 2300 DTP-03
58
+ # Extension of the discharge date with hour (0-23 integer) details.
59
+ attr_reader :discharge_hour
60
+ # @return [CandidApiClient::X12::V1::Types::PatientDischargeStatusCode] 837i CL1-03 or Form Locator 17 on a UB-04 claim form. This is a required field
61
+ # on UB-04 claims.
62
+ # Code indicating patient status as of the "statement covers through date".
63
+ attr_reader :discharge_status
64
+ # @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate] 837i NM1 2500 variant for Loop ID-2310. Used to indicate the individual whom
65
+ # has primary responsibility for surgical procedures in institutional claims
66
+ # processing.
67
+ attr_reader :operating_provider
68
+ # @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate] 837i NM1 2500 variant for Loop ID-2310. Used to indicate the individual whom
69
+ # has secondary responsibility for surgical procedures in institutional claims
70
+ # processing. Only used when operating_provider is also set.
71
+ attr_reader :other_operating_provider
72
+ # @return [CandidApiClient::X12::V1::Types::TypeOfBillCompositeUpdate] Four digit code used in institutional forms to indicate the type of bill (e.g.,
73
+ # hospital inpatient, hospital outpatient). First digit is a leading 0, followed
74
+ # by the type_of_facility, type_of_care, then frequency_code. Professional forms
75
+ # are not required to submit this attribute. You may send the 4 digit code via
76
+ # raw_code, or each individual digit separately via composite_codes.
77
+ attr_reader :type_of_bill
78
+ # @return [CandidApiClient::Commons::Types::State] 837i-REF1000 -- an optional state indicating where an accident related to the
79
+ # encounter occurred.
80
+ attr_reader :accident_state_or_province_code
81
+ # @return [CandidApiClient::Encounters::V4::Types::EncounterSubmissionExpectation] Describes the currently expected target form for this encounter. This effects
82
+ # what validations and queues the form is processed under. When this value is not
83
+ # set, it should be assumed to be TARGET_PROFESSIONAL.
84
+ attr_reader :submission_expectation
85
+ # @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers to Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
86
+ # 837P and 837i form
87
+ attr_reader :epsdt_referral
88
+ # @return [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
89
+ # patient encounters. Please note that medical records for appeals should be sent
90
+ # using the Encounter Attachments API.
91
+ attr_reader :clinical_notes
92
+ # @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P and 837i form. No more than 10
93
+ # entries are permitted.
94
+ attr_reader :claim_supplemental_information
95
+ # @return [Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>] Key-value pairs that must adhere to a schema created via the Custom Schema API.
96
+ # Multiple schema
97
+ # instances cannot be created for the same schema on an encounter. Updating schema
98
+ # instances utilizes PUT
99
+ # semantics, so the schema instances on the encounter will be set to whatever
100
+ # inputs are provided. If null
101
+ # is provided as an input, then the encounter's schema instances will be cleared.
102
+ attr_reader :schema_instances
103
+ # @return [Array<CandidApiClient::Encounters::V4::Types::Medication>] Existing medications that should be on the encounter.
104
+ # Note all current existing medications on encounter will be overridden with this
105
+ # list.
106
+ attr_reader :existing_medications
107
+ # @return [CandidApiClient::Guarantor::V1::Types::GuarantorUpdate] Personal and contact info for the guarantor of the patient responsibility.
108
+ attr_reader :guarantor
109
+ # @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the primary insurance subscriber.
110
+ attr_reader :subscriber_primary
111
+ # @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the secondary insurance subscriber.
112
+ attr_reader :subscriber_secondary
113
+ # @return [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
114
+ attr_reader :subscriber_tertiary
115
+ # @return [CandidApiClient::Commons::Types::StreetAddressLongZip] Specifies the address to which payments for the claim should be sent.
116
+ attr_reader :pay_to_address
117
+ # @return [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate] The second iteration of Loop ID-2310 on an 837P form. Use code "P3 - Primary
118
+ # Care Provider" in this loop to
119
+ # indicate the initial referral from the primary care provider or whatever
120
+ # provider wrote the initial referral for this patient's episode of care being
121
+ # billed/reported in this transaction.
122
+ # Not used in an 837i claim
123
+ attr_reader :initial_referring_provider
124
+ # @return [CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate] The final provider who referred the services that were rendered.
125
+ # All physicians who order services or refer Medicare beneficiaries must
126
+ # report this data.
127
+ attr_reader :referring_provider
128
+ # @return [CandidApiClient::Individual::Types::PatientUpdate] Contains the identification information of the individual receiving medical
129
+ # services.
130
+ attr_reader :patient
131
+ # @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate] The rendering provider is the practitioner -- physician, nurse practitioner,
132
+ # etc. -- performing the service.
133
+ # For telehealth services, the rendering provider performs the visit, asynchronous
134
+ # communication, or other service. The rendering provider address should generally
135
+ # be the same as the service facility address.
136
+ attr_reader :rendering_provider
137
+ # @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate] Encounter Service facility is typically the location a medical service was
138
+ # rendered, such as a provider office or hospital. For telehealth, service
139
+ # facility can represent the provider's location when the service was delivered
140
+ # (e.g., home), or the location where an in-person visit would have taken place,
141
+ # whichever is easier to identify. If the provider is in-network, service facility
142
+ # may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is
143
+ # no equivalent on the paper UB-04 claim form, but this field is equivalent to
144
+ # Loop 2310E Service Facility Location details on an 837i form, and is used when
145
+ # this is different to the entity identified as the Billing Provider. Note that
146
+ # for an in-network claim to be successfully adjudicated, the service facility
147
+ # address listed
148
+ attr_reader :service_facility
149
+ # @return [CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdate] Required when the rendering provider is supervised by a physician. If not
150
+ # required by this implementation guide, do not send.
151
+ attr_reader :supervising_provider
152
+ # @return [CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdate] The billing provider is the provider or business entity submitting the claim.
153
+ # Billing provider may be, but is not necessarily, the same person/NPI as the
154
+ # rendering provider. From a payer's perspective, this represents the person or
155
+ # entity being reimbursed. When a contract exists with the target payer, the
156
+ # billing provider should be the entity contracted with the payer. In some
157
+ # circumstances, this will be an individual provider. In that case, submit that
158
+ # provider's NPI and the tax ID (TIN) that the provider gave to the payer during
159
+ # contracting. In other cases, the billing entity will be a medical group. If so,
160
+ # submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim or
161
+ # Form Locator 1 on a UB-04 claim form.
162
+ attr_reader :billing_provider
163
+ # @return [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. This box is not
164
+ # used on a UB-04 or 837i claim form. 02 for telemedicine, 11 for in-person. Full
165
+ # list
166
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
167
+ attr_reader :place_of_service_code_as_submitted
168
+ # @return [Boolean] Whether this patient has authorized insurance payments to be made to you, not
169
+ # them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
170
+ # form or Form Locator 53 on a UB-04 claim form.
171
+ attr_reader :benefits_assigned_to_provider
172
+ # @return [String] Box 23 on the CMS-1500 claim form or Form Locator 63 on a UB-04 claim form.
173
+ attr_reader :prior_authorization_number
174
+ # @return [String] A client-specified unique ID to associate with this encounter;
175
+ # for example, your internal encounter ID or a Dr. Chrono encounter ID.
176
+ # This field should not contain PHI.
177
+ attr_reader :external_id
178
+ # @return [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
179
+ # This date must be the local date in the timezone where the service occurred.
180
+ # Box 24a on the CMS-1500 claim form or Form Locator 45 on the UB-04 claim form.
181
+ # If service occurred over a range of dates, this should be the start date.
182
+ # If service lines have distinct date_of_service values, updating the encounter's
183
+ # date_of_service will fail. If all service line date_of_service values are the
184
+ # same, updating the encounter's date_of_service will update all service line
185
+ # date_of_service values.
186
+ attr_reader :date_of_service
187
+ # @return [Array<String>] Names of tags that should be on the encounter. Note all tags on encounter will
188
+ # be overridden with this list.
189
+ attr_reader :tag_ids
190
+ # @return [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
191
+ # Examples for when this should be set to NOT_BILLABLE include if the Encounter
192
+ # has not occurred yet or if there is no intention of ever billing the
193
+ # responsible_party.
194
+ attr_reader :billable_status
195
+ # @return [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
196
+ # SELF_PAY if you intend to bill self pay/cash pay.
197
+ attr_reader :responsible_party
198
+ # @return [Boolean] Whether you have accepted the patient's authorization for insurance payments to
199
+ # be made to you, not them. Box 27 on the CMS-1500 claim form. There is no exact
200
+ # equivalent of this field on a UB-04 claim, however contributes to the concept of
201
+ # Form Locator 53.
202
+ attr_reader :provider_accepts_assignment
203
+ # @return [CandidApiClient::Encounters::V4::Types::SynchronicityType] Whether or not this was a synchronous or asynchronous encounter. Asynchronous
204
+ # encounters occur when providers and patients communicate online using forms,
205
+ # instant messaging, or other pre-recorded digital mediums. Synchronous encounters
206
+ # occur in live, real-time settings where the patient interacts directly with the
207
+ # provider, such as over video or a phone call.
208
+ attr_reader :synchronicity
209
+ # @return [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
210
+ # telemedicine, 11 for in-person. Full list
211
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
212
+ attr_reader :place_of_service_code
213
+ # @return [String] Human-readable description of the appointment type (ex: "Acupuncture -
214
+ # Headaches").
215
+ attr_reader :appointment_type
216
+ # @return [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-25.
217
+ # This date must be the local date in the timezone where the service occurred.
218
+ # If omitted, the Encounter is assumed to be for a single day.
219
+ # Must not be temporally before the date_of_service field.
220
+ # If service lines have distinct end_date_of_service values, updating the
221
+ # encounter's end_date_of_service will fail. If all service line
222
+ # end_date_of_service values are the same, updating the encounter's
223
+ # end_date_of_service will update all service line date_of_service values.
224
+ attr_reader :end_date_of_service
225
+ # @return [String] Defines additional information on the claim needed by the payer.
226
+ # Box 19 on the CMS-1500 claim form or Form Locator 80 on a UB-04 claim form.
227
+ attr_reader :additional_information
228
+ # @return [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
229
+ # Required when mandated by government law or regulation to obtain authorization
230
+ # for specific service(s) but, for the
231
+ # reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
232
+ # the service was performed without
233
+ # obtaining the authorization.
234
+ attr_reader :service_authorization_exception_code
235
+ # @return [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18 or UB-04 Form Locator 12.
236
+ # Required on all ambulance claims when the patient was known to be admitted to
237
+ # the hospital.
238
+ # OR
239
+ # Required on all claims involving inpatient medical visits.
240
+ attr_reader :admission_date
241
+ # @return [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18 Required for inpatient claims when the
242
+ # patient was discharged from the facility and the discharge date is known. Not
243
+ # used on an institutional claim.
244
+ attr_reader :discharge_date
245
+ # @return [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
246
+ # Required for the initial medical service or visit performed in response to a
247
+ # medical emergency when the date is available and is different than the date of
248
+ # service.
249
+ # OR
250
+ # This date is the onset of acute symptoms for the current illness or condition.
251
+ # For UB-04 claims, this is populated separately via occurrence codes.
252
+ attr_reader :onset_of_current_illness_or_symptom_date
253
+ # @return [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
254
+ # Required when, in the judgment of the provider, the services on this claim are
255
+ # related to the patient's pregnancy.de
256
+ # This field is populated separately via occurrence codes for UB-04 claim forms.
257
+ attr_reader :last_menstrual_period_date
258
+ # @return [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
259
+ # Code indicating the reason why a request was delayed
260
+ attr_reader :delay_reason_code
261
+ # @return [Boolean] Whether this patient has authorized the release of medical information
262
+ # for billing purpose.
263
+ # Box 12 on the CMS-1500 claim form or Form Locator 52 on a UB-04 claim form.
264
+ attr_reader :patient_authorized_release
265
+ # @return [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
266
+ attr_reader :referral_number
267
+ # @return [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
268
+ # identify the primary payer. This is required for certain states.
269
+ attr_reader :secondary_payer_carrier_code
270
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
271
+ attr_reader :additional_properties
272
+ # @return [Object]
273
+ attr_reader :_field_set
274
+ protected :_field_set
275
+
276
+ OMIT = Object.new
277
+
278
+ # @param health_care_code_information [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationUpdate] The health care code information associated with this encounter, which includes
279
+ # things such as diagnoses, vitals, procedures, occurrences, reason for visit, and
280
+ # numerous other code related fields.
281
+ # @param attending_provider [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate] 837i NM1 2500 variant for Loop ID-2310. Used to indicate the individual whom
282
+ # has overall responsibility for the patient in institutional claims processing.
283
+ # @param admission_hour [Integer] 837i Loop 2300 DTP-03
284
+ # Extension of the admission date with hour (0-23 integer) details.
285
+ # @param admission_type_code [CandidApiClient::X12::V1::Types::TypeOfAdmissionOrVisitCode] 837i Loop 2300 CL1-01 Code used to indicate the priority of an admission or
286
+ # visit. Equivalent to Form Locator 14 Priority of Admission on a UB-04 claim, not
287
+ # used on CMS-1500 claim forms.
288
+ # @param admission_source_code [CandidApiClient::X12::V1::Types::PointOfOriginForAdmissionOrVisitCode] 837i Loop 2300 CLI1-02 Code used to indicate the conditions under which an
289
+ # admission occurs. Equivalent to Form Locator 15 Point of Origin on a UB-04
290
+ # claim, not used on CMS-1500 claim forms.
291
+ # @param discharge_hour [Integer] 837i Loop 2300 DTP-03
292
+ # Extension of the discharge date with hour (0-23 integer) details.
293
+ # @param discharge_status [CandidApiClient::X12::V1::Types::PatientDischargeStatusCode] 837i CL1-03 or Form Locator 17 on a UB-04 claim form. This is a required field
294
+ # on UB-04 claims.
295
+ # Code indicating patient status as of the "statement covers through date".
296
+ # @param operating_provider [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate] 837i NM1 2500 variant for Loop ID-2310. Used to indicate the individual whom
297
+ # has primary responsibility for surgical procedures in institutional claims
298
+ # processing.
299
+ # @param other_operating_provider [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate] 837i NM1 2500 variant for Loop ID-2310. Used to indicate the individual whom
300
+ # has secondary responsibility for surgical procedures in institutional claims
301
+ # processing. Only used when operating_provider is also set.
302
+ # @param type_of_bill [CandidApiClient::X12::V1::Types::TypeOfBillCompositeUpdate] Four digit code used in institutional forms to indicate the type of bill (e.g.,
303
+ # hospital inpatient, hospital outpatient). First digit is a leading 0, followed
304
+ # by the type_of_facility, type_of_care, then frequency_code. Professional forms
305
+ # are not required to submit this attribute. You may send the 4 digit code via
306
+ # raw_code, or each individual digit separately via composite_codes.
307
+ # @param accident_state_or_province_code [CandidApiClient::Commons::Types::State] 837i-REF1000 -- an optional state indicating where an accident related to the
308
+ # encounter occurred.
309
+ # @param submission_expectation [CandidApiClient::Encounters::V4::Types::EncounterSubmissionExpectation] Describes the currently expected target form for this encounter. This effects
310
+ # what validations and queues the form is processed under. When this value is not
311
+ # set, it should be assumed to be TARGET_PROFESSIONAL.
312
+ # @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers to Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
313
+ # 837P and 837i form
314
+ # @param clinical_notes [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
315
+ # patient encounters. Please note that medical records for appeals should be sent
316
+ # using the Encounter Attachments API.
317
+ # @param claim_supplemental_information [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P and 837i form. No more than 10
318
+ # entries are permitted.
319
+ # @param schema_instances [Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>] Key-value pairs that must adhere to a schema created via the Custom Schema API.
320
+ # Multiple schema
321
+ # instances cannot be created for the same schema on an encounter. Updating schema
322
+ # instances utilizes PUT
323
+ # semantics, so the schema instances on the encounter will be set to whatever
324
+ # inputs are provided. If null
325
+ # is provided as an input, then the encounter's schema instances will be cleared.
326
+ # @param existing_medications [Array<CandidApiClient::Encounters::V4::Types::Medication>] Existing medications that should be on the encounter.
327
+ # Note all current existing medications on encounter will be overridden with this
328
+ # list.
329
+ # @param guarantor [CandidApiClient::Guarantor::V1::Types::GuarantorUpdate] Personal and contact info for the guarantor of the patient responsibility.
330
+ # @param subscriber_primary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the primary insurance subscriber.
331
+ # @param subscriber_secondary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the secondary insurance subscriber.
332
+ # @param subscriber_tertiary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
333
+ # @param pay_to_address [CandidApiClient::Commons::Types::StreetAddressLongZip] Specifies the address to which payments for the claim should be sent.
334
+ # @param initial_referring_provider [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate] The second iteration of Loop ID-2310 on an 837P form. Use code "P3 - Primary
335
+ # Care Provider" in this loop to
336
+ # indicate the initial referral from the primary care provider or whatever
337
+ # provider wrote the initial referral for this patient's episode of care being
338
+ # billed/reported in this transaction.
339
+ # Not used in an 837i claim
340
+ # @param referring_provider [CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate] The final provider who referred the services that were rendered.
341
+ # All physicians who order services or refer Medicare beneficiaries must
342
+ # report this data.
343
+ # @param patient [CandidApiClient::Individual::Types::PatientUpdate] Contains the identification information of the individual receiving medical
344
+ # services.
345
+ # @param rendering_provider [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate] The rendering provider is the practitioner -- physician, nurse practitioner,
346
+ # etc. -- performing the service.
347
+ # For telehealth services, the rendering provider performs the visit, asynchronous
348
+ # communication, or other service. The rendering provider address should generally
349
+ # be the same as the service facility address.
350
+ # @param service_facility [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate] Encounter Service facility is typically the location a medical service was
351
+ # rendered, such as a provider office or hospital. For telehealth, service
352
+ # facility can represent the provider's location when the service was delivered
353
+ # (e.g., home), or the location where an in-person visit would have taken place,
354
+ # whichever is easier to identify. If the provider is in-network, service facility
355
+ # may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is
356
+ # no equivalent on the paper UB-04 claim form, but this field is equivalent to
357
+ # Loop 2310E Service Facility Location details on an 837i form, and is used when
358
+ # this is different to the entity identified as the Billing Provider. Note that
359
+ # for an in-network claim to be successfully adjudicated, the service facility
360
+ # address listed
361
+ # @param supervising_provider [CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdate] Required when the rendering provider is supervised by a physician. If not
362
+ # required by this implementation guide, do not send.
363
+ # @param billing_provider [CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdate] The billing provider is the provider or business entity submitting the claim.
364
+ # Billing provider may be, but is not necessarily, the same person/NPI as the
365
+ # rendering provider. From a payer's perspective, this represents the person or
366
+ # entity being reimbursed. When a contract exists with the target payer, the
367
+ # billing provider should be the entity contracted with the payer. In some
368
+ # circumstances, this will be an individual provider. In that case, submit that
369
+ # provider's NPI and the tax ID (TIN) that the provider gave to the payer during
370
+ # contracting. In other cases, the billing entity will be a medical group. If so,
371
+ # submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim or
372
+ # Form Locator 1 on a UB-04 claim form.
373
+ # @param place_of_service_code_as_submitted [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. This box is not
374
+ # used on a UB-04 or 837i claim form. 02 for telemedicine, 11 for in-person. Full
375
+ # list
376
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
377
+ # @param benefits_assigned_to_provider [Boolean] Whether this patient has authorized insurance payments to be made to you, not
378
+ # them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
379
+ # form or Form Locator 53 on a UB-04 claim form.
380
+ # @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form or Form Locator 63 on a UB-04 claim form.
381
+ # @param external_id [String] A client-specified unique ID to associate with this encounter;
382
+ # for example, your internal encounter ID or a Dr. Chrono encounter ID.
383
+ # This field should not contain PHI.
384
+ # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
385
+ # This date must be the local date in the timezone where the service occurred.
386
+ # Box 24a on the CMS-1500 claim form or Form Locator 45 on the UB-04 claim form.
387
+ # If service occurred over a range of dates, this should be the start date.
388
+ # If service lines have distinct date_of_service values, updating the encounter's
389
+ # date_of_service will fail. If all service line date_of_service values are the
390
+ # same, updating the encounter's date_of_service will update all service line
391
+ # date_of_service values.
392
+ # @param tag_ids [Array<String>] Names of tags that should be on the encounter. Note all tags on encounter will
393
+ # be overridden with this list.
394
+ # @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
395
+ # Examples for when this should be set to NOT_BILLABLE include if the Encounter
396
+ # has not occurred yet or if there is no intention of ever billing the
397
+ # responsible_party.
398
+ # @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
399
+ # SELF_PAY if you intend to bill self pay/cash pay.
400
+ # @param provider_accepts_assignment [Boolean] Whether you have accepted the patient's authorization for insurance payments to
401
+ # be made to you, not them. Box 27 on the CMS-1500 claim form. There is no exact
402
+ # equivalent of this field on a UB-04 claim, however contributes to the concept of
403
+ # Form Locator 53.
404
+ # @param synchronicity [CandidApiClient::Encounters::V4::Types::SynchronicityType] Whether or not this was a synchronous or asynchronous encounter. Asynchronous
405
+ # encounters occur when providers and patients communicate online using forms,
406
+ # instant messaging, or other pre-recorded digital mediums. Synchronous encounters
407
+ # occur in live, real-time settings where the patient interacts directly with the
408
+ # provider, such as over video or a phone call.
409
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
410
+ # telemedicine, 11 for in-person. Full list
411
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
412
+ # @param appointment_type [String] Human-readable description of the appointment type (ex: "Acupuncture -
413
+ # Headaches").
414
+ # @param end_date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-25.
415
+ # This date must be the local date in the timezone where the service occurred.
416
+ # If omitted, the Encounter is assumed to be for a single day.
417
+ # Must not be temporally before the date_of_service field.
418
+ # If service lines have distinct end_date_of_service values, updating the
419
+ # encounter's end_date_of_service will fail. If all service line
420
+ # end_date_of_service values are the same, updating the encounter's
421
+ # end_date_of_service will update all service line date_of_service values.
422
+ # @param additional_information [String] Defines additional information on the claim needed by the payer.
423
+ # Box 19 on the CMS-1500 claim form or Form Locator 80 on a UB-04 claim form.
424
+ # @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
425
+ # Required when mandated by government law or regulation to obtain authorization
426
+ # for specific service(s) but, for the
427
+ # reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
428
+ # the service was performed without
429
+ # obtaining the authorization.
430
+ # @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18 or UB-04 Form Locator 12.
431
+ # Required on all ambulance claims when the patient was known to be admitted to
432
+ # the hospital.
433
+ # OR
434
+ # Required on all claims involving inpatient medical visits.
435
+ # @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18 Required for inpatient claims when the
436
+ # patient was discharged from the facility and the discharge date is known. Not
437
+ # used on an institutional claim.
438
+ # @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
439
+ # Required for the initial medical service or visit performed in response to a
440
+ # medical emergency when the date is available and is different than the date of
441
+ # service.
442
+ # OR
443
+ # This date is the onset of acute symptoms for the current illness or condition.
444
+ # For UB-04 claims, this is populated separately via occurrence codes.
445
+ # @param last_menstrual_period_date [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
446
+ # Required when, in the judgment of the provider, the services on this claim are
447
+ # related to the patient's pregnancy.de
448
+ # This field is populated separately via occurrence codes for UB-04 claim forms.
449
+ # @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
450
+ # Code indicating the reason why a request was delayed
451
+ # @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
452
+ # for billing purpose.
453
+ # Box 12 on the CMS-1500 claim form or Form Locator 52 on a UB-04 claim form.
454
+ # @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
455
+ # @param secondary_payer_carrier_code [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
456
+ # identify the primary payer. This is required for certain states.
457
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
458
+ # @return [CandidApiClient::EncountersUniversal::Types::UniversalEncounterUpdate]
459
+ def initialize(health_care_code_information: OMIT, attending_provider: OMIT, admission_hour: OMIT,
460
+ admission_type_code: OMIT, admission_source_code: OMIT, discharge_hour: OMIT, discharge_status: OMIT, operating_provider: OMIT, other_operating_provider: OMIT, type_of_bill: OMIT, accident_state_or_province_code: OMIT, submission_expectation: OMIT, epsdt_referral: OMIT, clinical_notes: OMIT, claim_supplemental_information: OMIT, schema_instances: OMIT, existing_medications: OMIT, guarantor: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, subscriber_tertiary: OMIT, pay_to_address: OMIT, initial_referring_provider: OMIT, referring_provider: OMIT, patient: OMIT, rendering_provider: OMIT, service_facility: OMIT, supervising_provider: OMIT, billing_provider: OMIT, place_of_service_code_as_submitted: 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, referral_number: OMIT, secondary_payer_carrier_code: OMIT, additional_properties: nil)
461
+ @health_care_code_information = health_care_code_information if health_care_code_information != OMIT
462
+ @attending_provider = attending_provider if attending_provider != OMIT
463
+ @admission_hour = admission_hour if admission_hour != OMIT
464
+ @admission_type_code = admission_type_code if admission_type_code != OMIT
465
+ @admission_source_code = admission_source_code if admission_source_code != OMIT
466
+ @discharge_hour = discharge_hour if discharge_hour != OMIT
467
+ @discharge_status = discharge_status if discharge_status != OMIT
468
+ @operating_provider = operating_provider if operating_provider != OMIT
469
+ @other_operating_provider = other_operating_provider if other_operating_provider != OMIT
470
+ @type_of_bill = type_of_bill if type_of_bill != OMIT
471
+ @accident_state_or_province_code = accident_state_or_province_code if accident_state_or_province_code != OMIT
472
+ @submission_expectation = submission_expectation if submission_expectation != OMIT
473
+ @epsdt_referral = epsdt_referral if epsdt_referral != OMIT
474
+ @clinical_notes = clinical_notes if clinical_notes != OMIT
475
+ @claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
476
+ @schema_instances = schema_instances if schema_instances != OMIT
477
+ @existing_medications = existing_medications if existing_medications != OMIT
478
+ @guarantor = guarantor if guarantor != OMIT
479
+ @subscriber_primary = subscriber_primary if subscriber_primary != OMIT
480
+ @subscriber_secondary = subscriber_secondary if subscriber_secondary != OMIT
481
+ @subscriber_tertiary = subscriber_tertiary if subscriber_tertiary != OMIT
482
+ @pay_to_address = pay_to_address if pay_to_address != OMIT
483
+ @initial_referring_provider = initial_referring_provider if initial_referring_provider != OMIT
484
+ @referring_provider = referring_provider if referring_provider != OMIT
485
+ @patient = patient if patient != OMIT
486
+ @rendering_provider = rendering_provider if rendering_provider != OMIT
487
+ @service_facility = service_facility if service_facility != OMIT
488
+ @supervising_provider = supervising_provider if supervising_provider != OMIT
489
+ @billing_provider = billing_provider if billing_provider != OMIT
490
+ if place_of_service_code_as_submitted != OMIT
491
+ @place_of_service_code_as_submitted = place_of_service_code_as_submitted
492
+ end
493
+ @benefits_assigned_to_provider = benefits_assigned_to_provider if benefits_assigned_to_provider != OMIT
494
+ @prior_authorization_number = prior_authorization_number if prior_authorization_number != OMIT
495
+ @external_id = external_id if external_id != OMIT
496
+ @date_of_service = date_of_service if date_of_service != OMIT
497
+ @tag_ids = tag_ids if tag_ids != OMIT
498
+ @billable_status = billable_status if billable_status != OMIT
499
+ @responsible_party = responsible_party if responsible_party != OMIT
500
+ @provider_accepts_assignment = provider_accepts_assignment if provider_accepts_assignment != OMIT
501
+ @synchronicity = synchronicity if synchronicity != OMIT
502
+ @place_of_service_code = place_of_service_code if place_of_service_code != OMIT
503
+ @appointment_type = appointment_type if appointment_type != OMIT
504
+ @end_date_of_service = end_date_of_service if end_date_of_service != OMIT
505
+ @additional_information = additional_information if additional_information != OMIT
506
+ if service_authorization_exception_code != OMIT
507
+ @service_authorization_exception_code = service_authorization_exception_code
508
+ end
509
+ @admission_date = admission_date if admission_date != OMIT
510
+ @discharge_date = discharge_date if discharge_date != OMIT
511
+ if onset_of_current_illness_or_symptom_date != OMIT
512
+ @onset_of_current_illness_or_symptom_date = onset_of_current_illness_or_symptom_date
513
+ end
514
+ @last_menstrual_period_date = last_menstrual_period_date if last_menstrual_period_date != OMIT
515
+ @delay_reason_code = delay_reason_code if delay_reason_code != OMIT
516
+ @patient_authorized_release = patient_authorized_release if patient_authorized_release != OMIT
517
+ @referral_number = referral_number if referral_number != OMIT
518
+ @secondary_payer_carrier_code = secondary_payer_carrier_code if secondary_payer_carrier_code != OMIT
519
+ @additional_properties = additional_properties
520
+ @_field_set = {
521
+ "health_care_code_information": health_care_code_information,
522
+ "attending_provider": attending_provider,
523
+ "admission_hour": admission_hour,
524
+ "admission_type_code": admission_type_code,
525
+ "admission_source_code": admission_source_code,
526
+ "discharge_hour": discharge_hour,
527
+ "discharge_status": discharge_status,
528
+ "operating_provider": operating_provider,
529
+ "other_operating_provider": other_operating_provider,
530
+ "type_of_bill": type_of_bill,
531
+ "accident_state_or_province_code": accident_state_or_province_code,
532
+ "submission_expectation": submission_expectation,
533
+ "epsdt_referral": epsdt_referral,
534
+ "clinical_notes": clinical_notes,
535
+ "claim_supplemental_information": claim_supplemental_information,
536
+ "schema_instances": schema_instances,
537
+ "existing_medications": existing_medications,
538
+ "guarantor": guarantor,
539
+ "subscriber_primary": subscriber_primary,
540
+ "subscriber_secondary": subscriber_secondary,
541
+ "subscriber_tertiary": subscriber_tertiary,
542
+ "pay_to_address": pay_to_address,
543
+ "initial_referring_provider": initial_referring_provider,
544
+ "referring_provider": referring_provider,
545
+ "patient": patient,
546
+ "rendering_provider": rendering_provider,
547
+ "service_facility": service_facility,
548
+ "supervising_provider": supervising_provider,
549
+ "billing_provider": billing_provider,
550
+ "place_of_service_code_as_submitted": place_of_service_code_as_submitted,
551
+ "benefits_assigned_to_provider": benefits_assigned_to_provider,
552
+ "prior_authorization_number": prior_authorization_number,
553
+ "external_id": external_id,
554
+ "date_of_service": date_of_service,
555
+ "tag_ids": tag_ids,
556
+ "billable_status": billable_status,
557
+ "responsible_party": responsible_party,
558
+ "provider_accepts_assignment": provider_accepts_assignment,
559
+ "synchronicity": synchronicity,
560
+ "place_of_service_code": place_of_service_code,
561
+ "appointment_type": appointment_type,
562
+ "end_date_of_service": end_date_of_service,
563
+ "additional_information": additional_information,
564
+ "service_authorization_exception_code": service_authorization_exception_code,
565
+ "admission_date": admission_date,
566
+ "discharge_date": discharge_date,
567
+ "onset_of_current_illness_or_symptom_date": onset_of_current_illness_or_symptom_date,
568
+ "last_menstrual_period_date": last_menstrual_period_date,
569
+ "delay_reason_code": delay_reason_code,
570
+ "patient_authorized_release": patient_authorized_release,
571
+ "referral_number": referral_number,
572
+ "secondary_payer_carrier_code": secondary_payer_carrier_code
573
+ }.reject do |_k, v|
574
+ v == OMIT
575
+ end
576
+ end
577
+
578
+ # Deserialize a JSON object to an instance of UniversalEncounterUpdate
579
+ #
580
+ # @param json_object [String]
581
+ # @return [CandidApiClient::EncountersUniversal::Types::UniversalEncounterUpdate]
582
+ def self.from_json(json_object:)
583
+ struct = JSON.parse(json_object, object_class: OpenStruct)
584
+ parsed_json = JSON.parse(json_object)
585
+ if parsed_json["health_care_code_information"].nil?
586
+ health_care_code_information = nil
587
+ else
588
+ health_care_code_information = parsed_json["health_care_code_information"].to_json
589
+ health_care_code_information = CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationUpdate.from_json(json_object: health_care_code_information)
590
+ end
591
+ if parsed_json["attending_provider"].nil?
592
+ attending_provider = nil
593
+ else
594
+ attending_provider = parsed_json["attending_provider"].to_json
595
+ attending_provider = CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate.from_json(json_object: attending_provider)
596
+ end
597
+ admission_hour = struct["admission_hour"]
598
+ admission_type_code = struct["admission_type_code"]
599
+ admission_source_code = struct["admission_source_code"]
600
+ discharge_hour = struct["discharge_hour"]
601
+ discharge_status = struct["discharge_status"]
602
+ if parsed_json["operating_provider"].nil?
603
+ operating_provider = nil
604
+ else
605
+ operating_provider = parsed_json["operating_provider"].to_json
606
+ operating_provider = CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate.from_json(json_object: operating_provider)
607
+ end
608
+ if parsed_json["other_operating_provider"].nil?
609
+ other_operating_provider = nil
610
+ else
611
+ other_operating_provider = parsed_json["other_operating_provider"].to_json
612
+ other_operating_provider = CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate.from_json(json_object: other_operating_provider)
613
+ end
614
+ if parsed_json["type_of_bill"].nil?
615
+ type_of_bill = nil
616
+ else
617
+ type_of_bill = parsed_json["type_of_bill"].to_json
618
+ type_of_bill = CandidApiClient::X12::V1::Types::TypeOfBillCompositeUpdate.from_json(json_object: type_of_bill)
619
+ end
620
+ accident_state_or_province_code = struct["accident_state_or_province_code"]
621
+ submission_expectation = struct["submission_expectation"]
622
+ if parsed_json["epsdt_referral"].nil?
623
+ epsdt_referral = nil
624
+ else
625
+ epsdt_referral = parsed_json["epsdt_referral"].to_json
626
+ epsdt_referral = CandidApiClient::Encounters::V4::Types::EpsdtReferral.from_json(json_object: epsdt_referral)
627
+ end
628
+ clinical_notes = parsed_json["clinical_notes"]&.map do |item|
629
+ item = item.to_json
630
+ CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate.from_json(json_object: item)
631
+ end
632
+ claim_supplemental_information = parsed_json["claim_supplemental_information"]&.map do |item|
633
+ item = item.to_json
634
+ CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation.from_json(json_object: item)
635
+ end
636
+ schema_instances = parsed_json["schema_instances"]&.map do |item|
637
+ item = item.to_json
638
+ CandidApiClient::CustomSchemas::V1::Types::SchemaInstance.from_json(json_object: item)
639
+ end
640
+ existing_medications = parsed_json["existing_medications"]&.map do |item|
641
+ item = item.to_json
642
+ CandidApiClient::Encounters::V4::Types::Medication.from_json(json_object: item)
643
+ end
644
+ if parsed_json["guarantor"].nil?
645
+ guarantor = nil
646
+ else
647
+ guarantor = parsed_json["guarantor"].to_json
648
+ guarantor = CandidApiClient::Guarantor::V1::Types::GuarantorUpdate.from_json(json_object: guarantor)
649
+ end
650
+ if parsed_json["subscriber_primary"].nil?
651
+ subscriber_primary = nil
652
+ else
653
+ subscriber_primary = parsed_json["subscriber_primary"].to_json
654
+ subscriber_primary = CandidApiClient::Individual::Types::SubscriberCreate.from_json(json_object: subscriber_primary)
655
+ end
656
+ if parsed_json["subscriber_secondary"].nil?
657
+ subscriber_secondary = nil
658
+ else
659
+ subscriber_secondary = parsed_json["subscriber_secondary"].to_json
660
+ subscriber_secondary = CandidApiClient::Individual::Types::SubscriberCreate.from_json(json_object: subscriber_secondary)
661
+ end
662
+ if parsed_json["subscriber_tertiary"].nil?
663
+ subscriber_tertiary = nil
664
+ else
665
+ subscriber_tertiary = parsed_json["subscriber_tertiary"].to_json
666
+ subscriber_tertiary = CandidApiClient::Individual::Types::SubscriberCreate.from_json(json_object: subscriber_tertiary)
667
+ end
668
+ if parsed_json["pay_to_address"].nil?
669
+ pay_to_address = nil
670
+ else
671
+ pay_to_address = parsed_json["pay_to_address"].to_json
672
+ pay_to_address = CandidApiClient::Commons::Types::StreetAddressLongZip.from_json(json_object: pay_to_address)
673
+ end
674
+ if parsed_json["initial_referring_provider"].nil?
675
+ initial_referring_provider = nil
676
+ else
677
+ initial_referring_provider = parsed_json["initial_referring_provider"].to_json
678
+ initial_referring_provider = CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate.from_json(json_object: initial_referring_provider)
679
+ end
680
+ if parsed_json["referring_provider"].nil?
681
+ referring_provider = nil
682
+ else
683
+ referring_provider = parsed_json["referring_provider"].to_json
684
+ referring_provider = CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate.from_json(json_object: referring_provider)
685
+ end
686
+ if parsed_json["patient"].nil?
687
+ patient = nil
688
+ else
689
+ patient = parsed_json["patient"].to_json
690
+ patient = CandidApiClient::Individual::Types::PatientUpdate.from_json(json_object: patient)
691
+ end
692
+ if parsed_json["rendering_provider"].nil?
693
+ rendering_provider = nil
694
+ else
695
+ rendering_provider = parsed_json["rendering_provider"].to_json
696
+ rendering_provider = CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate.from_json(json_object: rendering_provider)
697
+ end
698
+ if parsed_json["service_facility"].nil?
699
+ service_facility = nil
700
+ else
701
+ service_facility = parsed_json["service_facility"].to_json
702
+ service_facility = CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate.from_json(json_object: service_facility)
703
+ end
704
+ if parsed_json["supervising_provider"].nil?
705
+ supervising_provider = nil
706
+ else
707
+ supervising_provider = parsed_json["supervising_provider"].to_json
708
+ supervising_provider = CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdate.from_json(json_object: supervising_provider)
709
+ end
710
+ if parsed_json["billing_provider"].nil?
711
+ billing_provider = nil
712
+ else
713
+ billing_provider = parsed_json["billing_provider"].to_json
714
+ billing_provider = CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdate.from_json(json_object: billing_provider)
715
+ end
716
+ place_of_service_code_as_submitted = struct["place_of_service_code_as_submitted"]
717
+ benefits_assigned_to_provider = struct["benefits_assigned_to_provider"]
718
+ prior_authorization_number = struct["prior_authorization_number"]
719
+ external_id = struct["external_id"]
720
+ date_of_service = (Date.parse(parsed_json["date_of_service"]) unless parsed_json["date_of_service"].nil?)
721
+ tag_ids = struct["tag_ids"]
722
+ billable_status = struct["billable_status"]
723
+ responsible_party = struct["responsible_party"]
724
+ provider_accepts_assignment = struct["provider_accepts_assignment"]
725
+ synchronicity = struct["synchronicity"]
726
+ place_of_service_code = struct["place_of_service_code"]
727
+ appointment_type = struct["appointment_type"]
728
+ end_date_of_service = unless parsed_json["end_date_of_service"].nil?
729
+ Date.parse(parsed_json["end_date_of_service"])
730
+ end
731
+ additional_information = struct["additional_information"]
732
+ service_authorization_exception_code = struct["service_authorization_exception_code"]
733
+ admission_date = (Date.parse(parsed_json["admission_date"]) unless parsed_json["admission_date"].nil?)
734
+ discharge_date = (Date.parse(parsed_json["discharge_date"]) unless parsed_json["discharge_date"].nil?)
735
+ onset_of_current_illness_or_symptom_date = unless parsed_json["onset_of_current_illness_or_symptom_date"].nil?
736
+ Date.parse(parsed_json["onset_of_current_illness_or_symptom_date"])
737
+ end
738
+ last_menstrual_period_date = unless parsed_json["last_menstrual_period_date"].nil?
739
+ Date.parse(parsed_json["last_menstrual_period_date"])
740
+ end
741
+ delay_reason_code = struct["delay_reason_code"]
742
+ patient_authorized_release = struct["patient_authorized_release"]
743
+ referral_number = struct["referral_number"]
744
+ secondary_payer_carrier_code = struct["secondary_payer_carrier_code"]
745
+ new(
746
+ health_care_code_information: health_care_code_information,
747
+ attending_provider: attending_provider,
748
+ admission_hour: admission_hour,
749
+ admission_type_code: admission_type_code,
750
+ admission_source_code: admission_source_code,
751
+ discharge_hour: discharge_hour,
752
+ discharge_status: discharge_status,
753
+ operating_provider: operating_provider,
754
+ other_operating_provider: other_operating_provider,
755
+ type_of_bill: type_of_bill,
756
+ accident_state_or_province_code: accident_state_or_province_code,
757
+ submission_expectation: submission_expectation,
758
+ epsdt_referral: epsdt_referral,
759
+ clinical_notes: clinical_notes,
760
+ claim_supplemental_information: claim_supplemental_information,
761
+ schema_instances: schema_instances,
762
+ existing_medications: existing_medications,
763
+ guarantor: guarantor,
764
+ subscriber_primary: subscriber_primary,
765
+ subscriber_secondary: subscriber_secondary,
766
+ subscriber_tertiary: subscriber_tertiary,
767
+ pay_to_address: pay_to_address,
768
+ initial_referring_provider: initial_referring_provider,
769
+ referring_provider: referring_provider,
770
+ patient: patient,
771
+ rendering_provider: rendering_provider,
772
+ service_facility: service_facility,
773
+ supervising_provider: supervising_provider,
774
+ billing_provider: billing_provider,
775
+ place_of_service_code_as_submitted: place_of_service_code_as_submitted,
776
+ benefits_assigned_to_provider: benefits_assigned_to_provider,
777
+ prior_authorization_number: prior_authorization_number,
778
+ external_id: external_id,
779
+ date_of_service: date_of_service,
780
+ tag_ids: tag_ids,
781
+ billable_status: billable_status,
782
+ responsible_party: responsible_party,
783
+ provider_accepts_assignment: provider_accepts_assignment,
784
+ synchronicity: synchronicity,
785
+ place_of_service_code: place_of_service_code,
786
+ appointment_type: appointment_type,
787
+ end_date_of_service: end_date_of_service,
788
+ additional_information: additional_information,
789
+ service_authorization_exception_code: service_authorization_exception_code,
790
+ admission_date: admission_date,
791
+ discharge_date: discharge_date,
792
+ onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date,
793
+ last_menstrual_period_date: last_menstrual_period_date,
794
+ delay_reason_code: delay_reason_code,
795
+ patient_authorized_release: patient_authorized_release,
796
+ referral_number: referral_number,
797
+ secondary_payer_carrier_code: secondary_payer_carrier_code,
798
+ additional_properties: struct
799
+ )
800
+ end
801
+
802
+ # Serialize an instance of UniversalEncounterUpdate to a JSON object
803
+ #
804
+ # @return [String]
805
+ def to_json(*_args)
806
+ @_field_set&.to_json
807
+ end
808
+
809
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
810
+ # hash and check each fields type against the current object's property
811
+ # definitions.
812
+ #
813
+ # @param obj [Object]
814
+ # @return [Void]
815
+ def self.validate_raw(obj:)
816
+ obj.health_care_code_information.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationUpdate.validate_raw(obj: obj.health_care_code_information)
817
+ obj.attending_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate.validate_raw(obj: obj.attending_provider)
818
+ obj.admission_hour&.is_a?(Integer) != false || raise("Passed value for field obj.admission_hour is not the expected type, validation failed.")
819
+ obj.admission_type_code&.is_a?(CandidApiClient::X12::V1::Types::TypeOfAdmissionOrVisitCode) != false || raise("Passed value for field obj.admission_type_code is not the expected type, validation failed.")
820
+ obj.admission_source_code&.is_a?(CandidApiClient::X12::V1::Types::PointOfOriginForAdmissionOrVisitCode) != false || raise("Passed value for field obj.admission_source_code is not the expected type, validation failed.")
821
+ obj.discharge_hour&.is_a?(Integer) != false || raise("Passed value for field obj.discharge_hour is not the expected type, validation failed.")
822
+ obj.discharge_status&.is_a?(CandidApiClient::X12::V1::Types::PatientDischargeStatusCode) != false || raise("Passed value for field obj.discharge_status is not the expected type, validation failed.")
823
+ obj.operating_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate.validate_raw(obj: obj.operating_provider)
824
+ obj.other_operating_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate.validate_raw(obj: obj.other_operating_provider)
825
+ obj.type_of_bill.nil? || CandidApiClient::X12::V1::Types::TypeOfBillCompositeUpdate.validate_raw(obj: obj.type_of_bill)
826
+ obj.accident_state_or_province_code&.is_a?(CandidApiClient::Commons::Types::State) != false || raise("Passed value for field obj.accident_state_or_province_code is not the expected type, validation failed.")
827
+ obj.submission_expectation&.is_a?(CandidApiClient::Encounters::V4::Types::EncounterSubmissionExpectation) != false || raise("Passed value for field obj.submission_expectation is not the expected type, validation failed.")
828
+ obj.epsdt_referral.nil? || CandidApiClient::Encounters::V4::Types::EpsdtReferral.validate_raw(obj: obj.epsdt_referral)
829
+ obj.clinical_notes&.is_a?(Array) != false || raise("Passed value for field obj.clinical_notes is not the expected type, validation failed.")
830
+ obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
831
+ obj.schema_instances&.is_a?(Array) != false || raise("Passed value for field obj.schema_instances is not the expected type, validation failed.")
832
+ obj.existing_medications&.is_a?(Array) != false || raise("Passed value for field obj.existing_medications is not the expected type, validation failed.")
833
+ obj.guarantor.nil? || CandidApiClient::Guarantor::V1::Types::GuarantorUpdate.validate_raw(obj: obj.guarantor)
834
+ obj.subscriber_primary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_primary)
835
+ obj.subscriber_secondary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_secondary)
836
+ obj.subscriber_tertiary.nil? || CandidApiClient::Individual::Types::SubscriberCreate.validate_raw(obj: obj.subscriber_tertiary)
837
+ obj.pay_to_address.nil? || CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.pay_to_address)
838
+ obj.initial_referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate.validate_raw(obj: obj.initial_referring_provider)
839
+ obj.referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate.validate_raw(obj: obj.referring_provider)
840
+ obj.patient.nil? || CandidApiClient::Individual::Types::PatientUpdate.validate_raw(obj: obj.patient)
841
+ obj.rendering_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate.validate_raw(obj: obj.rendering_provider)
842
+ obj.service_facility.nil? || CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate.validate_raw(obj: obj.service_facility)
843
+ obj.supervising_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdate.validate_raw(obj: obj.supervising_provider)
844
+ obj.billing_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdate.validate_raw(obj: obj.billing_provider)
845
+ obj.place_of_service_code_as_submitted&.is_a?(CandidApiClient::Commons::Types::FacilityTypeCode) != false || raise("Passed value for field obj.place_of_service_code_as_submitted is not the expected type, validation failed.")
846
+ obj.benefits_assigned_to_provider&.is_a?(Boolean) != false || raise("Passed value for field obj.benefits_assigned_to_provider is not the expected type, validation failed.")
847
+ obj.prior_authorization_number&.is_a?(String) != false || raise("Passed value for field obj.prior_authorization_number is not the expected type, validation failed.")
848
+ obj.external_id&.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
849
+ obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
850
+ obj.tag_ids&.is_a?(Array) != false || raise("Passed value for field obj.tag_ids is not the expected type, validation failed.")
851
+ 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.")
852
+ 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.")
853
+ obj.provider_accepts_assignment&.is_a?(Boolean) != false || raise("Passed value for field obj.provider_accepts_assignment is not the expected type, validation failed.")
854
+ obj.synchronicity&.is_a?(CandidApiClient::Encounters::V4::Types::SynchronicityType) != false || raise("Passed value for field obj.synchronicity is not the expected type, validation failed.")
855
+ 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.")
856
+ obj.appointment_type&.is_a?(String) != false || raise("Passed value for field obj.appointment_type is not the expected type, validation failed.")
857
+ 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.")
858
+ obj.additional_information&.is_a?(String) != false || raise("Passed value for field obj.additional_information is not the expected type, validation failed.")
859
+ 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.")
860
+ obj.admission_date&.is_a?(Date) != false || raise("Passed value for field obj.admission_date is not the expected type, validation failed.")
861
+ obj.discharge_date&.is_a?(Date) != false || raise("Passed value for field obj.discharge_date is not the expected type, validation failed.")
862
+ obj.onset_of_current_illness_or_symptom_date&.is_a?(Date) != false || raise("Passed value for field obj.onset_of_current_illness_or_symptom_date is not the expected type, validation failed.")
863
+ 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.")
864
+ 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.")
865
+ obj.patient_authorized_release&.is_a?(Boolean) != false || raise("Passed value for field obj.patient_authorized_release is not the expected type, validation failed.")
866
+ obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
867
+ 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.")
868
+ end
869
+ end
870
+ end
871
+ end
872
+ end