candidhealth 1.7.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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/auth/default/client.rb +34 -6
  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/encounter_providers/v_2/types/billing_provider.rb +1 -1
  8. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update.rb +1 -1
  9. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +1 -1
  10. data/lib/candidhealth/encounters/v_4/client.rb +3253 -2040
  11. data/lib/candidhealth/encounters/v_4/types/encounter.rb +111 -86
  12. data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +39 -33
  13. data/lib/candidhealth/encounters/v_4/types/encounter_create.rb +796 -0
  14. data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +131 -117
  15. data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +70 -56
  16. data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +29 -39
  17. data/lib/candidhealth/encounters/v_4/types/encounter_rendering_or_attending_provider_required_error.rb +55 -0
  18. data/lib/candidhealth/encounters/v_4/types/encounter_update.rb +736 -0
  19. data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +944 -0
  20. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_base.rb +691 -0
  21. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +791 -0
  22. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter_base.rb +572 -0
  23. data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +872 -0
  24. data/lib/candidhealth/encounters_universal/types/universal_encounter_update_base.rb +700 -0
  25. data/lib/candidhealth/fee_schedules/v_3/client.rb +57 -0
  26. data/lib/candidhealth/fee_schedules/v_3/types/validation_error.rb +12 -0
  27. data/lib/candidhealth/financials/types/patient_transaction_source.rb +1 -0
  28. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +206 -0
  29. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +207 -0
  30. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +206 -0
  31. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +245 -0
  32. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +225 -0
  33. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +219 -0
  34. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +222 -0
  35. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +215 -0
  36. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +218 -0
  37. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +206 -0
  38. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +215 -0
  39. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +216 -0
  40. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +206 -0
  41. data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +215 -0
  42. data/lib/candidhealth/individual/types/patient.rb +6 -6
  43. data/lib/candidhealth/individual/types/patient_base.rb +6 -6
  44. data/lib/candidhealth/individual/types/patient_create.rb +6 -6
  45. data/lib/candidhealth/individual/types/patient_update.rb +6 -6
  46. data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +6 -6
  47. data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
  48. data/lib/candidhealth/payers/client.rb +7 -0
  49. data/lib/candidhealth/payers/v_4/client.rb +137 -0
  50. data/lib/candidhealth/payers/v_4/types/clearinghouse_payer_info.rb +93 -0
  51. data/lib/candidhealth/payers/v_4/types/payer.rb +116 -0
  52. data/lib/candidhealth/payers/v_4/types/payer_ids.rb +107 -0
  53. data/lib/candidhealth/payers/v_4/types/payer_page.rb +88 -0
  54. data/lib/candidhealth/payers/v_4/types/support_state.rb +15 -0
  55. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +4 -4
  56. data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +3 -3
  57. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +72 -6
  58. data/lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb +3 -3
  59. data/lib/candidhealth/pre_encounter/patients/v_1/types/inferred_patient_metadata.rb +80 -0
  60. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +19 -5
  61. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +19 -5
  62. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +18 -4
  63. data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_type.rb +1 -0
  64. data/lib/candidhealth/service_lines/v_2/client.rb +252 -10
  65. data/lib/candidhealth/service_lines/v_2/types/service_line.rb +28 -10
  66. data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +52 -40
  67. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +251 -0
  68. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +243 -0
  69. data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +48 -24
  70. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +58 -46
  71. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base.rb +273 -0
  72. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base_base.rb +265 -0
  73. data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +64 -54
  74. data/lib/candidhealth/service_lines/v_2/types/service_line_update_base.rb +263 -0
  75. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +271 -0
  76. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create_standalone.rb +317 -0
  77. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_update.rb +307 -0
  78. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite.rb +2 -2
  79. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_base.rb +90 -0
  80. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +112 -0
  81. data/lib/requests.rb +2 -2
  82. data/lib/types_export.rb +44 -4
  83. metadata +43 -2
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative "vitals_update"
3
4
  require_relative "../../../diagnoses/types/diagnosis_create_optional"
4
5
  require_relative "clinical_note_category_create_optional"
5
6
  require_relative "claim_supplemental_information_optional"
@@ -28,7 +29,6 @@ require_relative "synchronicity_type"
28
29
  require_relative "../../../commons/types/facility_type_code"
29
30
  require_relative "service_authorization_exception_code"
30
31
  require_relative "../../../commons/types/delay_reason_code"
31
- require_relative "vitals_update"
32
32
  require "ostruct"
33
33
  require "json"
34
34
 
@@ -37,6 +37,10 @@ module CandidApiClient
37
37
  module V4
38
38
  module Types
39
39
  class EncounterDeepOptional
40
+ # @return [CandidApiClient::Encounters::V4::Types::VitalsUpdate] If a vitals entity already exists for the encounter, then all values will be
41
+ # updated to the provided values.
42
+ # Otherwise, a new vitals object will be created for the encounter.
43
+ attr_reader :vitals
40
44
  # @return [Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>] Ideally, this field should contain no more than 12 diagnoses. However, more
