candidhealth 0.42.4 → 0.43.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 (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/billing_notes/v_2/types/billing_note_optional.rb +112 -0
  3. data/lib/candidhealth/charge_capture/v_1/client.rb +22 -28
  4. data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +8 -8
  5. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +4 -4
  6. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_error.rb +21 -19
  7. data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +85 -129
  8. data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle.rb → charge_capture_claim_creation.rb} +18 -30
  9. data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle_page.rb → charge_capture_claim_creation_page.rb} +9 -9
  10. data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle_sort_field.rb → charge_capture_claim_creation_sort_field.rb} +1 -1
  11. data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle_status.rb → charge_capture_claim_creation_status.rb} +1 -1
  12. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb +100 -0
  13. data/lib/candidhealth/encounter_attachments/client.rb +30 -0
  14. data/lib/candidhealth/encounter_attachments/v_1/client.rb +199 -0
  15. data/lib/candidhealth/encounter_attachments/v_1/types/base_attachment.rb +98 -0
  16. data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment.rb +115 -0
  17. data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment_type.rb +13 -0
  18. data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
  19. data/lib/candidhealth/encounters/v_4/client.rb +20 -20
  20. data/lib/candidhealth/guarantor/v_1/client.rb +2 -2
  21. data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
  22. data/lib/candidhealth.rb +7 -0
  23. data/lib/core/file_utilities.rb +26 -0
  24. data/lib/requests.rb +5 -2
  25. data/lib/types_export.rb +9 -6
  26. metadata +48 -8
  27. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_summary.rb +0 -94
  28. data/lib/candidhealth/commons/types/not_implemented_error_message.rb +0 -60
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: 0.42.4
4
+ version: 0.43.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-05-07 00:00:00.000000000 Z
11
+ date: 2025-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday
@@ -50,6 +50,26 @@ dependencies:
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '3.0'
53
+ - !ruby/object:Gem::Dependency
54
+ name: faraday-multipart
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0.0'
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '2.0'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0.0'
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '2.0'
53
73
  - !ruby/object:Gem::Dependency
54
74
  name: faraday-net_http
55
75
  requirement: !ruby/object:Gem::Requirement
@@ -90,6 +110,20 @@ dependencies:
90
110
  - - "<"
91
111
  - !ruby/object:Gem::Version
92
112
  version: '3.0'
113
+ - !ruby/object:Gem::Dependency
114
+ name: mini_mime
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ type: :runtime
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
93
127
  description: ''
94
128
  email: ''
95
129
  executables: []
@@ -105,6 +139,7 @@ files:
105
139
  - lib/candidhealth/billing_notes/v_2/client.rb
106
140
  - lib/candidhealth/billing_notes/v_2/types/billing_note.rb
107
141
  - lib/candidhealth/billing_notes/v_2/types/billing_note_base.rb
142
+ - lib/candidhealth/billing_notes/v_2/types/billing_note_optional.rb
108
143
  - lib/candidhealth/charge_capture/client.rb
109
144
  - lib/candidhealth/charge_capture/v_1/client.rb
110
145
  - lib/candidhealth/charge_capture/v_1/types/charge_capture.rb
@@ -116,11 +151,11 @@ files:
116
151
  - lib/candidhealth/charge_capture/v_1/types/charge_capture_status.rb
117
152
  - lib/candidhealth/charge_capture_bundles/client.rb
118
153
  - lib/candidhealth/charge_capture_bundles/v_1/client.rb
119
- - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle.rb
120
- - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_page.rb
121
- - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_sort_field.rb
122
- - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_status.rb
123
- - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_summary.rb
154
+ - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation.rb
155
+ - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_page.rb
156
+ - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_sort_field.rb
157
+ - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_status.rb
158
+ - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb
124
159
  - lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb
125
160
  - lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb
126
161
  - lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb
@@ -143,7 +178,6 @@ files:
143
178
  - lib/candidhealth/commons/types/insurance_type_code.rb
144
179
  - lib/candidhealth/commons/types/intended_submission_medium.rb
145
180
  - lib/candidhealth/commons/types/network_type.rb
146
- - lib/candidhealth/commons/types/not_implemented_error_message.rb
147
181
  - lib/candidhealth/commons/types/organization_not_authorized_error_message.rb
148
182
  - lib/candidhealth/commons/types/patient_relationship_to_insured_code_all.rb
