candidhealth 0.42.5 → 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 (26) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/charge_capture/v_1/client.rb +18 -24
  3. data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +8 -8
  4. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_error.rb +21 -19
  5. data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +85 -129
  6. data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle.rb → charge_capture_claim_creation.rb} +18 -30
  7. data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle_page.rb → charge_capture_claim_creation_page.rb} +9 -9
  8. data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle_sort_field.rb → charge_capture_claim_creation_sort_field.rb} +1 -1
  9. data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle_status.rb → charge_capture_claim_creation_status.rb} +1 -1
  10. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb +100 -0
  11. data/lib/candidhealth/encounter_attachments/client.rb +30 -0
  12. data/lib/candidhealth/encounter_attachments/v_1/client.rb +199 -0
  13. data/lib/candidhealth/encounter_attachments/v_1/types/base_attachment.rb +98 -0
  14. data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment.rb +115 -0
  15. data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment_type.rb +13 -0
  16. data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
  17. data/lib/candidhealth/encounters/v_4/client.rb +20 -20
  18. data/lib/candidhealth/guarantor/v_1/client.rb +2 -2
  19. data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
  20. data/lib/candidhealth.rb +7 -0
  21. data/lib/core/file_utilities.rb +26 -0
  22. data/lib/requests.rb +5 -2
  23. data/lib/types_export.rb +8 -6
  24. metadata +46 -7
  25. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_summary.rb +0 -94
  26. data/lib/candidhealth/commons/types/not_implemented_error_message.rb +0 -60
@@ -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