candidhealth 1.8.0 → 1.9.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.
- checksums.yaml +4 -4
- data/lib/candidhealth/auth/default/client.rb +0 -74
- data/lib/candidhealth/charge_capture/v_1/client.rb +71 -4
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +33 -2
- data/lib/candidhealth/diagnoses/client.rb +2 -2
- data/lib/candidhealth/encounters/v_4/client.rb +483 -2510
- data/lib/candidhealth/encounters/v_4/types/encounter_submission_expectation.rb +3 -6
- data/lib/candidhealth/guarantor/v_1/client.rb +4 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +10 -2
- data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +10 -2
- data/lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb +10 -2
- data/lib/candidhealth/guarantor/v_1/types/guarantor_update.rb +10 -2
- data/lib/candidhealth/health_care_code_information/v_1/client.rb +2 -74
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +100 -1
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +2 -134
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +34 -34
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +4 -139
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +138 -38
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +1 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +10 -132
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +6 -1
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +10 -132
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +10 -132
- data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +16 -4
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +2 -130
- data/lib/candidhealth/individual/types/patient.rb +10 -2
- data/lib/candidhealth/individual/types/patient_create.rb +9 -1
- data/lib/candidhealth/individual/types/patient_update.rb +9 -1
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +9 -1
- data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +77 -4
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +21 -2
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_create.rb +21 -2
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_update.rb +21 -2
- data/lib/candidhealth/payers/v_4/types/clearinghouse_payer_info.rb +36 -2
- data/lib/candidhealth/payers/v_4/types/payer.rb +15 -7
- data/lib/candidhealth/payers/v_4/types/payer_ids.rb +12 -35
- data/lib/candidhealth/payers/v_4/types/primary_payer_ids.rb +84 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +8 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +13 -1
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +13 -1
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +13 -1
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient_service_facility.rb +63 -0
- data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +8 -8
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +8 -8
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +8 -8
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +2 -21
- metadata +4 -23
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +0 -944
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +0 -791
- data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +0 -872
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +0 -206
- data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +0 -1068
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +0 -207
- data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +0 -54
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +0 -206
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +0 -245
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +0 -225
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +0 -219
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +0 -222
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +0 -215
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +0 -218
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +0 -206
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +0 -215
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +0 -216
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +0 -206
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +0 -215
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +0 -271
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +0 -112
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b7d980476b47fc1d2541f2832ec2822e0439d32068d2372898ab2378c0a5979f
|
|
4
|
+
data.tar.gz: 5f232588bd4d423e1c0b287584f1fe1a1db5dedc27bbe7b81601583a29e0330f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c4f67f9f4e06fe5b407eb234b80d84baeac7d286deb0d1b90d4f5018f3fe5152a665d1c3caae104be834d2d91a09e3ab201dd7266a91cd59eafe859887590e1
|
|
7
|
+
data.tar.gz: 1ab97ef3ba382a65330efbfbe6c4c7e892798c8558c1e96385a03db76551284d15eeb8111a6ea47f31e867ec175a21b953a7f7d97afe472513f9bd473d4efc84
|
|
@@ -83,42 +83,6 @@ module CandidApiClient
|
|
|
83
83
|
end
|
|
84
84
|
CandidApiClient::Auth::Default::Types::AuthGetTokenResponse.from_json(json_object: response.body)
|
|
85
85
|
end
|
|
86
|
-
|
|
87
|
-
# @param org_id [String] Organization ID to generate token for.
|
|
88
|
-
# @param client_id [String] Your application's Client ID.
|
|
89
|
-
# @param client_secret [String] Your application's Client Secret.
|
|
90
|
-
# @param force_token_refresh [Boolean] Refreshes auth token for a given user <> org pair.
|
|
91
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
|
92
|
-
# @return [CandidApiClient::Auth::Default::Types::AuthGetTokenResponse]
|
|
93
|
-
# @example
|
|
94
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
95
|
-
# api.auth.default.get_machine_token_for_org_id(
|
|
96
|
-
# org_id: "org_id",
|
|
97
|
-
# client_id: "client_id",
|
|
98
|
-
# client_secret: "client_secret"
|
|
99
|
-
# )
|
|
100
|
-
def get_machine_token_for_org_id(org_id:, client_id:, client_secret:, force_token_refresh: nil,
|
|
101
|
-
request_options: nil)
|
|
102
|
-
response = @request_client.conn.post do |req|
|
|
103
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
104
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
105
|
-
req.headers = {
|
|
106
|
-
**(req.headers || {}),
|
|
107
|
-
**@request_client.get_headers,
|
|
108
|
-
**(request_options&.additional_headers || {})
|
|
109
|
-
}.compact
|
|
110
|
-
req.body = {
|
|
111
|
-
**(request_options&.additional_body_parameters || {}),
|
|
112
|
-
org_id: org_id,
|
|
113
|
-
client_id: client_id,
|
|
114
|
-
client_secret: client_secret,
|
|
115
|
-
force_token_refresh: force_token_refresh
|
|
116
|
-
}.compact
|
|
117
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
118
|
-
request_options: request_options)}/api/auth/v2/machine-token-for-org-id"
|
|
119
|
-
end
|
|
120
|
-
CandidApiClient::Auth::Default::Types::AuthGetTokenResponse.from_json(json_object: response.body)
|
|
121
|
-
end
|
|
122
86
|
end
|
|
123
87
|
|
|
124
88
|
class AsyncDefaultClient
|
|
@@ -199,44 +163,6 @@ module CandidApiClient
|
|
|
199
163
|
CandidApiClient::Auth::Default::Types::AuthGetTokenResponse.from_json(json_object: response.body)
|
|
200
164
|
end
|
|
201
165
|
end
|
|
202
|
-
|
|
203
|
-
# @param org_id [String] Organization ID to generate token for.
|
|
204
|
-
# @param client_id [String] Your application's Client ID.
|
|
205
|
-
# @param client_secret [String] Your application's Client Secret.
|
|
206
|
-
# @param force_token_refresh [Boolean] Refreshes auth token for a given user <> org pair.
|
|
207
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
|
208
|
-
# @return [CandidApiClient::Auth::Default::Types::AuthGetTokenResponse]
|
|
209
|
-
# @example
|
|
210
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
211
|
-
# api.auth.default.get_machine_token_for_org_id(
|
|
212
|
-
# org_id: "org_id",
|
|
213
|
-
# client_id: "client_id",
|
|
214
|
-
# client_secret: "client_secret"
|
|
215
|
-
# )
|
|
216
|
-
def get_machine_token_for_org_id(org_id:, client_id:, client_secret:, force_token_refresh: nil,
|
|
217
|
-
request_options: nil)
|
|
218
|
-
Async do
|
|
219
|
-
response = @request_client.conn.post do |req|
|
|
220
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
221
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
222
|
-
req.headers = {
|
|
223
|
-
**(req.headers || {}),
|
|
224
|
-
**@request_client.get_headers,
|
|
225
|
-
**(request_options&.additional_headers || {})
|
|
226
|
-
}.compact
|
|
227
|
-
req.body = {
|
|
228
|
-
**(request_options&.additional_body_parameters || {}),
|
|
229
|
-
org_id: org_id,
|
|
230
|
-
client_id: client_id,
|
|
231
|
-
client_secret: client_secret,
|
|
232
|
-
force_token_refresh: force_token_refresh
|
|
233
|
-
}.compact
|
|
234
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
235
|
-
request_options: request_options)}/api/auth/v2/machine-token-for-org-id"
|
|
236
|
-
end
|
|
237
|
-
CandidApiClient::Auth::Default::Types::AuthGetTokenResponse.from_json(json_object: response.body)
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
166
|
end
|
|
241
167
|
end
|
|
242
168
|
end
|
|
@@ -9,6 +9,7 @@ require_relative "../../commons/types/sort_direction"
|
|
|
9
9
|
require "date"
|
|
10
10
|
require_relative "../../encounters/v_4/types/billable_status_type"
|
|
11
11
|
require_relative "../../encounters/v_4/types/responsible_party_type"
|
|
12
|
+
require_relative "../../claims/types/claim_status"
|
|
12
13
|
require_relative "types/charge_capture_page"
|
|
13
14
|
require_relative "types/charge_capture_post_billed_change"
|
|
14
15
|
require "json"
|
|
@@ -62,6 +63,7 @@ module CandidApiClient
|
|
|
62
63
|
# * :phone_consent (Boolean)
|
|
63
64
|
# * :email (String)
|
|
64
65
|
# * :email_consent (Boolean)
|
|
66
|
+
# * :auto_charge_consent (Boolean)
|
|
65
67
|
# * :subscriber_primary (Hash)
|
|
66
68
|
# * :insurance_card (Hash)
|
|
67
69
|
# * :member_id (String)
|
|
@@ -169,6 +171,7 @@ module CandidApiClient
|
|
|
169
171
|
# * :phone_consent (Boolean)
|
|
170
172
|
# * :email (String)
|
|
171
173
|
# * :email_consent (Boolean)
|
|
174
|
+
# * :auto_charge_consent (Boolean)
|
|
172
175
|
# * :non_insurance_payers (Array<String>)
|
|
173
176
|
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
|
|
174
177
|
# * :service_facility (Hash)
|
|
@@ -383,6 +386,7 @@ module CandidApiClient
|
|
|
383
386
|
# * :phone_consent (Boolean)
|
|
384
387
|
# * :email (String)
|
|
385
388
|
# * :email_consent (Boolean)
|
|
389
|
+
# * :auto_charge_consent (Boolean)
|
|
386
390
|
# * :subscriber_primary (Hash)
|
|
387
391
|
# * :insurance_card (Hash)
|
|
388
392
|
# * :member_id (String)
|
|
@@ -490,6 +494,7 @@ module CandidApiClient
|
|
|
490
494
|
# * :phone_consent (Boolean)
|
|
491
495
|
# * :email (String)
|
|
492
496
|
# * :email_consent (Boolean)
|
|
497
|
+
# * :auto_charge_consent (Boolean)
|
|
493
498
|
# * :non_insurance_payers (Array<String>)
|
|
494
499
|
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
|
|
495
500
|
# * :service_facility (Hash)
|
|
@@ -684,6 +689,7 @@ module CandidApiClient
|
|
|
684
689
|
# * :phone_consent (Boolean)
|
|
685
690
|
# * :email (String)
|
|
686
691
|
# * :email_consent (Boolean)
|
|
692
|
+
# * :auto_charge_consent (Boolean)
|
|
687
693
|
# * :subscriber_primary (Hash)
|
|
688
694
|
# * :insurance_card (Hash)
|
|
689
695
|
# * :member_id (String)
|
|
@@ -791,6 +797,7 @@ module CandidApiClient
|
|
|
791
797
|
# * :phone_consent (Boolean)
|
|
792
798
|
# * :email (String)
|
|
793
799
|
# * :email_consent (Boolean)
|
|
800
|
+
# * :auto_charge_consent (Boolean)
|
|
794
801
|
# * :non_insurance_payers (Array<String>)
|
|
795
802
|
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
|
|
796
803
|
# * :service_facility (Hash)
|
|
@@ -995,6 +1002,15 @@ module CandidApiClient
|
|
|
995
1002
|
# captures with one of the NPIs in this list.
|
|
996
1003
|
# @param supervising_provider_names [String] A list of supervising provider names to filter by. This will return all charge
|
|
997
1004
|
# captures with one of the names in this list.
|
|
1005
|
+
# @param claim_creation_category [String] A list of claim creation categories to filter by. This will return all charge
|
|
1006
|
+
# capture claim_creations which include one or more charges with one of the names
|
|
1007
|
+
# in this list.
|
|
1008
|
+
# @param tags [String] A list of tags to filter by. This will return all charge captures with one of
|
|
1009
|
+
# the tags.
|
|
1010
|
+
# @param primary_payer_names [String] A list of primary payer names to filter by. This will return all charge captures
|
|
1011
|
+
# with one of the names.
|
|
1012
|
+
# @param patient_names [String] A list of patient names to filter by. This will return all charge captures with
|
|
1013
|
+
# one of the names.
|
|
998
1014
|
# @param exclude_charges_linked_to_claims [Boolean] Whether to exclude charge captures which are part of a claim creation.
|
|
999
1015
|
# @param patient_external_id_ranked_sort [String] The patient ID from the external EMR platform for the patient
|
|
1000
1016
|
# @param status_ranked_sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] The charge capture status to show first
|
|
@@ -1031,13 +1047,22 @@ module CandidApiClient
|
|
|
1031
1047
|
# captures with one of the NPIs in this list.
|
|
1032
1048
|
# @param supervising_provider_names_ranked_sort [String] A list of supervising provider names to show first. This will return all charge
|
|
1033
1049
|
# captures with one of the names in this list.
|
|
1050
|
+
# @param claim_status [CandidApiClient::Claims::Types::ClaimStatus] the status of the claim to filter by created from charge capture bundle.
|
|
1051
|
+
# @param claim_creation_category_ranked_sort [String] A list of claim creation categories to sort by. This will return all charge
|
|
1052
|
+
# capture claim_creations which include one or more charges with one of the names
|
|
1053
|
+
# in this list.
|
|
1054
|
+
# @param tags_ranked_sort [String] A list of tags. This will return all charge captures with one of the tags.
|
|
1055
|
+
# @param primary_payer_names_ranked_sort [String] A list of primary payer names to sort by. This will return all charge captures
|
|
1056
|
+
# with one of the names.
|
|
1057
|
+
# @param patient_names_ranked_sort [String] A list of patient names to sort by. This will return all charge captures with
|
|
1058
|
+
# one of the names.
|
|
1034
1059
|
# @param request_options [CandidApiClient::RequestOptions]
|
|
1035
1060
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
|
1036
1061
|
# @example
|
|
1037
1062
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
1038
1063
|
# api.charge_capture.v_1.get_all
|
|
1039
1064
|
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
|
|
1040
|
-
charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, search_term: nil, billable_status: nil, responsible_party: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
|
|
1065
|
+
charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, claim_creation_category: nil, tags: nil, primary_payer_names: nil, patient_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, search_term: nil, billable_status: nil, responsible_party: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, claim_status: nil, claim_creation_category_ranked_sort: nil, tags_ranked_sort: nil, primary_payer_names_ranked_sort: nil, patient_names_ranked_sort: nil, request_options: nil)
|
|
1041
1066
|
response = @request_client.conn.get do |req|
|
|
1042
1067
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
1043
1068
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
@@ -1066,6 +1091,10 @@ module CandidApiClient
|
|
|
1066
1091
|
"rendering_provider_names": rendering_provider_names,
|
|
1067
1092
|
"supervising_provider_npis": supervising_provider_npis,
|
|
1068
1093
|
"supervising_provider_names": supervising_provider_names,
|
|
1094
|
+
"claim_creation_category": claim_creation_category,
|
|
1095
|
+
"tags": tags,
|
|
1096
|
+
"primary_payer_names": primary_payer_names,
|
|
1097
|
+
"patient_names": patient_names,
|
|
1069
1098
|
"exclude_charges_linked_to_claims": exclude_charges_linked_to_claims,
|
|
1070
1099
|
"patient_external_id_ranked_sort": patient_external_id_ranked_sort,
|
|
1071
1100
|
"status_ranked_sort": status_ranked_sort,
|
|
@@ -1083,7 +1112,12 @@ module CandidApiClient
|
|
|
1083
1112
|
"rendering_provider_npis_ranked_sort": rendering_provider_npis_ranked_sort,
|
|
1084
1113
|
"rendering_provider_names_ranked_sort": rendering_provider_names_ranked_sort,
|
|
1085
1114
|
"supervising_provider_npis_ranked_sort": supervising_provider_npis_ranked_sort,
|
|
1086
|
-
"supervising_provider_names_ranked_sort": supervising_provider_names_ranked_sort
|
|
1115
|
+
"supervising_provider_names_ranked_sort": supervising_provider_names_ranked_sort,
|
|
1116
|
+
"claim_status": claim_status,
|
|
1117
|
+
"claim_creation_category_ranked_sort": claim_creation_category_ranked_sort,
|
|
1118
|
+
"tags_ranked_sort": tags_ranked_sort,
|
|
1119
|
+
"primary_payer_names_ranked_sort": primary_payer_names_ranked_sort,
|
|
1120
|
+
"patient_names_ranked_sort": patient_names_ranked_sort
|
|
1087
1121
|
}.compact
|
|
1088
1122
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
1089
1123
|
request_options: request_options)}/api/charge_captures/v1"
|
|
@@ -1171,6 +1205,7 @@ module CandidApiClient
|
|
|
1171
1205
|
# * :phone_consent (Boolean)
|
|
1172
1206
|
# * :email (String)
|
|
1173
1207
|
# * :email_consent (Boolean)
|
|
1208
|
+
# * :auto_charge_consent (Boolean)
|
|
1174
1209
|
# * :subscriber_primary (Hash)
|
|
1175
1210
|
# * :insurance_card (Hash)
|
|
1176
1211
|
# * :member_id (String)
|
|
@@ -1278,6 +1313,7 @@ module CandidApiClient
|
|
|
1278
1313
|
# * :phone_consent (Boolean)
|
|
1279
1314
|
# * :email (String)
|
|
1280
1315
|
# * :email_consent (Boolean)
|
|
1316
|
+
# * :auto_charge_consent (Boolean)
|
|
1281
1317
|
# * :non_insurance_payers (Array<String>)
|
|
1282
1318
|
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
|
|
1283
1319
|
# * :service_facility (Hash)
|
|
@@ -1494,6 +1530,7 @@ module CandidApiClient
|
|
|
1494
1530
|
# * :phone_consent (Boolean)
|
|
1495
1531
|
# * :email (String)
|
|
1496
1532
|
# * :email_consent (Boolean)
|
|
1533
|
+
# * :auto_charge_consent (Boolean)
|
|
1497
1534
|
# * :subscriber_primary (Hash)
|
|
1498
1535
|
# * :insurance_card (Hash)
|
|
1499
1536
|
# * :member_id (String)
|
|
@@ -1601,6 +1638,7 @@ module CandidApiClient
|
|
|
1601
1638
|
# * :phone_consent (Boolean)
|
|
1602
1639
|
# * :email (String)
|
|
1603
1640
|
# * :email_consent (Boolean)
|
|
1641
|
+
# * :auto_charge_consent (Boolean)
|
|
1604
1642
|
# * :non_insurance_payers (Array<String>)
|
|
1605
1643
|
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
|
|
1606
1644
|
# * :service_facility (Hash)
|
|
@@ -1797,6 +1835,7 @@ module CandidApiClient
|
|
|
1797
1835
|
# * :phone_consent (Boolean)
|
|
1798
1836
|
# * :email (String)
|
|
1799
1837
|
# * :email_consent (Boolean)
|
|
1838
|
+
# * :auto_charge_consent (Boolean)
|
|
1800
1839
|
# * :subscriber_primary (Hash)
|
|
1801
1840
|
# * :insurance_card (Hash)
|
|
1802
1841
|
# * :member_id (String)
|
|
@@ -1904,6 +1943,7 @@ module CandidApiClient
|
|
|
1904
1943
|
# * :phone_consent (Boolean)
|
|
1905
1944
|
# * :email (String)
|
|
1906
1945
|
# * :email_consent (Boolean)
|
|
1946
|
+
# * :auto_charge_consent (Boolean)
|
|
1907
1947
|
# * :non_insurance_payers (Array<String>)
|
|
1908
1948
|
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
|
|
1909
1949
|
# * :service_facility (Hash)
|
|
@@ -2112,6 +2152,15 @@ module CandidApiClient
|
|
|
2112
2152
|
# captures with one of the NPIs in this list.
|
|
2113
2153
|
# @param supervising_provider_names [String] A list of supervising provider names to filter by. This will return all charge
|
|
2114
2154
|
# captures with one of the names in this list.
|
|
2155
|
+
# @param claim_creation_category [String] A list of claim creation categories to filter by. This will return all charge
|
|
2156
|
+
# capture claim_creations which include one or more charges with one of the names
|
|
2157
|
+
# in this list.
|
|
2158
|
+
# @param tags [String] A list of tags to filter by. This will return all charge captures with one of
|
|
2159
|
+
# the tags.
|
|
2160
|
+
# @param primary_payer_names [String] A list of primary payer names to filter by. This will return all charge captures
|
|
2161
|
+
# with one of the names.
|
|
2162
|
+
# @param patient_names [String] A list of patient names to filter by. This will return all charge captures with
|
|
2163
|
+
# one of the names.
|
|
2115
2164
|
# @param exclude_charges_linked_to_claims [Boolean] Whether to exclude charge captures which are part of a claim creation.
|
|
2116
2165
|
# @param patient_external_id_ranked_sort [String] The patient ID from the external EMR platform for the patient
|
|
2117
2166
|
# @param status_ranked_sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] The charge capture status to show first
|
|
@@ -2148,13 +2197,22 @@ module CandidApiClient
|
|
|
2148
2197
|
# captures with one of the NPIs in this list.
|
|
2149
2198
|
# @param supervising_provider_names_ranked_sort [String] A list of supervising provider names to show first. This will return all charge
|
|
2150
2199
|
# captures with one of the names in this list.
|
|
2200
|
+
# @param claim_status [CandidApiClient::Claims::Types::ClaimStatus] the status of the claim to filter by created from charge capture bundle.
|
|
2201
|
+
# @param claim_creation_category_ranked_sort [String] A list of claim creation categories to sort by. This will return all charge
|
|
2202
|
+
# capture claim_creations which include one or more charges with one of the names
|
|
2203
|
+
# in this list.
|
|
2204
|
+
# @param tags_ranked_sort [String] A list of tags. This will return all charge captures with one of the tags.
|
|
2205
|
+
# @param primary_payer_names_ranked_sort [String] A list of primary payer names to sort by. This will return all charge captures
|
|
2206
|
+
# with one of the names.
|
|
2207
|
+
# @param patient_names_ranked_sort [String] A list of patient names to sort by. This will return all charge captures with
|
|
2208
|
+
# one of the names.
|
|
2151
2209
|
# @param request_options [CandidApiClient::RequestOptions]
|
|
2152
2210
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
|
2153
2211
|
# @example
|
|
2154
2212
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
2155
2213
|
# api.charge_capture.v_1.get_all
|
|
2156
2214
|
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
|
|
2157
|
-
charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, search_term: nil, billable_status: nil, responsible_party: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
|
|
2215
|
+
charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, claim_creation_category: nil, tags: nil, primary_payer_names: nil, patient_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, search_term: nil, billable_status: nil, responsible_party: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, claim_status: nil, claim_creation_category_ranked_sort: nil, tags_ranked_sort: nil, primary_payer_names_ranked_sort: nil, patient_names_ranked_sort: nil, request_options: nil)
|
|
2158
2216
|
Async do
|
|
2159
2217
|
response = @request_client.conn.get do |req|
|
|
2160
2218
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -2184,6 +2242,10 @@ module CandidApiClient
|
|
|
2184
2242
|
"rendering_provider_names": rendering_provider_names,
|
|
2185
2243
|
"supervising_provider_npis": supervising_provider_npis,
|
|
2186
2244
|
"supervising_provider_names": supervising_provider_names,
|
|
2245
|
+
"claim_creation_category": claim_creation_category,
|
|
2246
|
+
"tags": tags,
|
|
2247
|
+
"primary_payer_names": primary_payer_names,
|
|
2248
|
+
"patient_names": patient_names,
|
|
2187
2249
|
"exclude_charges_linked_to_claims": exclude_charges_linked_to_claims,
|
|
2188
2250
|
"patient_external_id_ranked_sort": patient_external_id_ranked_sort,
|
|
2189
2251
|
"status_ranked_sort": status_ranked_sort,
|
|
@@ -2201,7 +2263,12 @@ module CandidApiClient
|
|
|
2201
2263
|
"rendering_provider_npis_ranked_sort": rendering_provider_npis_ranked_sort,
|
|
2202
2264
|
"rendering_provider_names_ranked_sort": rendering_provider_names_ranked_sort,
|
|
2203
2265
|
"supervising_provider_npis_ranked_sort": supervising_provider_npis_ranked_sort,
|
|
2204
|
-
"supervising_provider_names_ranked_sort": supervising_provider_names_ranked_sort
|
|
2266
|
+
"supervising_provider_names_ranked_sort": supervising_provider_names_ranked_sort,
|
|
2267
|
+
"claim_status": claim_status,
|
|
2268
|
+
"claim_creation_category_ranked_sort": claim_creation_category_ranked_sort,
|
|
2269
|
+
"tags_ranked_sort": tags_ranked_sort,
|
|
2270
|
+
"primary_payer_names_ranked_sort": primary_payer_names_ranked_sort,
|
|
2271
|
+
"patient_names_ranked_sort": patient_names_ranked_sort
|
|
2205
2272
|
}.compact
|
|
2206
2273
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
2207
2274
|
request_options: request_options)}/api/charge_captures/v1"
|
|
@@ -8,6 +8,7 @@ require_relative "../../commons/types/sort_direction"
|
|
|
8
8
|
require_relative "types/charge_capture_claim_creation_status"
|
|
9
9
|
require_relative "../../charge_capture/v_1/types/charge_capture_status"
|
|
10
10
|
require "date"
|
|
11
|
+
require_relative "../../claims/types/claim_status"
|
|
11
12
|
require_relative "types/charge_capture_claim_creation_page"
|
|
12
13
|
require "async"
|
|
13
14
|
|
|
@@ -131,6 +132,16 @@ module CandidApiClient
|
|
|
131
132
|
# @param supervising_provider_names [String] A list of supervising provider names to filter by. This will return all charge
|
|
132
133
|
# capture claim_creations which include one or more charges with one of the names
|
|
133
134
|
# in this list.
|
|
135
|
+
# @param claim_status [CandidApiClient::Claims::Types::ClaimStatus] the status of the claim to filter by created from charge capture bundle.
|
|
136
|
+
# @param claim_creation_category [String] A list of claim creation categories to filter by. This will return all charge
|
|
137
|
+
# capture claim_creations which include one or more charges with one of the names
|
|
138
|
+
# in this list.
|
|
139
|
+
# @param tags [String] A list of tags to filter by. This will return all charge captures with one of
|
|
140
|
+
# the tags.
|
|
141
|
+
# @param primary_payer_names [String] A list of primary payer names to filter by. This will return all charge captures
|
|
142
|
+
# with one of the names.
|
|
143
|
+
# @param patient_names [String] A list of patient names to filter by. This will return all charge captures with
|
|
144
|
+
# one of the names.
|
|
134
145
|
# @param has_charge_capture_updates [Boolean] If true, only return claim_creations that have charge captures that have been
|
|
135
146
|
# updated since the Claim Creation has had a status of BILLED. See the updates
|
|
136
147
|
# property on ChargeCapture for more details.
|
|
@@ -140,7 +151,7 @@ module CandidApiClient
|
|
|
140
151
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
141
152
|
# api.charge_capture_bundles.v_1.get_all
|
|
142
153
|
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil,
|
|
143
|
-
claim_creation_status: nil, charge_status: nil, charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, has_charge_capture_updates: nil, request_options: nil)
|
|
154
|
+
claim_creation_status: nil, charge_status: nil, charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, claim_status: nil, claim_creation_category: nil, tags: nil, primary_payer_names: nil, patient_names: nil, has_charge_capture_updates: nil, request_options: nil)
|
|
144
155
|
response = @request_client.conn.get do |req|
|
|
145
156
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
146
157
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
@@ -170,6 +181,11 @@ module CandidApiClient
|
|
|
170
181
|
"rendering_provider_names": rendering_provider_names,
|
|
171
182
|
"supervising_provider_npis": supervising_provider_npis,
|
|
172
183
|
"supervising_provider_names": supervising_provider_names,
|
|
184
|
+
"claim_status": claim_status,
|
|
185
|
+
"claim_creation_category": claim_creation_category,
|
|
186
|
+
"tags": tags,
|
|
187
|
+
"primary_payer_names": primary_payer_names,
|
|
188
|
+
"patient_names": patient_names,
|
|
173
189
|
"has_charge_capture_updates": has_charge_capture_updates
|
|
174
190
|
}.compact
|
|
175
191
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
@@ -302,6 +318,16 @@ module CandidApiClient
|
|
|
302
318
|
# @param supervising_provider_names [String] A list of supervising provider names to filter by. This will return all charge
|
|
303
319
|
# capture claim_creations which include one or more charges with one of the names
|
|
304
320
|
# in this list.
|
|
321
|
+
# @param claim_status [CandidApiClient::Claims::Types::ClaimStatus] the status of the claim to filter by created from charge capture bundle.
|
|
322
|
+
# @param claim_creation_category [String] A list of claim creation categories to filter by. This will return all charge
|
|
323
|
+
# capture claim_creations which include one or more charges with one of the names
|
|
324
|
+
# in this list.
|
|
325
|
+
# @param tags [String] A list of tags to filter by. This will return all charge captures with one of
|
|
326
|
+
# the tags.
|
|
327
|
+
# @param primary_payer_names [String] A list of primary payer names to filter by. This will return all charge captures
|
|
328
|
+
# with one of the names.
|
|
329
|
+
# @param patient_names [String] A list of patient names to filter by. This will return all charge captures with
|
|
330
|
+
# one of the names.
|
|
305
331
|
# @param has_charge_capture_updates [Boolean] If true, only return claim_creations that have charge captures that have been
|
|
306
332
|
# updated since the Claim Creation has had a status of BILLED. See the updates
|
|
307
333
|
# property on ChargeCapture for more details.
|
|
@@ -311,7 +337,7 @@ module CandidApiClient
|
|
|
311
337
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
312
338
|
# api.charge_capture_bundles.v_1.get_all
|
|
313
339
|
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil,
|
|
314
|
-
claim_creation_status: nil, charge_status: nil, charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, has_charge_capture_updates: nil, request_options: nil)
|
|
340
|
+
claim_creation_status: nil, charge_status: nil, charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, claim_status: nil, claim_creation_category: nil, tags: nil, primary_payer_names: nil, patient_names: nil, has_charge_capture_updates: nil, request_options: nil)
|
|
315
341
|
Async do
|
|
316
342
|
response = @request_client.conn.get do |req|
|
|
317
343
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -342,6 +368,11 @@ module CandidApiClient
|
|
|
342
368
|
"rendering_provider_names": rendering_provider_names,
|
|
343
369
|
"supervising_provider_npis": supervising_provider_npis,
|
|
344
370
|
"supervising_provider_names": supervising_provider_names,
|
|
371
|
+
"claim_status": claim_status,
|
|
372
|
+
"claim_creation_category": claim_creation_category,
|
|
373
|
+
"tags": tags,
|
|
374
|
+
"primary_payer_names": primary_payer_names,
|
|
375
|
+
"patient_names": patient_names,
|
|
345
376
|
"has_charge_capture_updates": has_charge_capture_updates
|
|
346
377
|
}.compact
|
|
347
378
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
@@ -30,7 +30,7 @@ module CandidApiClient
|
|
|
30
30
|
# @return [CandidApiClient::Diagnoses::Types::Diagnosis]
|
|
31
31
|
# @example
|
|
32
32
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
33
|
-
# api.diagnoses.create(request: {
|
|
33
|
+
# api.diagnoses.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", code_type: ABF, code: "code" })
|
|
34
34
|
def create(request:, request_options: nil)
|
|
35
35
|
response = @request_client.conn.post do |req|
|
|
36
36
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -143,7 +143,7 @@ module CandidApiClient
|
|
|
143
143
|
# @return [CandidApiClient::Diagnoses::Types::Diagnosis]
|
|
144
144
|
# @example
|
|
145
145
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
146
|
-
# api.diagnoses.create(request: {
|
|
146
|
+
# api.diagnoses.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", code_type: ABF, code: "code" })
|
|
147
147
|
def create(request:, request_options: nil)
|
|
148
148
|
Async do
|
|
149
149
|
response = @request_client.conn.post do |req|
|