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,73 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "test_result_type"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module CandidApiClient
8
+ module ServiceLines
9
+ module V2
10
+ module Types
11
+ class TestResultOptional
12
+ # @return [Float]
13
+ attr_reader :value
14
+ # @return [CandidApiClient::ServiceLines::V2::Types::TestResultType]
15
+ attr_reader :result_type
16
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
17
+ attr_reader :additional_properties
18
+ # @return [Object]
19
+ attr_reader :_field_set
20
+ protected :_field_set
21
+
22
+ OMIT = Object.new
23
+
24
+ # @param value [Float]
25
+ # @param result_type [CandidApiClient::ServiceLines::V2::Types::TestResultType]
26
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
27
+ # @return [CandidApiClient::ServiceLines::V2::Types::TestResultOptional]
28
+ def initialize(value: OMIT, result_type: OMIT, additional_properties: nil)
29
+ @value = value if value != OMIT
30
+ @result_type = result_type if result_type != OMIT
31
+ @additional_properties = additional_properties
32
+ @_field_set = { "value": value, "result_type": result_type }.reject do |_k, v|
33
+ v == OMIT
34
+ end
35
+ end
36
+
37
+ # Deserialize a JSON object to an instance of TestResultOptional
38
+ #
39
+ # @param json_object [String]
40
+ # @return [CandidApiClient::ServiceLines::V2::Types::TestResultOptional]
41
+ def self.from_json(json_object:)
42
+ struct = JSON.parse(json_object, object_class: OpenStruct)
43
+ value = struct["value"]
44
+ result_type = struct["result_type"]
45
+ new(
46
+ value: value,
47
+ result_type: result_type,
48
+ additional_properties: struct
49
+ )
50
+ end
51
+
52
+ # Serialize an instance of TestResultOptional to a JSON object
53
+ #
54
+ # @return [String]
55
+ def to_json(*_args)
56
+ @_field_set&.to_json
57
+ end
58
+
59
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
60
+ # hash and check each fields type against the current object's property
61
+ # definitions.
62
+ #
63
+ # @param obj [Object]
64
+ # @return [Void]
65
+ def self.validate_raw(obj:)
66
+ obj.value&.is_a?(Float) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
67
+ obj.result_type&.is_a?(CandidApiClient::ServiceLines::V2::Types::TestResultType) != false || raise("Passed value for field obj.result_type is not the expected type, validation failed.")
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -21,6 +21,7 @@ module CandidApiClient
21
21
  OTHER = "OTHER"
22
22
  UNKNOWN = "UNKNOWN"
23
23
  CONTRACTUAL_ADJUSTMENT = "CONTRACTUAL_ADJUSTMENT"
24
+ PRIMARY_PAID_MAX_BENEFITS = "PRIMARY_PAID_MAX_BENEFITS"
24
25
  end
25
26
  end
26
27
  end
@@ -16,6 +16,7 @@ module CandidApiClient
16
16
  UNKNOWN = "UNKNOWN"
17
17
  UNCOLLECTIBLE_OR_NON_BILLABLE = "UNCOLLECTIBLE_OR_NON_BILLABLE"
18
18
  DECEASED = "DECEASED"
19
+ BANKRUPTCY = "BANKRUPTCY"
19
20
  end
20
21
  end
21
22
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CandidApiClient
4
+ module YesNoIndicator
5
+ module Types
6
+ class YesNoIndicator
7
+ YES = "YES"
8
+ NO = "NO"
9
+ UNKNOWN = "UNKNOWN"
10
+ NOT_APPLICABLE = "NOT_APPLICABLE"
11
+ end
12
+ end
13
+ end
14
+ end
data/lib/core/oauth.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "../requests"
4
- require_relative "../candidhealth/auth/v_2/client"
4
+ require_relative "../candidhealth/auth/default/client"
5
5
  require_relative "oauth"
6
6
 
7
7
  module CandidApiClient
@@ -38,7 +38,7 @@ module CandidApiClient
38
38
  def initialize(client_id:, client_secret:, request_client:)
39
39
  @client_id = client_id
40
40
  @client_secret = client_secret
41
- @auth_client = CandidApiClient::Auth::V2::V2Client.new(request_client: request_client)
41
+ @auth_client = CandidApiClient::Auth::Default::DefaultClient.new(request_client: request_client)
42
42
  end
