candidhealth 0.40.1 → 0.40.2
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/v_1/client.rb +18 -4
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +14 -2
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_post_billed_change.rb +80 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_sort_field.rb +14 -0
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +32 -8
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_sort_field.rb +13 -0
- data/lib/candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association.rb +15 -1
- data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization_unit.rb +1 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off_reason.rb +1 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +3 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e81f591e61c1d54bf64e5f14cad0b1fe8c0db21f6c9c1382dbe108807399637
|
4
|
+
data.tar.gz: 4babf8a698ec0d2009e6eb5e7db21cd64b523fff991decd816294653301739c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d95f068a3d201ad782285b2d7e3edc32bf8b959f67e21b27db1b2981eb3c3282d8f02896f8dc55a35320d91ad0710455930ec25dbd7eb70abb3ce92d4c838b43
|
7
|
+
data.tar.gz: 5a201f238e0f84c64d97812d20d803ac632b9553c00ec85741a161e284161b699e986103ce64969448f853ac4d4cebdf5d5f93deeacad043e1f6e623128f7c46
|
@@ -5,6 +5,8 @@ require_relative "types/charge_capture_data"
|
|
5
5
|
require "date"
|
6
6
|
require_relative "types/charge_capture_status"
|
7
7
|
require_relative "types/charge_capture"
|
8
|
+
require_relative "types/charge_capture_sort_field"
|
9
|
+
require_relative "../../commons/types/sort_direction"
|
8
10
|
require_relative "types/charge_capture_page"
|
9
11
|
require "async"
|
10
12
|
|
@@ -660,6 +662,8 @@ module CandidApiClient
|
|
660
662
|
end
|
661
663
|
|
662
664
|
# @param limit [Integer] Maximum number of entities per page, defaults to 100.
|
665
|
+
# @param sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureSortField] Defaults to created_at
|
666
|
+
# @param sort_direction [CandidApiClient::Commons::Types::SortDirection] Sort direction. Defaults to descending order if not provided.
|
663
667
|
# @param page_token [String]
|
664
668
|
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
665
669
|
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge captures
|
@@ -676,6 +680,8 @@ module CandidApiClient
|
|
676
680
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
677
681
|
# api.charge_capture.v_1.get_all(
|
678
682
|
# limit: 1,
|
683
|
+
# sort: CREATED_AT,
|
684
|
+
# sort_direction: ASC,
|
679
685
|
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
680
686
|
# patient_external_id: "string",
|
681
687
|
# status: PLANNED,
|
@@ -683,8 +689,8 @@ module CandidApiClient
|
|
683
689
|
# date_of_service: DateTime.parse(2023-01-15),
|
684
690
|
# exclude_bundled: true
|
685
691
|
# )
|
686
|
-
def get_all(limit: nil,
|
687
|
-
date_of_service: nil, exclude_bundled: nil, request_options: nil)
|
692
|
+
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
|
693
|
+
charge_external_id: nil, date_of_service: nil, exclude_bundled: nil, request_options: nil)
|
688
694
|
response = @request_client.conn.get do |req|
|
689
695
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
690
696
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -696,6 +702,8 @@ module CandidApiClient
|
|
696
702
|
req.params = {
|
697
703
|
**(request_options&.additional_query_parameters || {}),
|
698
704
|
"limit": limit,
|
705
|
+
"sort": sort,
|
706
|
+
"sort_direction": sort_direction,
|
699
707
|
"page_token": page_token,
|
700
708
|
"patient_external_id": patient_external_id,
|
701
709
|
"status": status,
|
@@ -1367,6 +1375,8 @@ module CandidApiClient
|
|
1367
1375
|
end
|
1368
1376
|
|
1369
1377
|
# @param limit [Integer] Maximum number of entities per page, defaults to 100.
|
1378
|
+
# @param sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureSortField] Defaults to created_at
|
1379
|
+
# @param sort_direction [CandidApiClient::Commons::Types::SortDirection] Sort direction. Defaults to descending order if not provided.
|
1370
1380
|
# @param page_token [String]
|
1371
1381
|
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
1372
1382
|
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge captures
|
@@ -1383,6 +1393,8 @@ module CandidApiClient
|
|
1383
1393
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1384
1394
|
# api.charge_capture.v_1.get_all(
|
1385
1395
|
# limit: 1,
|
1396
|
+
# sort: CREATED_AT,
|
1397
|
+
# sort_direction: ASC,
|
1386
1398
|
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
1387
1399
|
# patient_external_id: "string",
|
1388
1400
|
# status: PLANNED,
|
@@ -1390,8 +1402,8 @@ module CandidApiClient
|
|
1390
1402
|
# date_of_service: DateTime.parse(2023-01-15),
|
1391
1403
|
# exclude_bundled: true
|
1392
1404
|
# )
|
1393
|
-
def get_all(limit: nil,
|
1394
|
-
date_of_service: nil, exclude_bundled: nil, request_options: nil)
|
1405
|
+
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
|
1406
|
+
charge_external_id: nil, date_of_service: nil, exclude_bundled: nil, request_options: nil)
|
1395
1407
|
Async do
|
1396
1408
|
response = @request_client.conn.get do |req|
|
1397
1409
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1404,6 +1416,8 @@ module CandidApiClient
|
|
1404
1416
|
req.params = {
|
1405
1417
|
**(request_options&.additional_query_parameters || {}),
|
1406
1418
|
"limit": limit,
|
1419
|
+
"sort": sort,
|
1420
|
+
"sort_direction": sort_direction,
|
1407
1421
|
"page_token": page_token,
|
1408
1422
|
"patient_external_id": patient_external_id,
|
1409
1423
|
"status": status,
|
@@ -3,6 +3,7 @@
|
|
3
3
|
require_relative "charge_capture_status"
|
4
4
|
require_relative "charge_capture_data"
|
5
5
|
require "date"
|
6
|
+
require_relative "charge_capture_post_billed_change"
|
6
7
|
require "ostruct"
|
7
8
|
require "json"
|
8
9
|
|
@@ -26,6 +27,8 @@ module CandidApiClient
|
|
26
27
|
# @return [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
27
28
|
# This date must be the local date in the timezone where the service occurred.
|
28
29
|
attr_reader :date_of_service
|
30
|
+
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
|
31
|
+
attr_reader :updates
|
29
32
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
30
33
|
attr_reader :additional_properties
|
31
34
|
# @return [Object]
|
@@ -42,9 +45,10 @@ module CandidApiClient
|
|
42
45
|
# @param ehr_source_url [String]
|
43
46
|
# @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
44
47
|
# This date must be the local date in the timezone where the service occurred.
|
48
|
+
# @param updates [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
|
45
49
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
46
50
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
|
47
|
-
def initialize(id:, status:, charge_capture_data:, patient_external_id:, charge_external_id:,
|
51
|
+
def initialize(id:, status:, charge_capture_data:, patient_external_id:, charge_external_id:, updates:,
|
48
52
|
ehr_source_url: OMIT, date_of_service: OMIT, additional_properties: nil)
|
49
53
|
@id = id
|
50
54
|
@status = status
|
@@ -53,6 +57,7 @@ module CandidApiClient
|
|
53
57
|
@charge_external_id = charge_external_id
|
54
58
|
@ehr_source_url = ehr_source_url if ehr_source_url != OMIT
|
55
59
|
@date_of_service = date_of_service if date_of_service != OMIT
|
60
|
+
@updates = updates
|
56
61
|
@additional_properties = additional_properties
|
57
62
|
@_field_set = {
|
58
63
|
"id": id,
|
@@ -61,7 +66,8 @@ module CandidApiClient
|
|
61
66
|
"patient_external_id": patient_external_id,
|
62
67
|
"charge_external_id": charge_external_id,
|
63
68
|
"ehr_source_url": ehr_source_url,
|
64
|
-
"date_of_service": date_of_service
|
69
|
+
"date_of_service": date_of_service,
|
70
|
+
"updates": updates
|
65
71
|
}.reject do |_k, v|
|
66
72
|
v == OMIT
|
67
73
|
end
|
@@ -86,6 +92,10 @@ module CandidApiClient
|
|
86
92
|
charge_external_id = struct["charge_external_id"]
|
87
93
|
ehr_source_url = struct["ehr_source_url"]
|
88
94
|
date_of_service = (Date.parse(parsed_json["date_of_service"]) unless parsed_json["date_of_service"].nil?)
|
95
|
+
updates = parsed_json["updates"]&.map do |item|
|
96
|
+
item = item.to_json
|
97
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
|
98
|
+
end
|
89
99
|
new(
|
90
100
|
id: id,
|
91
101
|
status: status,
|
@@ -94,6 +104,7 @@ module CandidApiClient
|
|
94
104
|
charge_external_id: charge_external_id,
|
95
105
|
ehr_source_url: ehr_source_url,
|
96
106
|
date_of_service: date_of_service,
|
107
|
+
updates: updates,
|
97
108
|
additional_properties: struct
|
98
109
|
)
|
99
110
|
end
|
@@ -119,6 +130,7 @@ module CandidApiClient
|
|
119
130
|
obj.charge_external_id.is_a?(String) != false || raise("Passed value for field obj.charge_external_id is not the expected type, validation failed.")
|
120
131
|
obj.ehr_source_url&.is_a?(String) != false || raise("Passed value for field obj.ehr_source_url is not the expected type, validation failed.")
|
121
132
|
obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
|
133
|
+
obj.updates.is_a?(Array) != false || raise("Passed value for field obj.updates is not the expected type, validation failed.")
|
122
134
|
end
|
123
135
|
end
|
124
136
|
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module ChargeCapture
|
8
|
+
module V1
|
9
|
+
module Types
|
10
|
+
# ChargeCapturePostBilledChange represents a change to a ChargeCapture that
|
11
|
+
# occurred after the ChargeCapture's status moved to BILLED. Action must be taken
|
12
|
+
# to resolve the update, and then the update should be marked as resolved.
|
13
|
+
class ChargeCapturePostBilledChange
|
14
|
+
# @return [String]
|
15
|
+
attr_reader :id
|
16
|
+
# @return [String]
|
17
|
+
attr_reader :message
|
18
|
+
# @return [Boolean]
|
19
|
+
attr_reader :resolved
|
20
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
21
|
+
attr_reader :additional_properties
|
22
|
+
# @return [Object]
|
23
|
+
attr_reader :_field_set
|
24
|
+
protected :_field_set
|
25
|
+
|
26
|
+
OMIT = Object.new
|
27
|
+
|
28
|
+
# @param id [String]
|
29
|
+
# @param message [String]
|
30
|
+
# @param resolved [Boolean]
|
31
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
32
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange]
|
33
|
+
def initialize(id:, message:, resolved:, additional_properties: nil)
|
34
|
+
@id = id
|
35
|
+
@message = message
|
36
|
+
@resolved = resolved
|
37
|
+
@additional_properties = additional_properties
|
38
|
+
@_field_set = { "id": id, "message": message, "resolved": resolved }
|
39
|
+
end
|
40
|
+
|
41
|
+
# Deserialize a JSON object to an instance of ChargeCapturePostBilledChange
|
42
|
+
#
|
43
|
+
# @param json_object [String]
|
44
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange]
|
45
|
+
def self.from_json(json_object:)
|
46
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
47
|
+
id = struct["id"]
|
48
|
+
message = struct["message"]
|
49
|
+
resolved = struct["resolved"]
|
50
|
+
new(
|
51
|
+
id: id,
|
52
|
+
message: message,
|
53
|
+
resolved: resolved,
|
54
|
+
additional_properties: struct
|
55
|
+
)
|
56
|
+
end
|
57
|
+
|
58
|
+
# Serialize an instance of ChargeCapturePostBilledChange to a JSON object
|
59
|
+
#
|
60
|
+
# @return [String]
|
61
|
+
def to_json(*_args)
|
62
|
+
@_field_set&.to_json
|
63
|
+
end
|
64
|
+
|
65
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
66
|
+
# hash and check each fields type against the current object's property
|
67
|
+
# definitions.
|
68
|
+
#
|
69
|
+
# @param obj [Object]
|
70
|
+
# @return [Void]
|
71
|
+
def self.validate_raw(obj:)
|
72
|
+
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
73
|
+
obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
74
|
+
obj.resolved.is_a?(Boolean) != false || raise("Passed value for field obj.resolved is not the expected type, validation failed.")
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
require_relative "../../../requests"
|
4
4
|
require_relative "types/charge_capture_bundle"
|
5
|
+
require_relative "types/charge_capture_bundle_sort_field"
|
6
|
+
require_relative "../../commons/types/sort_direction"
|
5
7
|
require_relative "types/charge_capture_bundle_status"
|
6
8
|
require_relative "../../charge_capture/v_1/types/charge_capture_status"
|
7
9
|
require "date"
|
@@ -64,6 +66,8 @@ module CandidApiClient
|
|
64
66
|
end
|
65
67
|
|
66
68
|
# @param limit [Integer] Maximum number of entities per page, defaults to 100.
|
69
|
+
# @param sort [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundleSortField] Defaults to created_at
|
70
|
+
# @param sort_direction [CandidApiClient::Commons::Types::SortDirection] Sort direction. Defaults to descending order if not provided.
|
67
71
|
# @param page_token [String]
|
68
72
|
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
69
73
|
# @param bundle_status [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundleStatus] the status of the charge capture bundle, refers to whether it was able to create
|
@@ -74,21 +78,27 @@ module CandidApiClient
|
|
74
78
|
# This field should not contain PHI.
|
75
79
|
# @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
76
80
|
# This date must be the local date in the timezone where the service occurred.
|
81
|
+
# @param has_charge_capture_updates [Boolean] If true, only return bundles that have charge captures that have been updated
|
82
|
+
# since the bundle has had a status of BILLED. See the updates property on
|
83
|
+
# ChargeCapture for more details.
|
77
84
|
# @param request_options [CandidApiClient::RequestOptions]
|
78
85
|
# @return [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundlePage]
|
79
86
|
# @example
|
80
87
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
81
88
|
# api.charge_capture_bundles.v_1.get_all(
|
82
89
|
# limit: 1,
|
90
|
+
# sort: CREATED_AT,
|
91
|
+
# sort_direction: ASC,
|
83
92
|
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
84
93
|
# patient_external_id: "string",
|
85
94
|
# bundle_status: IN_PROGRESS,
|
86
95
|
# charge_status: PLANNED,
|
87
96
|
# charge_external_id: "string",
|
88
|
-
# date_of_service: DateTime.parse(2023-01-15)
|
97
|
+
# date_of_service: DateTime.parse(2023-01-15),
|
98
|
+
# has_charge_capture_updates: true
|
89
99
|
# )
|
90
|
-
def get_all(limit: nil,
|
91
|
-
charge_external_id: nil, date_of_service: nil, request_options: nil)
|
100
|
+
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil,
|
101
|
+
bundle_status: nil, charge_status: nil, charge_external_id: nil, date_of_service: nil, has_charge_capture_updates: nil, request_options: nil)
|
92
102
|
response = @request_client.conn.get do |req|
|
93
103
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
94
104
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -100,12 +110,15 @@ module CandidApiClient
|
|
100
110
|
req.params = {
|
101
111
|
**(request_options&.additional_query_parameters || {}),
|
102
112
|
"limit": limit,
|
113
|
+
"sort": sort,
|
114
|
+
"sort_direction": sort_direction,
|
103
115
|
"page_token": page_token,
|
104
116
|
"patient_external_id": patient_external_id,
|
105
117
|
"bundle_status": bundle_status,
|
106
118
|
"charge_status": charge_status,
|
107
119
|
"charge_external_id": charge_external_id,
|
108
|
-
"date_of_service": date_of_service
|
120
|
+
"date_of_service": date_of_service,
|
121
|
+
"has_charge_capture_updates": has_charge_capture_updates
|
109
122
|
}.compact
|
110
123
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
111
124
|
request_options: request_options)}/api/charge_capture_bundle/v1"
|
@@ -171,6 +184,8 @@ module CandidApiClient
|
|
171
184
|
end
|
172
185
|
|
173
186
|
# @param limit [Integer] Maximum number of entities per page, defaults to 100.
|
187
|
+
# @param sort [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundleSortField] Defaults to created_at
|
188
|
+
# @param sort_direction [CandidApiClient::Commons::Types::SortDirection] Sort direction. Defaults to descending order if not provided.
|
174
189
|
# @param page_token [String]
|
175
190
|
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
176
191
|
# @param bundle_status [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundleStatus] the status of the charge capture bundle, refers to whether it was able to create
|
@@ -181,21 +196,27 @@ module CandidApiClient
|
|
181
196
|
# This field should not contain PHI.
|
182
197
|
# @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
183
198
|
# This date must be the local date in the timezone where the service occurred.
|
199
|
+
# @param has_charge_capture_updates [Boolean] If true, only return bundles that have charge captures that have been updated
|
200
|
+
# since the bundle has had a status of BILLED. See the updates property on
|
201
|
+
# ChargeCapture for more details.
|
184
202
|
# @param request_options [CandidApiClient::RequestOptions]
|
185
203
|
# @return [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundlePage]
|
186
204
|
# @example
|
187
205
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
188
206
|
# api.charge_capture_bundles.v_1.get_all(
|
189
207
|
# limit: 1,
|
208
|
+
# sort: CREATED_AT,
|
209
|
+
# sort_direction: ASC,
|
190
210
|
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
191
211
|
# patient_external_id: "string",
|
192
212
|
# bundle_status: IN_PROGRESS,
|
193
213
|
# charge_status: PLANNED,
|
194
214
|
# charge_external_id: "string",
|
195
|
-
# date_of_service: DateTime.parse(2023-01-15)
|
215
|
+
# date_of_service: DateTime.parse(2023-01-15),
|
216
|
+
# has_charge_capture_updates: true
|
196
217
|
# )
|
197
|
-
def get_all(limit: nil,
|
198
|
-
charge_external_id: nil, date_of_service: nil, request_options: nil)
|
218
|
+
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil,
|
219
|
+
bundle_status: nil, charge_status: nil, charge_external_id: nil, date_of_service: nil, has_charge_capture_updates: nil, request_options: nil)
|
199
220
|
Async do
|
200
221
|
response = @request_client.conn.get do |req|
|
201
222
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -208,12 +229,15 @@ module CandidApiClient
|
|
208
229
|
req.params = {
|
209
230
|
**(request_options&.additional_query_parameters || {}),
|
210
231
|
"limit": limit,
|
232
|
+
"sort": sort,
|
233
|
+
"sort_direction": sort_direction,
|
211
234
|
"page_token": page_token,
|
212
235
|
"patient_external_id": patient_external_id,
|
213
236
|
"bundle_status": bundle_status,
|
214
237
|
"charge_status": charge_status,
|
215
238
|
"charge_external_id": charge_external_id,
|
216
|
-
"date_of_service": date_of_service
|
239
|
+
"date_of_service": date_of_service,
|
240
|
+
"has_charge_capture_updates": has_charge_capture_updates
|
217
241
|
}.compact
|
218
242
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
219
243
|
request_options: request_options)}/api/charge_capture_bundle/v1"
|
data/lib/candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require_relative "period"
|
3
4
|
require_relative "canonical_clinical_trial_association"
|
4
5
|
require "ostruct"
|
5
6
|
require "json"
|
@@ -13,6 +14,8 @@ module CandidApiClient
|
|
13
14
|
attr_reader :id
|
14
15
|
# @return [String]
|
15
16
|
attr_reader :member_id
|
17
|
+
# @return [CandidApiClient::PreEncounter::Common::Types::Period]
|
18
|
+
attr_reader :period
|
16
19
|
# @return [Array<CandidApiClient::PreEncounter::Common::Types::CanonicalClinicalTrialAssociation>] A patient cannot be associated with a given trial more than once
|
17
20
|
attr_reader :clinical_trial_info
|
18
21
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
@@ -25,17 +28,20 @@ module CandidApiClient
|
|
25
28
|
|
26
29
|
# @param id [String]
|
27
30
|
# @param member_id [String]
|
31
|
+
# @param period [CandidApiClient::PreEncounter::Common::Types::Period]
|
28
32
|
# @param clinical_trial_info [Array<CandidApiClient::PreEncounter::Common::Types::CanonicalClinicalTrialAssociation>] A patient cannot be associated with a given trial more than once
|
29
33
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
30
34
|
# @return [CandidApiClient::PreEncounter::Common::Types::CanonicalNonInsurancePayerAssociation]
|
31
|
-
def initialize(id:, member_id: OMIT, clinical_trial_info: OMIT, additional_properties: nil)
|
35
|
+
def initialize(id:, member_id: OMIT, period: OMIT, clinical_trial_info: OMIT, additional_properties: nil)
|
32
36
|
@id = id
|
33
37
|
@member_id = member_id if member_id != OMIT
|
38
|
+
@period = period if period != OMIT
|
34
39
|
@clinical_trial_info = clinical_trial_info if clinical_trial_info != OMIT
|
35
40
|
@additional_properties = additional_properties
|
36
41
|
@_field_set = {
|
37
42
|
"id": id,
|
38
43
|
"member_id": member_id,
|
44
|
+
"period": period,
|
39
45
|
"clinical_trial_info": clinical_trial_info
|
40
46
|
}.reject do |_k, v|
|
41
47
|
v == OMIT
|
@@ -52,6 +58,12 @@ module CandidApiClient
|
|
52
58
|
parsed_json = JSON.parse(json_object)
|
53
59
|
id = struct["id"]
|
54
60
|
member_id = struct["member_id"]
|
61
|
+
if parsed_json["period"].nil?
|
62
|
+
period = nil
|
63
|
+
else
|
64
|
+
period = parsed_json["period"].to_json
|
65
|
+
period = CandidApiClient::PreEncounter::Common::Types::Period.from_json(json_object: period)
|
66
|
+
end
|
55
67
|
clinical_trial_info = parsed_json["clinical_trial_info"]&.map do |item|
|
56
68
|
item = item.to_json
|
57
69
|
CandidApiClient::PreEncounter::Common::Types::CanonicalClinicalTrialAssociation.from_json(json_object: item)
|
@@ -59,6 +71,7 @@ module CandidApiClient
|
|
59
71
|
new(
|
60
72
|
id: id,
|
61
73
|
member_id: member_id,
|
74
|
+
period: period,
|
62
75
|
clinical_trial_info: clinical_trial_info,
|
63
76
|
additional_properties: struct
|
64
77
|
)
|
@@ -80,6 +93,7 @@ module CandidApiClient
|
|
80
93
|
def self.validate_raw(obj:)
|
81
94
|
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
82
95
|
obj.member_id&.is_a?(String) != false || raise("Passed value for field obj.member_id is not the expected type, validation failed.")
|
96
|
+
obj.period.nil? || CandidApiClient::PreEncounter::Common::Types::Period.validate_raw(obj: obj.period)
|
83
97
|
obj.clinical_trial_info&.is_a?(Array) != false || raise("Passed value for field obj.clinical_trial_info is not the expected type, validation failed.")
|
84
98
|
end
|
85
99
|
end
|
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.40.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2" }
|
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.40.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2" }
|
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
@@ -8,10 +8,13 @@ require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_b
|
|
8
8
|
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle"
|
9
9
|
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_bundle_error"
|
10
10
|
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_status"
|
11
|
+
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_sort_field"
|
11
12
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_page"
|
12
13
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture"
|
13
14
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_data"
|
15
|
+
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_sort_field"
|
14
16
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_status"
|
17
|
+
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_post_billed_change"
|
15
18
|
require_relative "candidhealth/claim_submission/v_1/types/claim_frequency_type_code"
|
16
19
|
require_relative "candidhealth/claim_submission/v_1/types/external_claim_submission_create"
|
17
20
|
require_relative "candidhealth/claim_submission/v_1/types/claim_submission_record_create"
|
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.40.
|
4
|
+
version: 0.40.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -110,12 +110,15 @@ files:
|
|
110
110
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture.rb
|
111
111
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb
|
112
112
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture_page.rb
|
113
|
+
- lib/candidhealth/charge_capture/v_1/types/charge_capture_post_billed_change.rb
|
114
|
+
- lib/candidhealth/charge_capture/v_1/types/charge_capture_sort_field.rb
|
113
115
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture_status.rb
|
114
116
|
- lib/candidhealth/charge_capture_bundles/client.rb
|
115
117
|
- lib/candidhealth/charge_capture_bundles/v_1/client.rb
|
116
118
|
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_bundle_error.rb
|
117
119
|
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle.rb
|
118
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
|
119
122
|
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_status.rb
|
120
123
|
- lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb
|
121
124
|
- lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb
|