candidhealth 0.34.2 → 0.34.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ec287a4caeda05a8aa7c6617280a1ead83d3578d17770dc4aff6515f79deb4f
|
4
|
+
data.tar.gz: 9cea5025166327eb5ac4064604da1a79dea04e7bc52e00472a5824a4663ae008
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3692c5e8cd4698fdf5511e75da2bf57ea3e268ce35e5ef49ac17aaf4e95ea21e8c0733eed9b0565e93c79c2b5c8816f6aba3daa17a0bf48d766f5ac0c5139180
|
7
|
+
data.tar.gz: 49448ffd0fffb6bd0bdc522a8e9c8a33fef6f5c32531b19765bcb56b8a201283d2410423bea297aaa9c4968beab9187ef83b92e3306e07ebd219c98f83f7aad4
|
@@ -740,7 +740,7 @@ module CandidApiClient
|
|
740
740
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
741
741
|
# @param _field_set [Object]
|
742
742
|
# @param pre_encounter_patient_id [String]
|
743
|
-
# @param
|
743
|
+
# @param pre_encounter_appointment_ids [Array<String>]
|
744
744
|
# @param billing_provider [Hash] The billing provider is the provider or business entity submitting the claim.
|
745
745
|
# Billing provider may be, but is not necessarily, the same person/NPI as the
|
746
746
|
# rendering provider. From a payer's perspective, this represents the person or
|
@@ -904,7 +904,7 @@ module CandidApiClient
|
|
904
904
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
905
905
|
# api.encounters.v_4.create_from_pre_encounter_patient(
|
906
906
|
# pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
907
|
-
#
|
907
|
+
# pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"],
|
908
908
|
# billing_provider: { address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, tax_id: "string", npi: "string", taxonomy_code: "string", first_name: "string", last_name: "string", organization_name: "string" },
|
909
909
|
# rendering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" },
|
910
910
|
# initial_referring_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, qualifier: DQ, first_name: "string", last_name: "string", organization_name: "string" },
|
@@ -921,7 +921,7 @@ module CandidApiClient
|
|
921
921
|
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }]
|
922
922
|
# )
|
923
923
|
def create_from_pre_encounter_patient(external_id:, patient_authorized_release:,
|
924
|
-
benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, pre_encounter_patient_id:,
|
924
|
+
benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, pre_encounter_patient_id:, pre_encounter_appointment_ids:, billing_provider:, rendering_provider:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, request_options: nil)
|
925
925
|
response = @request_client.conn.post do |req|
|
926
926
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
927
927
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -955,7 +955,7 @@ module CandidApiClient
|
|
955
955
|
additional_properties: additional_properties,
|
956
956
|
_field_set: _field_set,
|
957
957
|
pre_encounter_patient_id: pre_encounter_patient_id,
|
958
|
-
|
958
|
+
pre_encounter_appointment_ids: pre_encounter_appointment_ids,
|
959
959
|
billing_provider: billing_provider,
|
960
960
|
rendering_provider: rendering_provider,
|
961
961
|
initial_referring_provider: initial_referring_provider,
|
@@ -2065,7 +2065,7 @@ module CandidApiClient
|
|
2065
2065
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
2066
2066
|
# @param _field_set [Object]
|
2067
2067
|
# @param pre_encounter_patient_id [String]
|
2068
|
-
# @param
|
2068
|
+
# @param pre_encounter_appointment_ids [Array<String>]
|
2069
2069
|
# @param billing_provider [Hash] The billing provider is the provider or business entity submitting the claim.
|
2070
2070
|
# Billing provider may be, but is not necessarily, the same person/NPI as the
|
2071
2071
|
# rendering provider. From a payer's perspective, this represents the person or
|
@@ -2229,7 +2229,7 @@ module CandidApiClient
|
|
2229
2229
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
2230
2230
|
# api.encounters.v_4.create_from_pre_encounter_patient(
|
2231
2231
|
# pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
2232
|
-
#
|
2232
|
+
# pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"],
|
2233
2233
|
# billing_provider: { address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, tax_id: "string", npi: "string", taxonomy_code: "string", first_name: "string", last_name: "string", organization_name: "string" },
|
2234
2234
|
# rendering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" },
|
2235
2235
|
# initial_referring_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, qualifier: DQ, first_name: "string", last_name: "string", organization_name: "string" },
|
@@ -2246,7 +2246,7 @@ module CandidApiClient
|
|
2246
2246
|
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }]
|
2247
2247
|
# )
|
2248
2248
|
def create_from_pre_encounter_patient(external_id:, patient_authorized_release:,
|
2249
|
-
benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, pre_encounter_patient_id:,
|
2249
|
+
benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, pre_encounter_patient_id:, pre_encounter_appointment_ids:, billing_provider:, rendering_provider:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, request_options: nil)
|
2250
2250
|
Async do
|
2251
2251
|
response = @request_client.conn.post do |req|
|
2252
2252
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -2281,7 +2281,7 @@ module CandidApiClient
|
|
2281
2281
|
additional_properties: additional_properties,
|
2282
2282
|
_field_set: _field_set,
|
2283
2283
|
pre_encounter_patient_id: pre_encounter_patient_id,
|
2284
|
-
|
2284
|
+
pre_encounter_appointment_ids: pre_encounter_appointment_ids,
|
2285
2285
|
billing_provider: billing_provider,
|
2286
2286
|
rendering_provider: rendering_provider,
|
2287
2287
|
initial_referring_provider: initial_referring_provider,
|
@@ -4,6 +4,7 @@ require_relative "../../../../requests"
|
|
4
4
|
require_relative "types/mutable_appointment"
|
5
5
|
require_relative "types/appointment"
|
6
6
|
require "json"
|
7
|
+
require "date"
|
7
8
|
require "async"
|
8
9
|
|
9
10
|
module CandidApiClient
|
@@ -187,6 +188,35 @@ module CandidApiClient
|
|
187
188
|
CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment.from_json(json_object: response.body)
|
188
189
|
end
|
189
190
|
|
191
|
+
# Scans up to 100 appointment updates. The since query parameter is inclusive, and
|
192
|
+
# the result list is ordered by updatedAt ascending.
|
193
|
+
#
|
194
|
+
# @param since [DateTime]
|
195
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
196
|
+
# @return [Array<CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment>]
|
197
|
+
# @example
|
198
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
199
|
+
# api.pre_encounter.appointments.v_1.scan(since: DateTime.parse(2024-01-15T09:30:00.000Z))
|
200
|
+
def scan(since:, request_options: nil)
|
201
|
+
response = @request_client.conn.get do |req|
|
202
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
203
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
204
|
+
req.headers = {
|
205
|
+
**(req.headers || {}),
|
206
|
+
**@request_client.get_headers,
|
207
|
+
**(request_options&.additional_headers || {})
|
208
|
+
}.compact
|
209
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "since": since }.compact
|
210
|
+
req.url "#{@request_client.get_url(environment: PreEncounter,
|
211
|
+
request_options: request_options)}/appointments/v1/updates/scan"
|
212
|
+
end
|
213
|
+
parsed_json = JSON.parse(response.body)
|
214
|
+
parsed_json&.map do |item|
|
215
|
+
item = item.to_json
|
216
|
+
CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment.from_json(json_object: item)
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
190
220
|
# Sets an appointment as deactivated. The path must contain the most recent
|
191
221
|
# version to prevent race conditions. Deactivating historic versions is not
|
192
222
|
# supported. Subsequent updates via PUT to the appointment will "reactivate" the
|
@@ -399,6 +429,37 @@ module CandidApiClient
|
|
399
429
|
end
|
400
430
|
end
|
401
431
|
|
432
|
+
# Scans up to 100 appointment updates. The since query parameter is inclusive, and
|
433
|
+
# the result list is ordered by updatedAt ascending.
|
434
|
+
#
|
435
|
+
# @param since [DateTime]
|
436
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
437
|
+
# @return [Array<CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment>]
|
438
|
+
# @example
|
439
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
440
|
+
# api.pre_encounter.appointments.v_1.scan(since: DateTime.parse(2024-01-15T09:30:00.000Z))
|
441
|
+
def scan(since:, request_options: nil)
|
442
|
+
Async do
|
443
|
+
response = @request_client.conn.get do |req|
|
444
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
445
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
446
|
+
req.headers = {
|
447
|
+
**(req.headers || {}),
|
448
|
+
**@request_client.get_headers,
|
449
|
+
**(request_options&.additional_headers || {})
|
450
|
+
}.compact
|
451
|
+
req.params = { **(request_options&.additional_query_parameters || {}), "since": since }.compact
|
452
|
+
req.url "#{@request_client.get_url(environment: PreEncounter,
|
453
|
+
request_options: request_options)}/appointments/v1/updates/scan"
|
454
|
+
end
|
455
|
+
parsed_json = JSON.parse(response.body)
|
456
|
+
parsed_json&.map do |item|
|
457
|
+
item = item.to_json
|
458
|
+
CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment.from_json(json_object: item)
|
459
|
+
end
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
402
463
|
# Sets an appointment as deactivated. The path must contain the most recent
|
403
464
|
# version to prevent race conditions. Deactivating historic versions is not
|
404
465
|
# supported. Subsequent updates via PUT to the appointment will "reactivate" the
|
data/lib/requests.rb
CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
|
44
44
|
# @return [Hash{String => String}]
|
45
45
|
def get_headers
|
46
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.34.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.34.3" }
|
47
47
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
48
48
|
headers
|
49
49
|
end
|
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
|
88
88
|
# @return [Hash{String => String}]
|
89
89
|
def get_headers
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.34.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.34.3" }
|
91
91
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
92
|
headers
|
93
93
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: candidhealth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.34.
|
4
|
+
version: 0.34.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|