43
43
 
44
44
  # Returns a cached access token retrieved from the provided client credentials,
data/lib/requests.rb CHANGED
@@ -45,7 +45,7 @@ module CandidApiClient
45
45
 
46
46
  # @return [Hash{String => String}]
47
47
  def get_headers
48
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0" }
48
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.1" }
49
49
  headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
50
50
  headers
51
51
  end
@@ -90,7 +90,7 @@ module CandidApiClient
90
90
 
91
91
  # @return [Hash{String => String}]
92
92
  def get_headers
93
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0" }
93
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.1" }
94
94
  headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
95
95
  headers
96
96
  end
data/lib/types_export.rb CHANGED
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "candidhealth/auth/v_2/types/auth_get_token_response"
4
- require_relative "candidhealth/auth/v_2/types/too_many_requests_error_type"
3
+ require_relative "candidhealth/auth/default/types/auth_get_token_response"
4
+ require_relative "candidhealth/auth/default/types/too_many_requests_error_type"
5
+ require_relative "candidhealth/auth/default/types/invalid_content_type_error_type"
6
+ require_relative "candidhealth/billing_notes/v_2/types/billing_note_base_optional"
5
7
  require_relative "candidhealth/billing_notes/v_2/types/billing_note_base"
6
8
  require_relative "candidhealth/billing_notes/v_2/types/billing_note"
7
9
  require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_page"
@@ -9,9 +11,9 @@ require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_c
9
11
  require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary"
10
12
  require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_status"
11
13
  require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_sort_field"
14
+ require_relative "candidhealth/charge_capture/v_1/types/charge_capture_data"
12
15
  require_relative "candidhealth/charge_capture/v_1/types/charge_capture_page"
13
16
  require_relative "candidhealth/charge_capture/v_1/types/charge_capture"
14
- require_relative "candidhealth/charge_capture/v_1/types/charge_capture_data"
15
17
  require_relative "candidhealth/charge_capture/v_1/types/charge_capture_error"
16
18
  require_relative "candidhealth/charge_capture/v_1/types/charge_capture_sort_field"
17
19
  require_relative "candidhealth/charge_capture/v_1/types/charge_capture_status"
@@ -19,7 +21,9 @@ require_relative "candidhealth/charge_capture/v_1/types/charge_capture_post_bill
19
21
  require_relative "candidhealth/charge_capture/v_1/types/charge_external_id_conflict_error_message"
20
22
  require_relative "candidhealth/claim_submission/v_1/types/claim_frequency_type_code"
21
23
  require_relative "candidhealth/claim_submission/v_1/types/external_claim_submission_create"
24
+ require_relative "candidhealth/claim_submission/v_1/types/external_claim_submission_create_optional"
22
25
  require_relative "candidhealth/claim_submission/v_1/types/claim_submission_record_create"
26
+ require_relative "candidhealth/claim_submission/v_1/types/claim_submission_record_create_optional"
23
27
  require_relative "candidhealth/clinical_trials/v_1/types/mutable_clinical_trial"
24
28
  require_relative "candidhealth/clinical_trials/v_1/types/clinical_trial"
25
29
  require_relative "candidhealth/clinical_trials/v_1/types/clinical_trial_phase"
@@ -41,6 +45,7 @@ require_relative "candidhealth/credentialing/v_2/types/credentialing_span_status
41
45
  require_relative "candidhealth/credentialing/v_2/types/provider_credentialing_span_page"
42
46
  require_relative "candidhealth/custom_schemas/v_1/types/schema"
43
47
  require_relative "candidhealth/custom_schemas/v_1/types/schema_instance"
48
+ require_relative "candidhealth/custom_schemas/v_1/types/schema_instance_optional"
44
49
  require_relative "candidhealth/custom_schemas/v_1/types/schema_field"
45
50
  require_relative "candidhealth/custom_schemas/v_1/types/schema_get_multi_response"
46
51
  require_relative "candidhealth/custom_schemas/v_1/types/schema_with_name_already_exists_error"
@@ -60,6 +65,7 @@ require_relative "candidhealth/encounter_providers/v_2/types/initial_referring_p
60
65
  require_relative "candidhealth/encounter_providers/v_2/types/supervising_provider"
