candidhealth 1.0.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/auth/client.rb +7 -7
  3. data/lib/candidhealth/auth/{v_2 → default}/client.rb +39 -13
  4. data/lib/candidhealth/auth/{v_2 → default}/types/auth_get_token_response.rb +3 -3
  5. data/lib/candidhealth/auth/default/types/invalid_content_type_error_type.rb +60 -0
  6. data/lib/candidhealth/auth/{v_2 → default}/types/too_many_requests_error_type.rb +3 -3
  7. data/lib/candidhealth/billing_notes/v_2/types/billing_note_base_optional.rb +62 -0
  8. data/lib/candidhealth/charge_capture/v_1/client.rb +532 -484
  9. data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +17 -1
  10. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +173 -173
  11. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_error.rb +26 -2
  12. data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +58 -0
  13. data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create_optional.rb +100 -0
  14. data/lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create_optional.rb +101 -0
  15. data/lib/candidhealth/commons/types/next_responsible_party.rb +16 -0
  16. data/lib/candidhealth/commons/types/phone_number_optional.rb +71 -0
  17. data/lib/candidhealth/commons/types/procedure_modifier.rb +2 -0
  18. data/lib/candidhealth/commons/types/street_address_long_zip_optional.rb +107 -0
  19. data/lib/candidhealth/contracts/v_2/client.rb +4 -4
  20. data/lib/candidhealth/custom_schemas/v_1/types/schema_instance_optional.rb +78 -0
  21. data/lib/candidhealth/diagnoses/client.rb +23 -4
  22. data/lib/candidhealth/diagnoses/types/diagnosis.rb +21 -2
  23. data/lib/candidhealth/diagnoses/types/diagnosis_create.rb +25 -2
  24. data/lib/candidhealth/diagnoses/types/diagnosis_create_optional.rb +126 -0
  25. data/lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb +22 -2
  26. data/lib/candidhealth/encounter_providers/v_2/types/ordering_provider_optional.rb +123 -0
  27. data/lib/candidhealth/encounters/v_4/client.rb +216 -208
  28. data/lib/candidhealth/encounters/v_4/types/claim_supplemental_information_optional.rb +86 -0
  29. data/lib/candidhealth/encounters/v_4/types/clinical_note_category_create_optional.rb +78 -0
  30. data/lib/candidhealth/encounters/v_4/types/clinical_note_optional.rb +93 -0
  31. data/lib/candidhealth/encounters/v_4/types/encounter.rb +27 -4
  32. data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +4 -2
  33. data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +780 -0
  34. data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +1 -139
  35. data/lib/candidhealth/encounters/v_4/types/epsdt_referral_optional.rb +85 -0
  36. data/lib/candidhealth/encounters/v_4/types/intake_question_optional.rb +84 -0
  37. data/lib/candidhealth/encounters/v_4/types/intervention_optional.rb +114 -0
  38. data/lib/candidhealth/encounters/v_4/types/lab_optional.rb +80 -0
  39. data/lib/candidhealth/encounters/v_4/types/medication_optional.rb +108 -0
  40. data/lib/candidhealth/encounters/v_4/types/patient_history_category_optional.rb +78 -0
  41. data/lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb +144 -0
  42. data/lib/candidhealth/individual/types/individual_base_optional.rb +78 -0
  43. data/lib/candidhealth/individual/types/patient_non_insurance_payer_info_create_optional.rb +89 -0
  44. data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +8 -8
  45. data/lib/candidhealth/individual/types/subscriber_base_optional.rb +118 -0
  46. data/lib/candidhealth/individual/types/subscriber_create_optional.rb +132 -0
  47. data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -0
  48. data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_create.rb +9 -1
  49. data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_create_optional.rb +167 -0
  50. data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +1 -0
  51. data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization.rb +13 -1
  52. data/lib/candidhealth/service_lines/v_2/client.rb +4 -0
  53. data/lib/candidhealth/service_lines/v_2/types/drug_identification_optional.rb +126 -0
  54. data/lib/candidhealth/service_lines/v_2/types/service_line.rb +10 -2
  55. data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +10 -2
  56. data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +247 -0
  57. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +10 -2
  58. data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +10 -2
  59. data/lib/candidhealth/service_lines/v_2/types/test_result_optional.rb +73 -0
  60. data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_reason.rb +1 -0
  61. data/lib/candidhealth/write_offs/v_1/types/patient_write_off_reason.rb +1 -0
  62. data/lib/candidhealth/yes_no_indicator/types/yes_no_indicator.rb +14 -0
  63. data/lib/core/oauth.rb +2 -2
  64. data/lib/requests.rb +2 -2
  65. data/lib/types_export.rb +33 -3
  66. metadata +35 -5