41
45
  # diagnoses
42
46
  # may be submitted at this time, and coders will later prioritize the 12 that will
@@ -47,11 +51,11 @@ module CandidApiClient
47
51
  # patient encounters. Please note that medical records for appeals should be sent
48
52
  # using the Encounter Attachments API.
49
53
  attr_reader :clinical_notes
50
- # @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
51
- # permitted.
54
+ # @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>] Refers to Loop 2300 - Segment PWK on the 837P and 837i form. No more than 10
55
+ # entries are permitted.
52
56
  attr_reader :claim_supplemental_information
53
- # @return [CandidApiClient::Encounters::V4::Types::EpsdtReferralOptional] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
54
- # 837P form
57
+ # @return [CandidApiClient::Encounters::V4::Types::EpsdtReferralOptional] Refers to Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
58
+ # 837P and 837i form
55
59
  attr_reader :epsdt_referral
56
60
  # @return [Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>] Existing medications that should be on the encounter.
57
61
  # Note all current existing medications on encounter will be overridden with this
@@ -97,10 +101,12 @@ module CandidApiClient
97
101
  # facility can represent the provider's location when the service was delivered
98
102
  # (e.g., home), or the location where an in-person visit would have taken place,
99
103
  # whichever is easier to identify. If the provider is in-network, service facility
100
- # may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that
104
+ # may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is
105
+ # no equivalent on the paper UB-04 claim form, but this field is equivalent to
106
+ # Loop 2310E Service Facility Location details on an 837i form, and is used when
107
+ # this is different to the entity identified as the Billing Provider. Note that
101
108
  # for an in-network claim to be successfully adjudicated, the service facility
102
- # address listed on claims must match what was provided to the payer during the
103
- # credentialing process.
109
+ # address listed
104
110
  attr_reader :service_facility
105
111
  # @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdateWithOptionalAddress] The rendering provider is the practitioner -- physician, nurse practitioner,
106
112
  # etc. -- performing the service. For telehealth services, the rendering provider
@@ -128,15 +134,16 @@ module CandidApiClient
128
134
  # circumstances, this will be an individual provider. In that case, submit that
129
135
  # provider's NPI and the tax ID (TIN) that the provider gave to the payer during
130
136
  # contracting. In other cases, the billing entity will be a medical group. If so,
131
- # submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form.
137
+ # submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form
138
+ # or Form Locator 1 on a UB-04 claim form.
132
139
  attr_reader :billing_provider
133
140
  # @return [CandidApiClient::Commons::Types::StreetAddressShortZipOptional] Specifies the address to which payments for the claim should be sent.
134
141
  attr_reader :pay_to_address
135
142
  # @return [Boolean] Whether this patient has authorized insurance payments to be made to you, not
136
143
  # them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
137
- # form.
144
+ # form or Form Locator 53 on a UB-04 claim form.
138
145
  attr_reader :benefits_assigned_to_provider
139
- # @return [String] Box 23 on the CMS-1500 claim form.
146
+ # @return [String] Box 23 on the CMS-1500 claim form or Form Locator 63 on a UB-04 claim form.
140
147
  attr_reader :prior_authorization_number
141
148
  # @return [String] A client-specified unique ID to associate with this encounter;
142
149
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
@@ -144,7 +151,7 @@ module CandidApiClient
144
151
  attr_reader :external_id
145
152
  # @return [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
146
153
  # This date must be the local date in the timezone where the service occurred.
147
- # Box 24a on the CMS-1500 claim form.
154
+ # Box 24a on the CMS-1500 claim form or Form Locator 45 on the UB-04 claim form.
148
155
  # If service occurred over a range of dates, this should be the start date.
149
156
  # If service lines have distinct date_of_service values, updating the encounter's
150
157
  # date_of_service will fail. If all service line date_of_service values are the
@@ -163,7 +170,9 @@ module CandidApiClient
163
170
  # SELF_PAY if you intend to bill self pay/cash pay.
164
171
  attr_reader :responsible_party
165
172
  # @return [Boolean] Whether you have accepted the patient's authorization for insurance payments to
166
- # be made to you, not them. Box 27 on the CMS-1500 claim form.
173
+ # be made to you, not them. Box 27 on the CMS-1500 claim form. There is no exact
174
+ # equivalent of this field on a UB-04 claim, however contributes to the concept of
175
+ # Form Locator 53.
167
176
  attr_reader :provider_accepts_assignment
168
177
  # @return [CandidApiClient::Encounters::V4::Types::SynchronicityType] Whether or not this was a synchronous or asynchronous encounter. Asynchronous
169
178
  # encounters occur when providers and patients communicate online using forms,
@@ -188,7 +197,7 @@ module CandidApiClient
188
197
  # end_date_of_service will update all service line date_of_service values.
189
198
  attr_reader :end_date_of_service
190
199
  # @return [String] Defines additional information on the claim needed by the payer.
191
- # Box 19 on the CMS-1500 claim form.
200
+ # Box 19 on the CMS-1500 claim form or Form Locator 80 on a UB-04 claim form.
192
201
  attr_reader :additional_information
