candidhealth 0.41.2 → 0.41.3
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.
- checksums.yaml +4 -4
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle.rb +13 -1
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_status.rb +1 -0
- data/lib/candidhealth/superbills/client.rb +30 -0
- data/lib/candidhealth/superbills/v_1/client.rb +125 -0
- data/lib/candidhealth/superbills/v_1/types/superbill.rb +108 -0
- data/lib/candidhealth/superbills/v_1/types/superbill_response.rb +65 -0
- data/lib/candidhealth.rb +7 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +2 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5214d69f57a49a1660927a52af327025bbb13421a9b28b0bd444f02623c5fd28
|
4
|
+
data.tar.gz: da7f97e325824d1610009592c1d624e5306915418721c99c216b09349a8ab62e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5dfed78cb1aa5a363b8d939d1f2274ab420d74d441f9948b054da488e4c66bead8bf0d2845cc5adf47a9d06e1fc07e89291fca3b3bb1aaaed3b4ea02b0addb2
|
7
|
+
data.tar.gz: d33e1a76f5a87a747e05c03558d7082e5985aafd564f66190ced046bea2b5f658342ab0cb746c2dab69843b1d6caa72b96fb2c1a3470b633897dd6fa7f5fec8e
|
@@ -18,6 +18,10 @@ module CandidApiClient
|
|
18
18
|
# @return [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundleStatus] Status of the Bundle, Successful means that the Bundle created a corresponding
|
19
19
|
# Claim
|
20
20
|
attr_reader :status
|
21
|
+
# @return [Hash{String => String}] A dictionary of characteristics that are used to group charge captures together
|
22
|
+
# based on the bundling configuration.
|
23
|
+
# Example: {"service_facility.npi": "99999999", "date_of_service": "2023-01-01"}
|
24
|
+
attr_reader :characteristics
|
21
25
|
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapture>] All the underlying ChargeCaptures that are present in a ChargeCaptureBundle.
|
22
26
|
attr_reader :charge_captures
|
23
27
|
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError>] All errors that were found when the bundle was attempted to be created.
|
@@ -36,17 +40,21 @@ module CandidApiClient
|
|
36
40
|
# @param created_encounter_id [String]
|
37
41
|
# @param status [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundleStatus] Status of the Bundle, Successful means that the Bundle created a corresponding
|
38
42
|
# Claim
|
43
|
+
# @param characteristics [Hash{String => String}] A dictionary of characteristics that are used to group charge captures together
|
44
|
+
# based on the bundling configuration.
|
45
|
+
# Example: {"service_facility.npi": "99999999", "date_of_service": "2023-01-01"}
|
39
46
|
# @param charge_captures [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapture>] All the underlying ChargeCaptures that are present in a ChargeCaptureBundle.
|
40
47
|
# @param errors [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError>] All errors that were found when the bundle was attempted to be created.
|
41
48
|
# Errors can correspond to the Bundle as a whole or specific underlying Charge
|
42
49
|
# Captures.
|
43
50
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
44
51
|
# @return [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundle]
|
45
|
-
def initialize(id:, status:, charge_captures:, errors:, created_encounter_id: OMIT,
|
52
|
+
def initialize(id:, status:, characteristics:, charge_captures:, errors:, created_encounter_id: OMIT,
|
46
53
|
additional_properties: nil)
|
47
54
|
@id = id
|
48
55
|
@created_encounter_id = created_encounter_id if created_encounter_id != OMIT
|
49
56
|
@status = status
|
57
|
+
@characteristics = characteristics
|
50
58
|
@charge_captures = charge_captures
|
51
59
|
@errors = errors
|
52
60
|
@additional_properties = additional_properties
|
@@ -54,6 +62,7 @@ module CandidApiClient
|
|
54
62
|
"id": id,
|
55
63
|
"created_encounter_id": created_encounter_id,
|
56
64
|
"status": status,
|
65
|
+
"characteristics": characteristics,
|
57
66
|
"charge_captures": charge_captures,
|
58
67
|
"errors": errors
|
59
68
|
}.reject do |_k, v|
|
@@ -71,6 +80,7 @@ module CandidApiClient
|
|
71
80
|
id = struct["id"]
|
72
81
|
created_encounter_id = struct["created_encounter_id"]
|
73
82
|
status = struct["status"]
|
83
|
+
characteristics = struct["characteristics"]
|
74
84
|
charge_captures = parsed_json["charge_captures"]&.map do |item|
|
75
85
|
item = item.to_json
|
76
86
|
CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: item)
|
@@ -83,6 +93,7 @@ module CandidApiClient
|
|
83
93
|
id: id,
|
84
94
|
created_encounter_id: created_encounter_id,
|
85
95
|
status: status,
|
96
|
+
characteristics: characteristics,
|
86
97
|
charge_captures: charge_captures,
|
87
98
|
errors: errors,
|
88
99
|
additional_properties: struct
|
@@ -106,6 +117,7 @@ module CandidApiClient
|
|
106
117
|
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
107
118
|
obj.created_encounter_id&.is_a?(String) != false || raise("Passed value for field obj.created_encounter_id is not the expected type, validation failed.")
|
108
119
|
obj.status.is_a?(CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundleStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
|
120
|
+
obj.characteristics.is_a?(Hash) != false || raise("Passed value for field obj.characteristics is not the expected type, validation failed.")
|
109
121
|
obj.charge_captures.is_a?(Array) != false || raise("Passed value for field obj.charge_captures is not the expected type, validation failed.")
|
110
122
|
obj.errors.is_a?(Array) != false || raise("Passed value for field obj.errors is not the expected type, validation failed.")
|
111
123
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../requests"
|
4
|
+
require_relative "v_1/client"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module Superbills
|
8
|
+
class Client
|
9
|
+
# @return [CandidApiClient::Superbills::V1::V1Client]
|
10
|
+
attr_reader :v_1
|
11
|
+
|
12
|
+
# @param request_client [CandidApiClient::RequestClient]
|
13
|
+
# @return [CandidApiClient::Superbills::Client]
|
14
|
+
def initialize(request_client:)
|
15
|
+
@v_1 = CandidApiClient::Superbills::V1::V1Client.new(request_client: request_client)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class AsyncClient
|
20
|
+
# @return [CandidApiClient::Superbills::V1::AsyncV1Client]
|
21
|
+
attr_reader :v_1
|
22
|
+
|
23
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
24
|
+
# @return [CandidApiClient::Superbills::AsyncClient]
|
25
|
+
def initialize(request_client:)
|
26
|
+
@v_1 = CandidApiClient::Superbills::V1::AsyncV1Client.new(request_client: request_client)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../requests"
|
4
|
+
require "date"
|
5
|
+
require_relative "../../commons/types/street_address_short_zip"
|
6
|
+
require_relative "types/superbill_response"
|
7
|
+
require "async"
|
8
|
+
|
9
|
+
module CandidApiClient
|
10
|
+
module Superbills
|
11
|
+
module V1
|
12
|
+
class V1Client
|
13
|
+
# @return [CandidApiClient::RequestClient]
|
14
|
+
attr_reader :request_client
|
15
|
+
|
16
|
+
# @param request_client [CandidApiClient::RequestClient]
|
17
|
+
# @return [CandidApiClient::Superbills::V1::V1Client]
|
18
|
+
def initialize(request_client:)
|
19
|
+
@request_client = request_client
|
20
|
+
end
|
21
|
+
|
22
|
+
# @param patient_external_id [String] Empty string not allowed
|
23
|
+
# @param date_range_min [Date] Minimum (inclusive) date selected for the superbill
|
24
|
+
# @param date_range_max [Date] Maximum (inclusive) date selected for the superbill
|
25
|
+
# @param pay_to_address [Hash] Address that will be displayed on the superbill as the 'Pay to' Address. If not
|
26
|
+
# provided this value will be set from available encounter data.Request of type CandidApiClient::Commons::Types::StreetAddressShortZip, as a Hash
|
27
|
+
# * :zip_plus_four_code (String)
|
28
|
+
# * :address_1 (String)
|
29
|
+
# * :address_2 (String)
|
30
|
+
# * :city (String)
|
31
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
32
|
+
# * :zip_code (String)
|
33
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
34
|
+
# @return [CandidApiClient::Superbills::V1::Types::SuperbillResponse]
|
35
|
+
# @example
|
36
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
37
|
+
# api.superbills.v_1.create_superbill(
|
38
|
+
# patient_external_id: "string",
|
39
|
+
# date_range_min: DateTime.parse(2023-01-15),
|
40
|
+
# date_range_max: DateTime.parse(2023-01-15),
|
41
|
+
# pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }
|
42
|
+
# )
|
43
|
+
def create_superbill(patient_external_id:, date_range_min:, date_range_max:, pay_to_address: nil,
|
44
|
+
request_options: nil)
|
45
|
+
response = @request_client.conn.post do |req|
|
46
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
47
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
48
|
+
req.headers = {
|
49
|
+
**(req.headers || {}),
|
50
|
+
**@request_client.get_headers,
|
51
|
+
**(request_options&.additional_headers || {})
|
52
|
+
}.compact
|
53
|
+
req.body = {
|
54
|
+
**(request_options&.additional_body_parameters || {}),
|
55
|
+
patient_external_id: patient_external_id,
|
56
|
+
date_range_min: date_range_min,
|
57
|
+
date_range_max: date_range_max,
|
58
|
+
pay_to_address: pay_to_address
|
59
|
+
}.compact
|
60
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
61
|
+
request_options: request_options)}/api/superbill/v1"
|
62
|
+
end
|
63
|
+
CandidApiClient::Superbills::V1::Types::SuperbillResponse.from_json(json_object: response.body)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
class AsyncV1Client
|
68
|
+
# @return [CandidApiClient::AsyncRequestClient]
|
69
|
+
attr_reader :request_client
|
70
|
+
|
71
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
72
|
+
# @return [CandidApiClient::Superbills::V1::AsyncV1Client]
|
73
|
+
def initialize(request_client:)
|
74
|
+
@request_client = request_client
|
75
|
+
end
|
76
|
+
|
77
|
+
# @param patient_external_id [String] Empty string not allowed
|
78
|
+
# @param date_range_min [Date] Minimum (inclusive) date selected for the superbill
|
79
|
+
# @param date_range_max [Date] Maximum (inclusive) date selected for the superbill
|
80
|
+
# @param pay_to_address [Hash] Address that will be displayed on the superbill as the 'Pay to' Address. If not
|
81
|
+
# provided this value will be set from available encounter data.Request of type CandidApiClient::Commons::Types::StreetAddressShortZip, as a Hash
|
82
|
+
# * :zip_plus_four_code (String)
|
83
|
+
# * :address_1 (String)
|
84
|
+
# * :address_2 (String)
|
85
|
+
# * :city (String)
|
86
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
87
|
+
# * :zip_code (String)
|
88
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
89
|
+
# @return [CandidApiClient::Superbills::V1::Types::SuperbillResponse]
|
90
|
+
# @example
|
91
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
92
|
+
# api.superbills.v_1.create_superbill(
|
93
|
+
# patient_external_id: "string",
|
94
|
+
# date_range_min: DateTime.parse(2023-01-15),
|
95
|
+
# date_range_max: DateTime.parse(2023-01-15),
|
96
|
+
# pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }
|
97
|
+
# )
|
98
|
+
def create_superbill(patient_external_id:, date_range_min:, date_range_max:, pay_to_address: nil,
|
99
|
+
request_options: nil)
|
100
|
+
Async do
|
101
|
+
response = @request_client.conn.post do |req|
|
102
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
103
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
104
|
+
req.headers = {
|
105
|
+
**(req.headers || {}),
|
106
|
+
**@request_client.get_headers,
|
107
|
+
**(request_options&.additional_headers || {})
|
108
|
+
}.compact
|
109
|
+
req.body = {
|
110
|
+
**(request_options&.additional_body_parameters || {}),
|
111
|
+
patient_external_id: patient_external_id,
|
112
|
+
date_range_min: date_range_min,
|
113
|
+
date_range_max: date_range_max,
|
114
|
+
pay_to_address: pay_to_address
|
115
|
+
}.compact
|
116
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
117
|
+
request_options: request_options)}/api/superbill/v1"
|
118
|
+
end
|
119
|
+
CandidApiClient::Superbills::V1::Types::SuperbillResponse.from_json(json_object: response.body)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "date"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module Superbills
|
9
|
+
module V1
|
10
|
+
module Types
|
11
|
+
class Superbill
|
12
|
+
# @return [String] Primary id of the superbill.
|
13
|
+
attr_reader :superbill_id
|
14
|
+
# @return [String] external_id of the patient.
|
15
|
+
attr_reader :patient_external_id
|
16
|
+
# @return [String] Authenticated URL for downloading the generated superbill file.
|
17
|
+
attr_reader :authed_url
|
18
|
+
# @return [Date] Minimum (inclusive) date selected for this superbill.
|
19
|
+
attr_reader :date_range_min
|
20
|
+
# @return [Date] Maximum (inclusive) date selected for this superbill.
|
21
|
+
attr_reader :date_range_max
|
22
|
+
# @return [String] Original filename of the superbill.
|
23
|
+
attr_reader :file_name
|
24
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
25
|
+
attr_reader :additional_properties
|
26
|
+
# @return [Object]
|
27
|
+
attr_reader :_field_set
|
28
|
+
protected :_field_set
|
29
|
+
|
30
|
+
OMIT = Object.new
|
31
|
+
|
32
|
+
# @param superbill_id [String] Primary id of the superbill.
|
33
|
+
# @param patient_external_id [String] external_id of the patient.
|
34
|
+
# @param authed_url [String] Authenticated URL for downloading the generated superbill file.
|
35
|
+
# @param date_range_min [Date] Minimum (inclusive) date selected for this superbill.
|
36
|
+
# @param date_range_max [Date] Maximum (inclusive) date selected for this superbill.
|
37
|
+
# @param file_name [String] Original filename of the superbill.
|
38
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
39
|
+
# @return [CandidApiClient::Superbills::V1::Types::Superbill]
|
40
|
+
def initialize(superbill_id:, patient_external_id:, authed_url:, date_range_min:, date_range_max:,
|
41
|
+
file_name:, additional_properties: nil)
|
42
|
+
@superbill_id = superbill_id
|
43
|
+
@patient_external_id = patient_external_id
|
44
|
+
@authed_url = authed_url
|
45
|
+
@date_range_min = date_range_min
|
46
|
+
@date_range_max = date_range_max
|
47
|
+
@file_name = file_name
|
48
|
+
@additional_properties = additional_properties
|
49
|
+
@_field_set = {
|
50
|
+
"superbill_id": superbill_id,
|
51
|
+
"patient_external_id": patient_external_id,
|
52
|
+
"authed_url": authed_url,
|
53
|
+
"date_range_min": date_range_min,
|
54
|
+
"date_range_max": date_range_max,
|
55
|
+
"file_name": file_name
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# Deserialize a JSON object to an instance of Superbill
|
60
|
+
#
|
61
|
+
# @param json_object [String]
|
62
|
+
# @return [CandidApiClient::Superbills::V1::Types::Superbill]
|
63
|
+
def self.from_json(json_object:)
|
64
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
65
|
+
parsed_json = JSON.parse(json_object)
|
66
|
+
superbill_id = struct["superbill_id"]
|
67
|
+
patient_external_id = struct["patient_external_id"]
|
68
|
+
authed_url = struct["authed_url"]
|
69
|
+
date_range_min = (Date.parse(parsed_json["date_range_min"]) unless parsed_json["date_range_min"].nil?)
|
70
|
+
date_range_max = (Date.parse(parsed_json["date_range_max"]) unless parsed_json["date_range_max"].nil?)
|
71
|
+
file_name = struct["file_name"]
|
72
|
+
new(
|
73
|
+
superbill_id: superbill_id,
|
74
|
+
patient_external_id: patient_external_id,
|
75
|
+
authed_url: authed_url,
|
76
|
+
date_range_min: date_range_min,
|
77
|
+
date_range_max: date_range_max,
|
78
|
+
file_name: file_name,
|
79
|
+
additional_properties: struct
|
80
|
+
)
|
81
|
+
end
|
82
|
+
|
83
|
+
# Serialize an instance of Superbill to a JSON object
|
84
|
+
#
|
85
|
+
# @return [String]
|
86
|
+
def to_json(*_args)
|
87
|
+
@_field_set&.to_json
|
88
|
+
end
|
89
|
+
|
90
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
91
|
+
# hash and check each fields type against the current object's property
|
92
|
+
# definitions.
|
93
|
+
#
|
94
|
+
# @param obj [Object]
|
95
|
+
# @return [Void]
|
96
|
+
def self.validate_raw(obj:)
|
97
|
+
obj.superbill_id.is_a?(String) != false || raise("Passed value for field obj.superbill_id is not the expected type, validation failed.")
|
98
|
+
obj.patient_external_id.is_a?(String) != false || raise("Passed value for field obj.patient_external_id is not the expected type, validation failed.")
|
99
|
+
obj.authed_url.is_a?(String) != false || raise("Passed value for field obj.authed_url is not the expected type, validation failed.")
|
100
|
+
obj.date_range_min.is_a?(Date) != false || raise("Passed value for field obj.date_range_min is not the expected type, validation failed.")
|
101
|
+
obj.date_range_max.is_a?(Date) != false || raise("Passed value for field obj.date_range_max is not the expected type, validation failed.")
|
102
|
+
obj.file_name.is_a?(String) != false || raise("Passed value for field obj.file_name is not the expected type, validation failed.")
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "superbill"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module Superbills
|
9
|
+
module V1
|
10
|
+
module Types
|
11
|
+
class SuperbillResponse
|
12
|
+
# @return [Array<CandidApiClient::Superbills::V1::Types::Superbill>] Each object represents a single Superbill for a single billing provider.
|
13
|
+
attr_reader :superbills
|
14
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
15
|
+
attr_reader :additional_properties
|
16
|
+
# @return [Object]
|
17
|
+
attr_reader :_field_set
|
18
|
+
protected :_field_set
|
19
|
+
|
20
|
+
OMIT = Object.new
|
21
|
+
|
22
|
+
# @param superbills [Array<CandidApiClient::Superbills::V1::Types::Superbill>] Each object represents a single Superbill for a single billing provider.
|
23
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
24
|
+
# @return [CandidApiClient::Superbills::V1::Types::SuperbillResponse]
|
25
|
+
def initialize(superbills:, additional_properties: nil)
|
26
|
+
@superbills = superbills
|
27
|
+
@additional_properties = additional_properties
|
28
|
+
@_field_set = { "superbills": superbills }
|
29
|
+
end
|
30
|
+
|
31
|
+
# Deserialize a JSON object to an instance of SuperbillResponse
|
32
|
+
#
|
33
|
+
# @param json_object [String]
|
34
|
+
# @return [CandidApiClient::Superbills::V1::Types::SuperbillResponse]
|
35
|
+
def self.from_json(json_object:)
|
36
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
37
|
+
parsed_json = JSON.parse(json_object)
|
38
|
+
superbills = parsed_json["superbills"]&.map do |item|
|
39
|
+
item = item.to_json
|
40
|
+
CandidApiClient::Superbills::V1::Types::Superbill.from_json(json_object: item)
|
41
|
+
end
|
42
|
+
new(superbills: superbills, additional_properties: struct)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Serialize an instance of SuperbillResponse to a JSON object
|
46
|
+
#
|
47
|
+
# @return [String]
|
48
|
+
def to_json(*_args)
|
49
|
+
@_field_set&.to_json
|
50
|
+
end
|
51
|
+
|
52
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
53
|
+
# hash and check each fields type against the current object's property
|
54
|
+
# definitions.
|
55
|
+
#
|
56
|
+
# @param obj [Object]
|
57
|
+
# @return [Void]
|
58
|
+
def self.validate_raw(obj:)
|
59
|
+
obj.superbills.is_a?(Array) != false || raise("Passed value for field obj.superbills is not the expected type, validation failed.")
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
data/lib/candidhealth.rb
CHANGED
@@ -34,6 +34,7 @@ require_relative "candidhealth/patient_refunds/client"
|
|
34
34
|
require_relative "candidhealth/payer_plan_groups/client"
|
35
35
|
require_relative "candidhealth/payers/client"
|
36
36
|
require_relative "candidhealth/service_lines/client"
|
37
|
+
require_relative "candidhealth/superbills/client"
|
37
38
|
require_relative "candidhealth/tasks/client"
|
38
39
|
require_relative "candidhealth/write_offs/client"
|
39
40
|
require_relative "candidhealth/pre_encounter/client"
|
@@ -102,6 +103,8 @@ module CandidApiClient
|
|
102
103
|
attr_reader :payers
|
103
104
|
# @return [CandidApiClient::ServiceLines::Client]
|
104
105
|
attr_reader :service_lines
|
106
|
+
# @return [CandidApiClient::Superbills::Client]
|
107
|
+
attr_reader :superbills
|
105
108
|
# @return [CandidApiClient::Tasks::Client]
|
106
109
|
attr_reader :tasks
|
107
110
|
# @return [CandidApiClient::WriteOffs::Client]
|
@@ -169,6 +172,7 @@ module CandidApiClient
|
|
169
172
|
@payer_plan_groups = CandidApiClient::PayerPlanGroups::Client.new(request_client: @request_client)
|
170
173
|
@payers = CandidApiClient::Payers::Client.new(request_client: @request_client)
|
171
174
|
@service_lines = CandidApiClient::ServiceLines::Client.new(request_client: @request_client)
|
175
|
+
@superbills = CandidApiClient::Superbills::Client.new(request_client: @request_client)
|
172
176
|
@tasks = CandidApiClient::Tasks::Client.new(request_client: @request_client)
|
173
177
|
@write_offs = CandidApiClient::WriteOffs::Client.new(request_client: @request_client)
|
174
178
|
@pre_encounter = CandidApiClient::PreEncounter::Client.new(request_client: @request_client)
|
@@ -238,6 +242,8 @@ module CandidApiClient
|
|
238
242
|
attr_reader :payers
|
239
243
|
# @return [CandidApiClient::ServiceLines::AsyncClient]
|
240
244
|
attr_reader :service_lines
|
245
|
+
# @return [CandidApiClient::Superbills::AsyncClient]
|
246
|
+
attr_reader :superbills
|
241
247
|
# @return [CandidApiClient::Tasks::AsyncClient]
|
242
248
|
attr_reader :tasks
|
243
249
|
# @return [CandidApiClient::WriteOffs::AsyncClient]
|
@@ -305,6 +311,7 @@ module CandidApiClient
|
|
305
311
|
@payer_plan_groups = CandidApiClient::PayerPlanGroups::AsyncClient.new(request_client: @async_request_client)
|
306
312
|
@payers = CandidApiClient::Payers::AsyncClient.new(request_client: @async_request_client)
|
307
313
|
@service_lines = CandidApiClient::ServiceLines::AsyncClient.new(request_client: @async_request_client)
|
314
|
+
@superbills = CandidApiClient::Superbills::AsyncClient.new(request_client: @async_request_client)
|
308
315
|
@tasks = CandidApiClient::Tasks::AsyncClient.new(request_client: @async_request_client)
|
309
316
|
@write_offs = CandidApiClient::WriteOffs::AsyncClient.new(request_client: @async_request_client)
|
310
317
|
@pre_encounter = CandidApiClient::PreEncounter::AsyncClient.new(request_client: @async_request_client)
|
data/lib/requests.rb
CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
|
44
44
|
# @return [Hash{String => String}]
|
45
45
|
def get_headers
|
46
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3" }
|
47
47
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
48
48
|
headers
|
49
49
|
end
|
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
|
88
88
|
# @return [Hash{String => String}]
|
89
89
|
def get_headers
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3" }
|
91
91
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
92
|
headers
|
93
93
|
end
|
data/lib/types_export.rb
CHANGED
@@ -269,6 +269,8 @@ require_relative "candidhealth/service_lines/v_2/types/test_result_type"
|
|
269
269
|
require_relative "candidhealth/service_lines/v_2/types/test_result"
|
270
270
|
require_relative "candidhealth/service_lines/v_2/types/service_id_qualifier"
|
271
271
|
require_relative "candidhealth/service_lines/v_2/types/measurement_unit_code"
|
272
|
+
require_relative "candidhealth/superbills/v_1/types/superbill"
|
273
|
+
require_relative "candidhealth/superbills/v_1/types/superbill_response"
|
272
274
|
require_relative "candidhealth/tasks/v_3/types/task"
|
273
275
|
require_relative "candidhealth/tasks/v_3/types/task_note"
|
274
276
|
require_relative "candidhealth/tasks/v_3/types/task_assignment"
|
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.41.
|
4
|
+
version: 0.41.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -641,6 +641,10 @@ files:
|
|
641
641
|
- lib/candidhealth/service_lines/v_2/types/service_line_update.rb
|
642
642
|
- lib/candidhealth/service_lines/v_2/types/test_result.rb
|
643
643
|
- lib/candidhealth/service_lines/v_2/types/test_result_type.rb
|
644
|
+
- lib/candidhealth/superbills/client.rb
|
645
|
+
- lib/candidhealth/superbills/v_1/client.rb
|
646
|
+
- lib/candidhealth/superbills/v_1/types/superbill.rb
|
647
|
+
- lib/candidhealth/superbills/v_1/types/superbill_response.rb
|
644
648
|
- lib/candidhealth/tags/types/tag.rb
|
645
649
|
- lib/candidhealth/tags/types/tag_color_enum.rb
|
646
650
|
- lib/candidhealth/tags/types/tag_create.rb
|