@@ -0,0 +1,86 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "report_type_code"
4
+ require_relative "report_transmission_code"
5
+ require "ostruct"
6
+ require "json"
7
+
8
+ module CandidApiClient
9
+ module Encounters
10
+ module V4
11
+ module Types
12
+ class ClaimSupplementalInformationOptional
13
+ # @return [CandidApiClient::Encounters::V4::Types::ReportTypeCode]
14
+ attr_reader :attachment_report_type_code
15
+ # @return [CandidApiClient::Encounters::V4::Types::ReportTransmissionCode]
16
+ attr_reader :attachment_transmission_code
17
+ # @return [String]
18
+ attr_reader :attachment_control_number
19
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
20
+ attr_reader :additional_properties
21
+ # @return [Object]
22
+ attr_reader :_field_set
23
+ protected :_field_set
24
+
25
+ OMIT = Object.new
26
+
27
+ # @param attachment_report_type_code [CandidApiClient::Encounters::V4::Types::ReportTypeCode]
28
+ # @param attachment_transmission_code [CandidApiClient::Encounters::V4::Types::ReportTransmissionCode]
29
+ # @param attachment_control_number [String]
30
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
31
+ # @return [CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional]
32
+ def initialize(attachment_report_type_code: OMIT, attachment_transmission_code: OMIT,
33
+ attachment_control_number: OMIT, additional_properties: nil)
34
+ @attachment_report_type_code = attachment_report_type_code if attachment_report_type_code != OMIT
35
+ @attachment_transmission_code = attachment_transmission_code if attachment_transmission_code != OMIT
36
+ @attachment_control_number = attachment_control_number if attachment_control_number != OMIT
37
+ @additional_properties = additional_properties
38
+ @_field_set = {
39
+ "attachment_report_type_code": attachment_report_type_code,
40
+ "attachment_transmission_code": attachment_transmission_code,
41
+ "attachment_control_number": attachment_control_number
42
+ }.reject do |_k, v|
43
+ v == OMIT
44
+ end
45
+ end
46
+
47
+ # Deserialize a JSON object to an instance of ClaimSupplementalInformationOptional
48
+ #
49
+ # @param json_object [String]
50
+ # @return [CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional]
51
+ def self.from_json(json_object:)
52
+ struct = JSON.parse(json_object, object_class: OpenStruct)
53
+ attachment_report_type_code = struct["attachment_report_type_code"]
54
+ attachment_transmission_code = struct["attachment_transmission_code"]
55
+ attachment_control_number = struct["attachment_control_number"]
56
+ new(
57
+ attachment_report_type_code: attachment_report_type_code,
58
+ attachment_transmission_code: attachment_transmission_code,
59
+ attachment_control_number: attachment_control_number,
60
+ additional_properties: struct
61
+ )
62
+ end
63
+
64
+ # Serialize an instance of ClaimSupplementalInformationOptional to a JSON object
65
+ #
66
+ # @return [String]
67
+ def to_json(*_args)
68
+ @_field_set&.to_json
69
+ end
70
+
71
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
72
+ # hash and check each fields type against the current object's property
73
+ # definitions.
74
+ #
75
+ # @param obj [Object]
76
+ # @return [Void]
77
+ def self.validate_raw(obj:)
78
+ obj.attachment_report_type_code&.is_a?(CandidApiClient::Encounters::V4::Types::ReportTypeCode) != false || raise("Passed value for field obj.attachment_report_type_code is not the expected type, validation failed.")
79
+ obj.attachment_transmission_code&.is_a?(CandidApiClient::Encounters::V4::Types::ReportTransmissionCode) != false || raise("Passed value for field obj.attachment_transmission_code is not the expected type, validation failed.")
80
+ obj.attachment_control_number&.is_a?(String) != false || raise("Passed value for field obj.attachment_control_number is not the expected type, validation failed.")
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,78 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "note_category"
4
+ require_relative "clinical_note_optional"
5
+ require "ostruct"
6
+ require "json"
7
+
8
+ module CandidApiClient
9
+ module Encounters
10
+ module V4
11
+ module Types
12
+ class ClinicalNoteCategoryCreateOptional
13
+ # @return [CandidApiClient::Encounters::V4::Types::NoteCategory]
14
+ attr_reader :category
15
+ # @return [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteOptional>]
16
+ attr_reader :notes
17
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
18
+ attr_reader :additional_properties
19
+ # @return [Object]
20
+ attr_reader :_field_set
21
+ protected :_field_set
22
+
23
+ OMIT = Object.new
24
+
25
+ # @param category [CandidApiClient::Encounters::V4::Types::NoteCategory]
26
+ # @param notes [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteOptional>]
27
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
28
+ # @return [CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional]
29
+ def initialize(category: OMIT, notes: OMIT, additional_properties: nil)
30
+ @category = category if category != OMIT
31
+ @notes = notes if notes != OMIT
32
+ @additional_properties = additional_properties
33
+ @_field_set = { "category": category, "notes": notes }.reject do |_k, v|
34
+ v == OMIT
35
+ end
36
+ end
37
+
38
+ # Deserialize a JSON object to an instance of ClinicalNoteCategoryCreateOptional
39
+ #
40
+ # @param json_object [String]
41
+ # @return [CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional]
42
+ def self.from_json(json_object:)
43
+ struct = JSON.parse(json_object, object_class: OpenStruct)
44
+ parsed_json = JSON.parse(json_object)
45
+ category = struct["category"]
46
+ notes = parsed_json["notes"]&.map do |item|
47
+ item = item.to_json
48
+ CandidApiClient::Encounters::V4::Types::ClinicalNoteOptional.from_json(json_object: item)
49
+ end
50
+ new(
51
+ category: category,
52
+ notes: notes,
53
+ additional_properties: struct
54
+ )
55
+ end
56
+
57
+ # Serialize an instance of ClinicalNoteCategoryCreateOptional to a JSON object
58
+ #
59
+ # @return [String]
60
+ def to_json(*_args)
61
+ @_field_set&.to_json
62
+ end
63
+
64
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
65
+ # hash and check each fields type against the current object's property
66
+ # definitions.
67
+ #
68
+ # @param obj [Object]
69
+ # @return [Void]
70
+ def self.validate_raw(obj:)
71
+ obj.category&.is_a?(CandidApiClient::Encounters::V4::Types::NoteCategory) != false || raise("Passed value for field obj.category is not the expected type, validation failed.")
72
+ obj.notes&.is_a?(Array) != false || raise("Passed value for field obj.notes is not the expected type, validation failed.")
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,93 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "date"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module CandidApiClient
8
+ module Encounters
9
+ module V4
10
+ module Types
11
+ class ClinicalNoteOptional
12
+ # @return [String]
13
+ attr_reader :text
14
+ # @return [String]
15
+ attr_reader :author_name
16
+ # @return [String]
17
+ attr_reader :author_npi
18
+ # @return [DateTime]
19
+ attr_reader :timestamp
20
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
21
+ attr_reader :additional_properties
22
+ # @return [Object]
23
+ attr_reader :_field_set
24
+ protected :_field_set
25
+
26
+ OMIT = Object.new
27
+
28
+ # @param text [String]
29
+ # @param author_name [String]
30
+ # @param author_npi [String]
31
+ # @param timestamp [DateTime]
32
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
33
+ # @return [CandidApiClient::Encounters::V4::Types::ClinicalNoteOptional]
34
+ def initialize(text: OMIT, author_name: OMIT, author_npi: OMIT, timestamp: OMIT, additional_properties: nil)
35
+ @text = text if text != OMIT
36
+ @author_name = author_name if author_name != OMIT
37
+ @author_npi = author_npi if author_npi != OMIT
38
+ @timestamp = timestamp if timestamp != OMIT
39
+ @additional_properties = additional_properties
40
+ @_field_set = {
41
+ "text": text,
42
+ "author_name": author_name,
43
+ "author_npi": author_npi,
44
+ "timestamp": timestamp
45
+ }.reject do |_k, v|
46
+ v == OMIT
47
+ end
48
+ end
49
+
50
+ # Deserialize a JSON object to an instance of ClinicalNoteOptional
51
+ #
52
+ # @param json_object [String]
53
+ # @return [CandidApiClient::Encounters::V4::Types::ClinicalNoteOptional]
54
+ def self.from_json(json_object:)
55
+ struct = JSON.parse(json_object, object_class: OpenStruct)
56
+ parsed_json = JSON.parse(json_object)
57
+ text = struct["text"]
58
+ author_name = struct["author_name"]
59
+ author_npi = struct["author_npi"]
60
+ timestamp = (DateTime.parse(parsed_json["timestamp"]) unless parsed_json["timestamp"].nil?)
61
+ new(
62
+ text: text,
63
+ author_name: author_name,
64
+ author_npi: author_npi,
65
+ timestamp: timestamp,
66
+ additional_properties: struct
67
+ )
68
+ end
69
+
70
+ # Serialize an instance of ClinicalNoteOptional to a JSON object
71
+ #
72
+ # @return [String]
73
+ def to_json(*_args)
74
+ @_field_set&.to_json
75
+ end
76
+
77
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
78
+ # hash and check each fields type against the current object's property
79
+ # definitions.
80
+ #
81
+ # @param obj [Object]
82
+ # @return [Void]
83
+ def self.validate_raw(obj:)
84
+ obj.text&.is_a?(String) != false || raise("Passed value for field obj.text is not the expected type, validation failed.")
85
+ obj.author_name&.is_a?(String) != false || raise("Passed value for field obj.author_name is not the expected type, validation failed.")
86
+ obj.author_npi&.is_a?(String) != false || raise("Passed value for field obj.author_npi is not the expected type, validation failed.")
87
+ obj.timestamp&.is_a?(DateTime) != false || raise("Passed value for field obj.timestamp is not the expected type, validation failed.")
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end
93
+ end
@@ -21,6 +21,7 @@ require_relative "encounter_submission_origin_type"
21
21
  require_relative "../../../custom_schemas/v_1/types/schema_instance"