193
202
  # @return [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
194
203
  # Required when mandated by government law or regulation to obtain authorization
@@ -197,15 +206,15 @@ module CandidApiClient
197
206
  # the service was performed without
198
207
  # obtaining the authorization.
199
208
  attr_reader :service_authorization_exception_code
200
- # @return [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
209
+ # @return [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18 or UB-04 Form Locator 12.
201
210
  # Required on all ambulance claims when the patient was known to be admitted to
202
211
  # the hospital.
203
212
  # OR
204
213
  # Required on all claims involving inpatient medical visits.
205
214
  attr_reader :admission_date
206
- # @return [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
207
- # Required for inpatient claims when the patient was discharged from the facility
208
- # and the discharge date is known.
215
+ # @return [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18 Required for inpatient claims when the
216
+ # patient was discharged from the facility and the discharge date is known. Not
217
+ # used on an institutional claim.
209
218
  attr_reader :discharge_date
210
219
  # @return [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
211
220
  # Required for the initial medical service or visit performed in response to a
@@ -213,22 +222,20 @@ module CandidApiClient
213
222
  # service.
214
223
  # OR
215
224
  # This date is the onset of acute symptoms for the current illness or condition.
225
+ # For UB-04 claims, this is populated separately via occurrence codes.
216
226
  attr_reader :onset_of_current_illness_or_symptom_date
217
227
  # @return [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
218
228
  # Required when, in the judgment of the provider, the services on this claim are
219
229
  # related to the patient's pregnancy.de
230
+ # This field is populated separately via occurrence codes for UB-04 claim forms.
220
231
  attr_reader :last_menstrual_period_date
221
232
  # @return [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
222
233
  # Code indicating the reason why a request was delayed
223
234
  attr_reader :delay_reason_code
224
235
  # @return [Boolean] Whether this patient has authorized the release of medical information
225
236
  # for billing purpose.
226
- # Box 12 on the CMS-1500 claim form.
237
+ # Box 12 on the CMS-1500 claim form or Form Locator 52 on a UB-04 claim form.
227
238
  attr_reader :patient_authorized_release
228
- # @return [CandidApiClient::Encounters::V4::Types::VitalsUpdate] If a vitals entity already exists for the encounter, then all values will be
229
- # updated to the provided values.
230
- # Otherwise, a new vitals object will be created for the encounter.
231
- attr_reader :vitals
232
239
  # @return [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
233
240
  attr_reader :referral_number
234
241
  # @return [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
@@ -242,6 +249,9 @@ module CandidApiClient
242
249
 
243
250
  OMIT = Object.new
244
251
 
252
+ # @param vitals [CandidApiClient::Encounters::V4::Types::VitalsUpdate] If a vitals entity already exists for the encounter, then all values will be
253
+ # updated to the provided values.
254
+ # Otherwise, a new vitals object will be created for the encounter.
245
255
  # @param diagnoses [Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>] Ideally, this field should contain no more than 12 diagnoses. However, more
246
256
  # diagnoses
247
257
  # may be submitted at this time, and coders will later prioritize the 12 that will
@@ -250,10 +260,10 @@ module CandidApiClient
250
260
  # @param clinical_notes [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>] Holds a collection of clinical observations made by healthcare providers during
251
261
  # patient encounters. Please note that medical records for appeals should be sent
252
262
  # using the Encounter Attachments API.
253
- # @param claim_supplemental_information [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
254
- # permitted.
255
- # @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferralOptional] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
256
- # 837P form
263
+ # @param claim_supplemental_information [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>] Refers to Loop 2300 - Segment PWK on the 837P and 837i form. No more than 10
264
+ # entries are permitted.
265
+ # @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferralOptional] Refers to Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
266
+ # 837P and 837i form
257
267
  # @param existing_medications [Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>] Existing medications that should be on the encounter.
258
268
  # Note all current existing medications on encounter will be overridden with this
259
269
  # list.
@@ -286,10 +296,12 @@ module CandidApiClient
286
296
  # facility can represent the provider's location when the service was delivered
287
297
  # (e.g., home), or the location where an in-person visit would have taken place,
288
298
  # whichever is easier to identify. If the provider is in-network, service facility
289
- # may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that
299
+ # may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is
300
+ # no equivalent on the paper UB-04 claim form, but this field is equivalent to
301
+ # Loop 2310E Service Facility Location details on an 837i form, and is used when
302
+ # this is different to the entity identified as the Billing Provider. Note that
290
303
  # for an in-network claim to be successfully adjudicated, the service facility
291
- # address listed on claims must match what was provided to the payer during the
292
- # credentialing process.
304
+ # address listed
293
305
  # @param rendering_provider [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdateWithOptionalAddress] The rendering provider is the practitioner -- physician, nurse practitioner,
294
306
  # etc. -- performing the service. For telehealth services, the rendering provider
295
307
  # performs the visit, asynchronous communication, or other service. The rendering
@@ -312,18 +324,19 @@ module CandidApiClient
312
324
  # circumstances, this will be an individual provider. In that case, submit that
