candidhealth 1.6.0 → 1.8.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 +74 -0
- data/lib/candidhealth/charge_capture/v_1/client.rb +48 -48
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +70 -56
- data/lib/candidhealth/commons/types/clearinghouse.rb +18 -0
- data/lib/candidhealth/commons/types/procedure_modifier.rb +11 -0
- data/lib/candidhealth/credentialing/v_2/client.rb +342 -8
- data/lib/candidhealth/credentialing/v_2/types/base_credentialing_span.rb +143 -0
- data/lib/candidhealth/credentialing/v_2/types/facility_credentialing_span.rb +165 -0
- data/lib/candidhealth/credentialing/v_2/types/facility_credentialing_span_page.rb +88 -0
- data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span.rb +34 -34
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +1 -1
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update.rb +1 -1
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +1 -1
- data/lib/candidhealth/encounters/v_4/client.rb +3253 -2040
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +111 -86
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +39 -33
- data/lib/candidhealth/encounters/v_4/types/encounter_create.rb +796 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +131 -117
- data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +70 -56
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +29 -39
- data/lib/candidhealth/encounters/v_4/types/encounter_rendering_or_attending_provider_required_error.rb +55 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_update.rb +736 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +944 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_base.rb +691 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +791 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter_base.rb +572 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +872 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_update_base.rb +700 -0
- data/lib/candidhealth/fee_schedules/v_3/client.rb +57 -0
- data/lib/candidhealth/fee_schedules/v_3/types/validation_error.rb +12 -0
- data/lib/candidhealth/financials/types/patient_transaction_source.rb +1 -0
- data/lib/candidhealth/health_care_code_information/client.rb +30 -0
- data/lib/candidhealth/health_care_code_information/v_1/client.rb +268 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +1068 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +71 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +237 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +207 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +54 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +218 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +225 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +227 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +188 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +225 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +71 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +249 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +219 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +25 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +252 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +222 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +215 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +248 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +218 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/present_on_admission_indicator_code.rb +17 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +215 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +246 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_code_qualifier.rb +15 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +216 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +72 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_admitting_diagnosis.rb +69 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_diagnosis_related_group.rb +69 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_principal_diagnosis.rb +69 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_principal_procedure_information.rb +71 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_code.rb +119 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +215 -0
- data/lib/candidhealth/individual/types/patient.rb +6 -6
- data/lib/candidhealth/individual/types/patient_base.rb +6 -6
- data/lib/candidhealth/individual/types/patient_create.rb +6 -6
- data/lib/candidhealth/individual/types/patient_update.rb +6 -6
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +6 -6
- data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
- data/lib/candidhealth/patient_ar/client.rb +30 -0
- data/lib/candidhealth/patient_ar/v_1/client.rb +161 -0
- data/lib/candidhealth/patient_ar/v_1/types/insurance_adjustment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/insurance_payment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/invalid_filters_error_type.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/inventory_record.rb +101 -0
- data/lib/candidhealth/patient_ar/v_1/types/invoice_itemization_response.rb +103 -0
- data/lib/candidhealth/patient_ar/v_1/types/list_inventory_paged_response.rb +77 -0
- data/lib/candidhealth/patient_ar/v_1/types/non_insurance_adjustment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/non_insurance_payment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_adjustment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_ar_status.rb +14 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_payment_allocation.rb +76 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_payment_info.rb +75 -0
- data/lib/candidhealth/patient_ar/v_1/types/service_line_itemization.rb +210 -0
- data/lib/candidhealth/payers/client.rb +7 -0
- data/lib/candidhealth/payers/v_4/client.rb +137 -0
- data/lib/candidhealth/payers/v_4/types/clearinghouse_payer_info.rb +93 -0
- data/lib/candidhealth/payers/v_4/types/payer.rb +116 -0
- data/lib/candidhealth/payers/v_4/types/payer_ids.rb +107 -0
- data/lib/candidhealth/payers/v_4/types/payer_page.rb +88 -0
- data/lib/candidhealth/payers/v_4/types/support_state.rb +15 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +3 -3
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +204 -6
- data/lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb +3 -3
- data/lib/candidhealth/pre_encounter/patients/v_1/types/inferred_patient_metadata.rb +80 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +33 -5
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +33 -5
- data/lib/candidhealth/pre_encounter/patients/v_1/types/origination_detail.rb +104 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +32 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_source.rb +18 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_type.rb +17 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/specialization_category.rb +42 -0
- data/lib/candidhealth/service_lines/v_2/client.rb +252 -10
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +28 -10
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +52 -40
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +251 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +243 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +48 -24
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +58 -46
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base.rb +273 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base_base.rb +265 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +64 -54
- data/lib/candidhealth/service_lines/v_2/types/service_line_update_base.rb +263 -0
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +271 -0
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create_standalone.rb +317 -0
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_update.rb +307 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite.rb +2 -2
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_base.rb +90 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +112 -0
- data/lib/candidhealth.rb +21 -7
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +116 -13
- metadata +109 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa45a6fe274710c9aac40b6aed3f41e36f54d23ff505357a8b0d4db72d1044d7
|
4
|
+
data.tar.gz: 4e13764dbd0aa89d5a42b1c853d04e1ff968ce4ae77ab3fa0a77baf1328f8a10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e76c9cb32c9372951674739d28ad0b698dc5365ee99466785614c88691ab6cc3215dedf880cf4004f9429f76f1432b94c2d4c9e006f86bb7f3b1d4027f5a5765
|
7
|
+
data.tar.gz: f62a5a0b3de9d31692d1d168a81291506b9f03eccaf54390fcd0f9dd19c15a7cd5e97c681f4cac32e9bc6a2661128428cb6637c9bbeca609b7632fd7b24df0d8
|
@@ -83,6 +83,42 @@ 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
|
86
122
|
end
|
87
123
|
|
88
124
|
class AsyncDefaultClient
|
@@ -163,6 +199,44 @@ module CandidApiClient
|
|
163
199
|
CandidApiClient::Auth::Default::Types::AuthGetTokenResponse.from_json(json_object: response.body)
|
164
200
|
end
|
165
201
|
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
|
166
240
|
end
|
167
241
|
end
|
168
242
|
end
|
@@ -30,6 +30,14 @@ module CandidApiClient
|
|
30
30
|
# @param data [Hash] Charge Capture data contains all the fields needed to create an encounter, but
|
31
31
|
# listed as optional. Candid will use this data when attempting to bundle multiple
|
32
32
|
# Charge Captures into a single encounter.Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
|
33
|
+
# * :vitals (Hash)
|
34
|
+
# * :height_in (Integer)
|
35
|
+
# * :weight_lbs (Integer)
|
36
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
37
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
38
|
+
# * :body_temperature_f (Float)
|
39
|
+
# * :hemoglobin_gdl (Float)
|
40
|
+
# * :hematocrit_pct (Float)
|
33
41
|
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
|
34
42
|
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
|
35
43
|
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
|
@@ -269,14 +277,6 @@ module CandidApiClient
|
|
269
277
|
# * :last_menstrual_period_date (Date)
|
270
278
|
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
271
279
|
# * :patient_authorized_release (Boolean)
|
272
|
-
# * :vitals (Hash)
|
273
|
-
# * :height_in (Integer)
|
274
|
-
# * :weight_lbs (Integer)
|
275
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
276
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
277
|
-
# * :body_temperature_f (Float)
|
278
|
-
# * :hemoglobin_gdl (Float)
|
279
|
-
# * :hematocrit_pct (Float)
|
280
280
|
# * :referral_number (String)
|
281
281
|
# * :secondary_payer_carrier_code (String)
|
282
282
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
|
@@ -351,6 +351,14 @@ module CandidApiClient
|
|
351
351
|
# @param data [Hash] Charge Capture data contains all the fields needed to create an encounter, but
|
352
352
|
# listed as optional. Candid will use this data when attempting to bundle multiple
|
353
353
|
# Charge Captures into a single encounter.Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
|
354
|
+
# * :vitals (Hash)
|
355
|
+
# * :height_in (Integer)
|
356
|
+
# * :weight_lbs (Integer)
|
357
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
358
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
359
|
+
# * :body_temperature_f (Float)
|
360
|
+
# * :hemoglobin_gdl (Float)
|
361
|
+
# * :hematocrit_pct (Float)
|
354
362
|
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
|
355
363
|
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
|
356
364
|
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
|
@@ -590,14 +598,6 @@ module CandidApiClient
|
|
590
598
|
# * :last_menstrual_period_date (Date)
|
591
599
|
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
592
600
|
# * :patient_authorized_release (Boolean)
|
593
|
-
# * :vitals (Hash)
|
594
|
-
# * :height_in (Integer)
|
595
|
-
# * :weight_lbs (Integer)
|
596
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
597
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
598
|
-
# * :body_temperature_f (Float)
|
599
|
-
# * :hemoglobin_gdl (Float)
|
600
|
-
# * :hematocrit_pct (Float)
|
601
601
|
# * :referral_number (String)
|
602
602
|
# * :secondary_payer_carrier_code (String)
|
603
603
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
|
@@ -652,6 +652,14 @@ module CandidApiClient
|
|
652
652
|
|
653
653
|
# @param charge_capture_id [String]
|
654
654
|
# @param data [Hash] Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
|
655
|
+
# * :vitals (Hash)
|
656
|
+
# * :height_in (Integer)
|
657
|
+
# * :weight_lbs (Integer)
|
658
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
659
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
660
|
+
# * :body_temperature_f (Float)
|
661
|
+
# * :hemoglobin_gdl (Float)
|
662
|
+
# * :hematocrit_pct (Float)
|
655
663
|
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
|
656
664
|
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
|
657
665
|
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
|
@@ -891,14 +899,6 @@ module CandidApiClient
|
|
891
899
|
# * :last_menstrual_period_date (Date)
|
892
900
|
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
893
901
|
# * :patient_authorized_release (Boolean)
|
894
|
-
# * :vitals (Hash)
|
895
|
-
# * :height_in (Integer)
|
896
|
-
# * :weight_lbs (Integer)
|
897
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
898
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
899
|
-
# * :body_temperature_f (Float)
|
900
|
-
# * :hemoglobin_gdl (Float)
|
901
|
-
# * :hematocrit_pct (Float)
|
902
902
|
# * :referral_number (String)
|
903
903
|
# * :secondary_payer_carrier_code (String)
|
904
904
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
@@ -1139,6 +1139,14 @@ module CandidApiClient
|
|
1139
1139
|
# @param data [Hash] Charge Capture data contains all the fields needed to create an encounter, but
|
1140
1140
|
# listed as optional. Candid will use this data when attempting to bundle multiple
|
1141
1141
|
# Charge Captures into a single encounter.Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
|
1142
|
+
# * :vitals (Hash)
|
1143
|
+
# * :height_in (Integer)
|
1144
|
+
# * :weight_lbs (Integer)
|
1145
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
1146
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
1147
|
+
# * :body_temperature_f (Float)
|
1148
|
+
# * :hemoglobin_gdl (Float)
|
1149
|
+
# * :hematocrit_pct (Float)
|
1142
1150
|
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
|
1143
1151
|
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
|
1144
1152
|
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
|
@@ -1378,14 +1386,6 @@ module CandidApiClient
|
|
1378
1386
|
# * :last_menstrual_period_date (Date)
|
1379
1387
|
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
1380
1388
|
# * :patient_authorized_release (Boolean)
|
1381
|
-
# * :vitals (Hash)
|
1382
|
-
# * :height_in (Integer)
|
1383
|
-
# * :weight_lbs (Integer)
|
1384
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
1385
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
1386
|
-
# * :body_temperature_f (Float)
|
1387
|
-
# * :hemoglobin_gdl (Float)
|
1388
|
-
# * :hematocrit_pct (Float)
|
1389
1389
|
# * :referral_number (String)
|
1390
1390
|
# * :secondary_payer_carrier_code (String)
|
1391
1391
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
|
@@ -1462,6 +1462,14 @@ module CandidApiClient
|
|
1462
1462
|
# @param data [Hash] Charge Capture data contains all the fields needed to create an encounter, but
|
1463
1463
|
# listed as optional. Candid will use this data when attempting to bundle multiple
|
1464
1464
|
# Charge Captures into a single encounter.Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
|
1465
|
+
# * :vitals (Hash)
|
1466
|
+
# * :height_in (Integer)
|
1467
|
+
# * :weight_lbs (Integer)
|
1468
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
1469
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
1470
|
+
# * :body_temperature_f (Float)
|
1471
|
+
# * :hemoglobin_gdl (Float)
|
1472
|
+
# * :hematocrit_pct (Float)
|
1465
1473
|
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
|
1466
1474
|
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
|
1467
1475
|
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
|
@@ -1701,14 +1709,6 @@ module CandidApiClient
|
|
1701
1709
|
# * :last_menstrual_period_date (Date)
|
1702
1710
|
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
1703
1711
|
# * :patient_authorized_release (Boolean)
|
1704
|
-
# * :vitals (Hash)
|
1705
|
-
# * :height_in (Integer)
|
1706
|
-
# * :weight_lbs (Integer)
|
1707
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
1708
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
1709
|
-
# * :body_temperature_f (Float)
|
1710
|
-
# * :hemoglobin_gdl (Float)
|
1711
|
-
# * :hematocrit_pct (Float)
|
1712
1712
|
# * :referral_number (String)
|
1713
1713
|
# * :secondary_payer_carrier_code (String)
|
1714
1714
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
|
@@ -1765,6 +1765,14 @@ module CandidApiClient
|
|
1765
1765
|
|
1766
1766
|
# @param charge_capture_id [String]
|
1767
1767
|
# @param data [Hash] Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
|
1768
|
+
# * :vitals (Hash)
|
1769
|
+
# * :height_in (Integer)
|
1770
|
+
# * :weight_lbs (Integer)
|
1771
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
1772
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
1773
|
+
# * :body_temperature_f (Float)
|
1774
|
+
# * :hemoglobin_gdl (Float)
|
1775
|
+
# * :hematocrit_pct (Float)
|
1768
1776
|
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
|
1769
1777
|
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
|
1770
1778
|
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
|
@@ -2004,14 +2012,6 @@ module CandidApiClient
|
|
2004
2012
|
# * :last_menstrual_period_date (Date)
|
2005
2013
|
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
2006
2014
|
# * :patient_authorized_release (Boolean)
|
2007
|
-
# * :vitals (Hash)
|
2008
|
-
# * :height_in (Integer)
|
2009
|
-
# * :weight_lbs (Integer)
|
2010
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
2011
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
2012
|
-
# * :body_temperature_f (Float)
|
2013
|
-
# * :hemoglobin_gdl (Float)
|
2014
|
-
# * :hematocrit_pct (Float)
|
2015
2015
|
# * :referral_number (String)
|
2016
2016
|
# * :secondary_payer_carrier_code (String)
|
2017
2017
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require_relative "../../../encounters/v_4/types/vitals_update"
|
3
4
|
require_relative "../../../diagnoses/types/diagnosis_create_optional"
|
4
5
|
require_relative "../../../encounters/v_4/types/clinical_note_category_create_optional"
|
5
6
|
require_relative "../../../encounters/v_4/types/claim_supplemental_information_optional"
|
@@ -28,7 +29,6 @@ require_relative "../../../encounters/v_4/types/synchronicity_type"
|
|
28
29
|
require_relative "../../../commons/types/facility_type_code"
|
29
30
|
require_relative "../../../encounters/v_4/types/service_authorization_exception_code"
|
30
31
|
require_relative "../../../commons/types/delay_reason_code"
|
31
|
-
require_relative "../../../encounters/v_4/types/vitals_update"
|
32
32
|
require "ostruct"
|
33
33
|
require "json"
|
34
34
|
|
@@ -37,6 +37,10 @@ module CandidApiClient
|
|
37
37
|
module V1
|
38
38
|
module Types
|
39
39
|
class ChargeCaptureData
|
40
|
+
# @return [CandidApiClient::Encounters::V4::Types::VitalsUpdate] If a vitals entity already exists for the encounter, then all values will be
|
41
|
+
# updated to the provided values.
|
42
|
+
# Otherwise, a new vitals object will be created for the encounter.
|
43
|
+
attr_reader :vitals
|
40
44
|
# @return [Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
41
45
|
# diagnoses
|
42
46
|
# may be submitted at this time, and coders will later prioritize the 12 that will
|
@@ -47,11 +51,11 @@ module CandidApiClient
|
|
47
51
|
# patient encounters. Please note that medical records for appeals should be sent
|
48
52
|
# using the Encounter Attachments API.
|
49
53
|
attr_reader :clinical_notes
|
50
|
-
# @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10
|
51
|
-
# permitted.
|
54
|
+
# @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>] Refers to Loop 2300 - Segment PWK on the 837P and 837i form. No more than 10
|
55
|
+
# entries are permitted.
|
52
56
|
attr_reader :claim_supplemental_information
|
53
|
-
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferralOptional] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
54
|
-
# 837P form
|
57
|
+
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferralOptional] Refers to Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
58
|
+
# 837P and 837i form
|
55
59
|
attr_reader :epsdt_referral
|
56
60
|
# @return [Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>] Existing medications that should be on the encounter.
|
57
61
|
# Note all current existing medications on encounter will be overridden with this
|
@@ -97,10 +101,12 @@ module CandidApiClient
|
|
97
101
|
# facility can represent the provider's location when the service was delivered
|
98
102
|
# (e.g., home), or the location where an in-person visit would have taken place,
|
99
103
|
# whichever is easier to identify. If the provider is in-network, service facility
|
100
|
-
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form.
|
104
|
+
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is
|
105
|
+
# no equivalent on the paper UB-04 claim form, but this field is equivalent to
|
106
|
+
# Loop 2310E Service Facility Location details on an 837i form, and is used when
|
107
|
+
# this is different to the entity identified as the Billing Provider. Note that
|
101
108
|
# for an in-network claim to be successfully adjudicated, the service facility
|
102
|
-
# address listed
|
103
|
-
# credentialing process.
|
109
|
+
# address listed
|
104
110
|
attr_reader :service_facility
|
105
111
|
# @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdateWithOptionalAddress] The rendering provider is the practitioner -- physician, nurse practitioner,
|
106
112
|
# etc. -- performing the service. For telehealth services, the rendering provider
|
@@ -128,15 +134,16 @@ module CandidApiClient
|
|
128
134
|
# circumstances, this will be an individual provider. In that case, submit that
|
129
135
|
# provider's NPI and the tax ID (TIN) that the provider gave to the payer during
|
130
136
|
# contracting. In other cases, the billing entity will be a medical group. If so,
|
131
|
-
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form
|
137
|
+
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form
|
138
|
+
# or Form Locator 1 on a UB-04 claim form.
|
132
139
|
attr_reader :billing_provider
|
133
140
|
# @return [CandidApiClient::Commons::Types::StreetAddressShortZipOptional] Specifies the address to which payments for the claim should be sent.
|
134
141
|
attr_reader :pay_to_address
|
135
142
|
# @return [Boolean] Whether this patient has authorized insurance payments to be made to you, not
|
136
143
|
# them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
|
137
|
-
# form.
|
144
|
+
# form or Form Locator 53 on a UB-04 claim form.
|
138
145
|
attr_reader :benefits_assigned_to_provider
|
139
|
-
# @return [String] Box 23 on the CMS-1500 claim form.
|
146
|
+
# @return [String] Box 23 on the CMS-1500 claim form or Form Locator 63 on a UB-04 claim form.
|
140
147
|
attr_reader :prior_authorization_number
|
141
148
|
# @return [String] A client-specified unique ID to associate with this encounter;
|
142
149
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
@@ -144,7 +151,7 @@ module CandidApiClient
|
|
144
151
|
attr_reader :external_id
|
145
152
|
# @return [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
146
153
|
# This date must be the local date in the timezone where the service occurred.
|
147
|
-
# Box 24a on the CMS-1500 claim form.
|
154
|
+
# Box 24a on the CMS-1500 claim form or Form Locator 45 on the UB-04 claim form.
|
148
155
|
# If service occurred over a range of dates, this should be the start date.
|
149
156
|
# If service lines have distinct date_of_service values, updating the encounter's
|
150
157
|
# date_of_service will fail. If all service line date_of_service values are the
|
@@ -163,7 +170,9 @@ module CandidApiClient
|
|
163
170
|
# SELF_PAY if you intend to bill self pay/cash pay.
|
164
171
|
attr_reader :responsible_party
|
165
172
|
# @return [Boolean] Whether you have accepted the patient's authorization for insurance payments to
|
166
|
-
# be made to you, not them. Box 27 on the CMS-1500 claim form.
|
173
|
+
# be made to you, not them. Box 27 on the CMS-1500 claim form. There is no exact
|
174
|
+
# equivalent of this field on a UB-04 claim, however contributes to the concept of
|
175
|
+
# Form Locator 53.
|
167
176
|
attr_reader :provider_accepts_assignment
|
168
177
|
# @return [CandidApiClient::Encounters::V4::Types::SynchronicityType] Whether or not this was a synchronous or asynchronous encounter. Asynchronous
|
169
178
|
# encounters occur when providers and patients communicate online using forms,
|
@@ -188,7 +197,7 @@ module CandidApiClient
|
|
188
197
|
# end_date_of_service will update all service line date_of_service values.
|
189
198
|
attr_reader :end_date_of_service
|
190
199
|
# @return [String] Defines additional information on the claim needed by the payer.
|
191
|
-
# Box 19 on the CMS-1500 claim form.
|
200
|
+
# Box 19 on the CMS-1500 claim form or Form Locator 80 on a UB-04 claim form.
|
192
201
|
attr_reader :additional_information
|
193
202
|
# @return [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
194
203
|
# Required when mandated by government law or regulation to obtain authorization
|
@@ -197,15 +206,15 @@ module CandidApiClient
|
|
197
206
|
# the service was performed without
|
198
207
|
# obtaining the authorization.
|
199
208
|
attr_reader :service_authorization_exception_code
|
200
|
-
# @return [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
209
|
+
# @return [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18 or UB-04 Form Locator 12.
|
201
210
|
# Required on all ambulance claims when the patient was known to be admitted to
|
202
211
|
# the hospital.
|
203
212
|
# OR
|
204
213
|
# Required on all claims involving inpatient medical visits.
|
205
214
|
attr_reader :admission_date
|
206
|
-
# @return [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
207
|
-
#
|
208
|
-
#
|
215
|
+
# @return [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18 Required for inpatient claims when the
|
216
|
+
# patient was discharged from the facility and the discharge date is known. Not
|
217
|
+
# used on an institutional claim.
|
209
218
|
attr_reader :discharge_date
|
210
219
|
# @return [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
211
220
|
# Required for the initial medical service or visit performed in response to a
|
@@ -213,22 +222,20 @@ module CandidApiClient
|
|
213
222
|
# service.
|
214
223
|
# OR
|
215
224
|
# This date is the onset of acute symptoms for the current illness or condition.
|
225
|
+
# For UB-04 claims, this is populated separately via occurrence codes.
|
216
226
|
attr_reader :onset_of_current_illness_or_symptom_date
|
217
227
|
# @return [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
218
228
|
# Required when, in the judgment of the provider, the services on this claim are
|
219
229
|
# related to the patient's pregnancy.de
|
230
|
+
# This field is populated separately via occurrence codes for UB-04 claim forms.
|
220
231
|
attr_reader :last_menstrual_period_date
|
221
232
|
# @return [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
222
233
|
# Code indicating the reason why a request was delayed
|
223
234
|
attr_reader :delay_reason_code
|
224
235
|
# @return [Boolean] Whether this patient has authorized the release of medical information
|
225
236
|
# for billing purpose.
|
226
|
-
# Box 12 on the CMS-1500 claim form.
|
237
|
+
# Box 12 on the CMS-1500 claim form or Form Locator 52 on a UB-04 claim form.
|
227
238
|
attr_reader :patient_authorized_release
|
228
|
-
# @return [CandidApiClient::Encounters::V4::Types::VitalsUpdate] If a vitals entity already exists for the encounter, then all values will be
|
229
|
-
# updated to the provided values.
|
230
|
-
# Otherwise, a new vitals object will be created for the encounter.
|
231
|
-
attr_reader :vitals
|
232
239
|
# @return [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
233
240
|
attr_reader :referral_number
|
234
241
|
# @return [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
|
@@ -242,6 +249,9 @@ module CandidApiClient
|
|
242
249
|
|
243
250
|
OMIT = Object.new
|
244
251
|
|
252
|
+
# @param vitals [CandidApiClient::Encounters::V4::Types::VitalsUpdate] If a vitals entity already exists for the encounter, then all values will be
|
253
|
+
# updated to the provided values.
|
254
|
+
# Otherwise, a new vitals object will be created for the encounter.
|
245
255
|
# @param diagnoses [Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
246
256
|
# diagnoses
|
247
257
|
# may be submitted at this time, and coders will later prioritize the 12 that will
|
@@ -250,10 +260,10 @@ module CandidApiClient
|
|
250
260
|
# @param clinical_notes [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>] Holds a collection of clinical observations made by healthcare providers during
|
251
261
|
# patient encounters. Please note that medical records for appeals should be sent
|
252
262
|
# using the Encounter Attachments API.
|
253
|
-
# @param claim_supplemental_information [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10
|
254
|
-
# permitted.
|
255
|
-
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferralOptional] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
256
|
-
# 837P form
|
263
|
+
# @param claim_supplemental_information [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>] Refers to Loop 2300 - Segment PWK on the 837P and 837i form. No more than 10
|
264
|
+
# entries are permitted.
|
265
|
+
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferralOptional] Refers to Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
266
|
+
# 837P and 837i form
|
257
267
|
# @param existing_medications [Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>] Existing medications that should be on the encounter.
|
258
268
|
# Note all current existing medications on encounter will be overridden with this
|
259
269
|
# list.
|
@@ -286,10 +296,12 @@ module CandidApiClient
|
|
286
296
|
# facility can represent the provider's location when the service was delivered
|
287
297
|
# (e.g., home), or the location where an in-person visit would have taken place,
|
288
298
|
# whichever is easier to identify. If the provider is in-network, service facility
|
289
|
-
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form.
|
299
|
+
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is
|
300
|
+
# no equivalent on the paper UB-04 claim form, but this field is equivalent to
|
301
|
+
# Loop 2310E Service Facility Location details on an 837i form, and is used when
|
302
|
+
# this is different to the entity identified as the Billing Provider. Note that
|
290
303
|
# for an in-network claim to be successfully adjudicated, the service facility
|
291
|
-
# address listed
|
292
|
-
# credentialing process.
|
304
|
+
# address listed
|
293
305
|
# @param rendering_provider [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdateWithOptionalAddress] The rendering provider is the practitioner -- physician, nurse practitioner,
|
294
306
|
# etc. -- performing the service. For telehealth services, the rendering provider
|
295
307
|
# performs the visit, asynchronous communication, or other service. The rendering
|
@@ -312,18 +324,19 @@ module CandidApiClient
|
|
312
324
|
# circumstances, this will be an individual provider. In that case, submit that
|
313
325
|
# provider's NPI and the tax ID (TIN) that the provider gave to the payer during
|
314
326
|
# contracting. In other cases, the billing entity will be a medical group. If so,
|
315
|
-
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form
|
327
|
+
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form
|
328
|
+
# or Form Locator 1 on a UB-04 claim form.
|
316
329
|
# @param pay_to_address [CandidApiClient::Commons::Types::StreetAddressShortZipOptional] Specifies the address to which payments for the claim should be sent.
|
317
330
|
# @param benefits_assigned_to_provider [Boolean] Whether this patient has authorized insurance payments to be made to you, not
|
318
331
|
# them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
|
319
|
-
# form.
|
320
|
-
# @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form.
|
332
|
+
# form or Form Locator 53 on a UB-04 claim form.
|
333
|
+
# @param prior_authorization_number [String] Box 23 on the CMS-1500 claim form or Form Locator 63 on a UB-04 claim form.
|
321
334
|
# @param external_id [String] A client-specified unique ID to associate with this encounter;
|
322
335
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
323
336
|
# This field should not contain PHI.
|
324
337
|
# @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
325
338
|
# This date must be the local date in the timezone where the service occurred.
|
326
|
-
# Box 24a on the CMS-1500 claim form.
|
339
|
+
# Box 24a on the CMS-1500 claim form or Form Locator 45 on the UB-04 claim form.
|
327
340
|
# If service occurred over a range of dates, this should be the start date.
|
328
341
|
# If service lines have distinct date_of_service values, updating the encounter's
|
329
342
|
# date_of_service will fail. If all service line date_of_service values are the
|
@@ -338,7 +351,9 @@ module CandidApiClient
|
|
338
351
|
# @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
|
339
352
|
# SELF_PAY if you intend to bill self pay/cash pay.
|
340
353
|
# @param provider_accepts_assignment [Boolean] Whether you have accepted the patient's authorization for insurance payments to
|
341
|
-
# be made to you, not them. Box 27 on the CMS-1500 claim form.
|
354
|
+
# be made to you, not them. Box 27 on the CMS-1500 claim form. There is no exact
|
355
|
+
# equivalent of this field on a UB-04 claim, however contributes to the concept of
|
356
|
+
# Form Locator 53.
|
342
357
|
# @param synchronicity [CandidApiClient::Encounters::V4::Types::SynchronicityType] Whether or not this was a synchronous or asynchronous encounter. Asynchronous
|
343
358
|
# encounters occur when providers and patients communicate online using forms,
|
344
359
|
# instant messaging, or other pre-recorded digital mediums. Synchronous encounters
|
@@ -358,45 +373,45 @@ module CandidApiClient
|
|
358
373
|
# end_date_of_service values are the same, updating the encounter's
|
359
374
|
# end_date_of_service will update all service line date_of_service values.
|
360
375
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
361
|
-
# Box 19 on the CMS-1500 claim form.
|
376
|
+
# Box 19 on the CMS-1500 claim form or Form Locator 80 on a UB-04 claim form.
|
362
377
|
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
363
378
|
# Required when mandated by government law or regulation to obtain authorization
|
364
379
|
# for specific service(s) but, for the
|
365
380
|
# reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
|
366
381
|
# the service was performed without
|
367
382
|
# obtaining the authorization.
|
368
|
-
# @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
383
|
+
# @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18 or UB-04 Form Locator 12.
|
369
384
|
# Required on all ambulance claims when the patient was known to be admitted to
|
370
385
|
# the hospital.
|
371
386
|
# OR
|
372
387
|
# Required on all claims involving inpatient medical visits.
|
373
|
-
# @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
374
|
-
#
|
375
|
-
#
|
388
|
+
# @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18 Required for inpatient claims when the
|
389
|
+
# patient was discharged from the facility and the discharge date is known. Not
|
390
|
+
# used on an institutional claim.
|
376
391
|
# @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
377
392
|
# Required for the initial medical service or visit performed in response to a
|
378
393
|
# medical emergency when the date is available and is different than the date of
|
379
394
|
# service.
|
380
395
|
# OR
|
381
396
|
# This date is the onset of acute symptoms for the current illness or condition.
|
397
|
+
# For UB-04 claims, this is populated separately via occurrence codes.
|
382
398
|
# @param last_menstrual_period_date [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
383
399
|
# Required when, in the judgment of the provider, the services on this claim are
|
384
400
|
# related to the patient's pregnancy.de
|
401
|
+
# This field is populated separately via occurrence codes for UB-04 claim forms.
|
385
402
|
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
386
403
|
# Code indicating the reason why a request was delayed
|
387
404
|
# @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
|
388
405
|
# for billing purpose.
|
389
|
-
# Box 12 on the CMS-1500 claim form.
|
390
|
-
# @param vitals [CandidApiClient::Encounters::V4::Types::VitalsUpdate] If a vitals entity already exists for the encounter, then all values will be
|
391
|
-
# updated to the provided values.
|
392
|
-
# Otherwise, a new vitals object will be created for the encounter.
|
406
|
+
# Box 12 on the CMS-1500 claim form or Form Locator 52 on a UB-04 claim form.
|
393
407
|
# @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
394
408
|
# @param secondary_payer_carrier_code [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
|
395
409
|
# identify the primary payer. This is required for certain states.
|
396
410
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
397
411
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData]
|
398
|
-
def initialize(diagnoses: OMIT, clinical_notes: OMIT, claim_supplemental_information: OMIT,
|
399
|
-
epsdt_referral: OMIT, existing_medications: OMIT, guarantor: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, subscriber_tertiary: OMIT, interventions: OMIT, schema_instances: OMIT, external_claim_submission: OMIT, service_lines: OMIT, patient_histories: OMIT, billing_notes: OMIT, patient: OMIT, service_facility: OMIT, rendering_provider: OMIT, initial_referring_provider: OMIT, referring_provider: OMIT, supervising_provider: OMIT, billing_provider: OMIT, pay_to_address: OMIT, benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT, date_of_service: OMIT, tag_ids: OMIT, billable_status: OMIT, responsible_party: OMIT, provider_accepts_assignment: OMIT, synchronicity: OMIT, place_of_service_code: OMIT, appointment_type: OMIT, end_date_of_service: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, patient_authorized_release: OMIT,
|
412
|
+
def initialize(vitals: OMIT, diagnoses: OMIT, clinical_notes: OMIT, claim_supplemental_information: OMIT,
|
413
|
+
epsdt_referral: OMIT, existing_medications: OMIT, guarantor: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, subscriber_tertiary: OMIT, interventions: OMIT, schema_instances: OMIT, external_claim_submission: OMIT, service_lines: OMIT, patient_histories: OMIT, billing_notes: OMIT, patient: OMIT, service_facility: OMIT, rendering_provider: OMIT, initial_referring_provider: OMIT, referring_provider: OMIT, supervising_provider: OMIT, billing_provider: OMIT, pay_to_address: OMIT, benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT, date_of_service: OMIT, tag_ids: OMIT, billable_status: OMIT, responsible_party: OMIT, provider_accepts_assignment: OMIT, synchronicity: OMIT, place_of_service_code: OMIT, appointment_type: OMIT, end_date_of_service: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, patient_authorized_release: OMIT, referral_number: OMIT, secondary_payer_carrier_code: OMIT, additional_properties: nil)
|
414
|
+
@vitals = vitals if vitals != OMIT
|
400
415
|
@diagnoses = diagnoses if diagnoses != OMIT
|
401
416
|
@clinical_notes = clinical_notes if clinical_notes != OMIT
|
402
417
|
@claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
|
@@ -444,11 +459,11 @@ module CandidApiClient
|
|
444
459
|
@last_menstrual_period_date = last_menstrual_period_date if last_menstrual_period_date != OMIT
|
445
460
|
@delay_reason_code = delay_reason_code if delay_reason_code != OMIT
|
446
461
|
@patient_authorized_release = patient_authorized_release if patient_authorized_release != OMIT
|
447
|
-
@vitals = vitals if vitals != OMIT
|
448
462
|
@referral_number = referral_number if referral_number != OMIT
|
449
463
|
@secondary_payer_carrier_code = secondary_payer_carrier_code if secondary_payer_carrier_code != OMIT
|
450
464
|
@additional_properties = additional_properties
|
451
465
|
@_field_set = {
|
466
|
+
"vitals": vitals,
|
452
467
|
"diagnoses": diagnoses,
|
453
468
|
"clinical_notes": clinical_notes,
|
454
469
|
"claim_supplemental_information": claim_supplemental_information,
|
@@ -492,7 +507,6 @@ module CandidApiClient
|
|
492
507
|
"last_menstrual_period_date": last_menstrual_period_date,
|
493
508
|
"delay_reason_code": delay_reason_code,
|
494
509
|
"patient_authorized_release": patient_authorized_release,
|
495
|
-
"vitals": vitals,
|
496
510
|
"referral_number": referral_number,
|
497
511
|
"secondary_payer_carrier_code": secondary_payer_carrier_code
|
498
512
|
}.reject do |_k, v|
|
@@ -507,6 +521,12 @@ module CandidApiClient
|
|
507
521
|
def self.from_json(json_object:)
|
508
522
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
509
523
|
parsed_json = JSON.parse(json_object)
|
524
|
+
if parsed_json["vitals"].nil?
|
525
|
+
vitals = nil
|
526
|
+
else
|
527
|
+
vitals = parsed_json["vitals"].to_json
|
528
|
+
vitals = CandidApiClient::Encounters::V4::Types::VitalsUpdate.from_json(json_object: vitals)
|
529
|
+
end
|
510
530
|
diagnoses = parsed_json["diagnoses"]&.map do |item|
|
511
531
|
item = item.to_json
|
512
532
|
CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional.from_json(json_object: item)
|
@@ -653,15 +673,10 @@ module CandidApiClient
|
|
653
673
|
end
|
654
674
|
delay_reason_code = struct["delay_reason_code"]
|
655
675
|
patient_authorized_release = struct["patient_authorized_release"]
|
656
|
-
if parsed_json["vitals"].nil?
|
657
|
-
vitals = nil
|
658
|
-
else
|
659
|
-
vitals = parsed_json["vitals"].to_json
|
660
|
-
vitals = CandidApiClient::Encounters::V4::Types::VitalsUpdate.from_json(json_object: vitals)
|
661
|
-
end
|
662
676
|
referral_number = struct["referral_number"]
|
663
677
|
secondary_payer_carrier_code = struct["secondary_payer_carrier_code"]
|
664
678
|
new(
|
679
|
+
vitals: vitals,
|
665
680
|
diagnoses: diagnoses,
|
666
681
|
clinical_notes: clinical_notes,
|
667
682
|
claim_supplemental_information: claim_supplemental_information,
|
@@ -705,7 +720,6 @@ module CandidApiClient
|
|
705
720
|
last_menstrual_period_date: last_menstrual_period_date,
|
706
721
|
delay_reason_code: delay_reason_code,
|
707
722
|
patient_authorized_release: patient_authorized_release,
|
708
|
-
vitals: vitals,
|
709
723
|
referral_number: referral_number,
|
710
724
|
secondary_payer_carrier_code: secondary_payer_carrier_code,
|
711
725
|
additional_properties: struct
|
@@ -726,6 +740,7 @@ module CandidApiClient
|
|
726
740
|
# @param obj [Object]
|
727
741
|
# @return [Void]
|
728
742
|
def self.validate_raw(obj:)
|
743
|
+
obj.vitals.nil? || CandidApiClient::Encounters::V4::Types::VitalsUpdate.validate_raw(obj: obj.vitals)
|
729
744
|
obj.diagnoses&.is_a?(Array) != false || raise("Passed value for field obj.diagnoses is not the expected type, validation failed.")
|
730
745
|
obj.clinical_notes&.is_a?(Array) != false || raise("Passed value for field obj.clinical_notes is not the expected type, validation failed.")
|
731
746
|
obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
|
@@ -769,7 +784,6 @@ module CandidApiClient
|
|
769
784
|
obj.last_menstrual_period_date&.is_a?(Date) != false || raise("Passed value for field obj.last_menstrual_period_date is not the expected type, validation failed.")
|
770
785
|
obj.delay_reason_code&.is_a?(CandidApiClient::Commons::Types::DelayReasonCode) != false || raise("Passed value for field obj.delay_reason_code is not the expected type, validation failed.")
|
771
786
|
obj.patient_authorized_release&.is_a?(Boolean) != false || raise("Passed value for field obj.patient_authorized_release is not the expected type, validation failed.")
|
772
|
-
obj.vitals.nil? || CandidApiClient::Encounters::V4::Types::VitalsUpdate.validate_raw(obj: obj.vitals)
|
773
787
|
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
774
788
|
obj.secondary_payer_carrier_code&.is_a?(String) != false || raise("Passed value for field obj.secondary_payer_carrier_code is not the expected type, validation failed.")
|
775
789
|
end
|