22
22
  require_relative "epsdt_referral"
23
23
  require_relative "claim_supplemental_information"
24
+ require_relative "../../../commons/types/next_responsible_party"
24
25
  require_relative "medication"
25
26
  require_relative "vitals"
26
27
  require_relative "intervention"
@@ -37,6 +38,9 @@ module CandidApiClient
37
38
  module V4
38
39
  module Types
39
40
  class Encounter
41
+ # @return [String] If the encounter was created from ingested charge captures, this is the
42
+ # associated Charge Capture Claim Creation Id.
43
+ attr_reader :claim_creation_id
40
44
  # @return [String] A patient control number (PCN) is a unique identifier assigned to a patient
41
45
  # within a healthcare system or facility.
42
46
  # It's used to track and manage a patient's medical records, treatments, and other
@@ -107,7 +111,8 @@ module CandidApiClient
107
111
  # that will be submitted to the payor.
108
112
  attr_reader :diagnoses
109
113
  # @return [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategory>] Holds a collection of clinical observations made by healthcare providers during
110
- # patient encounters.
114
+ # patient encounters. Please note that medical records for appeals should be sent
115
+ # using the Encounter Attachments API.
111
116
  attr_reader :clinical_notes
112
117
  # @return [Array<CandidApiClient::BillingNotes::V2::Types::BillingNote>] Spot to store misc, human-readable, notes about this encounter to be