313
325
  # provider's NPI and the tax ID (TIN) that the provider gave to the payer during
314
326
  # contracting. In other cases, the billing entity will be a medical group. If so,
315
- # submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form.
327
+ # submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form
328
+ # or Form Locator 1 on a UB-04 claim form.
316
329
  # @param pay_to_address [CandidApiClient::Commons::Types::StreetAddressShortZipOptional] Specifies the address to which payments for the claim should be sent.
317
330
  # @param benefits_assigned_to_provider [Boolean] Whether this patient has authorized insurance payments to be made to you, not
318
331
  # them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
319
- # form.
320
- # @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form.
332
+ # form or Form Locator 53 on a UB-04 claim form.
333
+ # @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form or Form Locator 63 on a UB-04 claim form.
321
334
  # @param external_id [String] A client-specified unique ID to associate with this encounter;
322
335
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
323
336
  # This field should not contain PHI.
324
337
  # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
325
338
  # This date must be the local date in the timezone where the service occurred.
326
- # Box 24a on the CMS-1500 claim form.
339
+ # Box 24a on the CMS-1500 claim form or Form Locator 45 on the UB-04 claim form.
327
340
  # If service occurred over a range of dates, this should be the start date.
328
341
  # If service lines have distinct date_of_service values, updating the encounter's
329
342
  # date_of_service will fail. If all service line date_of_service values are the
@@ -338,7 +351,9 @@ module CandidApiClient
338
351
  # @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
339
352
  # SELF_PAY if you intend to bill self pay/cash pay.
340
353
  # @param provider_accepts_assignment [Boolean] Whether you have accepted the patient's authorization for insurance payments to
341
- # be made to you, not them. Box 27 on the CMS-1500 claim form.
354
+ # be made to you, not them. Box 27 on the CMS-1500 claim form. There is no exact
355
+ # equivalent of this field on a UB-04 claim, however contributes to the concept of
356
+ # Form Locator 53.
342
357
  # @param synchronicity [CandidApiClient::Encounters::V4::Types::SynchronicityType] Whether or not this was a synchronous or asynchronous encounter. Asynchronous
343
358
  # encounters occur when providers and patients communicate online using forms,
344
359
  # instant messaging, or other pre-recorded digital mediums. Synchronous encounters
@@ -358,45 +373,45 @@ module CandidApiClient
358
373
  # end_date_of_service values are the same, updating the encounter's
359
374
  # end_date_of_service will update all service line date_of_service values.
360
375
  # @param additional_information [String] Defines additional information on the claim needed by the payer.
361
- # Box 19 on the CMS-1500 claim form.
376
+ # Box 19 on the CMS-1500 claim form or Form Locator 80 on a UB-04 claim form.
362
377
  # @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
363
378
  # Required when mandated by government law or regulation to obtain authorization
364
379
  # for specific service(s) but, for the
365
380
  # reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
366
381
  # the service was performed without
367
382
  # obtaining the authorization.
368
- # @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
383
+ # @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18 or UB-04 Form Locator 12.
369
384
  # Required on all ambulance claims when the patient was known to be admitted to
370
385
  # the hospital.
371
386
  # OR
372
387
  # Required on all claims involving inpatient medical visits.
373
- # @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
374
- # Required for inpatient claims when the patient was discharged from the facility
375
- # and the discharge date is known.
388
+ # @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18 Required for inpatient claims when the
389
+ # patient was discharged from the facility and the discharge date is known. Not
390
+ # used on an institutional claim.
376
391
  # @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
377
392
  # Required for the initial medical service or visit performed in response to a
378
393
  # medical emergency when the date is available and is different than the date of
379
394
  # service.
380
395
  # OR
381
396
  # This date is the onset of acute symptoms for the current illness or condition.
397
+ # For UB-04 claims, this is populated separately via occurrence codes.
382
398
  # @param last_menstrual_period_date [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
383
399
  # Required when, in the judgment of the provider, the services on this claim are
384
400
  # related to the patient's pregnancy.de
401
+ # This field is populated separately via occurrence codes for UB-04 claim forms.
385
402
  # @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
386
403
  # Code indicating the reason why a request was delayed
387
404
  # @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
388
405
  # for billing purpose.
389
- # Box 12 on the CMS-1500 claim form.
390
- # @param vitals [CandidApiClient::Encounters::V4::Types::VitalsUpdate] If a vitals entity already exists for the encounter, then all values will be
391
- # updated to the provided values.
392
- # Otherwise, a new vitals object will be created for the encounter.
406
+ # Box 12 on the CMS-1500 claim form or Form Locator 52 on a UB-04 claim form.
393
407
  # @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
394
408
  # @param secondary_payer_carrier_code [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
395
409
  # identify the primary payer. This is required for certain states.
396
410
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
397
411
  # @return [CandidApiClient::Encounters::V4::Types::EncounterDeepOptional]