61
66
  require_relative "candidhealth/encounter_providers/v_2/types/supervising_provider_update"
62
67
  require_relative "candidhealth/encounter_providers/v_2/types/ordering_provider"
68
+ require_relative "candidhealth/encounter_providers/v_2/types/ordering_provider_optional"
63
69
  require_relative "candidhealth/encounter_providers/v_2/types/ordering_provider_update"
64
70
  require_relative "candidhealth/encounter_providers/v_2/types/billing_provider"
65
71
  require_relative "candidhealth/encounter_providers/v_2/types/billing_provider_update"
@@ -72,24 +78,32 @@ require_relative "candidhealth/encounter_providers/v_2/types/encounter_provider"
72
78
  require_relative "candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter"
73
79
  require_relative "candidhealth/encounters/v_4/types/encounter_base"
74
80
  require_relative "candidhealth/encounters/v_4/types/encounter_optional"
81
+ require_relative "candidhealth/encounters/v_4/types/encounter_deep_optional"
75
82
  require_relative "candidhealth/encounters/v_4/types/encounter"
76
83
  require_relative "candidhealth/encounters/v_4/types/encounter_sort_options"
77
84
  require_relative "candidhealth/encounters/v_4/types/medication"
85
+ require_relative "candidhealth/encounters/v_4/types/medication_optional"
78
86
  require_relative "candidhealth/encounters/v_4/types/vitals"
79
87
  require_relative "candidhealth/encounters/v_4/types/vitals_update"
80
88
  require_relative "candidhealth/encounters/v_4/types/intervention"
89
+ require_relative "candidhealth/encounters/v_4/types/intervention_optional"
81
90
  require_relative "candidhealth/encounters/v_4/types/intervention_category"
82
91
  require_relative "candidhealth/encounters/v_4/types/lab"
92
+ require_relative "candidhealth/encounters/v_4/types/lab_optional"
83
93
  require_relative "candidhealth/encounters/v_4/types/lab_code_type"
84
94
  require_relative "candidhealth/encounters/v_4/types/patient_history_category"
95
+ require_relative "candidhealth/encounters/v_4/types/patient_history_category_optional"
85
96
  require_relative "candidhealth/encounters/v_4/types/patient_history_category_enum"
86
97
  require_relative "candidhealth/encounters/v_4/types/intake_question"
98
+ require_relative "candidhealth/encounters/v_4/types/intake_question_optional"
87
99
  require_relative "candidhealth/encounters/v_4/types/intake_response_and_follow_ups"
88
100
  require_relative "candidhealth/encounters/v_4/types/intake_follow_up"
89
101
  require_relative "candidhealth/encounters/v_4/types/clinical_note_category_create"
102
+ require_relative "candidhealth/encounters/v_4/types/clinical_note_category_create_optional"
90
103
  require_relative "candidhealth/encounters/v_4/types/clinical_note_category"
91
104
  require_relative "candidhealth/encounters/v_4/types/note_category"
92
105
  require_relative "candidhealth/encounters/v_4/types/clinical_note"
106
+ require_relative "candidhealth/encounters/v_4/types/clinical_note_optional"
93
107
  require_relative "candidhealth/encounters/v_4/types/responsible_party_type"
94
108
  require_relative "candidhealth/encounters/v_4/types/billable_status_type"
95
109
  require_relative "candidhealth/encounters/v_4/types/encounter_owner_of_next_action_type"
@@ -97,8 +111,10 @@ require_relative "candidhealth/encounters/v_4/types/encounter_submission_origin_
97
111
  require_relative "candidhealth/encounters/v_4/types/synchronicity_type"
98
112
  require_relative "candidhealth/encounters/v_4/types/coding_attribution_type"
99
113
  require_relative "candidhealth/encounters/v_4/types/epsdt_referral"
114
+ require_relative "candidhealth/encounters/v_4/types/epsdt_referral_optional"
100
115
  require_relative "candidhealth/encounters/v_4/types/report_type_code"
101
116
  require_relative "candidhealth/encounters/v_4/types/report_transmission_code"
117
+ require_relative "candidhealth/encounters/v_4/types/claim_supplemental_information_optional"
102
118
  require_relative "candidhealth/encounters/v_4/types/claim_supplemental_information"
103
119
  require_relative "candidhealth/encounters/v_4/types/encounter_page"