113
118
  # used in the billing process.
@@ -160,6 +165,9 @@ module CandidApiClient
160
165
  attr_reader :last_submitted_at
161
166
  # @return [DateTime] The date and time the encounter was created.
162
167
  attr_reader :created_at
168
+ # @return [CandidApiClient::Commons::Types::NextResponsibleParty] The party (payer, patient, etc.) responsible for the remainder of the balance on
169
+ # the claim.
170
+ attr_reader :next_responsible_party
163
171
  # @return [String] A client-specified unique ID to associate with this encounter;
164
172
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
165
173
  # This field should not contain PHI.
@@ -260,6 +268,8 @@ module CandidApiClient
260
268
 
261
269
  OMIT = Object.new
262
270
 
271
+ # @param claim_creation_id [String] If the encounter was created from ingested charge captures, this is the
272
+ # associated Charge Capture Claim Creation Id.
263
273
  # @param patient_control_number [String] A patient control number (PCN) is a unique identifier assigned to a patient
264
274
  # within a healthcare system or facility.
265
275
  # It's used to track and manage a patient's medical records, treatments, and other
@@ -312,7 +322,8 @@ module CandidApiClient
312
322
  # diagnoses may be submitted at this time, and coders will later prioritize the 12
313
323
  # that will be submitted to the payor.
314
324
  # @param clinical_notes [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategory>] Holds a collection of clinical observations made by healthcare providers during