398
- def initialize(diagnoses: OMIT, clinical_notes: OMIT, claim_supplemental_information: OMIT,
399
- epsdt_referral: OMIT, existing_medications: OMIT, guarantor: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, subscriber_tertiary: OMIT, interventions: OMIT, schema_instances: OMIT, external_claim_submission: OMIT, service_lines: OMIT, patient_histories: OMIT, billing_notes: OMIT, patient: OMIT, service_facility: OMIT, rendering_provider: OMIT, initial_referring_provider: OMIT, referring_provider: OMIT, supervising_provider: OMIT, billing_provider: OMIT, pay_to_address: OMIT, benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT, date_of_service: OMIT, tag_ids: OMIT, billable_status: OMIT, responsible_party: OMIT, provider_accepts_assignment: OMIT, synchronicity: OMIT, place_of_service_code: OMIT, appointment_type: OMIT, end_date_of_service: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, patient_authorized_release: OMIT, vitals: OMIT, referral_number: OMIT, secondary_payer_carrier_code: OMIT, additional_properties: nil)
412
+ def initialize(vitals: OMIT, diagnoses: OMIT, clinical_notes: OMIT, claim_supplemental_information: OMIT,
413
+ epsdt_referral: OMIT, existing_medications: OMIT, guarantor: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, subscriber_tertiary: OMIT, interventions: OMIT, schema_instances: OMIT, external_claim_submission: OMIT, service_lines: OMIT, patient_histories: OMIT, billing_notes: OMIT, patient: OMIT, service_facility: OMIT, rendering_provider: OMIT, initial_referring_provider: OMIT, referring_provider: OMIT, supervising_provider: OMIT, billing_provider: OMIT, pay_to_address: OMIT, benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT, date_of_service: OMIT, tag_ids: OMIT, billable_status: OMIT, responsible_party: OMIT, provider_accepts_assignment: OMIT, synchronicity: OMIT, place_of_service_code: OMIT, appointment_type: OMIT, end_date_of_service: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, patient_authorized_release: OMIT, referral_number: OMIT, secondary_payer_carrier_code: OMIT, additional_properties: nil)
414
+ @vitals = vitals if vitals != OMIT
400
415
  @diagnoses = diagnoses if diagnoses != OMIT
401
416
  @clinical_notes = clinical_notes if clinical_notes != OMIT
402
417
  @claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
@@ -444,11 +459,11 @@ module CandidApiClient
444
459
  @last_menstrual_period_date = last_menstrual_period_date if last_menstrual_period_date != OMIT
445
460
  @delay_reason_code = delay_reason_code if delay_reason_code != OMIT
446
461
  @patient_authorized_release = patient_authorized_release if patient_authorized_release != OMIT
447
- @vitals = vitals if vitals != OMIT
448
462
  @referral_number = referral_number if referral_number != OMIT
449
463
  @secondary_payer_carrier_code = secondary_payer_carrier_code if secondary_payer_carrier_code != OMIT
450
464
  @additional_properties = additional_properties
451
465
  @_field_set = {
466
+ "vitals": vitals,
452
467
  "diagnoses": diagnoses,
453
468
  "clinical_notes": clinical_notes,
454
469
  "claim_supplemental_information": claim_supplemental_information,
@@ -492,7 +507,6 @@ module CandidApiClient
492
507
  "last_menstrual_period_date": last_menstrual_period_date,
493
508
  "delay_reason_code": delay_reason_code,
494
509
  "patient_authorized_release": patient_authorized_release,
495
- "vitals": vitals,
496
510
  "referral_number": referral_number,
497
511
  "secondary_payer_carrier_code": secondary_payer_carrier_code
498
512
  }.reject do |_k, v|
@@ -507,6 +521,12 @@ module CandidApiClient
507
521
  def self.from_json(json_object:)
508
522
  struct = JSON.parse(json_object, object_class: OpenStruct)
509
523
  parsed_json = JSON.parse(json_object)
524
+ if parsed_json["vitals"].nil?
525
+ vitals = nil
526
+ else
527
+ vitals = parsed_json["vitals"].to_json
528
+ vitals = CandidApiClient::Encounters::V4::Types::VitalsUpdate.from_json(json_object: vitals)
529
+ end
510
530
  diagnoses = parsed_json["diagnoses"]&.map do |item|
511
531
  item = item.to_json
512
532
  CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional.from_json(json_object: item)
@@ -653,15 +673,10 @@ module CandidApiClient
653
673
  end
654
674
  delay_reason_code = struct["delay_reason_code"]
655
675
  patient_authorized_release = struct["patient_authorized_release"]
656
- if parsed_json["vitals"].nil?
657
- vitals = nil
658
- else
659
- vitals = parsed_json["vitals"].to_json
660
- vitals = CandidApiClient::Encounters::V4::Types::VitalsUpdate.from_json(json_object: vitals)
661
- end
662
676
  referral_number = struct["referral_number"]
663
677
  secondary_payer_carrier_code = struct["secondary_payer_carrier_code"]
