candidhealth 1.8.1 → 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/diagnoses/client.rb +2 -2
- data/lib/candidhealth/encounters/v_4/client.rb +479 -2522
- data/lib/candidhealth/encounters/v_4/types/encounter_submission_expectation.rb +3 -6
- data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +4 -4
- 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 +4 -4
- 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/payer.rb +10 -2
- 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 +1 -21
- metadata +3 -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
|
@@ -9,11 +9,8 @@ require_relative "types/responsible_party_type"
|
|
|
9
9
|
require_relative "types/encounter_owner_of_next_action_type"
|
|
10
10
|
require_relative "types/encounter_page"
|
|
11
11
|
require_relative "types/encounter"
|
|
12
|
-
require_relative "../../encounters_universal/types/universal_encounter_create"
|
|
13
12
|
require_relative "types/encounter_create"
|
|
14
|
-
require_relative "../../encounters_universal/types/universal_encounter_create_from_pre_encounter"
|
|
15
13
|
require_relative "types/encounter_create_from_pre_encounter"
|
|
16
|
-
require_relative "../../encounters_universal/types/universal_encounter_update"
|
|
17
14
|
require_relative "types/encounter_update"
|
|
18
15
|
require "async"
|
|
19
16
|
|
|
@@ -127,7 +124,7 @@ module CandidApiClient
|
|
|
127
124
|
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
128
125
|
end
|
|
129
126
|
|
|
130
|
-
# @param request [Hash] Request of type CandidApiClient::
|
|
127
|
+
# @param request [Hash] Request of type CandidApiClient::Encounters::V4::Types::EncounterCreate, as a Hash
|
|
131
128
|
# * :billing_provider (Hash)
|
|
132
129
|
# * :address (Hash)
|
|
133
130
|
# * :zip_plus_four_code (String)
|
|
@@ -143,6 +140,7 @@ module CandidApiClient
|
|
|
143
140
|
# * :first_name (String)
|
|
144
141
|
# * :last_name (String)
|
|
145
142
|
# * :organization_name (String)
|
|
143
|
+
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>)
|
|
146
144
|
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
147
145
|
# * :rendering_provider (Hash)
|
|
148
146
|
# * :npi (String)
|
|
@@ -157,114 +155,7 @@ module CandidApiClient
|
|
|
157
155
|
# * :first_name (String)
|
|
158
156
|
# * :last_name (String)
|
|
159
157
|
# * :organization_name (String)
|
|
160
|
-
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::
|
|
161
|
-
# * :health_care_code_information (Hash)
|
|
162
|
-
# * :principal_diagnosis (Hash)
|
|
163
|
-
# * :principal_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosisCodeQualifier)
|
|
164
|
-
# * :primary_diagnosis_code (String)
|
|
165
|
-
# * :present_on_admission_indicator (CandidApiClient::HealthCareCodeInformation::V1::Types::PresentOnAdmissionIndicatorCode)
|
|
166
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
167
|
-
# * :industry_code_1 (String)
|
|
168
|
-
# * :industry_code_2 (String)
|
|
169
|
-
# * :industry_code_3 (String)
|
|
170
|
-
# * :industry_code_4 (String)
|
|
171
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
172
|
-
# * :date_time_period (String)
|
|
173
|
-
# * :monetary_amount (String)
|
|
174
|
-
# * :quantity (String)
|
|
175
|
-
# * :admitting_diagnosis (Hash)
|
|
176
|
-
# * :admitting_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosisCodeQualifier)
|
|
177
|
-
# * :admitting_diagnosis_code (String)
|
|
178
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
179
|
-
# * :industry_code_1 (String)
|
|
180
|
-
# * :industry_code_2 (String)
|
|
181
|
-
# * :industry_code_3 (String)
|
|
182
|
-
# * :industry_code_4 (String)
|
|
183
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
184
|
-
# * :date_time_period (String)
|
|
185
|
-
# * :monetary_amount (String)
|
|
186
|
-
# * :quantity (String)
|
|
187
|
-
# * :patient_reasons_for_visit (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisitNew>)
|
|
188
|
-
# * :external_causes_of_injury (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjuryNew>)
|
|
189
|
-
# * :diagnosis_related_groups (Hash)
|
|
190
|
-
# * :diagnosis_related_group_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupCodeQualifier)
|
|
191
|
-
# * :diagnosis_related_group_code (String)
|
|
192
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
193
|
-
# * :industry_code_1 (String)
|
|
194
|
-
# * :industry_code_2 (String)
|
|
195
|
-
# * :industry_code_3 (String)
|
|
196
|
-
# * :industry_code_4 (String)
|
|
197
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
198
|
-
# * :date_time_period (String)
|
|
199
|
-
# * :monetary_amount (String)
|
|
200
|
-
# * :quantity (String)
|
|
201
|
-
# * :other_diagnosis_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformationNew>)
|
|
202
|
-
# * :principal_procedure (Hash)
|
|
203
|
-
# * :principal_procedure_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformationCodeQualifier)
|
|
204
|
-
# * :principal_procedure_code (String)
|
|
205
|
-
# * :procedure_date (DateTime)
|
|
206
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
207
|
-
# * :industry_code_1 (String)
|
|
208
|
-
# * :industry_code_2 (String)
|
|
209
|
-
# * :industry_code_3 (String)
|
|
210
|
-
# * :industry_code_4 (String)
|
|
211
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
212
|
-
# * :date_time_period (String)
|
|
213
|
-
# * :monetary_amount (String)
|
|
214
|
-
# * :quantity (String)
|
|
215
|
-
# * :other_procedure_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformationNew>)
|
|
216
|
-
# * :occurrence_span_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformationNew>)
|
|
217
|
-
# * :occurrence_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformationNew>)
|
|
218
|
-
# * :treatment_code_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformationNew>)
|
|
219
|
-
# * :value_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformationNew>)
|
|
220
|
-
# * :condition_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformationNew>)
|
|
221
|
-
# * :submission_expectation (CandidApiClient::Encounters::V4::Types::EncounterSubmissionExpectation)
|
|
222
|
-
# * :attending_provider (Hash)
|
|
223
|
-
# * :npi (String)
|
|
224
|
-
# * :taxonomy_code (String)
|
|
225
|
-
# * :address (Hash)
|
|
226
|
-
# * :zip_plus_four_code (String)
|
|
227
|
-
# * :address_1 (String)
|
|
228
|
-
# * :address_2 (String)
|
|
229
|
-
# * :city (String)
|
|
230
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
231
|
-
# * :zip_code (String)
|
|
232
|
-
# * :first_name (String)
|
|
233
|
-
# * :last_name (String)
|
|
234
|
-
# * :organization_name (String)
|
|
235
|
-
# * :admission_hour (Integer)
|
|
236
|
-
# * :admission_type_code (CandidApiClient::X12::V1::Types::TypeOfAdmissionOrVisitCode)
|
|
237
|
-
# * :admission_source_code (CandidApiClient::X12::V1::Types::PointOfOriginForAdmissionOrVisitCode)
|
|
238
|
-
# * :discharge_hour (Integer)
|
|
239
|
-
# * :discharge_status (CandidApiClient::X12::V1::Types::PatientDischargeStatusCode)
|
|
240
|
-
# * :operating_provider (Hash)
|
|
241
|
-
# * :npi (String)
|
|
242
|
-
# * :taxonomy_code (String)
|
|
243
|
-
# * :address (Hash)
|
|
244
|
-
# * :zip_plus_four_code (String)
|
|
245
|
-
# * :address_1 (String)
|
|
246
|
-
# * :address_2 (String)
|
|
247
|
-
# * :city (String)
|
|
248
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
249
|
-
# * :zip_code (String)
|
|
250
|
-
# * :first_name (String)
|
|
251
|
-
# * :last_name (String)
|
|
252
|
-
# * :organization_name (String)
|
|
253
|
-
# * :other_operating_provider (Hash)
|
|
254
|
-
# * :npi (String)
|
|
255
|
-
# * :taxonomy_code (String)
|
|
256
|
-
# * :address (Hash)
|
|
257
|
-
# * :zip_plus_four_code (String)
|
|
258
|
-
# * :address_1 (String)
|
|
259
|
-
# * :address_2 (String)
|
|
260
|
-
# * :city (String)
|
|
261
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
262
|
-
# * :zip_code (String)
|
|
263
|
-
# * :first_name (String)
|
|
264
|
-
# * :last_name (String)
|
|
265
|
-
# * :organization_name (String)
|
|
266
|
-
# * :type_of_bill (Hash)
|
|
267
|
-
# * :accident_state_or_province_code (CandidApiClient::Commons::Types::State)
|
|
158
|
+
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
|
|
268
159
|
# * :patient (Hash)
|
|
269
160
|
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
270
161
|
# * :phone_consent (Boolean)
|
|
@@ -489,8 +380,8 @@ module CandidApiClient
|
|
|
489
380
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
490
381
|
# @example
|
|
491
382
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
492
|
-
# api.encounters.v_4.
|
|
493
|
-
def
|
|
383
|
+
# api.encounters.v_4.create(request: { billing_provider: { address: { zip_plus_four_code: "zip_plus_four_code", address_1: "address1", city: "city", state: AA, zip_code: "zip_code" }, tax_id: "tax_id", npi: "npi" }, diagnoses: [{ code_type: ABF, code: "code" }, { code_type: ABF, code: "code" }], place_of_service_code: PHARMACY, rendering_provider: { npi: "npi" }, patient: { external_id: "external_id", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" }, first_name: "first_name", last_name: "last_name", gender: MALE }, responsible_party: INSURANCE_PAY, external_id: "external_id", patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, billable_status: BILLABLE })
|
|
384
|
+
def create(request:, request_options: nil)
|
|
494
385
|
response = @request_client.conn.post do |req|
|
|
495
386
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
496
387
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
@@ -501,29 +392,32 @@ module CandidApiClient
|
|
|
501
392
|
}.compact
|
|
502
393
|
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
503
394
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
504
|
-
request_options: request_options)}/api/encounters/v4
|
|
395
|
+
request_options: request_options)}/api/encounters/v4"
|
|
505
396
|
end
|
|
506
397
|
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
507
398
|
end
|
|
508
399
|
|
|
509
|
-
#
|
|
510
|
-
#
|
|
511
|
-
#
|
|
512
|
-
#
|
|
513
|
-
#
|
|
514
|
-
#
|
|
515
|
-
#
|
|
516
|
-
#
|
|
517
|
-
#
|
|
518
|
-
#
|
|
519
|
-
#
|
|
520
|
-
#
|
|
521
|
-
#
|
|
522
|
-
#
|
|
523
|
-
#
|
|
524
|
-
#
|
|
525
|
-
#
|
|
526
|
-
#
|
|
400
|
+
# Create an encounter from a pre-encounter patient and appointment. This endpoint
|
|
401
|
+
# is intended to be used by consumers who are managing
|
|
402
|
+
# patients and appointments in the pre-encounter service and is currently under
|
|
403
|
+
# development. Consumers who are not taking advantage
|
|
404
|
+
# of the pre-encounter service should use the standard create endpoint.
|
|
405
|
+
# The endpoint will create an encounter from the provided fields, pulling
|
|
406
|
+
# information from the provided patient and appointment objects
|
|
407
|
+
# where applicable. In particular, the following fields are populated from the
|
|
408
|
+
# patient and appointment objects:
|
|
409
|
+
# - Patient
|
|
410
|
+
# - Referring Provider
|
|
411
|
+
# - Subscriber Primary
|
|
412
|
+
# - Subscriber Secondary
|
|
413
|
+
# - Referral Number
|
|
414
|
+
# - Responsible Party
|
|
415
|
+
# - Guarantor
|
|
416
|
+
# Utilizing this endpoint opts you into automatic updating of the encounter when
|
|
417
|
+
# the patient or appointment is updated, assuming the
|
|
418
|
+
# encounter has not already been submitted or adjudicated.
|
|
419
|
+
#
|
|
420
|
+
# @param request [Hash] Request of type CandidApiClient::Encounters::V4::Types::EncounterCreateFromPreEncounter, as a Hash
|
|
527
421
|
# * :rendering_provider (Hash)
|
|
528
422
|
# * :npi (String)
|
|
529
423
|
# * :taxonomy_code (String)
|
|
@@ -537,17 +431,12 @@ module CandidApiClient
|
|
|
537
431
|
# * :first_name (String)
|
|
538
432
|
# * :last_name (String)
|
|
539
433
|
# * :organization_name (String)
|
|
434
|
+
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
435
|
+
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>)
|
|
540
436
|
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
|
|
541
|
-
# * :
|
|
542
|
-
#
|
|
543
|
-
#
|
|
544
|
-
# * :email (String)
|
|
545
|
-
# * :non_insurance_payers (Array<String>)
|
|
546
|
-
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
|
|
547
|
-
# * :email_consent (Boolean)
|
|
548
|
-
# * :auto_charge_consent (Boolean)
|
|
549
|
-
# * :external_id (String)
|
|
550
|
-
# * :date_of_birth (Date)
|
|
437
|
+
# * :pre_encounter_patient_id (String)
|
|
438
|
+
# * :pre_encounter_appointment_ids (Array<String>)
|
|
439
|
+
# * :billing_provider (Hash)
|
|
551
440
|
# * :address (Hash)
|
|
552
441
|
# * :zip_plus_four_code (String)
|
|
553
442
|
# * :address_1 (String)
|
|
@@ -555,19 +444,10 @@ module CandidApiClient
|
|
|
555
444
|
# * :city (String)
|
|
556
445
|
# * :state (CandidApiClient::Commons::Types::State)
|
|
557
446
|
# * :zip_code (String)
|
|
558
|
-
# * :
|
|
559
|
-
# * :last_name (String)
|
|
560
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
561
|
-
# * :referring_provider (Hash)
|
|
447
|
+
# * :tax_id (String)
|
|
562
448
|
# * :npi (String)
|
|
563
449
|
# * :taxonomy_code (String)
|
|
564
|
-
# * :
|
|
565
|
-
# * :zip_plus_four_code (String)
|
|
566
|
-
# * :address_1 (String)
|
|
567
|
-
# * :address_2 (String)
|
|
568
|
-
# * :city (String)
|
|
569
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
570
|
-
# * :zip_code (String)
|
|
450
|
+
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
|
571
451
|
# * :first_name (String)
|
|
572
452
|
# * :last_name (String)
|
|
573
453
|
# * :organization_name (String)
|
|
@@ -609,6 +489,105 @@ module CandidApiClient
|
|
|
609
489
|
# * :state (CandidApiClient::Commons::Types::State)
|
|
610
490
|
# * :zip_code (String)
|
|
611
491
|
# * :secondary_identification (String)
|
|
492
|
+
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
|
493
|
+
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
|
|
494
|
+
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
|
495
|
+
# * :external_claim_submission (Hash)
|
|
496
|
+
# * :claim_created_at (DateTime)
|
|
497
|
+
# * :patient_control_number (String)
|
|
498
|
+
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
|
499
|
+
# * :tag_ids (Array<String>)
|
|
500
|
+
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
|
501
|
+
# * :external_id (String)
|
|
502
|
+
# * :date_of_service (Date)
|
|
503
|
+
# * :end_date_of_service (Date)
|
|
504
|
+
# * :patient_authorized_release (Boolean)
|
|
505
|
+
# * :benefits_assigned_to_provider (Boolean)
|
|
506
|
+
# * :provider_accepts_assignment (Boolean)
|
|
507
|
+
# * :appointment_type (String)
|
|
508
|
+
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
509
|
+
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
|
|
510
|
+
# * :pay_to_address (Hash)
|
|
511
|
+
# * :zip_plus_four_code (String)
|
|
512
|
+
# * :address_1 (String)
|
|
513
|
+
# * :address_2 (String)
|
|
514
|
+
# * :city (String)
|
|
515
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
|
516
|
+
# * :zip_code (String)
|
|
517
|
+
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
518
|
+
# * :vitals (Hash)
|
|
519
|
+
# * :height_in (Integer)
|
|
520
|
+
# * :weight_lbs (Integer)
|
|
521
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
|
522
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
|
523
|
+
# * :body_temperature_f (Float)
|
|
524
|
+
# * :hemoglobin_gdl (Float)
|
|
525
|
+
# * :hematocrit_pct (Float)
|
|
526
|
+
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
527
|
+
# * :additional_information (String)
|
|
528
|
+
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
|
529
|
+
# * :admission_date (Date)
|
|
530
|
+
# * :discharge_date (Date)
|
|
531
|
+
# * :onset_of_current_illness_or_symptom_date (Date)
|
|
532
|
+
# * :last_menstrual_period_date (Date)
|
|
533
|
+
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
|
534
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
|
535
|
+
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
536
|
+
# @example
|
|
537
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
538
|
+
# api.encounters.v_4.create_from_pre_encounter_patient(request: { rendering_provider: { npi: "npi" }, place_of_service_code: PHARMACY, diagnoses: [{ code_type: ABF, code: "code" }, { code_type: ABF, code: "code" }], pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], billing_provider: { address: { zip_plus_four_code: "zip_plus_four_code", address_1: "address1", city: "city", state: AA, zip_code: "zip_code" }, tax_id: "tax_id", npi: "npi" }, external_id: "external_id", patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, billable_status: BILLABLE })
|
|
539
|
+
def create_from_pre_encounter_patient(request:, request_options: nil)
|
|
540
|
+
response = @request_client.conn.post do |req|
|
|
541
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
542
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
543
|
+
req.headers = {
|
|
544
|
+
**(req.headers || {}),
|
|
545
|
+
**@request_client.get_headers,
|
|
546
|
+
**(request_options&.additional_headers || {})
|
|
547
|
+
}.compact
|
|
548
|
+
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
549
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
550
|
+
request_options: request_options)}/api/encounters/v4/create-from-pre-encounter"
|
|
551
|
+
end
|
|
552
|
+
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
# @param encounter_id [String]
|
|
556
|
+
# @param request [Hash] Request of type CandidApiClient::Encounters::V4::Types::EncounterUpdate, as a Hash
|
|
557
|
+
# * :vitals (Hash)
|
|
558
|
+
# * :height_in (Integer)
|
|
559
|
+
# * :weight_lbs (Integer)
|
|
560
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
|
561
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
|
562
|
+
# * :body_temperature_f (Float)
|
|
563
|
+
# * :hemoglobin_gdl (Float)
|
|
564
|
+
# * :hematocrit_pct (Float)
|
|
565
|
+
# * :diagnosis_ids (Array<String>)
|
|
566
|
+
# * :epsdt_referral (Hash)
|
|
567
|
+
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
568
|
+
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
569
|
+
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
570
|
+
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
|
571
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
|
572
|
+
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
|
573
|
+
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
574
|
+
# * :guarantor (Hash)
|
|
575
|
+
# * :first_name (String)
|
|
576
|
+
# * :last_name (String)
|
|
577
|
+
# * :external_id (String)
|
|
578
|
+
# * :date_of_birth (Date)
|
|
579
|
+
# * :address (Hash)
|
|
580
|
+
# * :zip_plus_four_code (String)
|
|
581
|
+
# * :address_1 (String)
|
|
582
|
+
# * :address_2 (String)
|
|
583
|
+
# * :city (String)
|
|
584
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
|
585
|
+
# * :zip_code (String)
|
|
586
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
587
|
+
# * :phone_consent (Boolean)
|
|
588
|
+
# * :email (String)
|
|
589
|
+
# * :email_consent (Boolean)
|
|
590
|
+
# * :auto_charge_consent (Boolean)
|
|
612
591
|
# * :subscriber_primary (Hash)
|
|
613
592
|
# * :insurance_card (Hash)
|
|
614
593
|
# * :member_id (String)
|
|
@@ -690,19 +669,44 @@ module CandidApiClient
|
|
|
690
669
|
# * :first_name (String)
|
|
691
670
|
# * :last_name (String)
|
|
692
671
|
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
693
|
-
# * :
|
|
694
|
-
#
|
|
695
|
-
#
|
|
696
|
-
#
|
|
697
|
-
#
|
|
698
|
-
#
|
|
699
|
-
# * :
|
|
700
|
-
#
|
|
701
|
-
# * :
|
|
702
|
-
# * :
|
|
703
|
-
# * :
|
|
672
|
+
# * :pay_to_address (Hash)
|
|
673
|
+
# * :zip_plus_four_code (String)
|
|
674
|
+
# * :address_1 (String)
|
|
675
|
+
# * :address_2 (String)
|
|
676
|
+
# * :city (String)
|
|
677
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
|
678
|
+
# * :zip_code (String)
|
|
679
|
+
# * :initial_referring_provider (Hash)
|
|
680
|
+
# * :npi (String)
|
|
681
|
+
# * :taxonomy_code (String)
|
|
682
|
+
# * :address (Hash)
|
|
683
|
+
# * :zip_plus_four_code (String)
|
|
684
|
+
# * :address_1 (String)
|
|
685
|
+
# * :address_2 (String)
|
|
686
|
+
# * :city (String)
|
|
687
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
|
688
|
+
# * :zip_code (String)
|
|
689
|
+
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
|
690
|
+
# * :first_name (String)
|
|
691
|
+
# * :last_name (String)
|
|
692
|
+
# * :organization_name (String)
|
|
693
|
+
# * :referring_provider (Hash)
|
|
694
|
+
# * :npi (String)
|
|
695
|
+
# * :taxonomy_code (String)
|
|
696
|
+
# * :address (Hash)
|
|
697
|
+
# * :zip_plus_four_code (String)
|
|
698
|
+
# * :address_1 (String)
|
|
699
|
+
# * :address_2 (String)
|
|
700
|
+
# * :city (String)
|
|
701
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
|
702
|
+
# * :zip_code (String)
|
|
704
703
|
# * :first_name (String)
|
|
705
704
|
# * :last_name (String)
|
|
705
|
+
# * :organization_name (String)
|
|
706
|
+
# * :patient (Hash)
|
|
707
|
+
# * :first_name (String)
|
|
708
|
+
# * :last_name (String)
|
|
709
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
706
710
|
# * :external_id (String)
|
|
707
711
|
# * :date_of_birth (Date)
|
|
708
712
|
# * :address (Hash)
|
|
@@ -712,95 +716,13 @@ module CandidApiClient
|
|
|
712
716
|
# * :city (String)
|
|
713
717
|
# * :state (CandidApiClient::Commons::Types::State)
|
|
714
718
|
# * :zip_code (String)
|
|
715
|
-
#
|
|
716
|
-
# * :
|
|
717
|
-
# * :
|
|
718
|
-
# * :
|
|
719
|
-
#
|
|
720
|
-
#
|
|
721
|
-
#
|
|
722
|
-
# * :epsdt_referral (Hash)
|
|
723
|
-
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
724
|
-
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
725
|
-
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
726
|
-
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
|
727
|
-
# * :secondary_payer_carrier_code (String)
|
|
728
|
-
# * :external_id (String)
|
|
729
|
-
# * :date_of_service (Date)
|
|
730
|
-
# * :end_date_of_service (Date)
|
|
731
|
-
# * :patient_authorized_release (Boolean)
|
|
732
|
-
# * :benefits_assigned_to_provider (Boolean)
|
|
733
|
-
# * :provider_accepts_assignment (Boolean)
|
|
734
|
-
# * :appointment_type (String)
|
|
735
|
-
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
736
|
-
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
|
|
737
|
-
# * :pay_to_address (Hash)
|
|
738
|
-
# * :zip_plus_four_code (String)
|
|
739
|
-
# * :address_1 (String)
|
|
740
|
-
# * :address_2 (String)
|
|
741
|
-
# * :city (String)
|
|
742
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
743
|
-
# * :zip_code (String)
|
|
744
|
-
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
745
|
-
# * :vitals (Hash)
|
|
746
|
-
# * :height_in (Integer)
|
|
747
|
-
# * :weight_lbs (Integer)
|
|
748
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
|
749
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
|
750
|
-
# * :body_temperature_f (Float)
|
|
751
|
-
# * :hemoglobin_gdl (Float)
|
|
752
|
-
# * :hematocrit_pct (Float)
|
|
753
|
-
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
754
|
-
# * :additional_information (String)
|
|
755
|
-
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
|
756
|
-
# * :admission_date (Date)
|
|
757
|
-
# * :discharge_date (Date)
|
|
758
|
-
# * :onset_of_current_illness_or_symptom_date (Date)
|
|
759
|
-
# * :last_menstrual_period_date (Date)
|
|
760
|
-
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
|
761
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
|
762
|
-
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
763
|
-
# @example
|
|
764
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
765
|
-
# api.encounters.v_4.create(request: { external_id: "external_id", patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, billable_status: BILLABLE, patient: { first_name: "first_name", last_name: "last_name", gender: MALE, external_id: "external_id", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" } }, responsible_party: INSURANCE_PAY, billing_provider: { address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code", zip_plus_four_code: "zip_plus_four_code" }, tax_id: "tax_id", npi: "npi" }, diagnoses: [{ code_type: ABF, code: "code" }, { code_type: ABF, code: "code" }], place_of_service_code: PHARMACY, rendering_provider: { npi: "npi" } })
|
|
766
|
-
def create(request:, request_options: nil)
|
|
767
|
-
response = @request_client.conn.post do |req|
|
|
768
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
769
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
770
|
-
req.headers = {
|
|
771
|
-
**(req.headers || {}),
|
|
772
|
-
**@request_client.get_headers,
|
|
773
|
-
**(request_options&.additional_headers || {})
|
|
774
|
-
}.compact
|
|
775
|
-
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
776
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
777
|
-
request_options: request_options)}/api/encounters/v4"
|
|
778
|
-
end
|
|
779
|
-
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
780
|
-
end
|
|
781
|
-
|
|
782
|
-
# Create an encounter from a pre-encounter patient and appointment. This endpoint
|
|
783
|
-
# is intended to be used by consumers who are managing
|
|
784
|
-
# patients and appointments in the pre-encounter service and is currently under
|
|
785
|
-
# development. Consumers who are not taking advantage
|
|
786
|
-
# of the pre-encounter service should use the standard create endpoint.
|
|
787
|
-
# The endpoint will create an encounter from the provided fields, pulling
|
|
788
|
-
# information from the provided patient and appointment objects
|
|
789
|
-
# where applicable. In particular, the following fields are populated from the
|
|
790
|
-
# patient and appointment objects:
|
|
791
|
-
# - Patient
|
|
792
|
-
# - Referring Provider
|
|
793
|
-
# - Subscriber Primary
|
|
794
|
-
# - Subscriber Secondary
|
|
795
|
-
# - Referral Number
|
|
796
|
-
# - Responsible Party
|
|
797
|
-
# - Guarantor
|
|
798
|
-
# Utilizing this endpoint opts you into automatic updating of the encounter when
|
|
799
|
-
# the patient or appointment is updated, assuming the
|
|
800
|
-
# encounter has not already been submitted or adjudicated.
|
|
801
|
-
#
|
|
802
|
-
# @param request [Hash] Request of type CandidApiClient::EncountersUniversal::Types::UniversalEncounterCreateFromPreEncounter, as a Hash
|
|
803
|
-
# * :submission_expectation (CandidApiClient::Encounters::V4::Types::EncounterSubmissionExpectation)
|
|
719
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
720
|
+
# * :phone_consent (Boolean)
|
|
721
|
+
# * :email (String)
|
|
722
|
+
# * :email_consent (Boolean)
|
|
723
|
+
# * :auto_charge_consent (Boolean)
|
|
724
|
+
# * :non_insurance_payers (Array<String>)
|
|
725
|
+
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
|
|
804
726
|
# * :rendering_provider (Hash)
|
|
805
727
|
# * :npi (String)
|
|
806
728
|
# * :taxonomy_code (String)
|
|
@@ -814,89 +736,9 @@ module CandidApiClient
|
|
|
814
736
|
# * :first_name (String)
|
|
815
737
|
# * :last_name (String)
|
|
816
738
|
# * :organization_name (String)
|
|
817
|
-
# * :
|
|
818
|
-
# * :principal_diagnosis (Hash)
|
|
819
|
-
# * :principal_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosisCodeQualifier)
|
|
820
|
-
# * :primary_diagnosis_code (String)
|
|
821
|
-
# * :present_on_admission_indicator (CandidApiClient::HealthCareCodeInformation::V1::Types::PresentOnAdmissionIndicatorCode)
|
|
822
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
823
|
-
# * :industry_code_1 (String)
|
|
824
|
-
# * :industry_code_2 (String)
|
|
825
|
-
# * :industry_code_3 (String)
|
|
826
|
-
# * :industry_code_4 (String)
|
|
827
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
828
|
-
# * :date_time_period (String)
|
|
829
|
-
# * :monetary_amount (String)
|
|
830
|
-
# * :quantity (String)
|
|
831
|
-
# * :admitting_diagnosis (Hash)
|
|
832
|
-
# * :admitting_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosisCodeQualifier)
|
|
833
|
-
# * :admitting_diagnosis_code (String)
|
|
834
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
835
|
-
# * :industry_code_1 (String)
|
|
836
|
-
# * :industry_code_2 (String)
|
|
837
|
-
# * :industry_code_3 (String)
|
|
838
|
-
# * :industry_code_4 (String)
|
|
839
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
840
|
-
# * :date_time_period (String)
|
|
841
|
-
# * :monetary_amount (String)
|
|
842
|
-
# * :quantity (String)
|
|
843
|
-
# * :patient_reasons_for_visit (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisitNew>)
|
|
844
|
-
# * :external_causes_of_injury (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjuryNew>)
|
|
845
|
-
# * :diagnosis_related_groups (Hash)
|
|
846
|
-
# * :diagnosis_related_group_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupCodeQualifier)
|
|
847
|
-
# * :diagnosis_related_group_code (String)
|
|
848
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
849
|
-
# * :industry_code_1 (String)
|
|
850
|
-
# * :industry_code_2 (String)
|
|
851
|
-
# * :industry_code_3 (String)
|
|
852
|
-
# * :industry_code_4 (String)
|
|
853
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
854
|
-
# * :date_time_period (String)
|
|
855
|
-
# * :monetary_amount (String)
|
|
856
|
-
# * :quantity (String)
|
|
857
|
-
# * :other_diagnosis_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformationNew>)
|
|
858
|
-
# * :principal_procedure (Hash)
|
|
859
|
-
# * :principal_procedure_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformationCodeQualifier)
|
|
860
|
-
# * :principal_procedure_code (String)
|
|
861
|
-
# * :procedure_date (DateTime)
|
|
862
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
863
|
-
# * :industry_code_1 (String)
|
|
864
|
-
# * :industry_code_2 (String)
|
|
865
|
-
# * :industry_code_3 (String)
|
|
866
|
-
# * :industry_code_4 (String)
|
|
867
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
868
|
-
# * :date_time_period (String)
|
|
869
|
-
# * :monetary_amount (String)
|
|
870
|
-
# * :quantity (String)
|
|
871
|
-
# * :other_procedure_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformationNew>)
|
|
872
|
-
# * :occurrence_span_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformationNew>)
|
|
873
|
-
# * :occurrence_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformationNew>)
|
|
874
|
-
# * :treatment_code_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformationNew>)
|
|
875
|
-
# * :value_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformationNew>)
|
|
876
|
-
# * :condition_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformationNew>)
|
|
877
|
-
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
878
|
-
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::UniversalServiceLineCreate>)
|
|
879
|
-
# * :attending_provider (Hash)
|
|
880
|
-
# * :npi (String)
|
|
881
|
-
# * :taxonomy_code (String)
|
|
882
|
-
# * :address (Hash)
|
|
883
|
-
# * :zip_plus_four_code (String)
|
|
884
|
-
# * :address_1 (String)
|
|
885
|
-
# * :address_2 (String)
|
|
886
|
-
# * :city (String)
|
|
887
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
888
|
-
# * :zip_code (String)
|
|
889
|
-
# * :first_name (String)
|
|
890
|
-
# * :last_name (String)
|
|
739
|
+
# * :service_facility (Hash)
|
|
891
740
|
# * :organization_name (String)
|
|
892
|
-
# * :admission_hour (Integer)
|
|
893
|
-
# * :admission_type_code (CandidApiClient::X12::V1::Types::TypeOfAdmissionOrVisitCode)
|
|
894
|
-
# * :admission_source_code (CandidApiClient::X12::V1::Types::PointOfOriginForAdmissionOrVisitCode)
|
|
895
|
-
# * :discharge_hour (Integer)
|
|
896
|
-
# * :discharge_status (CandidApiClient::X12::V1::Types::PatientDischargeStatusCode)
|
|
897
|
-
# * :operating_provider (Hash)
|
|
898
741
|
# * :npi (String)
|
|
899
|
-
# * :taxonomy_code (String)
|
|
900
742
|
# * :address (Hash)
|
|
901
743
|
# * :zip_plus_four_code (String)
|
|
902
744
|
# * :address_1 (String)
|
|
@@ -904,10 +746,8 @@ module CandidApiClient
|
|
|
904
746
|
# * :city (String)
|
|
905
747
|
# * :state (CandidApiClient::Commons::Types::State)
|
|
906
748
|
# * :zip_code (String)
|
|
907
|
-
# * :
|
|
908
|
-
#
|
|
909
|
-
# * :organization_name (String)
|
|
910
|
-
# * :other_operating_provider (Hash)
|
|
749
|
+
# * :secondary_identification (String)
|
|
750
|
+
# * :supervising_provider (Hash)
|
|
911
751
|
# * :npi (String)
|
|
912
752
|
# * :taxonomy_code (String)
|
|
913
753
|
# * :address (Hash)
|
|
@@ -920,10 +760,6 @@ module CandidApiClient
|
|
|
920
760
|
# * :first_name (String)
|
|
921
761
|
# * :last_name (String)
|
|
922
762
|
# * :organization_name (String)
|
|
923
|
-
# * :type_of_bill (Hash)
|
|
924
|
-
# * :accident_state_or_province_code (CandidApiClient::Commons::Types::State)
|
|
925
|
-
# * :pre_encounter_patient_id (String)
|
|
926
|
-
# * :pre_encounter_appointment_ids (Array<String>)
|
|
927
763
|
# * :billing_provider (Hash)
|
|
928
764
|
# * :address (Hash)
|
|
929
765
|
# * :zip_plus_four_code (String)
|
|
@@ -939,79 +775,19 @@ module CandidApiClient
|
|
|
939
775
|
# * :first_name (String)
|
|
940
776
|
# * :last_name (String)
|
|
941
777
|
# * :organization_name (String)
|
|
942
|
-
# * :
|
|
943
|
-
#
|
|
944
|
-
#
|
|
945
|
-
# * :address (Hash)
|
|
946
|
-
# * :zip_plus_four_code (String)
|
|
947
|
-
# * :address_1 (String)
|
|
948
|
-
# * :address_2 (String)
|
|
949
|
-
# * :city (String)
|
|
950
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
951
|
-
# * :zip_code (String)
|
|
952
|
-
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
|
953
|
-
# * :first_name (String)
|
|
954
|
-
# * :last_name (String)
|
|
955
|
-
# * :organization_name (String)
|
|
956
|
-
# * :supervising_provider (Hash)
|
|
957
|
-
# * :npi (String)
|
|
958
|
-
# * :taxonomy_code (String)
|
|
959
|
-
# * :address (Hash)
|
|
960
|
-
# * :zip_plus_four_code (String)
|
|
961
|
-
# * :address_1 (String)
|
|
962
|
-
# * :address_2 (String)
|
|
963
|
-
# * :city (String)
|
|
964
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
965
|
-
# * :zip_code (String)
|
|
966
|
-
# * :first_name (String)
|
|
967
|
-
# * :last_name (String)
|
|
968
|
-
# * :organization_name (String)
|
|
969
|
-
# * :service_facility (Hash)
|
|
970
|
-
# * :organization_name (String)
|
|
971
|
-
# * :npi (String)
|
|
972
|
-
# * :address (Hash)
|
|
973
|
-
# * :zip_plus_four_code (String)
|
|
974
|
-
# * :address_1 (String)
|
|
975
|
-
# * :address_2 (String)
|
|
976
|
-
# * :city (String)
|
|
977
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
978
|
-
# * :zip_code (String)
|
|
979
|
-
# * :secondary_identification (String)
|
|
980
|
-
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
|
981
|
-
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
|
|
982
|
-
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
|
983
|
-
# * :external_claim_submission (Hash)
|
|
984
|
-
# * :claim_created_at (DateTime)
|
|
985
|
-
# * :patient_control_number (String)
|
|
986
|
-
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
|
987
|
-
# * :tag_ids (Array<String>)
|
|
988
|
-
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
|
778
|
+
# * :place_of_service_code_as_submitted (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
779
|
+
# * :benefits_assigned_to_provider (Boolean)
|
|
780
|
+
# * :prior_authorization_number (String)
|
|
989
781
|
# * :external_id (String)
|
|
990
782
|
# * :date_of_service (Date)
|
|
991
|
-
# * :
|
|
992
|
-
# * :
|
|
993
|
-
# * :
|
|
783
|
+
# * :tag_ids (Array<String>)
|
|
784
|
+
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
785
|
+
# * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
|
|
994
786
|
# * :provider_accepts_assignment (Boolean)
|
|
995
|
-
# * :appointment_type (String)
|
|
996
|
-
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
997
|
-
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
|
|
998
|
-
# * :pay_to_address (Hash)
|
|
999
|
-
# * :zip_plus_four_code (String)
|
|
1000
|
-
# * :address_1 (String)
|
|
1001
|
-
# * :address_2 (String)
|
|
1002
|
-
# * :city (String)
|
|
1003
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1004
|
-
# * :zip_code (String)
|
|
1005
787
|
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
1006
|
-
# * :
|
|
1007
|
-
#
|
|
1008
|
-
#
|
|
1009
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
|
1010
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
|
1011
|
-
# * :body_temperature_f (Float)
|
|
1012
|
-
# * :hemoglobin_gdl (Float)
|
|
1013
|
-
# * :hematocrit_pct (Float)
|
|
1014
|
-
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
788
|
+
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
789
|
+
# * :appointment_type (String)
|
|
790
|
+
# * :end_date_of_service (Date)
|
|
1015
791
|
# * :additional_information (String)
|
|
1016
792
|
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
|
1017
793
|
# * :admission_date (Date)
|
|
@@ -1019,13 +795,16 @@ module CandidApiClient
|
|
|
1019
795
|
# * :onset_of_current_illness_or_symptom_date (Date)
|
|
1020
796
|
# * :last_menstrual_period_date (Date)
|
|
1021
797
|
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
|
798
|
+
# * :patient_authorized_release (Boolean)
|
|
799
|
+
# * :referral_number (String)
|
|
800
|
+
# * :secondary_payer_carrier_code (String)
|
|
1022
801
|
# @param request_options [CandidApiClient::RequestOptions]
|
|
1023
802
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
1024
803
|
# @example
|
|
1025
804
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
1026
|
-
# api.encounters.v_4.
|
|
1027
|
-
def
|
|
1028
|
-
response = @request_client.conn.
|
|
805
|
+
# api.encounters.v_4.update(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
|
806
|
+
def update(encounter_id:, request:, request_options: nil)
|
|
807
|
+
response = @request_client.conn.patch do |req|
|
|
1029
808
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
1030
809
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
1031
810
|
req.headers = {
|
|
@@ -1035,1826 +814,109 @@ module CandidApiClient
|
|
|
1035
814
|
}.compact
|
|
1036
815
|
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
1037
816
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
1038
|
-
request_options: request_options)}/api/encounters/v4
|
|
817
|
+
request_options: request_options)}/api/encounters/v4/#{encounter_id}"
|
|
1039
818
|
end
|
|
1040
819
|
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
1041
820
|
end
|
|
821
|
+
end
|
|
1042
822
|
|
|
1043
|
-
|
|
1044
|
-
#
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
#
|
|
1048
|
-
#
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
#
|
|
1054
|
-
#
|
|
1055
|
-
#
|
|
1056
|
-
#
|
|
1057
|
-
#
|
|
1058
|
-
#
|
|
1059
|
-
#
|
|
1060
|
-
#
|
|
1061
|
-
#
|
|
1062
|
-
#
|
|
1063
|
-
#
|
|
1064
|
-
#
|
|
1065
|
-
#
|
|
1066
|
-
#
|
|
1067
|
-
#
|
|
1068
|
-
#
|
|
1069
|
-
#
|
|
1070
|
-
#
|
|
1071
|
-
#
|
|
1072
|
-
#
|
|
1073
|
-
#
|
|
1074
|
-
#
|
|
1075
|
-
#
|
|
1076
|
-
#
|
|
1077
|
-
#
|
|
1078
|
-
#
|
|
1079
|
-
#
|
|
1080
|
-
#
|
|
1081
|
-
#
|
|
1082
|
-
#
|
|
1083
|
-
#
|
|
1084
|
-
#
|
|
1085
|
-
#
|
|
1086
|
-
#
|
|
1087
|
-
#
|
|
1088
|
-
#
|
|
1089
|
-
#
|
|
1090
|
-
#
|
|
1091
|
-
#
|
|
1092
|
-
#
|
|
1093
|
-
#
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
#
|
|
1132
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1133
|
-
# * :zip_code (String)
|
|
1134
|
-
# * :secondary_identification (String)
|
|
1135
|
-
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
|
1136
|
-
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
|
|
1137
|
-
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
|
1138
|
-
# * :external_claim_submission (Hash)
|
|
1139
|
-
# * :claim_created_at (DateTime)
|
|
1140
|
-
# * :patient_control_number (String)
|
|
1141
|
-
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
|
1142
|
-
# * :tag_ids (Array<String>)
|
|
1143
|
-
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
|
1144
|
-
# * :external_id (String)
|
|
1145
|
-
# * :date_of_service (Date)
|
|
1146
|
-
# * :end_date_of_service (Date)
|
|
1147
|
-
# * :patient_authorized_release (Boolean)
|
|
1148
|
-
# * :benefits_assigned_to_provider (Boolean)
|
|
1149
|
-
# * :provider_accepts_assignment (Boolean)
|
|
1150
|
-
# * :appointment_type (String)
|
|
1151
|
-
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
1152
|
-
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
|
|
1153
|
-
# * :pay_to_address (Hash)
|
|
1154
|
-
# * :zip_plus_four_code (String)
|
|
1155
|
-
# * :address_1 (String)
|
|
1156
|
-
# * :address_2 (String)
|
|
1157
|
-
# * :city (String)
|
|
1158
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1159
|
-
# * :zip_code (String)
|
|
1160
|
-
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
1161
|
-
# * :vitals (Hash)
|
|
1162
|
-
# * :height_in (Integer)
|
|
1163
|
-
# * :weight_lbs (Integer)
|
|
1164
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
|
1165
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
|
1166
|
-
# * :body_temperature_f (Float)
|
|
1167
|
-
# * :hemoglobin_gdl (Float)
|
|
1168
|
-
# * :hematocrit_pct (Float)
|
|
1169
|
-
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
1170
|
-
# * :additional_information (String)
|
|
1171
|
-
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
|
1172
|
-
# * :admission_date (Date)
|
|
1173
|
-
# * :discharge_date (Date)
|
|
1174
|
-
# * :onset_of_current_illness_or_symptom_date (Date)
|
|
1175
|
-
# * :last_menstrual_period_date (Date)
|
|
1176
|
-
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
|
1177
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
|
1178
|
-
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
1179
|
-
# @example
|
|
1180
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
1181
|
-
# api.encounters.v_4.create_from_pre_encounter_patient(request: { external_id: "external_id", patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, billable_status: BILLABLE, pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], billing_provider: { address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code", zip_plus_four_code: "zip_plus_four_code" }, tax_id: "tax_id", npi: "npi" }, rendering_provider: { npi: "npi" }, place_of_service_code: PHARMACY, diagnoses: [{ code_type: ABF, code: "code" }, { code_type: ABF, code: "code" }] })
|
|
1182
|
-
def create_from_pre_encounter_patient(request:, request_options: nil)
|
|
1183
|
-
response = @request_client.conn.post do |req|
|
|
1184
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
1185
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
1186
|
-
req.headers = {
|
|
1187
|
-
**(req.headers || {}),
|
|
1188
|
-
**@request_client.get_headers,
|
|
1189
|
-
**(request_options&.additional_headers || {})
|
|
1190
|
-
}.compact
|
|
1191
|
-
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
1192
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
1193
|
-
request_options: request_options)}/api/encounters/v4/create-from-pre-encounter"
|
|
1194
|
-
end
|
|
1195
|
-
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
1196
|
-
end
|
|
1197
|
-
|
|
1198
|
-
# @param encounter_id [String]
|
|
1199
|
-
# @param request [Hash] Request of type CandidApiClient::EncountersUniversal::Types::UniversalEncounterUpdate, as a Hash
|
|
1200
|
-
# * :health_care_code_information (Hash)
|
|
1201
|
-
# * :principal_diagnosis (Hash)
|
|
1202
|
-
# * :value (Hash)
|
|
1203
|
-
# * :principal_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosisCodeQualifier)
|
|
1204
|
-
# * :primary_diagnosis_code (String)
|
|
1205
|
-
# * :present_on_admission_indicator (CandidApiClient::HealthCareCodeInformation::V1::Types::PresentOnAdmissionIndicatorCode)
|
|
1206
|
-
# * :id (String)
|
|
1207
|
-
# * :encounter_id (String)
|
|
1208
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
1209
|
-
# * :industry_code_1 (String)
|
|
1210
|
-
# * :industry_code_2 (String)
|
|
1211
|
-
# * :industry_code_3 (String)
|
|
1212
|
-
# * :industry_code_4 (String)
|
|
1213
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
1214
|
-
# * :date_time_period (String)
|
|
1215
|
-
# * :monetary_amount (String)
|
|
1216
|
-
# * :quantity (String)
|
|
1217
|
-
# * :admitting_diagnosis (Hash)
|
|
1218
|
-
# * :value (Hash)
|
|
1219
|
-
# * :admitting_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosisCodeQualifier)
|
|
1220
|
-
# * :admitting_diagnosis_code (String)
|
|
1221
|
-
# * :id (String)
|
|
1222
|
-
# * :encounter_id (String)
|
|
1223
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
1224
|
-
# * :industry_code_1 (String)
|
|
1225
|
-
# * :industry_code_2 (String)
|
|
1226
|
-
# * :industry_code_3 (String)
|
|
1227
|
-
# * :industry_code_4 (String)
|
|
1228
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
1229
|
-
# * :date_time_period (String)
|
|
1230
|
-
# * :monetary_amount (String)
|
|
1231
|
-
# * :quantity (String)
|
|
1232
|
-
# * :patient_reasons_for_visit (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>)
|
|
1233
|
-
# * :external_causes_of_injury (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>)
|
|
1234
|
-
# * :diagnosis_related_groups (Hash)
|
|
1235
|
-
# * :value (Hash)
|
|
1236
|
-
# * :diagnosis_related_group_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupCodeQualifier)
|
|
1237
|
-
# * :diagnosis_related_group_code (String)
|
|
1238
|
-
# * :id (String)
|
|
1239
|
-
# * :encounter_id (String)
|
|
1240
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
1241
|
-
# * :industry_code_1 (String)
|
|
1242
|
-
# * :industry_code_2 (String)
|
|
1243
|
-
# * :industry_code_3 (String)
|
|
1244
|
-
# * :industry_code_4 (String)
|
|
1245
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
1246
|
-
# * :date_time_period (String)
|
|
1247
|
-
# * :monetary_amount (String)
|
|
1248
|
-
# * :quantity (String)
|
|
1249
|
-
# * :other_diagnosis_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>)
|
|
1250
|
-
# * :principal_procedure (Hash)
|
|
1251
|
-
# * :value (Hash)
|
|
1252
|
-
# * :principal_procedure_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformationCodeQualifier)
|
|
1253
|
-
# * :principal_procedure_code (String)
|
|
1254
|
-
# * :procedure_date (DateTime)
|
|
1255
|
-
# * :id (String)
|
|
1256
|
-
# * :encounter_id (String)
|
|
1257
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
1258
|
-
# * :industry_code_1 (String)
|
|
1259
|
-
# * :industry_code_2 (String)
|
|
1260
|
-
# * :industry_code_3 (String)
|
|
1261
|
-
# * :industry_code_4 (String)
|
|
1262
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
1263
|
-
# * :date_time_period (String)
|
|
1264
|
-
# * :monetary_amount (String)
|
|
1265
|
-
# * :quantity (String)
|
|
1266
|
-
# * :other_procedure_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>)
|
|
1267
|
-
# * :occurrence_span_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>)
|
|
1268
|
-
# * :occurrence_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>)
|
|
1269
|
-
# * :treatment_code_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>)
|
|
1270
|
-
# * :value_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>)
|
|
1271
|
-
# * :condition_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>)
|
|
1272
|
-
# * :attending_provider (Hash)
|
|
1273
|
-
# * :npi (String)
|
|
1274
|
-
# * :taxonomy_code (String)
|
|
1275
|
-
# * :address (Hash)
|
|
1276
|
-
# * :zip_plus_four_code (String)
|
|
1277
|
-
# * :address_1 (String)
|
|
1278
|
-
# * :address_2 (String)
|
|
1279
|
-
# * :city (String)
|
|
1280
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1281
|
-
# * :zip_code (String)
|
|
1282
|
-
# * :first_name (String)
|
|
1283
|
-
# * :last_name (String)
|
|
1284
|
-
# * :organization_name (String)
|
|
1285
|
-
# * :admission_hour (Integer)
|
|
1286
|
-
# * :admission_type_code (CandidApiClient::X12::V1::Types::TypeOfAdmissionOrVisitCode)
|
|
1287
|
-
# * :admission_source_code (CandidApiClient::X12::V1::Types::PointOfOriginForAdmissionOrVisitCode)
|
|
1288
|
-
# * :discharge_hour (Integer)
|
|
1289
|
-
# * :discharge_status (CandidApiClient::X12::V1::Types::PatientDischargeStatusCode)
|
|
1290
|
-
# * :operating_provider (Hash)
|
|
1291
|
-
# * :npi (String)
|
|
1292
|
-
# * :taxonomy_code (String)
|
|
1293
|
-
# * :address (Hash)
|
|
1294
|
-
# * :zip_plus_four_code (String)
|
|
1295
|
-
# * :address_1 (String)
|
|
1296
|
-
# * :address_2 (String)
|
|
1297
|
-
# * :city (String)
|
|
1298
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1299
|
-
# * :zip_code (String)
|
|
1300
|
-
# * :first_name (String)
|
|
1301
|
-
# * :last_name (String)
|
|
1302
|
-
# * :organization_name (String)
|
|
1303
|
-
# * :other_operating_provider (Hash)
|
|
1304
|
-
# * :npi (String)
|
|
1305
|
-
# * :taxonomy_code (String)
|
|
1306
|
-
# * :address (Hash)
|
|
1307
|
-
# * :zip_plus_four_code (String)
|
|
1308
|
-
# * :address_1 (String)
|
|
1309
|
-
# * :address_2 (String)
|
|
1310
|
-
# * :city (String)
|
|
1311
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1312
|
-
# * :zip_code (String)
|
|
1313
|
-
# * :first_name (String)
|
|
1314
|
-
# * :last_name (String)
|
|
1315
|
-
# * :organization_name (String)
|
|
1316
|
-
# * :type_of_bill (Hash)
|
|
1317
|
-
# * :accident_state_or_province_code (CandidApiClient::Commons::Types::State)
|
|
1318
|
-
# * :submission_expectation (CandidApiClient::Encounters::V4::Types::EncounterSubmissionExpectation)
|
|
1319
|
-
# * :epsdt_referral (Hash)
|
|
1320
|
-
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
1321
|
-
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
1322
|
-
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
1323
|
-
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
|
1324
|
-
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
|
1325
|
-
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
|
1326
|
-
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
1327
|
-
# * :guarantor (Hash)
|
|
1328
|
-
# * :first_name (String)
|
|
1329
|
-
# * :last_name (String)
|
|
1330
|
-
# * :external_id (String)
|
|
1331
|
-
# * :date_of_birth (Date)
|
|
1332
|
-
# * :address (Hash)
|
|
1333
|
-
# * :zip_plus_four_code (String)
|
|
1334
|
-
# * :address_1 (String)
|
|
1335
|
-
# * :address_2 (String)
|
|
1336
|
-
# * :city (String)
|
|
1337
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1338
|
-
# * :zip_code (String)
|
|
1339
|
-
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
1340
|
-
# * :phone_consent (Boolean)
|
|
1341
|
-
# * :email (String)
|
|
1342
|
-
# * :email_consent (Boolean)
|
|
1343
|
-
# * :auto_charge_consent (Boolean)
|
|
1344
|
-
# * :subscriber_primary (Hash)
|
|
1345
|
-
# * :insurance_card (Hash)
|
|
1346
|
-
# * :member_id (String)
|
|
1347
|
-
# * :payer_name (String)
|
|
1348
|
-
# * :payer_id (String)
|
|
1349
|
-
# * :rx_bin (String)
|
|
1350
|
-
# * :rx_pcn (String)
|
|
1351
|
-
# * :image_url_front (String)
|
|
1352
|
-
# * :image_url_back (String)
|
|
1353
|
-
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
|
1354
|
-
# * :group_number (String)
|
|
1355
|
-
# * :plan_name (String)
|
|
1356
|
-
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
|
1357
|
-
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
|
1358
|
-
# * :payer_plan_group_id (String)
|
|
1359
|
-
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
|
1360
|
-
# * :date_of_birth (Date)
|
|
1361
|
-
# * :address (Hash)
|
|
1362
|
-
# * :zip_plus_four_code (String)
|
|
1363
|
-
# * :address_1 (String)
|
|
1364
|
-
# * :address_2 (String)
|
|
1365
|
-
# * :city (String)
|
|
1366
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1367
|
-
# * :zip_code (String)
|
|
1368
|
-
# * :first_name (String)
|
|
1369
|
-
# * :last_name (String)
|
|
1370
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
1371
|
-
# * :subscriber_secondary (Hash)
|
|
1372
|
-
# * :insurance_card (Hash)
|
|
1373
|
-
# * :member_id (String)
|
|
1374
|
-
# * :payer_name (String)
|
|
1375
|
-
# * :payer_id (String)
|
|
1376
|
-
# * :rx_bin (String)
|
|
1377
|
-
# * :rx_pcn (String)
|
|
1378
|
-
# * :image_url_front (String)
|
|
1379
|
-
# * :image_url_back (String)
|
|
1380
|
-
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
|
1381
|
-
# * :group_number (String)
|
|
1382
|
-
# * :plan_name (String)
|
|
1383
|
-
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
|
1384
|
-
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
|
1385
|
-
# * :payer_plan_group_id (String)
|
|
1386
|
-
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
|
1387
|
-
# * :date_of_birth (Date)
|
|
1388
|
-
# * :address (Hash)
|
|
1389
|
-
# * :zip_plus_four_code (String)
|
|
1390
|
-
# * :address_1 (String)
|
|
1391
|
-
# * :address_2 (String)
|
|
1392
|
-
# * :city (String)
|
|
1393
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1394
|
-
# * :zip_code (String)
|
|
1395
|
-
# * :first_name (String)
|
|
1396
|
-
# * :last_name (String)
|
|
1397
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
1398
|
-
# * :subscriber_tertiary (Hash)
|
|
1399
|
-
# * :insurance_card (Hash)
|
|
1400
|
-
# * :member_id (String)
|
|
1401
|
-
# * :payer_name (String)
|
|
1402
|
-
# * :payer_id (String)
|
|
1403
|
-
# * :rx_bin (String)
|
|
1404
|
-
# * :rx_pcn (String)
|
|
1405
|
-
# * :image_url_front (String)
|
|
1406
|
-
# * :image_url_back (String)
|
|
1407
|
-
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
|
1408
|
-
# * :group_number (String)
|
|
1409
|
-
# * :plan_name (String)
|
|
1410
|
-
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
|
1411
|
-
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
|
1412
|
-
# * :payer_plan_group_id (String)
|
|
1413
|
-
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
|
1414
|
-
# * :date_of_birth (Date)
|
|
1415
|
-
# * :address (Hash)
|
|
1416
|
-
# * :zip_plus_four_code (String)
|
|
1417
|
-
# * :address_1 (String)
|
|
1418
|
-
# * :address_2 (String)
|
|
1419
|
-
# * :city (String)
|
|
1420
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1421
|
-
# * :zip_code (String)
|
|
1422
|
-
# * :first_name (String)
|
|
1423
|
-
# * :last_name (String)
|
|
1424
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
1425
|
-
# * :pay_to_address (Hash)
|
|
1426
|
-
# * :zip_plus_four_code (String)
|
|
1427
|
-
# * :address_1 (String)
|
|
1428
|
-
# * :address_2 (String)
|
|
1429
|
-
# * :city (String)
|
|
1430
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1431
|
-
# * :zip_code (String)
|
|
1432
|
-
# * :initial_referring_provider (Hash)
|
|
1433
|
-
# * :npi (String)
|
|
1434
|
-
# * :taxonomy_code (String)
|
|
1435
|
-
# * :address (Hash)
|
|
1436
|
-
# * :zip_plus_four_code (String)
|
|
1437
|
-
# * :address_1 (String)
|
|
1438
|
-
# * :address_2 (String)
|
|
1439
|
-
# * :city (String)
|
|
1440
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1441
|
-
# * :zip_code (String)
|
|
1442
|
-
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
|
1443
|
-
# * :first_name (String)
|
|
1444
|
-
# * :last_name (String)
|
|
1445
|
-
# * :organization_name (String)
|
|
1446
|
-
# * :referring_provider (Hash)
|
|
1447
|
-
# * :npi (String)
|
|
1448
|
-
# * :taxonomy_code (String)
|
|
1449
|
-
# * :address (Hash)
|
|
1450
|
-
# * :zip_plus_four_code (String)
|
|
1451
|
-
# * :address_1 (String)
|
|
1452
|
-
# * :address_2 (String)
|
|
1453
|
-
# * :city (String)
|
|
1454
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1455
|
-
# * :zip_code (String)
|
|
1456
|
-
# * :first_name (String)
|
|
1457
|
-
# * :last_name (String)
|
|
1458
|
-
# * :organization_name (String)
|
|
1459
|
-
# * :patient (Hash)
|
|
1460
|
-
# * :first_name (String)
|
|
1461
|
-
# * :last_name (String)
|
|
1462
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
1463
|
-
# * :external_id (String)
|
|
1464
|
-
# * :date_of_birth (Date)
|
|
1465
|
-
# * :address (Hash)
|
|
1466
|
-
# * :zip_plus_four_code (String)
|
|
1467
|
-
# * :address_1 (String)
|
|
1468
|
-
# * :address_2 (String)
|
|
1469
|
-
# * :city (String)
|
|
1470
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1471
|
-
# * :zip_code (String)
|
|
1472
|
-
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
1473
|
-
# * :phone_consent (Boolean)
|
|
1474
|
-
# * :email (String)
|
|
1475
|
-
# * :email_consent (Boolean)
|
|
1476
|
-
# * :auto_charge_consent (Boolean)
|
|
1477
|
-
# * :non_insurance_payers (Array<String>)
|
|
1478
|
-
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
|
|
1479
|
-
# * :rendering_provider (Hash)
|
|
1480
|
-
# * :npi (String)
|
|
1481
|
-
# * :taxonomy_code (String)
|
|
1482
|
-
# * :address (Hash)
|
|
1483
|
-
# * :zip_plus_four_code (String)
|
|
1484
|
-
# * :address_1 (String)
|
|
1485
|
-
# * :address_2 (String)
|
|
1486
|
-
# * :city (String)
|
|
1487
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1488
|
-
# * :zip_code (String)
|
|
1489
|
-
# * :first_name (String)
|
|
1490
|
-
# * :last_name (String)
|
|
1491
|
-
# * :organization_name (String)
|
|
1492
|
-
# * :service_facility (Hash)
|
|
1493
|
-
# * :organization_name (String)
|
|
1494
|
-
# * :npi (String)
|
|
1495
|
-
# * :address (Hash)
|
|
1496
|
-
# * :zip_plus_four_code (String)
|
|
1497
|
-
# * :address_1 (String)
|
|
1498
|
-
# * :address_2 (String)
|
|
1499
|
-
# * :city (String)
|
|
1500
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1501
|
-
# * :zip_code (String)
|
|
1502
|
-
# * :secondary_identification (String)
|
|
1503
|
-
# * :supervising_provider (Hash)
|
|
1504
|
-
# * :npi (String)
|
|
1505
|
-
# * :taxonomy_code (String)
|
|
1506
|
-
# * :address (Hash)
|
|
1507
|
-
# * :zip_plus_four_code (String)
|
|
1508
|
-
# * :address_1 (String)
|
|
1509
|
-
# * :address_2 (String)
|
|
1510
|
-
# * :city (String)
|
|
1511
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1512
|
-
# * :zip_code (String)
|
|
1513
|
-
# * :first_name (String)
|
|
1514
|
-
# * :last_name (String)
|
|
1515
|
-
# * :organization_name (String)
|
|
1516
|
-
# * :billing_provider (Hash)
|
|
1517
|
-
# * :address (Hash)
|
|
1518
|
-
# * :zip_plus_four_code (String)
|
|
1519
|
-
# * :address_1 (String)
|
|
1520
|
-
# * :address_2 (String)
|
|
1521
|
-
# * :city (String)
|
|
1522
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1523
|
-
# * :zip_code (String)
|
|
1524
|
-
# * :tax_id (String)
|
|
1525
|
-
# * :npi (String)
|
|
1526
|
-
# * :taxonomy_code (String)
|
|
1527
|
-
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
|
1528
|
-
# * :first_name (String)
|
|
1529
|
-
# * :last_name (String)
|
|
1530
|
-
# * :organization_name (String)
|
|
1531
|
-
# * :place_of_service_code_as_submitted (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
1532
|
-
# * :benefits_assigned_to_provider (Boolean)
|
|
1533
|
-
# * :prior_authorization_number (String)
|
|
1534
|
-
# * :external_id (String)
|
|
1535
|
-
# * :date_of_service (Date)
|
|
1536
|
-
# * :tag_ids (Array<String>)
|
|
1537
|
-
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
1538
|
-
# * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
|
|
1539
|
-
# * :provider_accepts_assignment (Boolean)
|
|
1540
|
-
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
1541
|
-
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
1542
|
-
# * :appointment_type (String)
|
|
1543
|
-
# * :end_date_of_service (Date)
|
|
1544
|
-
# * :additional_information (String)
|
|
1545
|
-
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
|
1546
|
-
# * :admission_date (Date)
|
|
1547
|
-
# * :discharge_date (Date)
|
|
1548
|
-
# * :onset_of_current_illness_or_symptom_date (Date)
|
|
1549
|
-
# * :last_menstrual_period_date (Date)
|
|
1550
|
-
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
|
1551
|
-
# * :patient_authorized_release (Boolean)
|
|
1552
|
-
# * :referral_number (String)
|
|
1553
|
-
# * :secondary_payer_carrier_code (String)
|
|
1554
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
|
1555
|
-
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
1556
|
-
# @example
|
|
1557
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
1558
|
-
# api.encounters.v_4.update_universal(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
|
1559
|
-
def update_universal(encounter_id:, request:, request_options: nil)
|
|
1560
|
-
response = @request_client.conn.patch do |req|
|
|
1561
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
1562
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
1563
|
-
req.headers = {
|
|
1564
|
-
**(req.headers || {}),
|
|
1565
|
-
**@request_client.get_headers,
|
|
1566
|
-
**(request_options&.additional_headers || {})
|
|
1567
|
-
}.compact
|
|
1568
|
-
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
1569
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
1570
|
-
request_options: request_options)}/api/encounters/v4/#{encounter_id}/universal"
|
|
1571
|
-
end
|
|
1572
|
-
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
1573
|
-
end
|
|
1574
|
-
|
|
1575
|
-
# @param encounter_id [String]
|
|
1576
|
-
# @param request [Hash] Request of type CandidApiClient::Encounters::V4::Types::EncounterUpdate, as a Hash
|
|
1577
|
-
# * :vitals (Hash)
|
|
1578
|
-
# * :height_in (Integer)
|
|
1579
|
-
# * :weight_lbs (Integer)
|
|
1580
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
|
1581
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
|
1582
|
-
# * :body_temperature_f (Float)
|
|
1583
|
-
# * :hemoglobin_gdl (Float)
|
|
1584
|
-
# * :hematocrit_pct (Float)
|
|
1585
|
-
# * :diagnosis_ids (Array<String>)
|
|
1586
|
-
# * :epsdt_referral (Hash)
|
|
1587
|
-
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
1588
|
-
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
1589
|
-
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
1590
|
-
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
|
1591
|
-
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
|
1592
|
-
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
|
1593
|
-
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
1594
|
-
# * :guarantor (Hash)
|
|
1595
|
-
# * :first_name (String)
|
|
1596
|
-
# * :last_name (String)
|
|
1597
|
-
# * :external_id (String)
|
|
1598
|
-
# * :date_of_birth (Date)
|
|
1599
|
-
# * :address (Hash)
|
|
1600
|
-
# * :zip_plus_four_code (String)
|
|
1601
|
-
# * :address_1 (String)
|
|
1602
|
-
# * :address_2 (String)
|
|
1603
|
-
# * :city (String)
|
|
1604
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1605
|
-
# * :zip_code (String)
|
|
1606
|
-
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
1607
|
-
# * :phone_consent (Boolean)
|
|
1608
|
-
# * :email (String)
|
|
1609
|
-
# * :email_consent (Boolean)
|
|
1610
|
-
# * :auto_charge_consent (Boolean)
|
|
1611
|
-
# * :subscriber_primary (Hash)
|
|
1612
|
-
# * :insurance_card (Hash)
|
|
1613
|
-
# * :member_id (String)
|
|
1614
|
-
# * :payer_name (String)
|
|
1615
|
-
# * :payer_id (String)
|
|
1616
|
-
# * :rx_bin (String)
|
|
1617
|
-
# * :rx_pcn (String)
|
|
1618
|
-
# * :image_url_front (String)
|
|
1619
|
-
# * :image_url_back (String)
|
|
1620
|
-
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
|
1621
|
-
# * :group_number (String)
|
|
1622
|
-
# * :plan_name (String)
|
|
1623
|
-
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
|
1624
|
-
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
|
1625
|
-
# * :payer_plan_group_id (String)
|
|
1626
|
-
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
|
1627
|
-
# * :date_of_birth (Date)
|
|
1628
|
-
# * :address (Hash)
|
|
1629
|
-
# * :zip_plus_four_code (String)
|
|
1630
|
-
# * :address_1 (String)
|
|
1631
|
-
# * :address_2 (String)
|
|
1632
|
-
# * :city (String)
|
|
1633
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1634
|
-
# * :zip_code (String)
|
|
1635
|
-
# * :first_name (String)
|
|
1636
|
-
# * :last_name (String)
|
|
1637
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
1638
|
-
# * :subscriber_secondary (Hash)
|
|
1639
|
-
# * :insurance_card (Hash)
|
|
1640
|
-
# * :member_id (String)
|
|
1641
|
-
# * :payer_name (String)
|
|
1642
|
-
# * :payer_id (String)
|
|
1643
|
-
# * :rx_bin (String)
|
|
1644
|
-
# * :rx_pcn (String)
|
|
1645
|
-
# * :image_url_front (String)
|
|
1646
|
-
# * :image_url_back (String)
|
|
1647
|
-
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
|
1648
|
-
# * :group_number (String)
|
|
1649
|
-
# * :plan_name (String)
|
|
1650
|
-
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
|
1651
|
-
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
|
1652
|
-
# * :payer_plan_group_id (String)
|
|
1653
|
-
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
|
1654
|
-
# * :date_of_birth (Date)
|
|
1655
|
-
# * :address (Hash)
|
|
1656
|
-
# * :zip_plus_four_code (String)
|
|
1657
|
-
# * :address_1 (String)
|
|
1658
|
-
# * :address_2 (String)
|
|
1659
|
-
# * :city (String)
|
|
1660
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1661
|
-
# * :zip_code (String)
|
|
1662
|
-
# * :first_name (String)
|
|
1663
|
-
# * :last_name (String)
|
|
1664
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
1665
|
-
# * :subscriber_tertiary (Hash)
|
|
1666
|
-
# * :insurance_card (Hash)
|
|
1667
|
-
# * :member_id (String)
|
|
1668
|
-
# * :payer_name (String)
|
|
1669
|
-
# * :payer_id (String)
|
|
1670
|
-
# * :rx_bin (String)
|
|
1671
|
-
# * :rx_pcn (String)
|
|
1672
|
-
# * :image_url_front (String)
|
|
1673
|
-
# * :image_url_back (String)
|
|
1674
|
-
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
|
1675
|
-
# * :group_number (String)
|
|
1676
|
-
# * :plan_name (String)
|
|
1677
|
-
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
|
1678
|
-
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
|
1679
|
-
# * :payer_plan_group_id (String)
|
|
1680
|
-
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
|
1681
|
-
# * :date_of_birth (Date)
|
|
1682
|
-
# * :address (Hash)
|
|
1683
|
-
# * :zip_plus_four_code (String)
|
|
1684
|
-
# * :address_1 (String)
|
|
1685
|
-
# * :address_2 (String)
|
|
1686
|
-
# * :city (String)
|
|
1687
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1688
|
-
# * :zip_code (String)
|
|
1689
|
-
# * :first_name (String)
|
|
1690
|
-
# * :last_name (String)
|
|
1691
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
1692
|
-
# * :pay_to_address (Hash)
|
|
1693
|
-
# * :zip_plus_four_code (String)
|
|
1694
|
-
# * :address_1 (String)
|
|
1695
|
-
# * :address_2 (String)
|
|
1696
|
-
# * :city (String)
|
|
1697
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1698
|
-
# * :zip_code (String)
|
|
1699
|
-
# * :initial_referring_provider (Hash)
|
|
1700
|
-
# * :npi (String)
|
|
1701
|
-
# * :taxonomy_code (String)
|
|
1702
|
-
# * :address (Hash)
|
|
1703
|
-
# * :zip_plus_four_code (String)
|
|
1704
|
-
# * :address_1 (String)
|
|
1705
|
-
# * :address_2 (String)
|
|
1706
|
-
# * :city (String)
|
|
1707
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1708
|
-
# * :zip_code (String)
|
|
1709
|
-
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
|
1710
|
-
# * :first_name (String)
|
|
1711
|
-
# * :last_name (String)
|
|
1712
|
-
# * :organization_name (String)
|
|
1713
|
-
# * :referring_provider (Hash)
|
|
1714
|
-
# * :npi (String)
|
|
1715
|
-
# * :taxonomy_code (String)
|
|
1716
|
-
# * :address (Hash)
|
|
1717
|
-
# * :zip_plus_four_code (String)
|
|
1718
|
-
# * :address_1 (String)
|
|
1719
|
-
# * :address_2 (String)
|
|
1720
|
-
# * :city (String)
|
|
1721
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1722
|
-
# * :zip_code (String)
|
|
1723
|
-
# * :first_name (String)
|
|
1724
|
-
# * :last_name (String)
|
|
1725
|
-
# * :organization_name (String)
|
|
1726
|
-
# * :patient (Hash)
|
|
1727
|
-
# * :first_name (String)
|
|
1728
|
-
# * :last_name (String)
|
|
1729
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
1730
|
-
# * :external_id (String)
|
|
1731
|
-
# * :date_of_birth (Date)
|
|
1732
|
-
# * :address (Hash)
|
|
1733
|
-
# * :zip_plus_four_code (String)
|
|
1734
|
-
# * :address_1 (String)
|
|
1735
|
-
# * :address_2 (String)
|
|
1736
|
-
# * :city (String)
|
|
1737
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1738
|
-
# * :zip_code (String)
|
|
1739
|
-
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
1740
|
-
# * :phone_consent (Boolean)
|
|
1741
|
-
# * :email (String)
|
|
1742
|
-
# * :email_consent (Boolean)
|
|
1743
|
-
# * :auto_charge_consent (Boolean)
|
|
1744
|
-
# * :non_insurance_payers (Array<String>)
|
|
1745
|
-
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
|
|
1746
|
-
# * :rendering_provider (Hash)
|
|
1747
|
-
# * :npi (String)
|
|
1748
|
-
# * :taxonomy_code (String)
|
|
1749
|
-
# * :address (Hash)
|
|
1750
|
-
# * :zip_plus_four_code (String)
|
|
1751
|
-
# * :address_1 (String)
|
|
1752
|
-
# * :address_2 (String)
|
|
1753
|
-
# * :city (String)
|
|
1754
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1755
|
-
# * :zip_code (String)
|
|
1756
|
-
# * :first_name (String)
|
|
1757
|
-
# * :last_name (String)
|
|
1758
|
-
# * :organization_name (String)
|
|
1759
|
-
# * :service_facility (Hash)
|
|
1760
|
-
# * :organization_name (String)
|
|
1761
|
-
# * :npi (String)
|
|
1762
|
-
# * :address (Hash)
|
|
1763
|
-
# * :zip_plus_four_code (String)
|
|
1764
|
-
# * :address_1 (String)
|
|
1765
|
-
# * :address_2 (String)
|
|
1766
|
-
# * :city (String)
|
|
1767
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1768
|
-
# * :zip_code (String)
|
|
1769
|
-
# * :secondary_identification (String)
|
|
1770
|
-
# * :supervising_provider (Hash)
|
|
1771
|
-
# * :npi (String)
|
|
1772
|
-
# * :taxonomy_code (String)
|
|
1773
|
-
# * :address (Hash)
|
|
1774
|
-
# * :zip_plus_four_code (String)
|
|
1775
|
-
# * :address_1 (String)
|
|
1776
|
-
# * :address_2 (String)
|
|
1777
|
-
# * :city (String)
|
|
1778
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1779
|
-
# * :zip_code (String)
|
|
1780
|
-
# * :first_name (String)
|
|
1781
|
-
# * :last_name (String)
|
|
1782
|
-
# * :organization_name (String)
|
|
1783
|
-
# * :billing_provider (Hash)
|
|
1784
|
-
# * :address (Hash)
|
|
1785
|
-
# * :zip_plus_four_code (String)
|
|
1786
|
-
# * :address_1 (String)
|
|
1787
|
-
# * :address_2 (String)
|
|
1788
|
-
# * :city (String)
|
|
1789
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1790
|
-
# * :zip_code (String)
|
|
1791
|
-
# * :tax_id (String)
|
|
1792
|
-
# * :npi (String)
|
|
1793
|
-
# * :taxonomy_code (String)
|
|
1794
|
-
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
|
1795
|
-
# * :first_name (String)
|
|
1796
|
-
# * :last_name (String)
|
|
1797
|
-
# * :organization_name (String)
|
|
1798
|
-
# * :place_of_service_code_as_submitted (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
1799
|
-
# * :benefits_assigned_to_provider (Boolean)
|
|
1800
|
-
# * :prior_authorization_number (String)
|
|
1801
|
-
# * :external_id (String)
|
|
1802
|
-
# * :date_of_service (Date)
|
|
1803
|
-
# * :tag_ids (Array<String>)
|
|
1804
|
-
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
1805
|
-
# * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
|
|
1806
|
-
# * :provider_accepts_assignment (Boolean)
|
|
1807
|
-
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
1808
|
-
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
1809
|
-
# * :appointment_type (String)
|
|
1810
|
-
# * :end_date_of_service (Date)
|
|
1811
|
-
# * :additional_information (String)
|
|
1812
|
-
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
|
1813
|
-
# * :admission_date (Date)
|
|
1814
|
-
# * :discharge_date (Date)
|
|
1815
|
-
# * :onset_of_current_illness_or_symptom_date (Date)
|
|
1816
|
-
# * :last_menstrual_period_date (Date)
|
|
1817
|
-
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
|
1818
|
-
# * :patient_authorized_release (Boolean)
|
|
1819
|
-
# * :referral_number (String)
|
|
1820
|
-
# * :secondary_payer_carrier_code (String)
|
|
1821
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
|
1822
|
-
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
1823
|
-
# @example
|
|
1824
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
1825
|
-
# api.encounters.v_4.update(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
|
1826
|
-
def update(encounter_id:, request:, request_options: nil)
|
|
1827
|
-
response = @request_client.conn.patch do |req|
|
|
1828
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
1829
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
1830
|
-
req.headers = {
|
|
1831
|
-
**(req.headers || {}),
|
|
1832
|
-
**@request_client.get_headers,
|
|
1833
|
-
**(request_options&.additional_headers || {})
|
|
1834
|
-
}.compact
|
|
1835
|
-
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
1836
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
1837
|
-
request_options: request_options)}/api/encounters/v4/#{encounter_id}"
|
|
1838
|
-
end
|
|
1839
|
-
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
1840
|
-
end
|
|
1841
|
-
end
|
|
1842
|
-
|
|
1843
|
-
class AsyncV4Client
|
|
1844
|
-
# @return [CandidApiClient::AsyncRequestClient]
|
|
1845
|
-
attr_reader :request_client
|
|
1846
|
-
|
|
1847
|
-
# @param request_client [CandidApiClient::AsyncRequestClient]
|
|
1848
|
-
# @return [CandidApiClient::Encounters::V4::AsyncV4Client]
|
|
1849
|
-
def initialize(request_client:)
|
|
1850
|
-
@request_client = request_client
|
|
1851
|
-
end
|
|
1852
|
-
|
|
1853
|
-
# @param limit [Integer] Maximum number of entities per page, defaults to 100.
|
|
1854
|
-
# @param claim_status [CandidApiClient::Claims::Types::ClaimStatus] Indicates the current status of an insurance claim within the billing process.
|
|
1855
|
-
# @param sort [CandidApiClient::Encounters::V4::Types::EncounterSortOptions] Defaults to created_at:desc.
|
|
1856
|
-
# @param page_token [String]
|
|
1857
|
-
# @param date_of_service_min [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-25.
|
|
1858
|
-
# @param date_of_service_max [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-25.
|
|
1859
|
-
# @param primary_payer_names [String] Comma delimited string.
|
|
1860
|
-
# @param search_term [String] Filter by any of the following fields: encounter_id, claim_id, patient
|
|
1861
|
-
# external_id,
|
|
1862
|
-
# patient date of birth, patient first name, patient last name,
|
|
1863
|
-
# or encounter external id.
|
|
1864
|
-
# @param external_id [String] Filter to an exact match on encounter external_id, if one exists.
|
|
1865
|
-
# @param diagnoses_updated_since [DateTime] ISO 8601 timestamp; ideally in UTC (although not required):
|
|
1866
|
-
# 2019-08-24T14:15:22Z.
|
|
1867
|
-
# @param tag_ids [String] Filter by name of tags on encounters.
|
|
1868
|
-
# @param work_queue_id [String]
|
|
1869
|
-
# @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
|
1870
|
-
# Examples for when this should be set to NOT_BILLABLE include if the Encounter
|
|
1871
|
-
# has not occurred yet or if there is no intention of ever billing the
|
|
1872
|
-
# responsible_party.
|
|
1873
|
-
# @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
|
|
1874
|
-
# SELF_PAY if you intend to bill self pay/cash pay.
|
|
1875
|
-
# @param owner_of_next_action [CandidApiClient::Encounters::V4::Types::EncounterOwnerOfNextActionType] The party who is responsible for taking the next action on an Encounter, as
|
|
1876
|
-
# defined by ownership of open Tasks.
|
|
1877
|
-
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
|
1878
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
|
1879
|
-
# @return [CandidApiClient::Encounters::V4::Types::EncounterPage]
|
|
1880
|
-
# @example
|
|
1881
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
1882
|
-
# api.encounters.v_4.get_all(
|
|
1883
|
-
# limit: 100,
|
|
1884
|
-
# claim_status: BILLER_RECEIVED,
|
|
1885
|
-
# sort: CREATED_AT_ASC,
|
|
1886
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
|
1887
|
-
# date_of_service_min: DateTime.parse(2019-08-24),
|
|
1888
|
-
# date_of_service_max: DateTime.parse(2019-08-25),
|
|
1889
|
-
# primary_payer_names: "Medicare,Medicaid",
|
|
1890
|
-
# search_term: "doe",
|
|
1891
|
-
# external_id: "123456",
|
|
1892
|
-
# diagnoses_updated_since: DateTime.parse(2019-08-24T14:15:22.000Z)
|
|
1893
|
-
# )
|
|
1894
|
-
def get_all(limit: nil, claim_status: nil, sort: nil, page_token: nil, date_of_service_min: nil,
|
|
1895
|
-
date_of_service_max: nil, primary_payer_names: nil, search_term: nil, external_id: nil, diagnoses_updated_since: nil, tag_ids: nil, work_queue_id: nil, billable_status: nil, responsible_party: nil, owner_of_next_action: nil, patient_external_id: nil, request_options: nil)
|
|
1896
|
-
Async do
|
|
1897
|
-
response = @request_client.conn.get do |req|
|
|
1898
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
1899
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
1900
|
-
req.headers = {
|
|
1901
|
-
**(req.headers || {}),
|
|
1902
|
-
**@request_client.get_headers,
|
|
1903
|
-
**(request_options&.additional_headers || {})
|
|
1904
|
-
}.compact
|
|
1905
|
-
req.params = {
|
|
1906
|
-
**(request_options&.additional_query_parameters || {}),
|
|
1907
|
-
"limit": limit,
|
|
1908
|
-
"claim_status": claim_status,
|
|
1909
|
-
"sort": sort,
|
|
1910
|
-
"page_token": page_token,
|
|
1911
|
-
"date_of_service_min": date_of_service_min,
|
|
1912
|
-
"date_of_service_max": date_of_service_max,
|
|
1913
|
-
"primary_payer_names": primary_payer_names,
|
|
1914
|
-
"search_term": search_term,
|
|
1915
|
-
"external_id": external_id,
|
|
1916
|
-
"diagnoses_updated_since": diagnoses_updated_since,
|
|
1917
|
-
"tag_ids": tag_ids,
|
|
1918
|
-
"work_queue_id": work_queue_id,
|
|
1919
|
-
"billable_status": billable_status,
|
|
1920
|
-
"responsible_party": responsible_party,
|
|
1921
|
-
"owner_of_next_action": owner_of_next_action,
|
|
1922
|
-
"patient_external_id": patient_external_id
|
|
1923
|
-
}.compact
|
|
1924
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
1925
|
-
request_options: request_options)}/api/encounters/v4"
|
|
1926
|
-
end
|
|
1927
|
-
CandidApiClient::Encounters::V4::Types::EncounterPage.from_json(json_object: response.body)
|
|
1928
|
-
end
|
|
1929
|
-
end
|
|
1930
|
-
|
|
1931
|
-
# @param encounter_id [String]
|
|
1932
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
|
1933
|
-
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
1934
|
-
# @example
|
|
1935
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
1936
|
-
# api.encounters.v_4.get(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
1937
|
-
def get(encounter_id:, request_options: nil)
|
|
1938
|
-
Async do
|
|
1939
|
-
response = @request_client.conn.get do |req|
|
|
1940
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
1941
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
1942
|
-
req.headers = {
|
|
1943
|
-
**(req.headers || {}),
|
|
1944
|
-
**@request_client.get_headers,
|
|
1945
|
-
**(request_options&.additional_headers || {})
|
|
1946
|
-
}.compact
|
|
1947
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
1948
|
-
request_options: request_options)}/api/encounters/v4/#{encounter_id}"
|
|
1949
|
-
end
|
|
1950
|
-
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
1951
|
-
end
|
|
1952
|
-
end
|
|
1953
|
-
|
|
1954
|
-
# @param request [Hash] Request of type CandidApiClient::EncountersUniversal::Types::UniversalEncounterCreate, as a Hash
|
|
1955
|
-
# * :billing_provider (Hash)
|
|
1956
|
-
# * :address (Hash)
|
|
1957
|
-
# * :zip_plus_four_code (String)
|
|
1958
|
-
# * :address_1 (String)
|
|
1959
|
-
# * :address_2 (String)
|
|
1960
|
-
# * :city (String)
|
|
1961
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1962
|
-
# * :zip_code (String)
|
|
1963
|
-
# * :tax_id (String)
|
|
1964
|
-
# * :npi (String)
|
|
1965
|
-
# * :taxonomy_code (String)
|
|
1966
|
-
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
|
1967
|
-
# * :first_name (String)
|
|
1968
|
-
# * :last_name (String)
|
|
1969
|
-
# * :organization_name (String)
|
|
1970
|
-
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
1971
|
-
# * :rendering_provider (Hash)
|
|
1972
|
-
# * :npi (String)
|
|
1973
|
-
# * :taxonomy_code (String)
|
|
1974
|
-
# * :address (Hash)
|
|
1975
|
-
# * :zip_plus_four_code (String)
|
|
1976
|
-
# * :address_1 (String)
|
|
1977
|
-
# * :address_2 (String)
|
|
1978
|
-
# * :city (String)
|
|
1979
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
1980
|
-
# * :zip_code (String)
|
|
1981
|
-
# * :first_name (String)
|
|
1982
|
-
# * :last_name (String)
|
|
1983
|
-
# * :organization_name (String)
|
|
1984
|
-
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::UniversalServiceLineCreate>)
|
|
1985
|
-
# * :health_care_code_information (Hash)
|
|
1986
|
-
# * :principal_diagnosis (Hash)
|
|
1987
|
-
# * :principal_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosisCodeQualifier)
|
|
1988
|
-
# * :primary_diagnosis_code (String)
|
|
1989
|
-
# * :present_on_admission_indicator (CandidApiClient::HealthCareCodeInformation::V1::Types::PresentOnAdmissionIndicatorCode)
|
|
1990
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
1991
|
-
# * :industry_code_1 (String)
|
|
1992
|
-
# * :industry_code_2 (String)
|
|
1993
|
-
# * :industry_code_3 (String)
|
|
1994
|
-
# * :industry_code_4 (String)
|
|
1995
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
1996
|
-
# * :date_time_period (String)
|
|
1997
|
-
# * :monetary_amount (String)
|
|
1998
|
-
# * :quantity (String)
|
|
1999
|
-
# * :admitting_diagnosis (Hash)
|
|
2000
|
-
# * :admitting_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosisCodeQualifier)
|
|
2001
|
-
# * :admitting_diagnosis_code (String)
|
|
2002
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
2003
|
-
# * :industry_code_1 (String)
|
|
2004
|
-
# * :industry_code_2 (String)
|
|
2005
|
-
# * :industry_code_3 (String)
|
|
2006
|
-
# * :industry_code_4 (String)
|
|
2007
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
2008
|
-
# * :date_time_period (String)
|
|
2009
|
-
# * :monetary_amount (String)
|
|
2010
|
-
# * :quantity (String)
|
|
2011
|
-
# * :patient_reasons_for_visit (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisitNew>)
|
|
2012
|
-
# * :external_causes_of_injury (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjuryNew>)
|
|
2013
|
-
# * :diagnosis_related_groups (Hash)
|
|
2014
|
-
# * :diagnosis_related_group_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupCodeQualifier)
|
|
2015
|
-
# * :diagnosis_related_group_code (String)
|
|
2016
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
2017
|
-
# * :industry_code_1 (String)
|
|
2018
|
-
# * :industry_code_2 (String)
|
|
2019
|
-
# * :industry_code_3 (String)
|
|
2020
|
-
# * :industry_code_4 (String)
|
|
2021
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
2022
|
-
# * :date_time_period (String)
|
|
2023
|
-
# * :monetary_amount (String)
|
|
2024
|
-
# * :quantity (String)
|
|
2025
|
-
# * :other_diagnosis_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformationNew>)
|
|
2026
|
-
# * :principal_procedure (Hash)
|
|
2027
|
-
# * :principal_procedure_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformationCodeQualifier)
|
|
2028
|
-
# * :principal_procedure_code (String)
|
|
2029
|
-
# * :procedure_date (DateTime)
|
|
2030
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
2031
|
-
# * :industry_code_1 (String)
|
|
2032
|
-
# * :industry_code_2 (String)
|
|
2033
|
-
# * :industry_code_3 (String)
|
|
2034
|
-
# * :industry_code_4 (String)
|
|
2035
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
2036
|
-
# * :date_time_period (String)
|
|
2037
|
-
# * :monetary_amount (String)
|
|
2038
|
-
# * :quantity (String)
|
|
2039
|
-
# * :other_procedure_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformationNew>)
|
|
2040
|
-
# * :occurrence_span_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformationNew>)
|
|
2041
|
-
# * :occurrence_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformationNew>)
|
|
2042
|
-
# * :treatment_code_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformationNew>)
|
|
2043
|
-
# * :value_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformationNew>)
|
|
2044
|
-
# * :condition_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformationNew>)
|
|
2045
|
-
# * :submission_expectation (CandidApiClient::Encounters::V4::Types::EncounterSubmissionExpectation)
|
|
2046
|
-
# * :attending_provider (Hash)
|
|
2047
|
-
# * :npi (String)
|
|
2048
|
-
# * :taxonomy_code (String)
|
|
2049
|
-
# * :address (Hash)
|
|
2050
|
-
# * :zip_plus_four_code (String)
|
|
2051
|
-
# * :address_1 (String)
|
|
2052
|
-
# * :address_2 (String)
|
|
2053
|
-
# * :city (String)
|
|
2054
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2055
|
-
# * :zip_code (String)
|
|
2056
|
-
# * :first_name (String)
|
|
2057
|
-
# * :last_name (String)
|
|
2058
|
-
# * :organization_name (String)
|
|
2059
|
-
# * :admission_hour (Integer)
|
|
2060
|
-
# * :admission_type_code (CandidApiClient::X12::V1::Types::TypeOfAdmissionOrVisitCode)
|
|
2061
|
-
# * :admission_source_code (CandidApiClient::X12::V1::Types::PointOfOriginForAdmissionOrVisitCode)
|
|
2062
|
-
# * :discharge_hour (Integer)
|
|
2063
|
-
# * :discharge_status (CandidApiClient::X12::V1::Types::PatientDischargeStatusCode)
|
|
2064
|
-
# * :operating_provider (Hash)
|
|
2065
|
-
# * :npi (String)
|
|
2066
|
-
# * :taxonomy_code (String)
|
|
2067
|
-
# * :address (Hash)
|
|
2068
|
-
# * :zip_plus_four_code (String)
|
|
2069
|
-
# * :address_1 (String)
|
|
2070
|
-
# * :address_2 (String)
|
|
2071
|
-
# * :city (String)
|
|
2072
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2073
|
-
# * :zip_code (String)
|
|
2074
|
-
# * :first_name (String)
|
|
2075
|
-
# * :last_name (String)
|
|
2076
|
-
# * :organization_name (String)
|
|
2077
|
-
# * :other_operating_provider (Hash)
|
|
2078
|
-
# * :npi (String)
|
|
2079
|
-
# * :taxonomy_code (String)
|
|
2080
|
-
# * :address (Hash)
|
|
2081
|
-
# * :zip_plus_four_code (String)
|
|
2082
|
-
# * :address_1 (String)
|
|
2083
|
-
# * :address_2 (String)
|
|
2084
|
-
# * :city (String)
|
|
2085
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2086
|
-
# * :zip_code (String)
|
|
2087
|
-
# * :first_name (String)
|
|
2088
|
-
# * :last_name (String)
|
|
2089
|
-
# * :organization_name (String)
|
|
2090
|
-
# * :type_of_bill (Hash)
|
|
2091
|
-
# * :accident_state_or_province_code (CandidApiClient::Commons::Types::State)
|
|
2092
|
-
# * :patient (Hash)
|
|
2093
|
-
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
2094
|
-
# * :phone_consent (Boolean)
|
|
2095
|
-
# * :email (String)
|
|
2096
|
-
# * :non_insurance_payers (Array<String>)
|
|
2097
|
-
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
|
|
2098
|
-
# * :email_consent (Boolean)
|
|
2099
|
-
# * :auto_charge_consent (Boolean)
|
|
2100
|
-
# * :external_id (String)
|
|
2101
|
-
# * :date_of_birth (Date)
|
|
2102
|
-
# * :address (Hash)
|
|
2103
|
-
# * :zip_plus_four_code (String)
|
|
2104
|
-
# * :address_1 (String)
|
|
2105
|
-
# * :address_2 (String)
|
|
2106
|
-
# * :city (String)
|
|
2107
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2108
|
-
# * :zip_code (String)
|
|
2109
|
-
# * :first_name (String)
|
|
2110
|
-
# * :last_name (String)
|
|
2111
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
2112
|
-
# * :referring_provider (Hash)
|
|
2113
|
-
# * :npi (String)
|
|
2114
|
-
# * :taxonomy_code (String)
|
|
2115
|
-
# * :address (Hash)
|
|
2116
|
-
# * :zip_plus_four_code (String)
|
|
2117
|
-
# * :address_1 (String)
|
|
2118
|
-
# * :address_2 (String)
|
|
2119
|
-
# * :city (String)
|
|
2120
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2121
|
-
# * :zip_code (String)
|
|
2122
|
-
# * :first_name (String)
|
|
2123
|
-
# * :last_name (String)
|
|
2124
|
-
# * :organization_name (String)
|
|
2125
|
-
# * :initial_referring_provider (Hash)
|
|
2126
|
-
# * :npi (String)
|
|
2127
|
-
# * :taxonomy_code (String)
|
|
2128
|
-
# * :address (Hash)
|
|
2129
|
-
# * :zip_plus_four_code (String)
|
|
2130
|
-
# * :address_1 (String)
|
|
2131
|
-
# * :address_2 (String)
|
|
2132
|
-
# * :city (String)
|
|
2133
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2134
|
-
# * :zip_code (String)
|
|
2135
|
-
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
|
2136
|
-
# * :first_name (String)
|
|
2137
|
-
# * :last_name (String)
|
|
2138
|
-
# * :organization_name (String)
|
|
2139
|
-
# * :supervising_provider (Hash)
|
|
2140
|
-
# * :npi (String)
|
|
2141
|
-
# * :taxonomy_code (String)
|
|
2142
|
-
# * :address (Hash)
|
|
2143
|
-
# * :zip_plus_four_code (String)
|
|
2144
|
-
# * :address_1 (String)
|
|
2145
|
-
# * :address_2 (String)
|
|
2146
|
-
# * :city (String)
|
|
2147
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2148
|
-
# * :zip_code (String)
|
|
2149
|
-
# * :first_name (String)
|
|
2150
|
-
# * :last_name (String)
|
|
2151
|
-
# * :organization_name (String)
|
|
2152
|
-
# * :service_facility (Hash)
|
|
2153
|
-
# * :organization_name (String)
|
|
2154
|
-
# * :npi (String)
|
|
2155
|
-
# * :address (Hash)
|
|
2156
|
-
# * :zip_plus_four_code (String)
|
|
2157
|
-
# * :address_1 (String)
|
|
2158
|
-
# * :address_2 (String)
|
|
2159
|
-
# * :city (String)
|
|
2160
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2161
|
-
# * :zip_code (String)
|
|
2162
|
-
# * :secondary_identification (String)
|
|
2163
|
-
# * :subscriber_primary (Hash)
|
|
2164
|
-
# * :insurance_card (Hash)
|
|
2165
|
-
# * :member_id (String)
|
|
2166
|
-
# * :payer_name (String)
|
|
2167
|
-
# * :payer_id (String)
|
|
2168
|
-
# * :rx_bin (String)
|
|
2169
|
-
# * :rx_pcn (String)
|
|
2170
|
-
# * :image_url_front (String)
|
|
2171
|
-
# * :image_url_back (String)
|
|
2172
|
-
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
|
2173
|
-
# * :group_number (String)
|
|
2174
|
-
# * :plan_name (String)
|
|
2175
|
-
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
|
2176
|
-
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
|
2177
|
-
# * :payer_plan_group_id (String)
|
|
2178
|
-
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
|
2179
|
-
# * :date_of_birth (Date)
|
|
2180
|
-
# * :address (Hash)
|
|
2181
|
-
# * :zip_plus_four_code (String)
|
|
2182
|
-
# * :address_1 (String)
|
|
2183
|
-
# * :address_2 (String)
|
|
2184
|
-
# * :city (String)
|
|
2185
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2186
|
-
# * :zip_code (String)
|
|
2187
|
-
# * :first_name (String)
|
|
2188
|
-
# * :last_name (String)
|
|
2189
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
2190
|
-
# * :subscriber_secondary (Hash)
|
|
2191
|
-
# * :insurance_card (Hash)
|
|
2192
|
-
# * :member_id (String)
|
|
2193
|
-
# * :payer_name (String)
|
|
2194
|
-
# * :payer_id (String)
|
|
2195
|
-
# * :rx_bin (String)
|
|
2196
|
-
# * :rx_pcn (String)
|
|
2197
|
-
# * :image_url_front (String)
|
|
2198
|
-
# * :image_url_back (String)
|
|
2199
|
-
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
|
2200
|
-
# * :group_number (String)
|
|
2201
|
-
# * :plan_name (String)
|
|
2202
|
-
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
|
2203
|
-
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
|
2204
|
-
# * :payer_plan_group_id (String)
|
|
2205
|
-
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
|
2206
|
-
# * :date_of_birth (Date)
|
|
2207
|
-
# * :address (Hash)
|
|
2208
|
-
# * :zip_plus_four_code (String)
|
|
2209
|
-
# * :address_1 (String)
|
|
2210
|
-
# * :address_2 (String)
|
|
2211
|
-
# * :city (String)
|
|
2212
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2213
|
-
# * :zip_code (String)
|
|
2214
|
-
# * :first_name (String)
|
|
2215
|
-
# * :last_name (String)
|
|
2216
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
2217
|
-
# * :subscriber_tertiary (Hash)
|
|
2218
|
-
# * :insurance_card (Hash)
|
|
2219
|
-
# * :member_id (String)
|
|
2220
|
-
# * :payer_name (String)
|
|
2221
|
-
# * :payer_id (String)
|
|
2222
|
-
# * :rx_bin (String)
|
|
2223
|
-
# * :rx_pcn (String)
|
|
2224
|
-
# * :image_url_front (String)
|
|
2225
|
-
# * :image_url_back (String)
|
|
2226
|
-
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
|
2227
|
-
# * :group_number (String)
|
|
2228
|
-
# * :plan_name (String)
|
|
2229
|
-
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
|
2230
|
-
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
|
2231
|
-
# * :payer_plan_group_id (String)
|
|
2232
|
-
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
|
2233
|
-
# * :date_of_birth (Date)
|
|
2234
|
-
# * :address (Hash)
|
|
2235
|
-
# * :zip_plus_four_code (String)
|
|
2236
|
-
# * :address_1 (String)
|
|
2237
|
-
# * :address_2 (String)
|
|
2238
|
-
# * :city (String)
|
|
2239
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2240
|
-
# * :zip_code (String)
|
|
2241
|
-
# * :first_name (String)
|
|
2242
|
-
# * :last_name (String)
|
|
2243
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
2244
|
-
# * :prior_authorization_number (String)
|
|
2245
|
-
# * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
|
|
2246
|
-
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
|
2247
|
-
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
|
|
2248
|
-
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
|
2249
|
-
# * :guarantor (Hash)
|
|
2250
|
-
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
2251
|
-
# * :phone_consent (Boolean)
|
|
2252
|
-
# * :email (String)
|
|
2253
|
-
# * :email_consent (Boolean)
|
|
2254
|
-
# * :auto_charge_consent (Boolean)
|
|
2255
|
-
# * :first_name (String)
|
|
2256
|
-
# * :last_name (String)
|
|
2257
|
-
# * :external_id (String)
|
|
2258
|
-
# * :date_of_birth (Date)
|
|
2259
|
-
# * :address (Hash)
|
|
2260
|
-
# * :zip_plus_four_code (String)
|
|
2261
|
-
# * :address_1 (String)
|
|
2262
|
-
# * :address_2 (String)
|
|
2263
|
-
# * :city (String)
|
|
2264
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2265
|
-
# * :zip_code (String)
|
|
2266
|
-
# * :external_claim_submission (Hash)
|
|
2267
|
-
# * :claim_created_at (DateTime)
|
|
2268
|
-
# * :patient_control_number (String)
|
|
2269
|
-
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
|
2270
|
-
# * :tag_ids (Array<String>)
|
|
2271
|
-
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
|
2272
|
-
# * :referral_number (String)
|
|
2273
|
-
# * :epsdt_referral (Hash)
|
|
2274
|
-
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
2275
|
-
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
2276
|
-
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
2277
|
-
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
|
2278
|
-
# * :secondary_payer_carrier_code (String)
|
|
2279
|
-
# * :external_id (String)
|
|
2280
|
-
# * :date_of_service (Date)
|
|
2281
|
-
# * :end_date_of_service (Date)
|
|
2282
|
-
# * :patient_authorized_release (Boolean)
|
|
2283
|
-
# * :benefits_assigned_to_provider (Boolean)
|
|
2284
|
-
# * :provider_accepts_assignment (Boolean)
|
|
2285
|
-
# * :appointment_type (String)
|
|
2286
|
-
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
2287
|
-
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
|
|
2288
|
-
# * :pay_to_address (Hash)
|
|
2289
|
-
# * :zip_plus_four_code (String)
|
|
2290
|
-
# * :address_1 (String)
|
|
2291
|
-
# * :address_2 (String)
|
|
2292
|
-
# * :city (String)
|
|
2293
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2294
|
-
# * :zip_code (String)
|
|
2295
|
-
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
2296
|
-
# * :vitals (Hash)
|
|
2297
|
-
# * :height_in (Integer)
|
|
2298
|
-
# * :weight_lbs (Integer)
|
|
2299
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
|
2300
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
|
2301
|
-
# * :body_temperature_f (Float)
|
|
2302
|
-
# * :hemoglobin_gdl (Float)
|
|
2303
|
-
# * :hematocrit_pct (Float)
|
|
2304
|
-
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
2305
|
-
# * :additional_information (String)
|
|
2306
|
-
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
|
2307
|
-
# * :admission_date (Date)
|
|
2308
|
-
# * :discharge_date (Date)
|
|
2309
|
-
# * :onset_of_current_illness_or_symptom_date (Date)
|
|
2310
|
-
# * :last_menstrual_period_date (Date)
|
|
2311
|
-
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
|
2312
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
|
2313
|
-
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
2314
|
-
# @example
|
|
2315
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
2316
|
-
# api.encounters.v_4.create_universal(request: { external_id: "external_id", patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, billable_status: BILLABLE, patient: { first_name: "first_name", last_name: "last_name", gender: MALE, external_id: "external_id", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" } }, responsible_party: INSURANCE_PAY, billing_provider: { address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code", zip_plus_four_code: "zip_plus_four_code" }, tax_id: "tax_id", npi: "npi" }, submission_expectation: TARGET_PROFESSIONAL })
|
|
2317
|
-
def create_universal(request:, request_options: nil)
|
|
2318
|
-
Async do
|
|
2319
|
-
response = @request_client.conn.post do |req|
|
|
2320
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
2321
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
2322
|
-
req.headers = {
|
|
2323
|
-
**(req.headers || {}),
|
|
2324
|
-
**@request_client.get_headers,
|
|
2325
|
-
**(request_options&.additional_headers || {})
|
|
2326
|
-
}.compact
|
|
2327
|
-
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
2328
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
2329
|
-
request_options: request_options)}/api/encounters/v4/universal"
|
|
2330
|
-
end
|
|
2331
|
-
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
2332
|
-
end
|
|
2333
|
-
end
|
|
2334
|
-
|
|
2335
|
-
# @param request [Hash] Request of type CandidApiClient::Encounters::V4::Types::EncounterCreate, as a Hash
|
|
2336
|
-
# * :billing_provider (Hash)
|
|
2337
|
-
# * :address (Hash)
|
|
2338
|
-
# * :zip_plus_four_code (String)
|
|
2339
|
-
# * :address_1 (String)
|
|
2340
|
-
# * :address_2 (String)
|
|
2341
|
-
# * :city (String)
|
|
2342
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2343
|
-
# * :zip_code (String)
|
|
2344
|
-
# * :tax_id (String)
|
|
2345
|
-
# * :npi (String)
|
|
2346
|
-
# * :taxonomy_code (String)
|
|
2347
|
-
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
|
2348
|
-
# * :first_name (String)
|
|
2349
|
-
# * :last_name (String)
|
|
2350
|
-
# * :organization_name (String)
|
|
2351
|
-
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>)
|
|
2352
|
-
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
2353
|
-
# * :rendering_provider (Hash)
|
|
2354
|
-
# * :npi (String)
|
|
2355
|
-
# * :taxonomy_code (String)
|
|
2356
|
-
# * :address (Hash)
|
|
2357
|
-
# * :zip_plus_four_code (String)
|
|
2358
|
-
# * :address_1 (String)
|
|
2359
|
-
# * :address_2 (String)
|
|
2360
|
-
# * :city (String)
|
|
2361
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2362
|
-
# * :zip_code (String)
|
|
2363
|
-
# * :first_name (String)
|
|
2364
|
-
# * :last_name (String)
|
|
2365
|
-
# * :organization_name (String)
|
|
2366
|
-
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
|
|
2367
|
-
# * :patient (Hash)
|
|
2368
|
-
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
2369
|
-
# * :phone_consent (Boolean)
|
|
2370
|
-
# * :email (String)
|
|
2371
|
-
# * :non_insurance_payers (Array<String>)
|
|
2372
|
-
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
|
|
2373
|
-
# * :email_consent (Boolean)
|
|
2374
|
-
# * :auto_charge_consent (Boolean)
|
|
2375
|
-
# * :external_id (String)
|
|
2376
|
-
# * :date_of_birth (Date)
|
|
2377
|
-
# * :address (Hash)
|
|
2378
|
-
# * :zip_plus_four_code (String)
|
|
2379
|
-
# * :address_1 (String)
|
|
2380
|
-
# * :address_2 (String)
|
|
2381
|
-
# * :city (String)
|
|
2382
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2383
|
-
# * :zip_code (String)
|
|
2384
|
-
# * :first_name (String)
|
|
2385
|
-
# * :last_name (String)
|
|
2386
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
2387
|
-
# * :referring_provider (Hash)
|
|
2388
|
-
# * :npi (String)
|
|
2389
|
-
# * :taxonomy_code (String)
|
|
2390
|
-
# * :address (Hash)
|
|
2391
|
-
# * :zip_plus_four_code (String)
|
|
2392
|
-
# * :address_1 (String)
|
|
2393
|
-
# * :address_2 (String)
|
|
2394
|
-
# * :city (String)
|
|
2395
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2396
|
-
# * :zip_code (String)
|
|
2397
|
-
# * :first_name (String)
|
|
2398
|
-
# * :last_name (String)
|
|
2399
|
-
# * :organization_name (String)
|
|
2400
|
-
# * :initial_referring_provider (Hash)
|
|
2401
|
-
# * :npi (String)
|
|
2402
|
-
# * :taxonomy_code (String)
|
|
2403
|
-
# * :address (Hash)
|
|
2404
|
-
# * :zip_plus_four_code (String)
|
|
2405
|
-
# * :address_1 (String)
|
|
2406
|
-
# * :address_2 (String)
|
|
2407
|
-
# * :city (String)
|
|
2408
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2409
|
-
# * :zip_code (String)
|
|
2410
|
-
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
|
2411
|
-
# * :first_name (String)
|
|
2412
|
-
# * :last_name (String)
|
|
2413
|
-
# * :organization_name (String)
|
|
2414
|
-
# * :supervising_provider (Hash)
|
|
2415
|
-
# * :npi (String)
|
|
2416
|
-
# * :taxonomy_code (String)
|
|
2417
|
-
# * :address (Hash)
|
|
2418
|
-
# * :zip_plus_four_code (String)
|
|
2419
|
-
# * :address_1 (String)
|
|
2420
|
-
# * :address_2 (String)
|
|
2421
|
-
# * :city (String)
|
|
2422
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2423
|
-
# * :zip_code (String)
|
|
2424
|
-
# * :first_name (String)
|
|
2425
|
-
# * :last_name (String)
|
|
2426
|
-
# * :organization_name (String)
|
|
2427
|
-
# * :service_facility (Hash)
|
|
2428
|
-
# * :organization_name (String)
|
|
2429
|
-
# * :npi (String)
|
|
2430
|
-
# * :address (Hash)
|
|
2431
|
-
# * :zip_plus_four_code (String)
|
|
2432
|
-
# * :address_1 (String)
|
|
2433
|
-
# * :address_2 (String)
|
|
2434
|
-
# * :city (String)
|
|
2435
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2436
|
-
# * :zip_code (String)
|
|
2437
|
-
# * :secondary_identification (String)
|
|
2438
|
-
# * :subscriber_primary (Hash)
|
|
2439
|
-
# * :insurance_card (Hash)
|
|
2440
|
-
# * :member_id (String)
|
|
2441
|
-
# * :payer_name (String)
|
|
2442
|
-
# * :payer_id (String)
|
|
2443
|
-
# * :rx_bin (String)
|
|
2444
|
-
# * :rx_pcn (String)
|
|
2445
|
-
# * :image_url_front (String)
|
|
2446
|
-
# * :image_url_back (String)
|
|
2447
|
-
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
|
2448
|
-
# * :group_number (String)
|
|
2449
|
-
# * :plan_name (String)
|
|
2450
|
-
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
|
2451
|
-
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
|
2452
|
-
# * :payer_plan_group_id (String)
|
|
2453
|
-
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
|
2454
|
-
# * :date_of_birth (Date)
|
|
2455
|
-
# * :address (Hash)
|
|
2456
|
-
# * :zip_plus_four_code (String)
|
|
2457
|
-
# * :address_1 (String)
|
|
2458
|
-
# * :address_2 (String)
|
|
2459
|
-
# * :city (String)
|
|
2460
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2461
|
-
# * :zip_code (String)
|
|
2462
|
-
# * :first_name (String)
|
|
2463
|
-
# * :last_name (String)
|
|
2464
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
2465
|
-
# * :subscriber_secondary (Hash)
|
|
2466
|
-
# * :insurance_card (Hash)
|
|
2467
|
-
# * :member_id (String)
|
|
2468
|
-
# * :payer_name (String)
|
|
2469
|
-
# * :payer_id (String)
|
|
2470
|
-
# * :rx_bin (String)
|
|
2471
|
-
# * :rx_pcn (String)
|
|
2472
|
-
# * :image_url_front (String)
|
|
2473
|
-
# * :image_url_back (String)
|
|
2474
|
-
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
|
2475
|
-
# * :group_number (String)
|
|
2476
|
-
# * :plan_name (String)
|
|
2477
|
-
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
|
2478
|
-
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
|
2479
|
-
# * :payer_plan_group_id (String)
|
|
2480
|
-
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
|
2481
|
-
# * :date_of_birth (Date)
|
|
2482
|
-
# * :address (Hash)
|
|
2483
|
-
# * :zip_plus_four_code (String)
|
|
2484
|
-
# * :address_1 (String)
|
|
2485
|
-
# * :address_2 (String)
|
|
2486
|
-
# * :city (String)
|
|
2487
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2488
|
-
# * :zip_code (String)
|
|
2489
|
-
# * :first_name (String)
|
|
2490
|
-
# * :last_name (String)
|
|
2491
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
2492
|
-
# * :subscriber_tertiary (Hash)
|
|
2493
|
-
# * :insurance_card (Hash)
|
|
2494
|
-
# * :member_id (String)
|
|
2495
|
-
# * :payer_name (String)
|
|
2496
|
-
# * :payer_id (String)
|
|
2497
|
-
# * :rx_bin (String)
|
|
2498
|
-
# * :rx_pcn (String)
|
|
2499
|
-
# * :image_url_front (String)
|
|
2500
|
-
# * :image_url_back (String)
|
|
2501
|
-
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
|
2502
|
-
# * :group_number (String)
|
|
2503
|
-
# * :plan_name (String)
|
|
2504
|
-
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
|
2505
|
-
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
|
2506
|
-
# * :payer_plan_group_id (String)
|
|
2507
|
-
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
|
2508
|
-
# * :date_of_birth (Date)
|
|
2509
|
-
# * :address (Hash)
|
|
2510
|
-
# * :zip_plus_four_code (String)
|
|
2511
|
-
# * :address_1 (String)
|
|
2512
|
-
# * :address_2 (String)
|
|
2513
|
-
# * :city (String)
|
|
2514
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2515
|
-
# * :zip_code (String)
|
|
2516
|
-
# * :first_name (String)
|
|
2517
|
-
# * :last_name (String)
|
|
2518
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
2519
|
-
# * :prior_authorization_number (String)
|
|
2520
|
-
# * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
|
|
2521
|
-
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
|
2522
|
-
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
|
|
2523
|
-
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
|
2524
|
-
# * :guarantor (Hash)
|
|
2525
|
-
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
2526
|
-
# * :phone_consent (Boolean)
|
|
2527
|
-
# * :email (String)
|
|
2528
|
-
# * :email_consent (Boolean)
|
|
2529
|
-
# * :auto_charge_consent (Boolean)
|
|
2530
|
-
# * :first_name (String)
|
|
2531
|
-
# * :last_name (String)
|
|
2532
|
-
# * :external_id (String)
|
|
2533
|
-
# * :date_of_birth (Date)
|
|
2534
|
-
# * :address (Hash)
|
|
2535
|
-
# * :zip_plus_four_code (String)
|
|
2536
|
-
# * :address_1 (String)
|
|
2537
|
-
# * :address_2 (String)
|
|
2538
|
-
# * :city (String)
|
|
2539
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2540
|
-
# * :zip_code (String)
|
|
2541
|
-
# * :external_claim_submission (Hash)
|
|
2542
|
-
# * :claim_created_at (DateTime)
|
|
2543
|
-
# * :patient_control_number (String)
|
|
2544
|
-
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
|
2545
|
-
# * :tag_ids (Array<String>)
|
|
2546
|
-
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
|
2547
|
-
# * :referral_number (String)
|
|
2548
|
-
# * :epsdt_referral (Hash)
|
|
2549
|
-
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
2550
|
-
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
2551
|
-
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
2552
|
-
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
|
2553
|
-
# * :secondary_payer_carrier_code (String)
|
|
2554
|
-
# * :external_id (String)
|
|
2555
|
-
# * :date_of_service (Date)
|
|
2556
|
-
# * :end_date_of_service (Date)
|
|
2557
|
-
# * :patient_authorized_release (Boolean)
|
|
2558
|
-
# * :benefits_assigned_to_provider (Boolean)
|
|
2559
|
-
# * :provider_accepts_assignment (Boolean)
|
|
2560
|
-
# * :appointment_type (String)
|
|
2561
|
-
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
2562
|
-
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
|
|
2563
|
-
# * :pay_to_address (Hash)
|
|
2564
|
-
# * :zip_plus_four_code (String)
|
|
2565
|
-
# * :address_1 (String)
|
|
2566
|
-
# * :address_2 (String)
|
|
2567
|
-
# * :city (String)
|
|
2568
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2569
|
-
# * :zip_code (String)
|
|
2570
|
-
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
2571
|
-
# * :vitals (Hash)
|
|
2572
|
-
# * :height_in (Integer)
|
|
2573
|
-
# * :weight_lbs (Integer)
|
|
2574
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
|
2575
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
|
2576
|
-
# * :body_temperature_f (Float)
|
|
2577
|
-
# * :hemoglobin_gdl (Float)
|
|
2578
|
-
# * :hematocrit_pct (Float)
|
|
2579
|
-
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
2580
|
-
# * :additional_information (String)
|
|
2581
|
-
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
|
2582
|
-
# * :admission_date (Date)
|
|
2583
|
-
# * :discharge_date (Date)
|
|
2584
|
-
# * :onset_of_current_illness_or_symptom_date (Date)
|
|
2585
|
-
# * :last_menstrual_period_date (Date)
|
|
2586
|
-
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
|
2587
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
|
2588
|
-
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
2589
|
-
# @example
|
|
2590
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
2591
|
-
# api.encounters.v_4.create(request: { external_id: "external_id", patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, billable_status: BILLABLE, patient: { first_name: "first_name", last_name: "last_name", gender: MALE, external_id: "external_id", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" } }, responsible_party: INSURANCE_PAY, billing_provider: { address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code", zip_plus_four_code: "zip_plus_four_code" }, tax_id: "tax_id", npi: "npi" }, diagnoses: [{ code_type: ABF, code: "code" }, { code_type: ABF, code: "code" }], place_of_service_code: PHARMACY, rendering_provider: { npi: "npi" } })
|
|
2592
|
-
def create(request:, request_options: nil)
|
|
2593
|
-
Async do
|
|
2594
|
-
response = @request_client.conn.post do |req|
|
|
2595
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
2596
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
2597
|
-
req.headers = {
|
|
2598
|
-
**(req.headers || {}),
|
|
2599
|
-
**@request_client.get_headers,
|
|
2600
|
-
**(request_options&.additional_headers || {})
|
|
2601
|
-
}.compact
|
|
2602
|
-
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
2603
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
2604
|
-
request_options: request_options)}/api/encounters/v4"
|
|
2605
|
-
end
|
|
2606
|
-
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
2607
|
-
end
|
|
2608
|
-
end
|
|
2609
|
-
|
|
2610
|
-
# Create an encounter from a pre-encounter patient and appointment. This endpoint
|
|
2611
|
-
# is intended to be used by consumers who are managing
|
|
2612
|
-
# patients and appointments in the pre-encounter service and is currently under
|
|
2613
|
-
# development. Consumers who are not taking advantage
|
|
2614
|
-
# of the pre-encounter service should use the standard create endpoint.
|
|
2615
|
-
# The endpoint will create an encounter from the provided fields, pulling
|
|
2616
|
-
# information from the provided patient and appointment objects
|
|
2617
|
-
# where applicable. In particular, the following fields are populated from the
|
|
2618
|
-
# patient and appointment objects:
|
|
2619
|
-
# - Patient
|
|
2620
|
-
# - Referring Provider
|
|
2621
|
-
# - Subscriber Primary
|
|
2622
|
-
# - Subscriber Secondary
|
|
2623
|
-
# - Referral Number
|
|
2624
|
-
# - Responsible Party
|
|
2625
|
-
# - Guarantor
|
|
2626
|
-
# Utilizing this endpoint opts you into automatic updating of the encounter when
|
|
2627
|
-
# the patient or appointment is updated, assuming the
|
|
2628
|
-
# encounter has not already been submitted or adjudicated.
|
|
2629
|
-
#
|
|
2630
|
-
# @param request [Hash] Request of type CandidApiClient::EncountersUniversal::Types::UniversalEncounterCreateFromPreEncounter, as a Hash
|
|
2631
|
-
# * :submission_expectation (CandidApiClient::Encounters::V4::Types::EncounterSubmissionExpectation)
|
|
2632
|
-
# * :rendering_provider (Hash)
|
|
2633
|
-
# * :npi (String)
|
|
2634
|
-
# * :taxonomy_code (String)
|
|
2635
|
-
# * :address (Hash)
|
|
2636
|
-
# * :zip_plus_four_code (String)
|
|
2637
|
-
# * :address_1 (String)
|
|
2638
|
-
# * :address_2 (String)
|
|
2639
|
-
# * :city (String)
|
|
2640
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2641
|
-
# * :zip_code (String)
|
|
2642
|
-
# * :first_name (String)
|
|
2643
|
-
# * :last_name (String)
|
|
2644
|
-
# * :organization_name (String)
|
|
2645
|
-
# * :health_care_code_information (Hash)
|
|
2646
|
-
# * :principal_diagnosis (Hash)
|
|
2647
|
-
# * :principal_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosisCodeQualifier)
|
|
2648
|
-
# * :primary_diagnosis_code (String)
|
|
2649
|
-
# * :present_on_admission_indicator (CandidApiClient::HealthCareCodeInformation::V1::Types::PresentOnAdmissionIndicatorCode)
|
|
2650
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
2651
|
-
# * :industry_code_1 (String)
|
|
2652
|
-
# * :industry_code_2 (String)
|
|
2653
|
-
# * :industry_code_3 (String)
|
|
2654
|
-
# * :industry_code_4 (String)
|
|
2655
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
2656
|
-
# * :date_time_period (String)
|
|
2657
|
-
# * :monetary_amount (String)
|
|
2658
|
-
# * :quantity (String)
|
|
2659
|
-
# * :admitting_diagnosis (Hash)
|
|
2660
|
-
# * :admitting_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosisCodeQualifier)
|
|
2661
|
-
# * :admitting_diagnosis_code (String)
|
|
2662
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
2663
|
-
# * :industry_code_1 (String)
|
|
2664
|
-
# * :industry_code_2 (String)
|
|
2665
|
-
# * :industry_code_3 (String)
|
|
2666
|
-
# * :industry_code_4 (String)
|
|
2667
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
2668
|
-
# * :date_time_period (String)
|
|
2669
|
-
# * :monetary_amount (String)
|
|
2670
|
-
# * :quantity (String)
|
|
2671
|
-
# * :patient_reasons_for_visit (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisitNew>)
|
|
2672
|
-
# * :external_causes_of_injury (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjuryNew>)
|
|
2673
|
-
# * :diagnosis_related_groups (Hash)
|
|
2674
|
-
# * :diagnosis_related_group_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupCodeQualifier)
|
|
2675
|
-
# * :diagnosis_related_group_code (String)
|
|
2676
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
2677
|
-
# * :industry_code_1 (String)
|
|
2678
|
-
# * :industry_code_2 (String)
|
|
2679
|
-
# * :industry_code_3 (String)
|
|
2680
|
-
# * :industry_code_4 (String)
|
|
2681
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
2682
|
-
# * :date_time_period (String)
|
|
2683
|
-
# * :monetary_amount (String)
|
|
2684
|
-
# * :quantity (String)
|
|
2685
|
-
# * :other_diagnosis_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformationNew>)
|
|
2686
|
-
# * :principal_procedure (Hash)
|
|
2687
|
-
# * :principal_procedure_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformationCodeQualifier)
|
|
2688
|
-
# * :principal_procedure_code (String)
|
|
2689
|
-
# * :procedure_date (DateTime)
|
|
2690
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
2691
|
-
# * :industry_code_1 (String)
|
|
2692
|
-
# * :industry_code_2 (String)
|
|
2693
|
-
# * :industry_code_3 (String)
|
|
2694
|
-
# * :industry_code_4 (String)
|
|
2695
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
2696
|
-
# * :date_time_period (String)
|
|
2697
|
-
# * :monetary_amount (String)
|
|
2698
|
-
# * :quantity (String)
|
|
2699
|
-
# * :other_procedure_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformationNew>)
|
|
2700
|
-
# * :occurrence_span_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformationNew>)
|
|
2701
|
-
# * :occurrence_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformationNew>)
|
|
2702
|
-
# * :treatment_code_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformationNew>)
|
|
2703
|
-
# * :value_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformationNew>)
|
|
2704
|
-
# * :condition_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformationNew>)
|
|
2705
|
-
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
2706
|
-
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::UniversalServiceLineCreate>)
|
|
2707
|
-
# * :attending_provider (Hash)
|
|
2708
|
-
# * :npi (String)
|
|
2709
|
-
# * :taxonomy_code (String)
|
|
2710
|
-
# * :address (Hash)
|
|
2711
|
-
# * :zip_plus_four_code (String)
|
|
2712
|
-
# * :address_1 (String)
|
|
2713
|
-
# * :address_2 (String)
|
|
2714
|
-
# * :city (String)
|
|
2715
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2716
|
-
# * :zip_code (String)
|
|
2717
|
-
# * :first_name (String)
|
|
2718
|
-
# * :last_name (String)
|
|
2719
|
-
# * :organization_name (String)
|
|
2720
|
-
# * :admission_hour (Integer)
|
|
2721
|
-
# * :admission_type_code (CandidApiClient::X12::V1::Types::TypeOfAdmissionOrVisitCode)
|
|
2722
|
-
# * :admission_source_code (CandidApiClient::X12::V1::Types::PointOfOriginForAdmissionOrVisitCode)
|
|
2723
|
-
# * :discharge_hour (Integer)
|
|
2724
|
-
# * :discharge_status (CandidApiClient::X12::V1::Types::PatientDischargeStatusCode)
|
|
2725
|
-
# * :operating_provider (Hash)
|
|
2726
|
-
# * :npi (String)
|
|
2727
|
-
# * :taxonomy_code (String)
|
|
2728
|
-
# * :address (Hash)
|
|
2729
|
-
# * :zip_plus_four_code (String)
|
|
2730
|
-
# * :address_1 (String)
|
|
2731
|
-
# * :address_2 (String)
|
|
2732
|
-
# * :city (String)
|
|
2733
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2734
|
-
# * :zip_code (String)
|
|
2735
|
-
# * :first_name (String)
|
|
2736
|
-
# * :last_name (String)
|
|
2737
|
-
# * :organization_name (String)
|
|
2738
|
-
# * :other_operating_provider (Hash)
|
|
2739
|
-
# * :npi (String)
|
|
2740
|
-
# * :taxonomy_code (String)
|
|
2741
|
-
# * :address (Hash)
|
|
2742
|
-
# * :zip_plus_four_code (String)
|
|
2743
|
-
# * :address_1 (String)
|
|
2744
|
-
# * :address_2 (String)
|
|
2745
|
-
# * :city (String)
|
|
2746
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2747
|
-
# * :zip_code (String)
|
|
2748
|
-
# * :first_name (String)
|
|
2749
|
-
# * :last_name (String)
|
|
2750
|
-
# * :organization_name (String)
|
|
2751
|
-
# * :type_of_bill (Hash)
|
|
2752
|
-
# * :accident_state_or_province_code (CandidApiClient::Commons::Types::State)
|
|
2753
|
-
# * :pre_encounter_patient_id (String)
|
|
2754
|
-
# * :pre_encounter_appointment_ids (Array<String>)
|
|
2755
|
-
# * :billing_provider (Hash)
|
|
2756
|
-
# * :address (Hash)
|
|
2757
|
-
# * :zip_plus_four_code (String)
|
|
2758
|
-
# * :address_1 (String)
|
|
2759
|
-
# * :address_2 (String)
|
|
2760
|
-
# * :city (String)
|
|
2761
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2762
|
-
# * :zip_code (String)
|
|
2763
|
-
# * :tax_id (String)
|
|
2764
|
-
# * :npi (String)
|
|
2765
|
-
# * :taxonomy_code (String)
|
|
2766
|
-
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
|
2767
|
-
# * :first_name (String)
|
|
2768
|
-
# * :last_name (String)
|
|
2769
|
-
# * :organization_name (String)
|
|
2770
|
-
# * :initial_referring_provider (Hash)
|
|
2771
|
-
# * :npi (String)
|
|
2772
|
-
# * :taxonomy_code (String)
|
|
2773
|
-
# * :address (Hash)
|
|
2774
|
-
# * :zip_plus_four_code (String)
|
|
2775
|
-
# * :address_1 (String)
|
|
2776
|
-
# * :address_2 (String)
|
|
2777
|
-
# * :city (String)
|
|
2778
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2779
|
-
# * :zip_code (String)
|
|
2780
|
-
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
|
2781
|
-
# * :first_name (String)
|
|
2782
|
-
# * :last_name (String)
|
|
2783
|
-
# * :organization_name (String)
|
|
2784
|
-
# * :supervising_provider (Hash)
|
|
2785
|
-
# * :npi (String)
|
|
2786
|
-
# * :taxonomy_code (String)
|
|
2787
|
-
# * :address (Hash)
|
|
2788
|
-
# * :zip_plus_four_code (String)
|
|
2789
|
-
# * :address_1 (String)
|
|
2790
|
-
# * :address_2 (String)
|
|
2791
|
-
# * :city (String)
|
|
2792
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2793
|
-
# * :zip_code (String)
|
|
2794
|
-
# * :first_name (String)
|
|
2795
|
-
# * :last_name (String)
|
|
2796
|
-
# * :organization_name (String)
|
|
2797
|
-
# * :service_facility (Hash)
|
|
2798
|
-
# * :organization_name (String)
|
|
2799
|
-
# * :npi (String)
|
|
2800
|
-
# * :address (Hash)
|
|
2801
|
-
# * :zip_plus_four_code (String)
|
|
2802
|
-
# * :address_1 (String)
|
|
2803
|
-
# * :address_2 (String)
|
|
2804
|
-
# * :city (String)
|
|
2805
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2806
|
-
# * :zip_code (String)
|
|
2807
|
-
# * :secondary_identification (String)
|
|
2808
|
-
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
|
2809
|
-
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
|
|
2810
|
-
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
|
2811
|
-
# * :external_claim_submission (Hash)
|
|
2812
|
-
# * :claim_created_at (DateTime)
|
|
2813
|
-
# * :patient_control_number (String)
|
|
2814
|
-
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
|
2815
|
-
# * :tag_ids (Array<String>)
|
|
2816
|
-
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
|
2817
|
-
# * :external_id (String)
|
|
2818
|
-
# * :date_of_service (Date)
|
|
2819
|
-
# * :end_date_of_service (Date)
|
|
2820
|
-
# * :patient_authorized_release (Boolean)
|
|
2821
|
-
# * :benefits_assigned_to_provider (Boolean)
|
|
2822
|
-
# * :provider_accepts_assignment (Boolean)
|
|
2823
|
-
# * :appointment_type (String)
|
|
2824
|
-
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
2825
|
-
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
|
|
2826
|
-
# * :pay_to_address (Hash)
|
|
2827
|
-
# * :zip_plus_four_code (String)
|
|
2828
|
-
# * :address_1 (String)
|
|
2829
|
-
# * :address_2 (String)
|
|
2830
|
-
# * :city (String)
|
|
2831
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2832
|
-
# * :zip_code (String)
|
|
2833
|
-
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
2834
|
-
# * :vitals (Hash)
|
|
2835
|
-
# * :height_in (Integer)
|
|
2836
|
-
# * :weight_lbs (Integer)
|
|
2837
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
|
2838
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
|
2839
|
-
# * :body_temperature_f (Float)
|
|
2840
|
-
# * :hemoglobin_gdl (Float)
|
|
2841
|
-
# * :hematocrit_pct (Float)
|
|
2842
|
-
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
2843
|
-
# * :additional_information (String)
|
|
2844
|
-
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
|
2845
|
-
# * :admission_date (Date)
|
|
2846
|
-
# * :discharge_date (Date)
|
|
2847
|
-
# * :onset_of_current_illness_or_symptom_date (Date)
|
|
2848
|
-
# * :last_menstrual_period_date (Date)
|
|
2849
|
-
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
|
823
|
+
class AsyncV4Client
|
|
824
|
+
# @return [CandidApiClient::AsyncRequestClient]
|
|
825
|
+
attr_reader :request_client
|
|
826
|
+
|
|
827
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
|
828
|
+
# @return [CandidApiClient::Encounters::V4::AsyncV4Client]
|
|
829
|
+
def initialize(request_client:)
|
|
830
|
+
@request_client = request_client
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
# @param limit [Integer] Maximum number of entities per page, defaults to 100.
|
|
834
|
+
# @param claim_status [CandidApiClient::Claims::Types::ClaimStatus] Indicates the current status of an insurance claim within the billing process.
|
|
835
|
+
# @param sort [CandidApiClient::Encounters::V4::Types::EncounterSortOptions] Defaults to created_at:desc.
|
|
836
|
+
# @param page_token [String]
|
|
837
|
+
# @param date_of_service_min [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-25.
|
|
838
|
+
# @param date_of_service_max [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-25.
|
|
839
|
+
# @param primary_payer_names [String] Comma delimited string.
|
|
840
|
+
# @param search_term [String] Filter by any of the following fields: encounter_id, claim_id, patient
|
|
841
|
+
# external_id,
|
|
842
|
+
# patient date of birth, patient first name, patient last name,
|
|
843
|
+
# or encounter external id.
|
|
844
|
+
# @param external_id [String] Filter to an exact match on encounter external_id, if one exists.
|
|
845
|
+
# @param diagnoses_updated_since [DateTime] ISO 8601 timestamp; ideally in UTC (although not required):
|
|
846
|
+
# 2019-08-24T14:15:22Z.
|
|
847
|
+
# @param tag_ids [String] Filter by name of tags on encounters.
|
|
848
|
+
# @param work_queue_id [String]
|
|
849
|
+
# @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
|
850
|
+
# Examples for when this should be set to NOT_BILLABLE include if the Encounter
|
|
851
|
+
# has not occurred yet or if there is no intention of ever billing the
|
|
852
|
+
# responsible_party.
|
|
853
|
+
# @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
|
|
854
|
+
# SELF_PAY if you intend to bill self pay/cash pay.
|
|
855
|
+
# @param owner_of_next_action [CandidApiClient::Encounters::V4::Types::EncounterOwnerOfNextActionType] The party who is responsible for taking the next action on an Encounter, as
|
|
856
|
+
# defined by ownership of open Tasks.
|
|
857
|
+
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
|
858
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
|
859
|
+
# @return [CandidApiClient::Encounters::V4::Types::EncounterPage]
|
|
860
|
+
# @example
|
|
861
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
862
|
+
# api.encounters.v_4.get_all(
|
|
863
|
+
# limit: 100,
|
|
864
|
+
# claim_status: BILLER_RECEIVED,
|
|
865
|
+
# sort: CREATED_AT_ASC,
|
|
866
|
+
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
|
867
|
+
# date_of_service_min: DateTime.parse(2019-08-24),
|
|
868
|
+
# date_of_service_max: DateTime.parse(2019-08-25),
|
|
869
|
+
# primary_payer_names: "Medicare,Medicaid",
|
|
870
|
+
# search_term: "doe",
|
|
871
|
+
# external_id: "123456",
|
|
872
|
+
# diagnoses_updated_since: DateTime.parse(2019-08-24T14:15:22.000Z)
|
|
873
|
+
# )
|
|
874
|
+
def get_all(limit: nil, claim_status: nil, sort: nil, page_token: nil, date_of_service_min: nil,
|
|
875
|
+
date_of_service_max: nil, primary_payer_names: nil, search_term: nil, external_id: nil, diagnoses_updated_since: nil, tag_ids: nil, work_queue_id: nil, billable_status: nil, responsible_party: nil, owner_of_next_action: nil, patient_external_id: nil, request_options: nil)
|
|
876
|
+
Async do
|
|
877
|
+
response = @request_client.conn.get do |req|
|
|
878
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
879
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
880
|
+
req.headers = {
|
|
881
|
+
**(req.headers || {}),
|
|
882
|
+
**@request_client.get_headers,
|
|
883
|
+
**(request_options&.additional_headers || {})
|
|
884
|
+
}.compact
|
|
885
|
+
req.params = {
|
|
886
|
+
**(request_options&.additional_query_parameters || {}),
|
|
887
|
+
"limit": limit,
|
|
888
|
+
"claim_status": claim_status,
|
|
889
|
+
"sort": sort,
|
|
890
|
+
"page_token": page_token,
|
|
891
|
+
"date_of_service_min": date_of_service_min,
|
|
892
|
+
"date_of_service_max": date_of_service_max,
|
|
893
|
+
"primary_payer_names": primary_payer_names,
|
|
894
|
+
"search_term": search_term,
|
|
895
|
+
"external_id": external_id,
|
|
896
|
+
"diagnoses_updated_since": diagnoses_updated_since,
|
|
897
|
+
"tag_ids": tag_ids,
|
|
898
|
+
"work_queue_id": work_queue_id,
|
|
899
|
+
"billable_status": billable_status,
|
|
900
|
+
"responsible_party": responsible_party,
|
|
901
|
+
"owner_of_next_action": owner_of_next_action,
|
|
902
|
+
"patient_external_id": patient_external_id
|
|
903
|
+
}.compact
|
|
904
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
905
|
+
request_options: request_options)}/api/encounters/v4"
|
|
906
|
+
end
|
|
907
|
+
CandidApiClient::Encounters::V4::Types::EncounterPage.from_json(json_object: response.body)
|
|
908
|
+
end
|
|
909
|
+
end
|
|
910
|
+
|
|
911
|
+
# @param encounter_id [String]
|
|
2850
912
|
# @param request_options [CandidApiClient::RequestOptions]
|
|
2851
913
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
2852
914
|
# @example
|
|
2853
915
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
2854
|
-
# api.encounters.v_4.
|
|
2855
|
-
def
|
|
916
|
+
# api.encounters.v_4.get(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
917
|
+
def get(encounter_id:, request_options: nil)
|
|
2856
918
|
Async do
|
|
2857
|
-
response = @request_client.conn.
|
|
919
|
+
response = @request_client.conn.get do |req|
|
|
2858
920
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
2859
921
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
2860
922
|
req.headers = {
|
|
@@ -2862,53 +924,14 @@ module CandidApiClient
|
|
|
2862
924
|
**@request_client.get_headers,
|
|
2863
925
|
**(request_options&.additional_headers || {})
|
|
2864
926
|
}.compact
|
|
2865
|
-
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
2866
927
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
2867
|
-
request_options: request_options)}/api/encounters/v4
|
|
928
|
+
request_options: request_options)}/api/encounters/v4/#{encounter_id}"
|
|
2868
929
|
end
|
|
2869
930
|
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
2870
931
|
end
|
|
2871
932
|
end
|
|
2872
933
|
|
|
2873
|
-
#
|
|
2874
|
-
# is intended to be used by consumers who are managing
|
|
2875
|
-
# patients and appointments in the pre-encounter service and is currently under
|
|
2876
|
-
# development. Consumers who are not taking advantage
|
|
2877
|
-
# of the pre-encounter service should use the standard create endpoint.
|
|
2878
|
-
# The endpoint will create an encounter from the provided fields, pulling
|
|
2879
|
-
# information from the provided patient and appointment objects
|
|
2880
|
-
# where applicable. In particular, the following fields are populated from the
|
|
2881
|
-
# patient and appointment objects:
|
|
2882
|
-
# - Patient
|
|
2883
|
-
# - Referring Provider
|
|
2884
|
-
# - Subscriber Primary
|
|
2885
|
-
# - Subscriber Secondary
|
|
2886
|
-
# - Referral Number
|
|
2887
|
-
# - Responsible Party
|
|
2888
|
-
# - Guarantor
|
|
2889
|
-
# Utilizing this endpoint opts you into automatic updating of the encounter when
|
|
2890
|
-
# the patient or appointment is updated, assuming the
|
|
2891
|
-
# encounter has not already been submitted or adjudicated.
|
|
2892
|
-
#
|
|
2893
|
-
# @param request [Hash] Request of type CandidApiClient::Encounters::V4::Types::EncounterCreateFromPreEncounter, as a Hash
|
|
2894
|
-
# * :rendering_provider (Hash)
|
|
2895
|
-
# * :npi (String)
|
|
2896
|
-
# * :taxonomy_code (String)
|
|
2897
|
-
# * :address (Hash)
|
|
2898
|
-
# * :zip_plus_four_code (String)
|
|
2899
|
-
# * :address_1 (String)
|
|
2900
|
-
# * :address_2 (String)
|
|
2901
|
-
# * :city (String)
|
|
2902
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2903
|
-
# * :zip_code (String)
|
|
2904
|
-
# * :first_name (String)
|
|
2905
|
-
# * :last_name (String)
|
|
2906
|
-
# * :organization_name (String)
|
|
2907
|
-
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
2908
|
-
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>)
|
|
2909
|
-
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
|
|
2910
|
-
# * :pre_encounter_patient_id (String)
|
|
2911
|
-
# * :pre_encounter_appointment_ids (Array<String>)
|
|
934
|
+
# @param request [Hash] Request of type CandidApiClient::Encounters::V4::Types::EncounterCreate, as a Hash
|
|
2912
935
|
# * :billing_provider (Hash)
|
|
2913
936
|
# * :address (Hash)
|
|
2914
937
|
# * :zip_plus_four_code (String)
|
|
@@ -2924,21 +947,9 @@ module CandidApiClient
|
|
|
2924
947
|
# * :first_name (String)
|
|
2925
948
|
# * :last_name (String)
|
|
2926
949
|
# * :organization_name (String)
|
|
2927
|
-
# * :
|
|
2928
|
-
#
|
|
2929
|
-
#
|
|
2930
|
-
# * :address (Hash)
|
|
2931
|
-
# * :zip_plus_four_code (String)
|
|
2932
|
-
# * :address_1 (String)
|
|
2933
|
-
# * :address_2 (String)
|
|
2934
|
-
# * :city (String)
|
|
2935
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2936
|
-
# * :zip_code (String)
|
|
2937
|
-
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
|
2938
|
-
# * :first_name (String)
|
|
2939
|
-
# * :last_name (String)
|
|
2940
|
-
# * :organization_name (String)
|
|
2941
|
-
# * :supervising_provider (Hash)
|
|
950
|
+
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>)
|
|
951
|
+
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
952
|
+
# * :rendering_provider (Hash)
|
|
2942
953
|
# * :npi (String)
|
|
2943
954
|
# * :taxonomy_code (String)
|
|
2944
955
|
# * :address (Hash)
|
|
@@ -2951,157 +962,28 @@ module CandidApiClient
|
|
|
2951
962
|
# * :first_name (String)
|
|
2952
963
|
# * :last_name (String)
|
|
2953
964
|
# * :organization_name (String)
|
|
2954
|
-
# * :
|
|
2955
|
-
#
|
|
2956
|
-
# * :
|
|
2957
|
-
# * :
|
|
2958
|
-
#
|
|
2959
|
-
#
|
|
2960
|
-
#
|
|
2961
|
-
#
|
|
2962
|
-
#
|
|
2963
|
-
#
|
|
2964
|
-
# * :
|
|
2965
|
-
#
|
|
2966
|
-
#
|
|
2967
|
-
#
|
|
2968
|
-
#
|
|
2969
|
-
#
|
|
2970
|
-
#
|
|
2971
|
-
#
|
|
2972
|
-
#
|
|
2973
|
-
#
|
|
2974
|
-
#
|
|
2975
|
-
# * :
|
|
2976
|
-
# * :end_date_of_service (Date)
|
|
2977
|
-
# * :patient_authorized_release (Boolean)
|
|
2978
|
-
# * :benefits_assigned_to_provider (Boolean)
|
|
2979
|
-
# * :provider_accepts_assignment (Boolean)
|
|
2980
|
-
# * :appointment_type (String)
|
|
2981
|
-
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
2982
|
-
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
|
|
2983
|
-
# * :pay_to_address (Hash)
|
|
2984
|
-
# * :zip_plus_four_code (String)
|
|
2985
|
-
# * :address_1 (String)
|
|
2986
|
-
# * :address_2 (String)
|
|
2987
|
-
# * :city (String)
|
|
2988
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
2989
|
-
# * :zip_code (String)
|
|
2990
|
-
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
2991
|
-
# * :vitals (Hash)
|
|
2992
|
-
# * :height_in (Integer)
|
|
2993
|
-
# * :weight_lbs (Integer)
|
|
2994
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
|
2995
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
|
2996
|
-
# * :body_temperature_f (Float)
|
|
2997
|
-
# * :hemoglobin_gdl (Float)
|
|
2998
|
-
# * :hematocrit_pct (Float)
|
|
2999
|
-
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
3000
|
-
# * :additional_information (String)
|
|
3001
|
-
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
|
3002
|
-
# * :admission_date (Date)
|
|
3003
|
-
# * :discharge_date (Date)
|
|
3004
|
-
# * :onset_of_current_illness_or_symptom_date (Date)
|
|
3005
|
-
# * :last_menstrual_period_date (Date)
|
|
3006
|
-
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
|
3007
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
|
3008
|
-
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
3009
|
-
# @example
|
|
3010
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
3011
|
-
# api.encounters.v_4.create_from_pre_encounter_patient(request: { external_id: "external_id", patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, billable_status: BILLABLE, pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], billing_provider: { address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code", zip_plus_four_code: "zip_plus_four_code" }, tax_id: "tax_id", npi: "npi" }, rendering_provider: { npi: "npi" }, place_of_service_code: PHARMACY, diagnoses: [{ code_type: ABF, code: "code" }, { code_type: ABF, code: "code" }] })
|
|
3012
|
-
def create_from_pre_encounter_patient(request:, request_options: nil)
|
|
3013
|
-
Async do
|
|
3014
|
-
response = @request_client.conn.post do |req|
|
|
3015
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
3016
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
3017
|
-
req.headers = {
|
|
3018
|
-
**(req.headers || {}),
|
|
3019
|
-
**@request_client.get_headers,
|
|
3020
|
-
**(request_options&.additional_headers || {})
|
|
3021
|
-
}.compact
|
|
3022
|
-
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
3023
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
3024
|
-
request_options: request_options)}/api/encounters/v4/create-from-pre-encounter"
|
|
3025
|
-
end
|
|
3026
|
-
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
3027
|
-
end
|
|
3028
|
-
end
|
|
3029
|
-
|
|
3030
|
-
# @param encounter_id [String]
|
|
3031
|
-
# @param request [Hash] Request of type CandidApiClient::EncountersUniversal::Types::UniversalEncounterUpdate, as a Hash
|
|
3032
|
-
# * :health_care_code_information (Hash)
|
|
3033
|
-
# * :principal_diagnosis (Hash)
|
|
3034
|
-
# * :value (Hash)
|
|
3035
|
-
# * :principal_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosisCodeQualifier)
|
|
3036
|
-
# * :primary_diagnosis_code (String)
|
|
3037
|
-
# * :present_on_admission_indicator (CandidApiClient::HealthCareCodeInformation::V1::Types::PresentOnAdmissionIndicatorCode)
|
|
3038
|
-
# * :id (String)
|
|
3039
|
-
# * :encounter_id (String)
|
|
3040
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
3041
|
-
# * :industry_code_1 (String)
|
|
3042
|
-
# * :industry_code_2 (String)
|
|
3043
|
-
# * :industry_code_3 (String)
|
|
3044
|
-
# * :industry_code_4 (String)
|
|
3045
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
3046
|
-
# * :date_time_period (String)
|
|
3047
|
-
# * :monetary_amount (String)
|
|
3048
|
-
# * :quantity (String)
|
|
3049
|
-
# * :admitting_diagnosis (Hash)
|
|
3050
|
-
# * :value (Hash)
|
|
3051
|
-
# * :admitting_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosisCodeQualifier)
|
|
3052
|
-
# * :admitting_diagnosis_code (String)
|
|
3053
|
-
# * :id (String)
|
|
3054
|
-
# * :encounter_id (String)
|
|
3055
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
3056
|
-
# * :industry_code_1 (String)
|
|
3057
|
-
# * :industry_code_2 (String)
|
|
3058
|
-
# * :industry_code_3 (String)
|
|
3059
|
-
# * :industry_code_4 (String)
|
|
3060
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
3061
|
-
# * :date_time_period (String)
|
|
3062
|
-
# * :monetary_amount (String)
|
|
3063
|
-
# * :quantity (String)
|
|
3064
|
-
# * :patient_reasons_for_visit (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>)
|
|
3065
|
-
# * :external_causes_of_injury (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>)
|
|
3066
|
-
# * :diagnosis_related_groups (Hash)
|
|
3067
|
-
# * :value (Hash)
|
|
3068
|
-
# * :diagnosis_related_group_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupCodeQualifier)
|
|
3069
|
-
# * :diagnosis_related_group_code (String)
|
|
3070
|
-
# * :id (String)
|
|
3071
|
-
# * :encounter_id (String)
|
|
3072
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
3073
|
-
# * :industry_code_1 (String)
|
|
3074
|
-
# * :industry_code_2 (String)
|
|
3075
|
-
# * :industry_code_3 (String)
|
|
3076
|
-
# * :industry_code_4 (String)
|
|
3077
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
3078
|
-
# * :date_time_period (String)
|
|
3079
|
-
# * :monetary_amount (String)
|
|
3080
|
-
# * :quantity (String)
|
|
3081
|
-
# * :other_diagnosis_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>)
|
|
3082
|
-
# * :principal_procedure (Hash)
|
|
3083
|
-
# * :value (Hash)
|
|
3084
|
-
# * :principal_procedure_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformationCodeQualifier)
|
|
3085
|
-
# * :principal_procedure_code (String)
|
|
3086
|
-
# * :procedure_date (DateTime)
|
|
3087
|
-
# * :id (String)
|
|
3088
|
-
# * :encounter_id (String)
|
|
3089
|
-
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
|
3090
|
-
# * :industry_code_1 (String)
|
|
3091
|
-
# * :industry_code_2 (String)
|
|
3092
|
-
# * :industry_code_3 (String)
|
|
3093
|
-
# * :industry_code_4 (String)
|
|
3094
|
-
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
|
3095
|
-
# * :date_time_period (String)
|
|
3096
|
-
# * :monetary_amount (String)
|
|
3097
|
-
# * :quantity (String)
|
|
3098
|
-
# * :other_procedure_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>)
|
|
3099
|
-
# * :occurrence_span_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>)
|
|
3100
|
-
# * :occurrence_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>)
|
|
3101
|
-
# * :treatment_code_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>)
|
|
3102
|
-
# * :value_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>)
|
|
3103
|
-
# * :condition_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>)
|
|
3104
|
-
# * :attending_provider (Hash)
|
|
965
|
+
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
|
|
966
|
+
# * :patient (Hash)
|
|
967
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
968
|
+
# * :phone_consent (Boolean)
|
|
969
|
+
# * :email (String)
|
|
970
|
+
# * :non_insurance_payers (Array<String>)
|
|
971
|
+
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
|
|
972
|
+
# * :email_consent (Boolean)
|
|
973
|
+
# * :auto_charge_consent (Boolean)
|
|
974
|
+
# * :external_id (String)
|
|
975
|
+
# * :date_of_birth (Date)
|
|
976
|
+
# * :address (Hash)
|
|
977
|
+
# * :zip_plus_four_code (String)
|
|
978
|
+
# * :address_1 (String)
|
|
979
|
+
# * :address_2 (String)
|
|
980
|
+
# * :city (String)
|
|
981
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
|
982
|
+
# * :zip_code (String)
|
|
983
|
+
# * :first_name (String)
|
|
984
|
+
# * :last_name (String)
|
|
985
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
986
|
+
# * :referring_provider (Hash)
|
|
3105
987
|
# * :npi (String)
|
|
3106
988
|
# * :taxonomy_code (String)
|
|
3107
989
|
# * :address (Hash)
|
|
@@ -3114,12 +996,7 @@ module CandidApiClient
|
|
|
3114
996
|
# * :first_name (String)
|
|
3115
997
|
# * :last_name (String)
|
|
3116
998
|
# * :organization_name (String)
|
|
3117
|
-
# * :
|
|
3118
|
-
# * :admission_type_code (CandidApiClient::X12::V1::Types::TypeOfAdmissionOrVisitCode)
|
|
3119
|
-
# * :admission_source_code (CandidApiClient::X12::V1::Types::PointOfOriginForAdmissionOrVisitCode)
|
|
3120
|
-
# * :discharge_hour (Integer)
|
|
3121
|
-
# * :discharge_status (CandidApiClient::X12::V1::Types::PatientDischargeStatusCode)
|
|
3122
|
-
# * :operating_provider (Hash)
|
|
999
|
+
# * :initial_referring_provider (Hash)
|
|
3123
1000
|
# * :npi (String)
|
|
3124
1001
|
# * :taxonomy_code (String)
|
|
3125
1002
|
# * :address (Hash)
|
|
@@ -3129,10 +1006,11 @@ module CandidApiClient
|
|
|
3129
1006
|
# * :city (String)
|
|
3130
1007
|
# * :state (CandidApiClient::Commons::Types::State)
|
|
3131
1008
|
# * :zip_code (String)
|
|
1009
|
+
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
|
3132
1010
|
# * :first_name (String)
|
|
3133
1011
|
# * :last_name (String)
|
|
3134
1012
|
# * :organization_name (String)
|
|
3135
|
-
# * :
|
|
1013
|
+
# * :supervising_provider (Hash)
|
|
3136
1014
|
# * :npi (String)
|
|
3137
1015
|
# * :taxonomy_code (String)
|
|
3138
1016
|
# * :address (Hash)
|
|
@@ -3145,22 +1023,9 @@ module CandidApiClient
|
|
|
3145
1023
|
# * :first_name (String)
|
|
3146
1024
|
# * :last_name (String)
|
|
3147
1025
|
# * :organization_name (String)
|
|
3148
|
-
# * :
|
|
3149
|
-
#
|
|
3150
|
-
#
|
|
3151
|
-
# * :epsdt_referral (Hash)
|
|
3152
|
-
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
3153
|
-
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
3154
|
-
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
3155
|
-
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
|
3156
|
-
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
|
3157
|
-
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
|
3158
|
-
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
3159
|
-
# * :guarantor (Hash)
|
|
3160
|
-
# * :first_name (String)
|
|
3161
|
-
# * :last_name (String)
|
|
3162
|
-
# * :external_id (String)
|
|
3163
|
-
# * :date_of_birth (Date)
|
|
1026
|
+
# * :service_facility (Hash)
|
|
1027
|
+
# * :organization_name (String)
|
|
1028
|
+
# * :npi (String)
|
|
3164
1029
|
# * :address (Hash)
|
|
3165
1030
|
# * :zip_plus_four_code (String)
|
|
3166
1031
|
# * :address_1 (String)
|
|
@@ -3168,11 +1033,7 @@ module CandidApiClient
|
|
|
3168
1033
|
# * :city (String)
|
|
3169
1034
|
# * :state (CandidApiClient::Commons::Types::State)
|
|
3170
1035
|
# * :zip_code (String)
|
|
3171
|
-
# * :
|
|
3172
|
-
# * :phone_consent (Boolean)
|
|
3173
|
-
# * :email (String)
|
|
3174
|
-
# * :email_consent (Boolean)
|
|
3175
|
-
# * :auto_charge_consent (Boolean)
|
|
1036
|
+
# * :secondary_identification (String)
|
|
3176
1037
|
# * :subscriber_primary (Hash)
|
|
3177
1038
|
# * :insurance_card (Hash)
|
|
3178
1039
|
# * :member_id (String)
|
|
@@ -3254,6 +1115,50 @@ module CandidApiClient
|
|
|
3254
1115
|
# * :first_name (String)
|
|
3255
1116
|
# * :last_name (String)
|
|
3256
1117
|
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
1118
|
+
# * :prior_authorization_number (String)
|
|
1119
|
+
# * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
|
|
1120
|
+
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
|
1121
|
+
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
|
|
1122
|
+
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
|
1123
|
+
# * :guarantor (Hash)
|
|
1124
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
1125
|
+
# * :phone_consent (Boolean)
|
|
1126
|
+
# * :email (String)
|
|
1127
|
+
# * :email_consent (Boolean)
|
|
1128
|
+
# * :auto_charge_consent (Boolean)
|
|
1129
|
+
# * :first_name (String)
|
|
1130
|
+
# * :last_name (String)
|
|
1131
|
+
# * :external_id (String)
|
|
1132
|
+
# * :date_of_birth (Date)
|
|
1133
|
+
# * :address (Hash)
|
|
1134
|
+
# * :zip_plus_four_code (String)
|
|
1135
|
+
# * :address_1 (String)
|
|
1136
|
+
# * :address_2 (String)
|
|
1137
|
+
# * :city (String)
|
|
1138
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
|
1139
|
+
# * :zip_code (String)
|
|
1140
|
+
# * :external_claim_submission (Hash)
|
|
1141
|
+
# * :claim_created_at (DateTime)
|
|
1142
|
+
# * :patient_control_number (String)
|
|
1143
|
+
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
|
1144
|
+
# * :tag_ids (Array<String>)
|
|
1145
|
+
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
|
1146
|
+
# * :referral_number (String)
|
|
1147
|
+
# * :epsdt_referral (Hash)
|
|
1148
|
+
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
1149
|
+
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
1150
|
+
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
|
1151
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
|
1152
|
+
# * :secondary_payer_carrier_code (String)
|
|
1153
|
+
# * :external_id (String)
|
|
1154
|
+
# * :date_of_service (Date)
|
|
1155
|
+
# * :end_date_of_service (Date)
|
|
1156
|
+
# * :patient_authorized_release (Boolean)
|
|
1157
|
+
# * :benefits_assigned_to_provider (Boolean)
|
|
1158
|
+
# * :provider_accepts_assignment (Boolean)
|
|
1159
|
+
# * :appointment_type (String)
|
|
1160
|
+
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
1161
|
+
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
|
|
3257
1162
|
# * :pay_to_address (Hash)
|
|
3258
1163
|
# * :zip_plus_four_code (String)
|
|
3259
1164
|
# * :address_1 (String)
|
|
@@ -3261,7 +1166,68 @@ module CandidApiClient
|
|
|
3261
1166
|
# * :city (String)
|
|
3262
1167
|
# * :state (CandidApiClient::Commons::Types::State)
|
|
3263
1168
|
# * :zip_code (String)
|
|
3264
|
-
# * :
|
|
1169
|
+
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
1170
|
+
# * :vitals (Hash)
|
|
1171
|
+
# * :height_in (Integer)
|
|
1172
|
+
# * :weight_lbs (Integer)
|
|
1173
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
|
1174
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
|
1175
|
+
# * :body_temperature_f (Float)
|
|
1176
|
+
# * :hemoglobin_gdl (Float)
|
|
1177
|
+
# * :hematocrit_pct (Float)
|
|
1178
|
+
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
1179
|
+
# * :additional_information (String)
|
|
1180
|
+
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
|
1181
|
+
# * :admission_date (Date)
|
|
1182
|
+
# * :discharge_date (Date)
|
|
1183
|
+
# * :onset_of_current_illness_or_symptom_date (Date)
|
|
1184
|
+
# * :last_menstrual_period_date (Date)
|
|
1185
|
+
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
|
1186
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
|
1187
|
+
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
1188
|
+
# @example
|
|
1189
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
1190
|
+
# api.encounters.v_4.create(request: { billing_provider: { address: { zip_plus_four_code: "zip_plus_four_code", address_1: "address1", city: "city", state: AA, zip_code: "zip_code" }, tax_id: "tax_id", npi: "npi" }, diagnoses: [{ code_type: ABF, code: "code" }, { code_type: ABF, code: "code" }], place_of_service_code: PHARMACY, rendering_provider: { npi: "npi" }, patient: { external_id: "external_id", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" }, first_name: "first_name", last_name: "last_name", gender: MALE }, responsible_party: INSURANCE_PAY, external_id: "external_id", patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, billable_status: BILLABLE })
|
|
1191
|
+
def create(request:, request_options: nil)
|
|
1192
|
+
Async do
|
|
1193
|
+
response = @request_client.conn.post do |req|
|
|
1194
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
1195
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
1196
|
+
req.headers = {
|
|
1197
|
+
**(req.headers || {}),
|
|
1198
|
+
**@request_client.get_headers,
|
|
1199
|
+
**(request_options&.additional_headers || {})
|
|
1200
|
+
}.compact
|
|
1201
|
+
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
1202
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
1203
|
+
request_options: request_options)}/api/encounters/v4"
|
|
1204
|
+
end
|
|
1205
|
+
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
1206
|
+
end
|
|
1207
|
+
end
|
|
1208
|
+
|
|
1209
|
+
# Create an encounter from a pre-encounter patient and appointment. This endpoint
|
|
1210
|
+
# is intended to be used by consumers who are managing
|
|
1211
|
+
# patients and appointments in the pre-encounter service and is currently under
|
|
1212
|
+
# development. Consumers who are not taking advantage
|
|
1213
|
+
# of the pre-encounter service should use the standard create endpoint.
|
|
1214
|
+
# The endpoint will create an encounter from the provided fields, pulling
|
|
1215
|
+
# information from the provided patient and appointment objects
|
|
1216
|
+
# where applicable. In particular, the following fields are populated from the
|
|
1217
|
+
# patient and appointment objects:
|
|
1218
|
+
# - Patient
|
|
1219
|
+
# - Referring Provider
|
|
1220
|
+
# - Subscriber Primary
|
|
1221
|
+
# - Subscriber Secondary
|
|
1222
|
+
# - Referral Number
|
|
1223
|
+
# - Responsible Party
|
|
1224
|
+
# - Guarantor
|
|
1225
|
+
# Utilizing this endpoint opts you into automatic updating of the encounter when
|
|
1226
|
+
# the patient or appointment is updated, assuming the
|
|
1227
|
+
# encounter has not already been submitted or adjudicated.
|
|
1228
|
+
#
|
|
1229
|
+
# @param request [Hash] Request of type CandidApiClient::Encounters::V4::Types::EncounterCreateFromPreEncounter, as a Hash
|
|
1230
|
+
# * :rendering_provider (Hash)
|
|
3265
1231
|
# * :npi (String)
|
|
3266
1232
|
# * :taxonomy_code (String)
|
|
3267
1233
|
# * :address (Hash)
|
|
@@ -3271,13 +1237,15 @@ module CandidApiClient
|
|
|
3271
1237
|
# * :city (String)
|
|
3272
1238
|
# * :state (CandidApiClient::Commons::Types::State)
|
|
3273
1239
|
# * :zip_code (String)
|
|
3274
|
-
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
|
3275
1240
|
# * :first_name (String)
|
|
3276
1241
|
# * :last_name (String)
|
|
3277
1242
|
# * :organization_name (String)
|
|
3278
|
-
# * :
|
|
3279
|
-
#
|
|
3280
|
-
#
|
|
1243
|
+
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
1244
|
+
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>)
|
|
1245
|
+
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
|
|
1246
|
+
# * :pre_encounter_patient_id (String)
|
|
1247
|
+
# * :pre_encounter_appointment_ids (Array<String>)
|
|
1248
|
+
# * :billing_provider (Hash)
|
|
3281
1249
|
# * :address (Hash)
|
|
3282
1250
|
# * :zip_plus_four_code (String)
|
|
3283
1251
|
# * :address_1 (String)
|
|
@@ -3285,30 +1253,14 @@ module CandidApiClient
|
|
|
3285
1253
|
# * :city (String)
|
|
3286
1254
|
# * :state (CandidApiClient::Commons::Types::State)
|
|
3287
1255
|
# * :zip_code (String)
|
|
1256
|
+
# * :tax_id (String)
|
|
1257
|
+
# * :npi (String)
|
|
1258
|
+
# * :taxonomy_code (String)
|
|
1259
|
+
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
|
3288
1260
|
# * :first_name (String)
|
|
3289
1261
|
# * :last_name (String)
|
|
3290
1262
|
# * :organization_name (String)
|
|
3291
|
-
# * :
|
|
3292
|
-
# * :first_name (String)
|
|
3293
|
-
# * :last_name (String)
|
|
3294
|
-
# * :gender (CandidApiClient::Individual::Types::Gender)
|
|
3295
|
-
# * :external_id (String)
|
|
3296
|
-
# * :date_of_birth (Date)
|
|
3297
|
-
# * :address (Hash)
|
|
3298
|
-
# * :zip_plus_four_code (String)
|
|
3299
|
-
# * :address_1 (String)
|
|
3300
|
-
# * :address_2 (String)
|
|
3301
|
-
# * :city (String)
|
|
3302
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
3303
|
-
# * :zip_code (String)
|
|
3304
|
-
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
|
3305
|
-
# * :phone_consent (Boolean)
|
|
3306
|
-
# * :email (String)
|
|
3307
|
-
# * :email_consent (Boolean)
|
|
3308
|
-
# * :auto_charge_consent (Boolean)
|
|
3309
|
-
# * :non_insurance_payers (Array<String>)
|
|
3310
|
-
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
|
|
3311
|
-
# * :rendering_provider (Hash)
|
|
1263
|
+
# * :initial_referring_provider (Hash)
|
|
3312
1264
|
# * :npi (String)
|
|
3313
1265
|
# * :taxonomy_code (String)
|
|
3314
1266
|
# * :address (Hash)
|
|
@@ -3318,20 +1270,10 @@ module CandidApiClient
|
|
|
3318
1270
|
# * :city (String)
|
|
3319
1271
|
# * :state (CandidApiClient::Commons::Types::State)
|
|
3320
1272
|
# * :zip_code (String)
|
|
1273
|
+
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
|
3321
1274
|
# * :first_name (String)
|
|
3322
1275
|
# * :last_name (String)
|
|
3323
1276
|
# * :organization_name (String)
|
|
3324
|
-
# * :service_facility (Hash)
|
|
3325
|
-
# * :organization_name (String)
|
|
3326
|
-
# * :npi (String)
|
|
3327
|
-
# * :address (Hash)
|
|
3328
|
-
# * :zip_plus_four_code (String)
|
|
3329
|
-
# * :address_1 (String)
|
|
3330
|
-
# * :address_2 (String)
|
|
3331
|
-
# * :city (String)
|
|
3332
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
|
3333
|
-
# * :zip_code (String)
|
|
3334
|
-
# * :secondary_identification (String)
|
|
3335
1277
|
# * :supervising_provider (Hash)
|
|
3336
1278
|
# * :npi (String)
|
|
3337
1279
|
# * :taxonomy_code (String)
|
|
@@ -3345,7 +1287,9 @@ module CandidApiClient
|
|
|
3345
1287
|
# * :first_name (String)
|
|
3346
1288
|
# * :last_name (String)
|
|
3347
1289
|
# * :organization_name (String)
|
|
3348
|
-
# * :
|
|
1290
|
+
# * :service_facility (Hash)
|
|
1291
|
+
# * :organization_name (String)
|
|
1292
|
+
# * :npi (String)
|
|
3349
1293
|
# * :address (Hash)
|
|
3350
1294
|
# * :zip_plus_four_code (String)
|
|
3351
1295
|
# * :address_1 (String)
|
|
@@ -3353,26 +1297,42 @@ module CandidApiClient
|
|
|
3353
1297
|
# * :city (String)
|
|
3354
1298
|
# * :state (CandidApiClient::Commons::Types::State)
|
|
3355
1299
|
# * :zip_code (String)
|
|
3356
|
-
# * :
|
|
3357
|
-
#
|
|
3358
|
-
#
|
|
3359
|
-
#
|
|
3360
|
-
#
|
|
3361
|
-
# * :
|
|
3362
|
-
# * :
|
|
3363
|
-
#
|
|
3364
|
-
# * :
|
|
3365
|
-
# * :
|
|
1300
|
+
# * :secondary_identification (String)
|
|
1301
|
+
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
|
1302
|
+
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
|
|
1303
|
+
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
|
1304
|
+
# * :external_claim_submission (Hash)
|
|
1305
|
+
# * :claim_created_at (DateTime)
|
|
1306
|
+
# * :patient_control_number (String)
|
|
1307
|
+
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
|
1308
|
+
# * :tag_ids (Array<String>)
|
|
1309
|
+
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
|
3366
1310
|
# * :external_id (String)
|
|
3367
1311
|
# * :date_of_service (Date)
|
|
3368
|
-
# * :
|
|
3369
|
-
# * :
|
|
3370
|
-
# * :
|
|
1312
|
+
# * :end_date_of_service (Date)
|
|
1313
|
+
# * :patient_authorized_release (Boolean)
|
|
1314
|
+
# * :benefits_assigned_to_provider (Boolean)
|
|
3371
1315
|
# * :provider_accepts_assignment (Boolean)
|
|
3372
|
-
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
3373
|
-
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
|
3374
1316
|
# * :appointment_type (String)
|
|
3375
|
-
# * :
|
|
1317
|
+
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
|
1318
|
+
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
|
|
1319
|
+
# * :pay_to_address (Hash)
|
|
1320
|
+
# * :zip_plus_four_code (String)
|
|
1321
|
+
# * :address_1 (String)
|
|
1322
|
+
# * :address_2 (String)
|
|
1323
|
+
# * :city (String)
|
|
1324
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
|
1325
|
+
# * :zip_code (String)
|
|
1326
|
+
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
|
1327
|
+
# * :vitals (Hash)
|
|
1328
|
+
# * :height_in (Integer)
|
|
1329
|
+
# * :weight_lbs (Integer)
|
|
1330
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
|
1331
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
|
1332
|
+
# * :body_temperature_f (Float)
|
|
1333
|
+
# * :hemoglobin_gdl (Float)
|
|
1334
|
+
# * :hematocrit_pct (Float)
|
|
1335
|
+
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
|
3376
1336
|
# * :additional_information (String)
|
|
3377
1337
|
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
|
3378
1338
|
# * :admission_date (Date)
|
|
@@ -3380,17 +1340,14 @@ module CandidApiClient
|
|
|
3380
1340
|
# * :onset_of_current_illness_or_symptom_date (Date)
|
|
3381
1341
|
# * :last_menstrual_period_date (Date)
|
|
3382
1342
|
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
|
3383
|
-
# * :patient_authorized_release (Boolean)
|
|
3384
|
-
# * :referral_number (String)
|
|
3385
|
-
# * :secondary_payer_carrier_code (String)
|
|
3386
1343
|
# @param request_options [CandidApiClient::RequestOptions]
|
|
3387
1344
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
|
3388
1345
|
# @example
|
|
3389
1346
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
3390
|
-
# api.encounters.v_4.
|
|
3391
|
-
def
|
|
1347
|
+
# api.encounters.v_4.create_from_pre_encounter_patient(request: { rendering_provider: { npi: "npi" }, place_of_service_code: PHARMACY, diagnoses: [{ code_type: ABF, code: "code" }, { code_type: ABF, code: "code" }], pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], billing_provider: { address: { zip_plus_four_code: "zip_plus_four_code", address_1: "address1", city: "city", state: AA, zip_code: "zip_code" }, tax_id: "tax_id", npi: "npi" }, external_id: "external_id", patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, billable_status: BILLABLE })
|
|
1348
|
+
def create_from_pre_encounter_patient(request:, request_options: nil)
|
|
3392
1349
|
Async do
|
|
3393
|
-
response = @request_client.conn.
|
|
1350
|
+
response = @request_client.conn.post do |req|
|
|
3394
1351
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
3395
1352
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
|
3396
1353
|
req.headers = {
|
|
@@ -3400,7 +1357,7 @@ module CandidApiClient
|
|
|
3400
1357
|
}.compact
|
|
3401
1358
|
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
|
3402
1359
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
|
3403
|
-
request_options: request_options)}/api/encounters/v4
|
|
1360
|
+
request_options: request_options)}/api/encounters/v4/create-from-pre-encounter"
|
|
3404
1361
|
end
|
|
3405
1362
|
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
|
3406
1363
|
end
|