315
- # patient encounters.
325
+ # patient encounters. Please note that medical records for appeals should be sent
326
+ # using the Encounter Attachments API.
316
327
  # @param billing_notes [Array<CandidApiClient::BillingNotes::V2::Types::BillingNote>] Spot to store misc, human-readable, notes about this encounter to be
317
328
  # used in the billing process.
318
329
  # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
@@ -346,6 +357,8 @@ module CandidApiClient
346
357
  # identify the primary payer. This is required for certain states.
347
358
  # @param last_submitted_at [DateTime] The date and time the encounter was last submitted to a payer.
348
359
  # @param created_at [DateTime] The date and time the encounter was created.
360
+ # @param next_responsible_party [CandidApiClient::Commons::Types::NextResponsibleParty] The party (payer, patient, etc.) responsible for the remainder of the balance on
361
+ # the claim.
349
362
  # @param external_id [String] A client-specified unique ID to associate with this encounter;
350
363
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
351
364
  # This field should not contain PHI.
@@ -420,8 +433,9 @@ module CandidApiClient
420
433
  # Code indicating the reason why a request was delayed
421
434
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
422
435
  # @return [CandidApiClient::Encounters::V4::Types::Encounter]
423
- def initialize(encounter_id:, claims:, patient:, billing_provider:, rendering_provider:, service_facility:,
424
- responsible_party:, url:, diagnoses:, clinical_notes:, patient_histories:, patient_payments:, tags:, owner_of_next_action:, submission_origin:, schema_instances:, created_at:, external_id:, patient_authorized_release:, benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, patient_control_number: OMIT, guarantor: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, subscriber_tertiary: OMIT, prior_authorization_number: OMIT, billing_notes: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, coding_attribution: OMIT, work_queue_id: OMIT, work_queue_membership_activated_at: OMIT, referral_number: OMIT, epsdt_referral: OMIT, claim_supplemental_information: OMIT, secondary_payer_carrier_code: OMIT, last_submitted_at: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, appointment_type: OMIT, existing_medications: OMIT, vitals: OMIT, interventions: OMIT, pay_to_address: OMIT, synchronicity: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, additional_properties: nil)
436
+ def initialize(encounter_id:, claims:, patient:, billing_provider:, rendering_provider:, service_facility:, responsible_party:, url:, diagnoses:, clinical_notes:, patient_histories:, patient_payments:, tags:, owner_of_next_action:, submission_origin:, schema_instances:, created_at:, external_id:, patient_authorized_release:, benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, claim_creation_id: OMIT, patient_control_number: OMIT,
437
+ guarantor: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, subscriber_tertiary: OMIT, prior_authorization_number: OMIT, billing_notes: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, coding_attribution: OMIT, work_queue_id: OMIT, work_queue_membership_activated_at: OMIT, referral_number: OMIT, epsdt_referral: OMIT, claim_supplemental_information: OMIT, secondary_payer_carrier_code: OMIT, last_submitted_at: OMIT, next_responsible_party: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, appointment_type: OMIT, existing_medications: OMIT, vitals: OMIT, interventions: OMIT, pay_to_address: OMIT, synchronicity: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, additional_properties: nil)
438
+ @claim_creation_id = claim_creation_id if claim_creation_id != OMIT
425
439
  @patient_control_number = patient_control_number if patient_control_number != OMIT
426
440
  @encounter_id = encounter_id
427
441
  @claims = claims
@@ -463,6 +477,7 @@ module CandidApiClient
463
477
  @secondary_payer_carrier_code = secondary_payer_carrier_code if secondary_payer_carrier_code != OMIT
464
478
  @last_submitted_at = last_submitted_at if last_submitted_at != OMIT
465
479
  @created_at = created_at
480
+ @next_responsible_party = next_responsible_party if next_responsible_party != OMIT
466
481
  @external_id = external_id
467
482
  @date_of_service = date_of_service if date_of_service != OMIT
468
483
  @end_date_of_service = end_date_of_service if end_date_of_service != OMIT
@@ -489,6 +504,7 @@ module CandidApiClient
489
504
  @delay_reason_code = delay_reason_code if delay_reason_code != OMIT
490
505
  @additional_properties = additional_properties