104
120
  require_relative "candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type"
@@ -172,6 +188,7 @@ require_relative "candidhealth/guarantor/v_1/types/guarantor_base"
172
188
  require_relative "candidhealth/guarantor/v_1/types/guarantor"
173
189
  require_relative "candidhealth/guarantor/v_1/types/guarantor_create"
174
190
  require_relative "candidhealth/guarantor/v_1/types/guarantor_update"
191
+ require_relative "candidhealth/guarantor/v_1/types/guarantor_optional"
175
192
  require_relative "candidhealth/guarantor/v_1/types/encounter_has_existing_guarantor_error_type"
176
193
  require_relative "candidhealth/import_invoice/v_1/types/import_invoice"
177
194
  require_relative "candidhealth/import_invoice/v_1/types/create_import_invoice_request"
@@ -187,6 +204,7 @@ require_relative "candidhealth/insurance_adjudications/v_1/types/service_line_ad
187
204
  require_relative "candidhealth/insurance_adjudications/v_1/types/service_line_adjudication"
188
205
  require_relative "candidhealth/insurance_cards/v_2/types/insurance_card_base"
189
206
  require_relative "candidhealth/insurance_cards/v_2/types/insurance_card_create"
207
+ require_relative "candidhealth/insurance_cards/v_2/types/insurance_card_create_optional"
190
208
  require_relative "candidhealth/insurance_cards/v_2/types/insurance_card"
191
209
  require_relative "candidhealth/insurance_payments/v_1/types/insurance_payment"
192
210
  require_relative "candidhealth/insurance_payments/v_1/types/insurance_payments_page"
@@ -268,6 +286,7 @@ require_relative "candidhealth/payers/v_3/types/payer_identifier"
268
286
  require_relative "candidhealth/remits/v_1/types/payee_identifier"
269
287
  require_relative "candidhealth/remits/v_1/types/payee"
270
288
  require_relative "candidhealth/service_lines/v_2/types/service_line_create"
289
+ require_relative "candidhealth/service_lines/v_2/types/service_line_create_optional"
271
290
  require_relative "candidhealth/service_lines/v_2/types/service_line_create_standalone"
272
291
  require_relative "candidhealth/service_lines/v_2/types/service_line_update"
273
292
  require_relative "candidhealth/service_lines/v_2/types/service_line"
@@ -275,8 +294,10 @@ require_relative "candidhealth/service_lines/v_2/types/service_line_era_data"
275
294
  require_relative "candidhealth/service_lines/v_2/types/service_line_adjustment"
276
295
  require_relative "candidhealth/service_lines/v_2/types/service_line_denial_reason"
277
296
  require_relative "candidhealth/service_lines/v_2/types/denial_reason_content"
297
+ require_relative "candidhealth/service_lines/v_2/types/drug_identification_optional"
278
298
  require_relative "candidhealth/service_lines/v_2/types/drug_identification"
279
299
  require_relative "candidhealth/service_lines/v_2/types/test_result_type"
300
+ require_relative "candidhealth/service_lines/v_2/types/test_result_optional"
280
301
  require_relative "candidhealth/service_lines/v_2/types/test_result"
281
302
  require_relative "candidhealth/service_lines/v_2/types/service_id_qualifier"
282
303
  require_relative "candidhealth/service_lines/v_2/types/measurement_unit_code"
@@ -407,6 +428,7 @@ require_relative "candidhealth/commons/types/street_address_optional_base"
407
428
  require_relative "candidhealth/commons/types/street_address_short_zip_optional"
408
429
  require_relative "candidhealth/commons/types/street_address_short_zip"
409
430
  require_relative "candidhealth/commons/types/street_address_long_zip"
431
+ require_relative "candidhealth/commons/types/street_address_long_zip_optional"
410
432
  require_relative "candidhealth/commons/types/regions"
411
433
  require_relative "candidhealth/commons/types/region_states"
412
434
  require_relative "candidhealth/commons/types/region_national"
@@ -430,11 +452,14 @@ require_relative "candidhealth/commons/types/request_validation_error"
430
452
  require_relative "candidhealth/commons/types/updates_disabled_due_to_external_system_integration_error_message"
431
453
  require_relative "candidhealth/commons/types/organization_not_authorized_error_message"
432
454
  require_relative "candidhealth/commons/types/phone_number"