664
678
  new(
679
+ vitals: vitals,
665
680
  diagnoses: diagnoses,
666
681
  clinical_notes: clinical_notes,
667
682
  claim_supplemental_information: claim_supplemental_information,
@@ -705,7 +720,6 @@ module CandidApiClient
705
720
  last_menstrual_period_date: last_menstrual_period_date,
706
721
  delay_reason_code: delay_reason_code,
707
722
  patient_authorized_release: patient_authorized_release,
708
- vitals: vitals,
709
723
  referral_number: referral_number,
710
724
  secondary_payer_carrier_code: secondary_payer_carrier_code,
711
725
  additional_properties: struct
@@ -726,6 +740,7 @@ module CandidApiClient
726
740
  # @param obj [Object]
727
741
  # @return [Void]
728
742
  def self.validate_raw(obj:)
743
+ obj.vitals.nil? || CandidApiClient::Encounters::V4::Types::VitalsUpdate.validate_raw(obj: obj.vitals)
729
744
  obj.diagnoses&.is_a?(Array) != false || raise("Passed value for field obj.diagnoses is not the expected type, validation failed.")
730
745
  obj.clinical_notes&.is_a?(Array) != false || raise("Passed value for field obj.clinical_notes is not the expected type, validation failed.")
731
746
  obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
@@ -769,7 +784,6 @@ module CandidApiClient
769
784
  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.")
770
785
  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.")
771
786
  obj.patient_authorized_release&.is_a?(Boolean) != false || raise("Passed value for field obj.patient_authorized_release is not the expected type, validation failed.")
772
- obj.vitals.nil? || CandidApiClient::Encounters::V4::Types::VitalsUpdate.validate_raw(obj: obj.vitals)
773
787
  obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
774
788
  obj.secondary_payer_carrier_code&.is_a?(String) != false || raise("Passed value for field obj.secondary_payer_carrier_code is not the expected type, validation failed.")
775
789
  end
@@ -7,7 +7,6 @@ require_relative "synchronicity_type"
7
7
  require_relative "../../../commons/types/facility_type_code"
8
8
  require_relative "service_authorization_exception_code"
9
9
  require_relative "../../../commons/types/delay_reason_code"
10
- require_relative "vitals_update"
11
10
  require "ostruct"
12
11
  require "json"
13
12
 
@@ -18,9 +17,9 @@ module CandidApiClient
18
17
  class EncounterOptional
19
18
  # @return [Boolean] Whether this patient has authorized insurance payments to be made to you, not
20
19
  # them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
21
- # form.
20
+ # form or Form Locator 53 on a UB-04 claim form.
22
21
  attr_reader :benefits_assigned_to_provider
23
- # @return [String] Box 23 on the CMS-1500 claim form.
22
+ # @return [String] Box 23 on the CMS-1500 claim form or Form Locator 63 on a UB-04 claim form.
24
23
  attr_reader :prior_authorization_number
25
24
  # @return [String] A client-specified unique ID to associate with this encounter;
26
25
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
@@ -28,7 +27,7 @@ module CandidApiClient
28
27
  attr_reader :external_id
29
28
  # @return [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
30
29
  # This date must be the local date in the timezone where the service occurred.
31
- # Box 24a on the CMS-1500 claim form.
30
+ # Box 24a on the CMS-1500 claim form or Form Locator 45 on the UB-04 claim form.
32
31
  # If service occurred over a range of dates, this should be the start date.
33
32
  # If service lines have distinct date_of_service values, updating the encounter's
34
33
  # date_of_service will fail. If all service line date_of_service values are the
@@ -47,7 +46,9 @@ module CandidApiClient
47
46
  # SELF_PAY if you intend to bill self pay/cash pay.
48
47
  attr_reader :responsible_party
49
48
  # @return [Boolean] Whether you have accepted the patient's authorization for insurance payments to
50
- # be made to you, not them. Box 27 on the CMS-1500 claim form.
49
+ # be made to you, not them. Box 27 on the CMS-1500 claim form. There is no exact
50
+ # equivalent of this field on a UB-04 claim, however contributes to the concept of
51
+ # Form Locator 53.
51
52
  attr_reader :provider_accepts_assignment
52
53
  # @return [CandidApiClient::Encounters::V4::Types::SynchronicityType] Whether or not this was a synchronous or asynchronous encounter. Asynchronous
53
54
  # encounters occur when providers and patients communicate online using forms,
@@ -72,7 +73,7 @@ module CandidApiClient
72
73
  # end_date_of_service will update all service line date_of_service values.
73
74
  attr_reader :end_date_of_service
74
75
  # @return [String] Defines additional information on the claim needed by the payer.
75
- # Box 19 on the CMS-1500 claim form.
76
+ # Box 19 on the CMS-1500 claim form or Form Locator 80 on a UB-04 claim form.
76
77
  attr_reader :additional_information
77
78
  # @return [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
78
79
  # Required when mandated by government law or regulation to obtain authorization
@@ -81,15 +82,15 @@ module CandidApiClient
81
82
  # the service was performed without
82
83
  # obtaining the authorization.
83
84
  attr_reader :service_authorization_exception_code
84
- # @return [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
85
+ # @return [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18 or UB-04 Form Locator 12.
85
86
  # Required on all ambulance claims when the patient was known to be admitted to
86
87
  # the hospital.
87
88
  # OR
88
89
  # Required on all claims involving inpatient medical visits.
89
90
  attr_reader :admission_date
90
- # @return [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
91
- # Required for inpatient claims when the patient was discharged from the facility
92
- # and the discharge date is known.
91
+ # @return [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18 Required for inpatient claims when the
92
+ # patient was discharged from the facility and the discharge date is known. Not
93
+ # used on an institutional claim.
93
94
  attr_reader :discharge_date
94
95
  # @return [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
95
96
  # Required for the initial medical service or visit performed in response to a
@@ -97,22 +98,20 @@ module CandidApiClient
97
98
  # service.
98
99
  # OR
99
100
  # This date is the onset of acute symptoms for the current illness or condition.
101
+ # For UB-04 claims, this is populated separately via occurrence codes.
100
102
  attr_reader :onset_of_current_illness_or_symptom_date
101
103
  # @return [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
102
104
  # Required when, in the judgment of the provider, the services on this claim are
103
105
  # related to the patient's pregnancy.de
106
+ # This field is populated separately via occurrence codes for UB-04 claim forms.
104
107
  attr_reader :last_menstrual_period_date
105
108
  # @return [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
106
109
  # Code indicating the reason why a request was delayed
107
110
  attr_reader :delay_reason_code
108
111
  # @return [Boolean] Whether this patient has authorized the release of medical information
109
112
  # for billing purpose.
110
- # Box 12 on the CMS-1500 claim form.
113
+ # Box 12 on the CMS-1500 claim form or Form Locator 52 on a UB-04 claim form.
111
114
  attr_reader :patient_authorized_release
112
- # @return [CandidApiClient::Encounters::V4::Types::VitalsUpdate] If a vitals entity already exists for the encounter, then all values will be
113
- # updated to the provided values.
114
- # Otherwise, a new vitals object will be created for the encounter.
115
- attr_reader :vitals
116
115
  # @return [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
117
116
  attr_reader :referral_number
118
117
  # @return [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
@@ -128,14 +127,14 @@ module CandidApiClient
128
127
 
129
128
  # @param benefits_assigned_to_provider [Boolean] Whether this patient has authorized insurance payments to be made to you, not
130
129
  # them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
131
- # form.
132
- # @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form.
130
+ # form or Form Locator 53 on a UB-04 claim form.
131
+ # @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form or Form Locator 63 on a UB-04 claim form.
133
132
  # @param external_id [String] A client-specified unique ID to associate with this encounter;
134
133
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
135
134
  # This field should not contain PHI.
136
135
  # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
137
136
  # This date must be the local date in the timezone where the service occurred.
138
- # Box 24a on the CMS-1500 claim form.
137
+ # Box 24a on the CMS-1500 claim form or Form Locator 45 on the UB-04 claim form.
139
138
  # If service occurred over a range of dates, this should be the start date.
140
139
  # If service lines have distinct date_of_service values, updating the encounter's
141
140
  # date_of_service will fail. If all service line date_of_service values are the
@@ -150,7 +149,9 @@ module CandidApiClient
150
149
  # @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
151
150
  # SELF_PAY if you intend to bill self pay/cash pay.
152
151
  # @param provider_accepts_assignment [Boolean] Whether you have accepted the patient's authorization for insurance payments to
153
- # be made to you, not them. Box 27 on the CMS-1500 claim form.
152
+ # be made to you, not them. Box 27 on the CMS-1500 claim form. There is no exact
153
+ # equivalent of this field on a UB-04 claim, however contributes to the concept of
154
+ # Form Locator 53.
154
155
  # @param synchronicity [CandidApiClient::Encounters::V4::Types::SynchronicityType] Whether or not this was a synchronous or asynchronous encounter. Asynchronous
155
156
  # encounters occur when providers and patients communicate online using forms,
156
157
  # instant messaging, or other pre-recorded digital mediums. Synchronous encounters
@@ -170,45 +171,44 @@ module CandidApiClient
170
171
  # end_date_of_service values are the same, updating the encounter's
171
172
  # end_date_of_service will update all service line date_of_service values.
172
173
  # @param additional_information [String] Defines additional information on the claim needed by the payer.
173
- # Box 19 on the CMS-1500 claim form.
174
+ # Box 19 on the CMS-1500 claim form or Form Locator 80 on a UB-04 claim form.
174
175
  # @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
175
176
  # Required when mandated by government law or regulation to obtain authorization
176
177
  # for specific service(s) but, for the
177
178
  # reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
178
179
  # the service was performed without
179
180
  # obtaining the authorization.
180
- # @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
181
+ # @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18 or UB-04 Form Locator 12.
181
182
  # Required on all ambulance claims when the patient was known to be admitted to
182
183
  # the hospital.
183
184
  # OR
184
185
  # Required on all claims involving inpatient medical visits.
185
- # @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
186
- # Required for inpatient claims when the patient was discharged from the facility
187
- # and the discharge date is known.
186
+ # @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18 Required for inpatient claims when the
187
+ # patient was discharged from the facility and the discharge date is known. Not
188
+ # used on an institutional claim.
188
189
  # @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
189
190
  # Required for the initial medical service or visit performed in response to a
190
191
  # medical emergency when the date is available and is different than the date of
191
192
  # service.
192
193
  # OR
193
194
  # This date is the onset of acute symptoms for the current illness or condition.
195
+ # For UB-04 claims, this is populated separately via occurrence codes.
194
196
  # @param last_menstrual_period_date [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
195
197
  # Required when, in the judgment of the provider, the services on this claim are
196
198
  # related to the patient's pregnancy.de
199
+ # This field is populated separately via occurrence codes for UB-04 claim forms.
197
200
  # @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
198
201
  # Code indicating the reason why a request was delayed
199
202
  # @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
200
203
  # for billing purpose.
201
- # Box 12 on the CMS-1500 claim form.
202
- # @param vitals [CandidApiClient::Encounters::V4::Types::VitalsUpdate] If a vitals entity already exists for the encounter, then all values will be
203
- # updated to the provided values.
204
- # Otherwise, a new vitals object will be created for the encounter.
204
+ # Box 12 on the CMS-1500 claim form or Form Locator 52 on a UB-04 claim form.
205
205
  # @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
206
206
  # @param secondary_payer_carrier_code [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
207
207
  # identify the primary payer. This is required for certain states.
208
208
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
209
209
  # @return [CandidApiClient::Encounters::V4::Types::EncounterOptional]
210
210
  def initialize(benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT,
211
- date_of_service: OMIT, tag_ids: OMIT, billable_status: OMIT, responsible_party: OMIT, provider_accepts_assignment: OMIT, synchronicity: OMIT, place_of_service_code: OMIT, appointment_type: OMIT, end_date_of_service: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, patient_authorized_release: OMIT, vitals: OMIT, referral_number: OMIT, secondary_payer_carrier_code: OMIT, additional_properties: nil)
211
+ 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)
212
212
  @benefits_assigned_to_provider = benefits_assigned_to_provider if benefits_assigned_to_provider != OMIT