149
183
  - lib/candidhealth/commons/types/phone_number.rb
@@ -204,6 +238,11 @@ files:
204
238
  - lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb
205
239
  - lib/candidhealth/eligibility/client.rb
206
240
  - lib/candidhealth/eligibility/v_2/client.rb
241
+ - lib/candidhealth/encounter_attachments/client.rb
242
+ - lib/candidhealth/encounter_attachments/v_1/client.rb
243
+ - lib/candidhealth/encounter_attachments/v_1/types/base_attachment.rb
244
+ - lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment.rb
245
+ - lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment_type.rb
207
246
  - lib/candidhealth/encounter_providers/client.rb
208
247
  - lib/candidhealth/encounter_providers/v_2/client.rb
209
248
  - lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb
@@ -685,6 +724,7 @@ files:
685
724
  - lib/candidhealth/x_12/v_1/types/claim_adjustment_reason_code.rb
686
725
  - lib/candidhealth/x_12/v_1/types/rarc.rb
687
726
  - lib/candidhealth/x_12/v_1/types/remittance_advice_remark_code.rb
727
+ - lib/core/file_utilities.rb
688
728
  - lib/core/oauth.rb
689
729
  - lib/environment.rb
690
730
  - lib/gemconfig.rb
@@ -1,94 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "ostruct"
4
- require "json"
5
-
6
- module CandidApiClient
7
- module ChargeCaptureBundles
8
- module V1
9
- module Types
10
- class ChargeCaptureBundleSummary
11
- # @return [Integer] The count of charge captures which are not part of a claim creation.
12
- attr_reader :charge_capture_charges_not_linked_to_claims_count
13
- # @return [Integer] The count of charge capture bundles that have a bundle status of NOT_STARTED.
14
- attr_reader :charge_capture_bundles_not_started_count
15
- # @return [Integer] The count of charge capture bundles that have a bundle status of HELD.
16
- attr_reader :charge_capture_held_bundles_count
17
- # @return [Integer] The count of charge capture bundles that have a bundle status of IN_ERROR.
18
- attr_reader :charge_capture_bundles_in_error_count
19
- # @return [Integer] The number of ChargeCapturePostBilledChange items that are unresolved.
20
- attr_reader :charge_capture_unresolved_change_count
21
- # @return [OpenStruct] Additional properties unmapped to the current class definition
22
- attr_reader :additional_properties
23
- # @return [Object]
24
- attr_reader :_field_set
25
- protected :_field_set
26
-
27
- OMIT = Object.new
28
-
29
- # @param charge_capture_charges_not_linked_to_claims_count [Integer] The count of charge captures which are not part of a claim creation.
30
- # @param charge_capture_bundles_not_started_count [Integer] The count of charge capture bundles that have a bundle status of NOT_STARTED.
31
- # @param charge_capture_held_bundles_count [Integer] The count of charge capture bundles that have a bundle status of HELD.
32
- # @param charge_capture_bundles_in_error_count [Integer] The count of charge capture bundles that have a bundle status of IN_ERROR.
33
- # @param charge_capture_unresolved_change_count [Integer] The number of ChargeCapturePostBilledChange items that are unresolved.
34
- # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
35
- # @return [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundleSummary]
36
- def initialize(charge_capture_charges_not_linked_to_claims_count:, charge_capture_bundles_not_started_count:,
37
- charge_capture_held_bundles_count:, charge_capture_bundles_in_error_count:, charge_capture_unresolved_change_count:, additional_properties: nil)
38
- @charge_capture_charges_not_linked_to_claims_count = charge_capture_charges_not_linked_to_claims_count
39
- @charge_capture_bundles_not_started_count = charge_capture_bundles_not_started_count
40
- @charge_capture_held_bundles_count = charge_capture_held_bundles_count
41
- @charge_capture_bundles_in_error_count = charge_capture_bundles_in_error_count
42
- @charge_capture_unresolved_change_count = charge_capture_unresolved_change_count
43
- @additional_properties = additional_properties
44
- @_field_set = {
45
- "charge_capture_charges_not_linked_to_claims_count": charge_capture_charges_not_linked_to_claims_count, "charge_capture_bundles_not_started_count": charge_capture_bundles_not_started_count, "charge_capture_held_bundles_count": charge_capture_held_bundles_count, "charge_capture_bundles_in_error_count": charge_capture_bundles_in_error_count, "charge_capture_unresolved_change_count": charge_capture_unresolved_change_count
46
- }
47
- end
48
-
49
- # Deserialize a JSON object to an instance of ChargeCaptureBundleSummary
50
- #
51
- # @param json_object [String]
52
- # @return [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundleSummary]
53
- def self.from_json(json_object:)
54
- struct = JSON.parse(json_object, object_class: OpenStruct)
55
- charge_capture_charges_not_linked_to_claims_count = struct["charge_capture_charges_not_linked_to_claims_count"]
56
- charge_capture_bundles_not_started_count = struct["charge_capture_bundles_not_started_count"]
57
- charge_capture_held_bundles_count = struct["charge_capture_held_bundles_count"]
58
- charge_capture_bundles_in_error_count = struct["charge_capture_bundles_in_error_count"]
59
- charge_capture_unresolved_change_count = struct["charge_capture_unresolved_change_count"]
60
- new(
61
- charge_capture_charges_not_linked_to_claims_count: charge_capture_charges_not_linked_to_claims_count,
62
- charge_capture_bundles_not_started_count: charge_capture_bundles_not_started_count,
63
- charge_capture_held_bundles_count: charge_capture_held_bundles_count,
64
- charge_capture_bundles_in_error_count: charge_capture_bundles_in_error_count,
65
- charge_capture_unresolved_change_count: charge_capture_unresolved_change_count,
66
- additional_properties: struct
67
- )
68
- end
69
-
70
- # Serialize an instance of ChargeCaptureBundleSummary 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.charge_capture_charges_not_linked_to_claims_count.is_a?(Integer) != false || raise("Passed value for field obj.charge_capture_charges_not_linked_to_claims_count is not the expected type, validation failed.")
85
- obj.charge_capture_bundles_not_started_count.is_a?(Integer) != false || raise("Passed value for field obj.charge_capture_bundles_not_started_count is not the expected type, validation failed.")
86
- obj.charge_capture_held_bundles_count.is_a?(Integer) != false || raise("Passed value for field obj.charge_capture_held_bundles_count is not the expected type, validation failed.")
87
- obj.charge_capture_bundles_in_error_count.is_a?(Integer) != false || raise("Passed value for field obj.charge_capture_bundles_in_error_count is not the expected type, validation failed.")
88
- obj.charge_capture_unresolved_change_count.is_a?(Integer) != false || raise("Passed value for field obj.charge_capture_unresolved_change_count is not the expected type, validation failed.")
89
- end
90
- end
91
- end
92
- end
93
- end
94
- end
@@ -1,60 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "ostruct"
4
- require "json"
5
-
6
- module CandidApiClient
7
- module Commons
8
- module Types
9
- class NotImplementedErrorMessage
10
- # @return [String]
11
- attr_reader :message
12
- # @return [OpenStruct] Additional properties unmapped to the current class definition
13
- attr_reader :additional_properties
14
- # @return [Object]
15
- attr_reader :_field_set
16
- protected :_field_set
17
-
18
- OMIT = Object.new
19
-
20
- # @param message [String]
21
- # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
22
- # @return [CandidApiClient::Commons::Types::NotImplementedErrorMessage]
23
- def initialize(message: OMIT, additional_properties: nil)
24
- @message = message if message != OMIT
25
- @additional_properties = additional_properties
26
- @_field_set = { "message": message }.reject do |_k, v|
27
- v == OMIT
28
- end
29
- end
30
-
31
- # Deserialize a JSON object to an instance of NotImplementedErrorMessage
32
- #
33
- # @param json_object [String]
34
- # @return [CandidApiClient::Commons::Types::NotImplementedErrorMessage]
35
- def self.from_json(json_object:)
36
- struct = JSON.parse(json_object, object_class: OpenStruct)
37
- message = struct["message"]
38
- new(message: message, additional_properties: struct)
39
- end
40
-
41
- # Serialize an instance of NotImplementedErrorMessage to a JSON object
42
- #
43
- # @return [String]
44
- def to_json(*_args)
45
- @_field_set&.to_json
46
- end
47
-
48
- # Leveraged for Union-type generation, validate_raw attempts to parse the given
49
- # hash and check each fields type against the current object's property
50
- # definitions.
51
- #
52
- # @param obj [Object]
53
- # @return [Void]
54
- def self.validate_raw(obj:)
55
- obj.message&.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
56
- end
57
- end
58
- end
59
- end
60
- end