455
+ require_relative "candidhealth/commons/types/phone_number_optional"
433
456
  require_relative "candidhealth/commons/types/phone_number_type"
434
457
  require_relative "candidhealth/commons/types/delay_reason_code"
435
458
  require_relative "candidhealth/commons/types/intended_submission_medium"
436
459
  require_relative "candidhealth/commons/types/billing_provider_commercial_license_type"
437
460
  require_relative "candidhealth/commons/types/epsdt_referral_condition_indicator_code"
461
+ require_relative "candidhealth/commons/types/next_responsible_party"
462
+ require_relative "candidhealth/diagnoses/types/diagnosis_create_optional"
438
463
  require_relative "candidhealth/diagnoses/types/diagnosis_create"
439
464
  require_relative "candidhealth/diagnoses/types/standalone_diagnosis_create"
440
465
  require_relative "candidhealth/diagnoses/types/diagnosis_type_code"
@@ -469,10 +494,14 @@ require_relative "candidhealth/identifiers/types/identifier_create"
469
494
  require_relative "candidhealth/identifiers/types/identifier_update"
470
495
  require_relative "candidhealth/identifiers/types/updatable_identifier"
471
496
  require_relative "candidhealth/individual/types/individual_base"
497
+ require_relative "candidhealth/individual/types/individual_base_optional"
472
498
  require_relative "candidhealth/individual/types/subscriber_base"
499
+ require_relative "candidhealth/individual/types/subscriber_base_optional"
473
500
  require_relative "candidhealth/individual/types/subscriber_create"
501
+ require_relative "candidhealth/individual/types/subscriber_create_optional"
474
502
  require_relative "candidhealth/individual/types/subscriber"
475
503
  require_relative "candidhealth/individual/types/patient_non_insurance_payer_info_create"
504
+ require_relative "candidhealth/individual/types/patient_non_insurance_payer_info_create_optional"
476
505
  require_relative "candidhealth/individual/types/patient_clinical_trial_info_create"
477
506
  require_relative "candidhealth/individual/types/patient_clinical_trial_info"
478
507
  require_relative "candidhealth/individual/types/patient_non_insurance_payer_info"
@@ -495,6 +524,7 @@ require_relative "candidhealth/tags/types/tag_color_enum"
495
524
  require_relative "candidhealth/tasks/commons/types/task_status"
496
525
  require_relative "candidhealth/tasks/commons/types/task_type"
497
526
  require_relative "candidhealth/tasks/commons/types/task_category"
527
+ require_relative "candidhealth/yes_no_indicator/types/yes_no_indicator"
498
528
  require_relative "candidhealth/pre_encounter/common/types/base_model"
499
529
  require_relative "candidhealth/pre_encounter/common/types/external_identifier"
500
530
  require_relative "candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: candidhealth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-05-25 00:00:00.000000000 Z
11
+ date: 2025-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday
@@ -132,13 +132,15 @@ extra_rdoc_files: []
132
132
  files:
133
133
  - lib/candidhealth.rb
134
134
  - lib/candidhealth/auth/client.rb
135
- - lib/candidhealth/auth/v_2/client.rb
136
- - lib/candidhealth/auth/v_2/types/auth_get_token_response.rb
137
- - lib/candidhealth/auth/v_2/types/too_many_requests_error_type.rb
135
+ - lib/candidhealth/auth/default/client.rb
136
+ - lib/candidhealth/auth/default/types/auth_get_token_response.rb
137
+ - lib/candidhealth/auth/default/types/invalid_content_type_error_type.rb
138
+ - lib/candidhealth/auth/default/types/too_many_requests_error_type.rb
138
139
  - lib/candidhealth/billing_notes/client.rb
139
140
  - lib/candidhealth/billing_notes/v_2/client.rb
140
141
  - lib/candidhealth/billing_notes/v_2/types/billing_note.rb
141
142
  - lib/candidhealth/billing_notes/v_2/types/billing_note_base.rb
143
+ - lib/candidhealth/billing_notes/v_2/types/billing_note_base_optional.rb
142
144
  - lib/candidhealth/charge_capture/client.rb
143
145
  - lib/candidhealth/charge_capture/v_1/client.rb
144
146
  - lib/candidhealth/charge_capture/v_1/types/charge_capture.rb