213
213
  @prior_authorization_number = prior_authorization_number if prior_authorization_number != OMIT
214
214
  @external_id = external_id if external_id != OMIT
@@ -233,7 +233,6 @@ module CandidApiClient
233
233
  @last_menstrual_period_date = last_menstrual_period_date if last_menstrual_period_date != OMIT
234
234
  @delay_reason_code = delay_reason_code if delay_reason_code != OMIT
235
235
  @patient_authorized_release = patient_authorized_release if patient_authorized_release != OMIT
236
- @vitals = vitals if vitals != OMIT
237
236
  @referral_number = referral_number if referral_number != OMIT
238
237
  @secondary_payer_carrier_code = secondary_payer_carrier_code if secondary_payer_carrier_code != OMIT
239
238
  @additional_properties = additional_properties
@@ -258,7 +257,6 @@ module CandidApiClient
258
257
  "last_menstrual_period_date": last_menstrual_period_date,
259
258
  "delay_reason_code": delay_reason_code,
260
259
  "patient_authorized_release": patient_authorized_release,
261
- "vitals": vitals,
262
260
  "referral_number": referral_number,
263
261
  "secondary_payer_carrier_code": secondary_payer_carrier_code
264
262
  }.reject do |_k, v|
@@ -299,12 +297,6 @@ module CandidApiClient
299
297
  end