491
506
  @_field_set = {
507
+ "claim_creation_id": claim_creation_id,
492
508
  "patient_control_number": patient_control_number,
493
509
  "encounter_id": encounter_id,
494
510
  "claims": claims,
@@ -526,6 +542,7 @@ module CandidApiClient
526
542
  "secondary_payer_carrier_code": secondary_payer_carrier_code,
527
543
  "last_submitted_at": last_submitted_at,
528
544
  "created_at": created_at,
545
+ "next_responsible_party": next_responsible_party,
529
546
  "external_id": external_id,
530
547
  "date_of_service": date_of_service,
531
548
  "end_date_of_service": end_date_of_service,
@@ -558,6 +575,7 @@ module CandidApiClient
558
575
  def self.from_json(json_object:)
559
576
  struct = JSON.parse(json_object, object_class: OpenStruct)
560
577
  parsed_json = JSON.parse(json_object)
578
+ claim_creation_id = struct["claim_creation_id"]
561
579
  patient_control_number = struct["patient_control_number"]
562
580
  encounter_id = struct["encounter_id"]
563
581
  claims = parsed_json["claims"]&.map do |item|
@@ -686,6 +704,7 @@ module CandidApiClient
686
704
  DateTime.parse(parsed_json["last_submitted_at"])
687
705
  end
688
706
  created_at = (DateTime.parse(parsed_json["created_at"]) unless parsed_json["created_at"].nil?)
707
+ next_responsible_party = struct["next_responsible_party"]
689
708
  external_id = struct["external_id"]
690
709
  date_of_service = (Date.parse(parsed_json["date_of_service"]) unless parsed_json["date_of_service"].nil?)
691
710
  end_date_of_service = unless parsed_json["end_date_of_service"].nil?
@@ -729,6 +748,7 @@ module CandidApiClient
729
748
  end
730
749
  delay_reason_code = struct["delay_reason_code"]
731
750
  new(
751
+ claim_creation_id: claim_creation_id,
732
752
  patient_control_number: patient_control_number,
733
753
  encounter_id: encounter_id,
734
754
  claims: claims,
@@ -766,6 +786,7 @@ module CandidApiClient
766
786
  secondary_payer_carrier_code: secondary_payer_carrier_code,
767
787
  last_submitted_at: last_submitted_at,
768
788
  created_at: created_at,
789
+ next_responsible_party: next_responsible_party,
769
790
  external_id: external_id,
770
791
  date_of_service: date_of_service,
771
792
  end_date_of_service: end_date_of_service,
@@ -804,6 +825,7 @@ module CandidApiClient
804
825
  # @param obj [Object]
805
826
  # @return [Void]
806
827
  def self.validate_raw(obj:)
828
+ obj.claim_creation_id&.is_a?(String) != false || raise("Passed value for field obj.claim_creation_id is not the expected type, validation failed.")
807
829
  obj.patient_control_number&.is_a?(String) != false || raise("Passed value for field obj.patient_control_number is not the expected type, validation failed.")
808
830
  obj.encounter_id.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
809
831
  obj.claims.is_a?(Array) != false || raise("Passed value for field obj.claims is not the expected type, validation failed.")
@@ -841,6 +863,7 @@ module CandidApiClient
841
863
  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.")
842
864
  obj.last_submitted_at&.is_a?(DateTime) != false || raise("Passed value for field obj.last_submitted_at is not the expected type, validation failed.")
843
865
  obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
866
+ obj.next_responsible_party&.is_a?(CandidApiClient::Commons::Types::NextResponsibleParty) != false || raise("Passed value for field obj.next_responsible_party is not the expected type, validation failed.")
844
867
  obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
845
868
  obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
846
869
  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.")
@@ -76,7 +76,8 @@ module CandidApiClient
76
76
  # submitted to the payor.
77
77
  attr_reader :diagnoses
78
78
  # @return [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
79
- # patient encounters.
79
+ # patient encounters. Please note that medical records for appeals should be sent
80
+ # using the Encounter Attachments API.
80
81
  attr_reader :clinical_notes
81
82
  # @return [Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>] Spot to store misc, human-readable, notes about this encounter to be used
82
83
  # in the billing process.
@@ -239,7 +240,8 @@ module CandidApiClient
239
240
  # be
240
241
  # submitted to the payor.
241
242
  # @param clinical_notes [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
242
- # patient encounters.
243
+ # patient encounters. Please note that medical records for appeals should be sent
244
+ # using the Encounter Attachments API.
243
245
  # @param billing_notes [Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>] Spot to store misc, human-readable, notes about this encounter to be used
244
246
  # in the billing process.
245
247
  # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for