@@ -158,7 +160,9 @@ files:
158
160
  - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb
159
161
  - lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb
160
162
  - lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb
163
+ - lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create_optional.rb
161
164
  - lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb
165
+ - lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create_optional.rb
162
166
  - lib/candidhealth/claims/types/claim.rb
163
167
  - lib/candidhealth/claims/types/claim_status.rb
164
168
  - lib/candidhealth/clinical_trials/v_1/types/clinical_trial.rb
@@ -178,9 +182,11 @@ files:
178
182
  - lib/candidhealth/commons/types/insurance_type_code.rb
179
183
  - lib/candidhealth/commons/types/intended_submission_medium.rb
180
184
  - lib/candidhealth/commons/types/network_type.rb
185
+ - lib/candidhealth/commons/types/next_responsible_party.rb
181
186
  - lib/candidhealth/commons/types/organization_not_authorized_error_message.rb
182
187
  - lib/candidhealth/commons/types/patient_relationship_to_insured_code_all.rb
183
188
  - lib/candidhealth/commons/types/phone_number.rb
189
+ - lib/candidhealth/commons/types/phone_number_optional.rb
184
190
  - lib/candidhealth/commons/types/phone_number_type.rb
185
191
  - lib/candidhealth/commons/types/primitive.rb
186
192
  - lib/candidhealth/commons/types/procedure_modifier.rb
@@ -197,6 +203,7 @@ files:
197
203
  - lib/candidhealth/commons/types/state.rb
198
204
  - lib/candidhealth/commons/types/street_address_base.rb
199
205
  - lib/candidhealth/commons/types/street_address_long_zip.rb
206
+ - lib/candidhealth/commons/types/street_address_long_zip_optional.rb
200
207
  - lib/candidhealth/commons/types/street_address_optional_base.rb
201
208
  - lib/candidhealth/commons/types/street_address_short_zip.rb
202
209
  - lib/candidhealth/commons/types/street_address_short_zip_optional.rb
@@ -230,12 +237,14 @@ files:
230
237
  - lib/candidhealth/custom_schemas/v_1/types/schema_field.rb
231
238
  - lib/candidhealth/custom_schemas/v_1/types/schema_get_multi_response.rb
232
239
  - lib/candidhealth/custom_schemas/v_1/types/schema_instance.rb
240
+ - lib/candidhealth/custom_schemas/v_1/types/schema_instance_optional.rb
233
241
  - lib/candidhealth/custom_schemas/v_1/types/schema_validation_error.rb
234
242
  - lib/candidhealth/custom_schemas/v_1/types/schema_validation_failure.rb
235
243
  - lib/candidhealth/custom_schemas/v_1/types/schema_with_name_already_exists_error.rb
236
244
  - lib/candidhealth/diagnoses/client.rb
237
245
  - lib/candidhealth/diagnoses/types/diagnosis.rb
238
246
  - lib/candidhealth/diagnoses/types/diagnosis_create.rb
247
+ - lib/candidhealth/diagnoses/types/diagnosis_create_optional.rb
239
248
  - lib/candidhealth/diagnoses/types/diagnosis_not_found_error.rb
240
249
  - lib/candidhealth/diagnoses/types/diagnosis_type_code.rb
241
250
  - lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb
@@ -257,6 +266,7 @@ files:
257
266
  - lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider_update.rb
258
267
  - lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider_update_with_optional_address.rb
259
268
  - lib/candidhealth/encounter_providers/v_2/types/ordering_provider.rb
269
+ - lib/candidhealth/encounter_providers/v_2/types/ordering_provider_optional.rb
260
270
  - lib/candidhealth/encounter_providers/v_2/types/ordering_provider_update.rb
261
271
  - lib/candidhealth/encounter_providers/v_2/types/referring_provider.rb
262
272
  - lib/candidhealth/encounter_providers/v_2/types/referring_provider_update.rb
@@ -272,13 +282,17 @@ files:
272
282
  - lib/candidhealth/encounters/v_4/types/billable_status_type.rb
273
283
  - lib/candidhealth/encounters/v_4/types/cash_pay_payer_error_message.rb
274
284
  - lib/candidhealth/encounters/v_4/types/claim_supplemental_information.rb