300
298
  delay_reason_code = struct["delay_reason_code"]
301
299
  patient_authorized_release = struct["patient_authorized_release"]
302
- if parsed_json["vitals"].nil?
303
- vitals = nil
304
- else
305
- vitals = parsed_json["vitals"].to_json
306
- vitals = CandidApiClient::Encounters::V4::Types::VitalsUpdate.from_json(json_object: vitals)
307
- end
308
300
  referral_number = struct["referral_number"]
309
301
  secondary_payer_carrier_code = struct["secondary_payer_carrier_code"]
310
302
  new(
@@ -328,7 +320,6 @@ module CandidApiClient
328
320
  last_menstrual_period_date: last_menstrual_period_date,
329
321
  delay_reason_code: delay_reason_code,
330
322
  patient_authorized_release: patient_authorized_release,
331
- vitals: vitals,
332
323
  referral_number: referral_number,
333
324
  secondary_payer_carrier_code: secondary_payer_carrier_code,
334
325
  additional_properties: struct
@@ -369,7 +360,6 @@ module CandidApiClient
369
360
  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.")
370
361
  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.")
371
362
  obj.patient_authorized_release&.is_a?(Boolean) != false || raise("Passed value for field obj.patient_authorized_release is not the expected type, validation failed.")
372
- obj.vitals.nil? || CandidApiClient::Encounters::V4::Types::VitalsUpdate.validate_raw(obj: obj.vitals)
373
363
  obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
374
364
  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.")
375
365
  end