285
+ - lib/candidhealth/encounters/v_4/types/claim_supplemental_information_optional.rb
275
286
  - lib/candidhealth/encounters/v_4/types/clinical_note.rb
276
287
  - lib/candidhealth/encounters/v_4/types/clinical_note_category.rb
277
288
  - lib/candidhealth/encounters/v_4/types/clinical_note_category_create.rb
289
+ - lib/candidhealth/encounters/v_4/types/clinical_note_category_create_optional.rb
290
+ - lib/candidhealth/encounters/v_4/types/clinical_note_optional.rb
278
291
  - lib/candidhealth/encounters/v_4/types/coding_attribution_type.rb
279
292
  - lib/candidhealth/encounters/v_4/types/encounter.rb
280
293
  - lib/candidhealth/encounters/v_4/types/encounter_base.rb
281
294
  - lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb
295
+ - lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb
282
296
  - lib/candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type.rb
283
297
  - lib/candidhealth/encounters/v_4/types/encounter_guarantor_missing_contact_info_error_type.rb
284
298
  - lib/candidhealth/encounters/v_4/types/encounter_optional.rb
@@ -288,20 +302,26 @@ files:
288
302
  - lib/candidhealth/encounters/v_4/types/encounter_sort_options.rb
289
303
  - lib/candidhealth/encounters/v_4/types/encounter_submission_origin_type.rb
290
304
  - lib/candidhealth/encounters/v_4/types/epsdt_referral.rb
305
+ - lib/candidhealth/encounters/v_4/types/epsdt_referral_optional.rb
291
306
  - lib/candidhealth/encounters/v_4/types/intake_follow_up.rb
292
307
  - lib/candidhealth/encounters/v_4/types/intake_question.rb
308
+ - lib/candidhealth/encounters/v_4/types/intake_question_optional.rb
293
309
  - lib/candidhealth/encounters/v_4/types/intake_response_and_follow_ups.rb
294
310
  - lib/candidhealth/encounters/v_4/types/intervention.rb
295
311
  - lib/candidhealth/encounters/v_4/types/intervention_category.rb
312
+ - lib/candidhealth/encounters/v_4/types/intervention_optional.rb
296
313
  - lib/candidhealth/encounters/v_4/types/invalid_tag_names_error_type.rb
297
314
  - lib/candidhealth/encounters/v_4/types/key_does_not_exist_error.rb
298
315
  - lib/candidhealth/encounters/v_4/types/lab.rb
299
316
  - lib/candidhealth/encounters/v_4/types/lab_code_type.rb
317
+ - lib/candidhealth/encounters/v_4/types/lab_optional.rb
300
318
  - lib/candidhealth/encounters/v_4/types/medication.rb
319
+ - lib/candidhealth/encounters/v_4/types/medication_optional.rb
301
320
  - lib/candidhealth/encounters/v_4/types/multiple_instances_for_schema_error.rb
302
321
  - lib/candidhealth/encounters/v_4/types/note_category.rb
303
322
  - lib/candidhealth/encounters/v_4/types/patient_history_category.rb
304
323
  - lib/candidhealth/encounters/v_4/types/patient_history_category_enum.rb
324
+ - lib/candidhealth/encounters/v_4/types/patient_history_category_optional.rb
305
325
  - lib/candidhealth/encounters/v_4/types/payer_plan_group_payer_does_not_match_insurance_card_error.rb
306
326
  - lib/candidhealth/encounters/v_4/types/report_transmission_code.rb
307
327
  - lib/candidhealth/encounters/v_4/types/report_type_code.rb
@@ -402,6 +422,7 @@ files:
402
422
  - lib/candidhealth/guarantor/v_1/types/guarantor.rb
403
423
  - lib/candidhealth/guarantor/v_1/types/guarantor_base.rb
404
424
  - lib/candidhealth/guarantor/v_1/types/guarantor_create.rb
425
+ - lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb
405
426
  - lib/candidhealth/guarantor/v_1/types/guarantor_update.rb
406
427
  - lib/candidhealth/identifiers/types/identifier.rb
407
428
  - lib/candidhealth/identifiers/types/identifier_base.rb
@@ -422,6 +443,7 @@ files:
422
443
  - lib/candidhealth/import_invoice/v_1/types/invoice_item_update_type.rb
423
444
  - lib/candidhealth/individual/types/gender.rb
424
445
  - lib/candidhealth/individual/types/individual_base.rb
446
+ - lib/candidhealth/individual/types/individual_base_optional.rb
425
447
  - lib/candidhealth/individual/types/patient.rb
426
448
  - lib/candidhealth/individual/types/patient_base.rb
427
449
  - lib/candidhealth/individual/types/patient_clinical_trial_info.rb
@@ -429,11 +451,14 @@ files:
429
451
  - lib/candidhealth/individual/types/patient_create.rb
430
452
  - lib/candidhealth/individual/types/patient_non_insurance_payer_info.rb
431
453
  - lib/candidhealth/individual/types/patient_non_insurance_payer_info_create.rb
454
+ - lib/candidhealth/individual/types/patient_non_insurance_payer_info_create_optional.rb
432
455
  - lib/candidhealth/individual/types/patient_update.rb
433
456
  - lib/candidhealth/individual/types/patient_update_with_optional_address.rb
434
457
  - lib/candidhealth/individual/types/subscriber.rb
435
458
  - lib/candidhealth/individual/types/subscriber_base.rb
459
+ - lib/candidhealth/individual/types/subscriber_base_optional.rb
436
460
  - lib/candidhealth/individual/types/subscriber_create.rb
461
+ - lib/candidhealth/individual/types/subscriber_create_optional.rb
437
462
  - lib/candidhealth/insurance_adjudications/client.rb
438
463
  - lib/candidhealth/insurance_adjudications/v_1/client.rb
439
464
  - lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication.rb
@@ -445,6 +470,7 @@ files:
445
470
  - lib/candidhealth/insurance_cards/v_2/types/insurance_card.rb
446
471
  - lib/candidhealth/insurance_cards/v_2/types/insurance_card_base.rb
447
472
  - lib/candidhealth/insurance_cards/v_2/types/insurance_card_create.rb
473
+ - lib/candidhealth/insurance_cards/v_2/types/insurance_card_create_optional.rb
448
474
  - lib/candidhealth/insurance_payments/client.rb
449
475
  - lib/candidhealth/insurance_payments/v_1/client.rb
450
476
  - lib/candidhealth/insurance_payments/v_1/types/insurance_payment.rb
@@ -684,16 +710,19 @@ files:
684
710
  - lib/candidhealth/service_lines/v_2/client.rb
685
711
  - lib/candidhealth/service_lines/v_2/types/denial_reason_content.rb
686
712
  - lib/candidhealth/service_lines/v_2/types/drug_identification.rb
713
+ - lib/candidhealth/service_lines/v_2/types/drug_identification_optional.rb
687
714
  - lib/candidhealth/service_lines/v_2/types/measurement_unit_code.rb
688
715
  - lib/candidhealth/service_lines/v_2/types/service_id_qualifier.rb
689
716
  - lib/candidhealth/service_lines/v_2/types/service_line.rb
690
717
  - lib/candidhealth/service_lines/v_2/types/service_line_adjustment.rb
691
718
  - lib/candidhealth/service_lines/v_2/types/service_line_create.rb
719
+ - lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb
692
720
  - lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb
693
721
  - lib/candidhealth/service_lines/v_2/types/service_line_denial_reason.rb
694
722
  - lib/candidhealth/service_lines/v_2/types/service_line_era_data.rb
695
723
  - lib/candidhealth/service_lines/v_2/types/service_line_update.rb
696
724
  - lib/candidhealth/service_lines/v_2/types/test_result.rb
725
+ - lib/candidhealth/service_lines/v_2/types/test_result_optional.rb
697
726
  - lib/candidhealth/service_lines/v_2/types/test_result_type.rb
698
727
  - lib/candidhealth/superbills/client.rb
699
728
  - lib/candidhealth/superbills/v_1/client.rb
@@ -739,6 +768,7 @@ files:
739
768
  - lib/candidhealth/x_12/v_1/types/claim_adjustment_reason_code.rb
740
769
  - lib/candidhealth/x_12/v_1/types/rarc.rb
741
770
  - lib/candidhealth/x_12/v_1/types/remittance_advice_remark_code.rb
771
+ - lib/candidhealth/yes_no_indicator/types/yes_no_indicator.rb
742
772
  - lib/core/file_utilities.rb
743
773
  - lib/core/oauth.rb
744
774
  - lib/environment.rb