candidhealth 0.43.0 → 0.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/candidhealth/charge_capture/v_1/client.rb +37 -18
- data/lib/candidhealth/charge_capture/v_1/types/charge_external_id_conflict_error_message.rb +62 -0
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation.rb +20 -4
- data/lib/candidhealth/encounter_attachments/v_1/client.rb +2 -2
- data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment_type.rb +2 -0
- data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
- data/lib/candidhealth/encounters/v_4/client.rb +20 -20
- data/lib/candidhealth/guarantor/v_1/client.rb +2 -2
- data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bff11cb7f6058f48cbaf4f55cf6143600f40c6fce1874f99e3301c898e987048
|
4
|
+
data.tar.gz: efc02d1844720dba7f72fffaaaa1d99eebaac04c4ba045decfeddd0906944458
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 541cda6e2537417beaf6ff2bd6d7e987c1d55ccb41e0703e0abb0360b1eed1854ed46b260fa79e1157daffaa8d6b134e9088b6d80e4a8fc210810170c27ae3dc
|
7
|
+
data.tar.gz: 68c9a3a13ee7e30cac076c61b34f592a71d764359990221358eeb41d937819d91b190fd0522cf5d8f9c4f40c29e7256575594fd3789d3be8735340d0cb021659
|
@@ -9,6 +9,7 @@ require_relative "../../commons/types/sort_direction"
|
|
9
9
|
require "date"
|
10
10
|
require_relative "types/charge_capture_page"
|
11
11
|
require_relative "types/charge_capture_post_billed_change"
|
12
|
+
require "json"
|
12
13
|
require "async"
|
13
14
|
|
14
15
|
module CandidApiClient
|
@@ -288,7 +289,7 @@ module CandidApiClient
|
|
288
289
|
# @example
|
289
290
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
290
291
|
# api.charge_capture.v_1.create(
|
291
|
-
# data: {
|
292
|
+
# data: { },
|
292
293
|
# charge_external_id: "string",
|
293
294
|
# ehr_source_url: "string",
|
294
295
|
# patient_external_id: "string",
|
@@ -602,7 +603,7 @@ module CandidApiClient
|
|
602
603
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
603
604
|
# api.charge_capture.v_1.update(
|
604
605
|
# charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
605
|
-
# data: {
|
606
|
+
# data: { },
|
606
607
|
# charge_external_id: "string",
|
607
608
|
# ehr_source_url: "string",
|
608
609
|
# patient_external_id: "string",
|
@@ -801,16 +802,17 @@ module CandidApiClient
|
|
801
802
|
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage.from_json(json_object: response.body)
|
802
803
|
end
|
803
804
|
|
804
|
-
# @param
|
805
|
+
# @param charge_capture_change_ids [Array<String>] A list of UUIDs corresponding to ChargeCapturePostBilledChanges.
|
806
|
+
# All of the charges sent will be marked as resolved
|
805
807
|
# @param resolved [Boolean] Whether the change has been resolved. If true, the change will be marked as
|
806
808
|
# resolved.
|
807
809
|
# If false, the change will be marked as unresolved.
|
808
810
|
# @param request_options [CandidApiClient::RequestOptions]
|
809
|
-
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange]
|
811
|
+
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
|
810
812
|
# @example
|
811
813
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
812
|
-
# api.charge_capture.v_1.
|
813
|
-
def
|
814
|
+
# api.charge_capture.v_1.update_post_billed_changes(charge_capture_change_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], resolved: true)
|
815
|
+
def update_post_billed_changes(charge_capture_change_ids:, resolved:, request_options: nil)
|
814
816
|
response = @request_client.conn.patch do |req|
|
815
817
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
816
818
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -819,11 +821,19 @@ module CandidApiClient
|
|
819
821
|
**@request_client.get_headers,
|
820
822
|
**(request_options&.additional_headers || {})
|
821
823
|
}.compact
|
822
|
-
req.body = {
|
824
|
+
req.body = {
|
825
|
+
**(request_options&.additional_body_parameters || {}),
|
826
|
+
charge_capture_change_ids: charge_capture_change_ids,
|
827
|
+
resolved: resolved
|
828
|
+
}.compact
|
823
829
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
824
|
-
request_options: request_options)}/api/charge_captures/v1/changes
|
830
|
+
request_options: request_options)}/api/charge_captures/v1/changes"
|
831
|
+
end
|
832
|
+
parsed_json = JSON.parse(response.body)
|
833
|
+
parsed_json&.map do |item|
|
834
|
+
item = item.to_json
|
835
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
|
825
836
|
end
|
826
|
-
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: response.body)
|
827
837
|
end
|
828
838
|
end
|
829
839
|
|
@@ -1101,7 +1111,7 @@ module CandidApiClient
|
|
1101
1111
|
# @example
|
1102
1112
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1103
1113
|
# api.charge_capture.v_1.create(
|
1104
|
-
# data: {
|
1114
|
+
# data: { },
|
1105
1115
|
# charge_external_id: "string",
|
1106
1116
|
# ehr_source_url: "string",
|
1107
1117
|
# patient_external_id: "string",
|
@@ -1419,7 +1429,7 @@ module CandidApiClient
|
|
1419
1429
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1420
1430
|
# api.charge_capture.v_1.update(
|
1421
1431
|
# charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1422
|
-
# data: {
|
1432
|
+
# data: { },
|
1423
1433
|
# charge_external_id: "string",
|
1424
1434
|
# ehr_source_url: "string",
|
1425
1435
|
# patient_external_id: "string",
|
@@ -1624,16 +1634,17 @@ module CandidApiClient
|
|
1624
1634
|
end
|
1625
1635
|
end
|
1626
1636
|
|
1627
|
-
# @param
|
1637
|
+
# @param charge_capture_change_ids [Array<String>] A list of UUIDs corresponding to ChargeCapturePostBilledChanges.
|
1638
|
+
# All of the charges sent will be marked as resolved
|
1628
1639
|
# @param resolved [Boolean] Whether the change has been resolved. If true, the change will be marked as
|
1629
1640
|
# resolved.
|
1630
1641
|
# If false, the change will be marked as unresolved.
|
1631
1642
|
# @param request_options [CandidApiClient::RequestOptions]
|
1632
|
-
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange]
|
1643
|
+
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
|
1633
1644
|
# @example
|
1634
1645
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1635
|
-
# api.charge_capture.v_1.
|
1636
|
-
def
|
1646
|
+
# api.charge_capture.v_1.update_post_billed_changes(charge_capture_change_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], resolved: true)
|
1647
|
+
def update_post_billed_changes(charge_capture_change_ids:, resolved:, request_options: nil)
|
1637
1648
|
Async do
|
1638
1649
|
response = @request_client.conn.patch do |req|
|
1639
1650
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1643,11 +1654,19 @@ module CandidApiClient
|
|
1643
1654
|
**@request_client.get_headers,
|
1644
1655
|
**(request_options&.additional_headers || {})
|
1645
1656
|
}.compact
|
1646
|
-
req.body = {
|
1657
|
+
req.body = {
|
1658
|
+
**(request_options&.additional_body_parameters || {}),
|
1659
|
+
charge_capture_change_ids: charge_capture_change_ids,
|
1660
|
+
resolved: resolved
|
1661
|
+
}.compact
|
1647
1662
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
1648
|
-
request_options: request_options)}/api/charge_captures/v1/changes
|
1663
|
+
request_options: request_options)}/api/charge_captures/v1/changes"
|
1664
|
+
end
|
1665
|
+
parsed_json = JSON.parse(response.body)
|
1666
|
+
parsed_json&.map do |item|
|
1667
|
+
item = item.to_json
|
1668
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
|
1649
1669
|
end
|
1650
|
-
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: response.body)
|
1651
1670
|
end
|
1652
1671
|
end
|
1653
1672
|
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module ChargeCapture
|
8
|
+
module V1
|
9
|
+
module Types
|
10
|
+
class ChargeExternalIdConflictErrorMessage
|
11
|
+
# @return [String]
|
12
|
+
attr_reader :message
|
13
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
14
|
+
attr_reader :additional_properties
|
15
|
+
# @return [Object]
|
16
|
+
attr_reader :_field_set
|
17
|
+
protected :_field_set
|
18
|
+
|
19
|
+
OMIT = Object.new
|
20
|
+
|
21
|
+
# @param message [String]
|
22
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
23
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeExternalIdConflictErrorMessage]
|
24
|
+
def initialize(message: OMIT, additional_properties: nil)
|
25
|
+
@message = message if message != OMIT
|
26
|
+
@additional_properties = additional_properties
|
27
|
+
@_field_set = { "message": message }.reject do |_k, v|
|
28
|
+
v == OMIT
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# Deserialize a JSON object to an instance of ChargeExternalIdConflictErrorMessage
|
33
|
+
#
|
34
|
+
# @param json_object [String]
|
35
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeExternalIdConflictErrorMessage]
|
36
|
+
def self.from_json(json_object:)
|
37
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
38
|
+
message = struct["message"]
|
39
|
+
new(message: message, additional_properties: struct)
|
40
|
+
end
|
41
|
+
|
42
|
+
# Serialize an instance of ChargeExternalIdConflictErrorMessage to a JSON object
|
43
|
+
#
|
44
|
+
# @return [String]
|
45
|
+
def to_json(*_args)
|
46
|
+
@_field_set&.to_json
|
47
|
+
end
|
48
|
+
|
49
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
50
|
+
# hash and check each fields type against the current object's property
|
51
|
+
# definitions.
|
52
|
+
#
|
53
|
+
# @param obj [Object]
|
54
|
+
# @return [Void]
|
55
|
+
def self.validate_raw(obj:)
|
56
|
+
obj.message&.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require_relative "charge_capture_claim_creation_status"
|
4
4
|
require_relative "../../../charge_capture/v_1/types/charge_capture_error"
|
5
|
+
require_relative "../../../charge_capture/v_1/types/charge_capture_data"
|
5
6
|
require "ostruct"
|
6
7
|
require "json"
|
7
8
|
|
@@ -17,7 +18,7 @@ module CandidApiClient
|
|
17
18
|
# @return [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureClaimCreationStatus] Status of the Claim Creation, Successful means that the Claim Creation created a
|
18
19
|
# corresponding Claim
|
19
20
|
attr_reader :status
|
20
|
-
# @return [Hash{String =>
|
21
|
+
# @return [Hash{String => Object}] A dictionary of characteristics that are used to group charge captures together
|
21
22
|
# based on the bundling configuration.
|
22
23
|
# Example: {"service_facility.npi": "99999999", "date_of_service": "2023-01-01"}
|
23
24
|
attr_reader :characteristics
|
@@ -25,6 +26,9 @@ module CandidApiClient
|
|
25
26
|
# Errors can correspond to the Claim Creation as a whole or specific underlying
|
26
27
|
# Charge Captures.
|
27
28
|
attr_reader :errors
|
29
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData] If a ChargeCaptureBundle attempts creation, this is the input that was created
|
30
|
+
# from the underlying charges and used to attempt encounter creation.
|
31
|
+
attr_reader :encounter_creation_input
|
28
32
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
29
33
|
attr_reader :additional_properties
|
30
34
|
# @return [Object]
|
@@ -37,28 +41,32 @@ module CandidApiClient
|
|
37
41
|
# @param created_encounter_id [String]
|
38
42
|
# @param status [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureClaimCreationStatus] Status of the Claim Creation, Successful means that the Claim Creation created a
|
39
43
|
# corresponding Claim
|
40
|
-
# @param characteristics [Hash{String =>
|
44
|
+
# @param characteristics [Hash{String => Object}] A dictionary of characteristics that are used to group charge captures together
|
41
45
|
# based on the bundling configuration.
|
42
46
|
# Example: {"service_facility.npi": "99999999", "date_of_service": "2023-01-01"}
|
43
47
|
# @param errors [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError>] All errors that were found when the Claim was attempted to be created.
|
44
48
|
# Errors can correspond to the Claim Creation as a whole or specific underlying
|
45
49
|
# Charge Captures.
|
50
|
+
# @param encounter_creation_input [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData] If a ChargeCaptureBundle attempts creation, this is the input that was created
|
51
|
+
# from the underlying charges and used to attempt encounter creation.
|
46
52
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
47
53
|
# @return [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureClaimCreation]
|
48
54
|
def initialize(id:, status:, characteristics:, errors:, created_encounter_id: OMIT,
|
49
|
-
additional_properties: nil)
|
55
|
+
encounter_creation_input: OMIT, additional_properties: nil)
|
50
56
|
@id = id
|
51
57
|
@created_encounter_id = created_encounter_id if created_encounter_id != OMIT
|
52
58
|
@status = status
|
53
59
|
@characteristics = characteristics
|
54
60
|
@errors = errors
|
61
|
+
@encounter_creation_input = encounter_creation_input if encounter_creation_input != OMIT
|
55
62
|
@additional_properties = additional_properties
|
56
63
|
@_field_set = {
|
57
64
|
"id": id,
|
58
65
|
"created_encounter_id": created_encounter_id,
|
59
66
|
"status": status,
|
60
67
|
"characteristics": characteristics,
|
61
|
-
"errors": errors
|
68
|
+
"errors": errors,
|
69
|
+
"encounter_creation_input": encounter_creation_input
|
62
70
|
}.reject do |_k, v|
|
63
71
|
v == OMIT
|
64
72
|
end
|
@@ -79,12 +87,19 @@ module CandidApiClient
|
|
79
87
|
item = item.to_json
|
80
88
|
CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError.from_json(json_object: item)
|
81
89
|
end
|
90
|
+
if parsed_json["encounter_creation_input"].nil?
|
91
|
+
encounter_creation_input = nil
|
92
|
+
else
|
93
|
+
encounter_creation_input = parsed_json["encounter_creation_input"].to_json
|
94
|
+
encounter_creation_input = CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData.from_json(json_object: encounter_creation_input)
|
95
|
+
end
|
82
96
|
new(
|
83
97
|
id: id,
|
84
98
|
created_encounter_id: created_encounter_id,
|
85
99
|
status: status,
|
86
100
|
characteristics: characteristics,
|
87
101
|
errors: errors,
|
102
|
+
encounter_creation_input: encounter_creation_input,
|
88
103
|
additional_properties: struct
|
89
104
|
)
|
90
105
|
end
|
@@ -108,6 +123,7 @@ module CandidApiClient
|
|
108
123
|
obj.status.is_a?(CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureClaimCreationStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
|
109
124
|
obj.characteristics.is_a?(Hash) != false || raise("Passed value for field obj.characteristics is not the expected type, validation failed.")
|
110
125
|
obj.errors.is_a?(Array) != false || raise("Passed value for field obj.errors is not the expected type, validation failed.")
|
126
|
+
obj.encounter_creation_input.nil? || CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData.validate_raw(obj: obj.encounter_creation_input)
|
111
127
|
end
|
112
128
|
end
|
113
129
|
end
|
@@ -46,7 +46,7 @@ module CandidApiClient
|
|
46
46
|
end
|
47
47
|
|
48
48
|
# Uploads a file to the encounter. The file will be stored in the
|
49
|
-
# encounter's attachments.
|
49
|
+
# encounter's attachments.
|
50
50
|
#
|
51
51
|
# @param encounter_id [String]
|
52
52
|
# @param attachment_file [String, IO]
|
@@ -137,7 +137,7 @@ module CandidApiClient
|
|
137
137
|
end
|
138
138
|
|
139
139
|
# Uploads a file to the encounter. The file will be stored in the
|
140
|
-
# encounter's attachments.
|
140
|
+
# encounter's attachments.
|
141
141
|
#
|
142
142
|
# @param encounter_id [String]
|
143
143
|
# @param attachment_file [String, IO]
|
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
44
44
|
# @example
|
45
45
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
46
|
-
# api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
46
|
+
# api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
47
47
|
def update_referring_provider(encounter_id:, request:, request_options: nil)
|
48
48
|
response = @request_client.conn.patch do |req|
|
49
49
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -79,7 +79,7 @@ module CandidApiClient
|
|
79
79
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
80
80
|
# @example
|
81
81
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
82
|
-
# api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
82
|
+
# api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
83
83
|
def update_initial_referring_provider(encounter_id:, request:, request_options: nil)
|
84
84
|
response = @request_client.conn.patch do |req|
|
85
85
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -114,7 +114,7 @@ module CandidApiClient
|
|
114
114
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
115
115
|
# @example
|
116
116
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
117
|
-
# api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
117
|
+
# api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
118
118
|
def update_supervising_provider(encounter_id:, request:, request_options: nil)
|
119
119
|
response = @request_client.conn.patch do |req|
|
120
120
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -149,7 +149,7 @@ module CandidApiClient
|
|
149
149
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
150
150
|
# @example
|
151
151
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
152
|
-
# api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
152
|
+
# api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
153
153
|
def update_ordering_provider(service_line_id:, request:, request_options: nil)
|
154
154
|
response = @request_client.conn.patch do |req|
|
155
155
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -184,7 +184,7 @@ module CandidApiClient
|
|
184
184
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
185
185
|
# @example
|
186
186
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
187
|
-
# api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
187
|
+
# api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
188
188
|
def create_referring_provider(encounter_id:, request:, request_options: nil)
|
189
189
|
response = @request_client.conn.post do |req|
|
190
190
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -220,7 +220,7 @@ module CandidApiClient
|
|
220
220
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
221
221
|
# @example
|
222
222
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
223
|
-
# api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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 })
|
223
|
+
# api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
224
224
|
def create_initial_referring_provider(encounter_id:, request:, request_options: nil)
|
225
225
|
response = @request_client.conn.post do |req|
|
226
226
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -255,7 +255,7 @@ module CandidApiClient
|
|
255
255
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
256
256
|
# @example
|
257
257
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
258
|
-
# api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
258
|
+
# api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
259
259
|
def create_supervising_provider(encounter_id:, request:, request_options: nil)
|
260
260
|
response = @request_client.conn.post do |req|
|
261
261
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -290,7 +290,7 @@ module CandidApiClient
|
|
290
290
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
291
291
|
# @example
|
292
292
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
293
|
-
# api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
293
|
+
# api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
294
294
|
def create_ordering_provider(service_line_id:, request:, request_options: nil)
|
295
295
|
response = @request_client.conn.post do |req|
|
296
296
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -416,7 +416,7 @@ module CandidApiClient
|
|
416
416
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
417
417
|
# @example
|
418
418
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
419
|
-
# api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
419
|
+
# api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
420
420
|
def update_referring_provider(encounter_id:, request:, request_options: nil)
|
421
421
|
Async do
|
422
422
|
response = @request_client.conn.patch do |req|
|
@@ -454,7 +454,7 @@ module CandidApiClient
|
|
454
454
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
455
455
|
# @example
|
456
456
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
457
|
-
# api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
457
|
+
# api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
458
458
|
def update_initial_referring_provider(encounter_id:, request:, request_options: nil)
|
459
459
|
Async do
|
460
460
|
response = @request_client.conn.patch do |req|
|
@@ -491,7 +491,7 @@ module CandidApiClient
|
|
491
491
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
492
492
|
# @example
|
493
493
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
494
|
-
# api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
494
|
+
# api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
495
495
|
def update_supervising_provider(encounter_id:, request:, request_options: nil)
|
496
496
|
Async do
|
497
497
|
response = @request_client.conn.patch do |req|
|
@@ -528,7 +528,7 @@ module CandidApiClient
|
|
528
528
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
529
529
|
# @example
|
530
530
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
531
|
-
# api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
531
|
+
# api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
532
532
|
def update_ordering_provider(service_line_id:, request:, request_options: nil)
|
533
533
|
Async do
|
534
534
|
response = @request_client.conn.patch do |req|
|
@@ -565,7 +565,7 @@ module CandidApiClient
|
|
565
565
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
566
566
|
# @example
|
567
567
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
568
|
-
# api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
568
|
+
# api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
569
569
|
def create_referring_provider(encounter_id:, request:, request_options: nil)
|
570
570
|
Async do
|
571
571
|
response = @request_client.conn.post do |req|
|
@@ -603,7 +603,7 @@ module CandidApiClient
|
|
603
603
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
604
604
|
# @example
|
605
605
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
606
|
-
# api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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 })
|
606
|
+
# api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
607
607
|
def create_initial_referring_provider(encounter_id:, request:, request_options: nil)
|
608
608
|
Async do
|
609
609
|
response = @request_client.conn.post do |req|
|
@@ -640,7 +640,7 @@ module CandidApiClient
|
|
640
640
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
641
641
|
# @example
|
642
642
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
643
|
-
# api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
643
|
+
# api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
644
644
|
def create_supervising_provider(encounter_id:, request:, request_options: nil)
|
645
645
|
Async do
|
646
646
|
response = @request_client.conn.post do |req|
|
@@ -677,7 +677,7 @@ module CandidApiClient
|
|
677
677
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
678
678
|
# @example
|
679
679
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
680
|
-
# api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
680
|
+
# api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" })
|
681
681
|
def create_ordering_provider(service_line_id:, request:, request_options: nil)
|
682
682
|
Async do
|
683
683
|
response = @request_client.conn.post do |req|
|
@@ -582,15 +582,15 @@ module CandidApiClient
|
|
582
582
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
583
583
|
# api.encounters.v_4.create(
|
584
584
|
# patient: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", non_insurance_payers: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], non_insurance_payers_info: [{ non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "string", clinical_trial_info: [{ clinical_trial_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }] }], email_consent: true, external_id: "string", date_of_birth: DateTime.parse(2023-01-15), 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", gender: MALE },
|
585
|
-
# 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER },
|
586
|
-
# 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" } },
|
587
|
-
# 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" } },
|
588
|
-
# 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 },
|
589
|
-
# supervising_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" } },
|
585
|
+
# 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER, first_name: "string", last_name: "string", organization_name: "string" },
|
586
|
+
# 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" },
|
587
|
+
# 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" }, first_name: "string", last_name: "string", organization_name: "string" },
|
588
|
+
# 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" },
|
589
|
+
# supervising_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" },
|
590
590
|
# service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" },
|
591
|
-
# subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE },
|
592
|
-
# subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE },
|
593
|
-
# subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE },
|
591
|
+
# subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01, payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), 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", gender: MALE },
|
592
|
+
# subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01, payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), 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", gender: MALE },
|
593
|
+
# subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01, payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), 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", gender: MALE },
|
594
594
|
# prior_authorization_number: "string",
|
595
595
|
# responsible_party: INSURANCE_PAY,
|
596
596
|
# diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
|
@@ -604,7 +604,7 @@ module CandidApiClient
|
|
604
604
|
# tag_ids: ["string"],
|
605
605
|
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }],
|
606
606
|
# referral_number: "string",
|
607
|
-
# epsdt_referral: { condition_indicator_1: AV },
|
607
|
+
# epsdt_referral: { condition_indicator_1: AV, condition_indicator_2: AV, condition_indicator_3: AV },
|
608
608
|
# claim_supplemental_information: [{ attachment_report_type_code: C_03, attachment_transmission_code: CBM }]
|
609
609
|
# )
|
610
610
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
@@ -811,7 +811,7 @@ module CandidApiClient
|
|
811
811
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
812
812
|
# @example
|
813
813
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
814
|
-
# api.encounters.v_4.create_from_pre_encounter_patient(request: { pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER }, 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" } }, 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 }, supervising_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" } }, service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" }, diagnoses: [{ name: "string", code_type: ABF, code: "string" }], clinical_notes: [{ category: CLINICAL, notes: }], billing_notes: [{ text: "string" }], place_of_service_code: PHARMACY, patient_histories: [{ category: PRESENT_ILLNESS, questions: [{ id: "6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176", text: "Do you have any allergies?", responses: [{ response: "No allergies", follow_ups: [{ id: "4F3D57F9-AC94-49D6-87E4-E804B709917A", text: "Do you have any allergies?", response: "No allergies" }] }] }] }], service_lines: [{ procedure_code: "string", quantity: "string", units: MJ, diagnosis_pointers: }], external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, tag_ids: ["string"], schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }], external_id: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, appointment_type: "string", existing_medications: [{ name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }], vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, interventions: [{ name: "Physical Therapy Session", category: LIFESTYLE, description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.", medication: { name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }, labs: [{ name: "Genetic Health Labs", code: "GH12345", code_type: QUEST }] }], pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, synchronicity: SYNCHRONOUS, billable_status: BILLABLE, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1 })
|
814
|
+
# api.encounters.v_4.create_from_pre_encounter_patient(request: { pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER, first_name: "string", last_name: "string", organization_name: "string" }, 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" }, 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" }, supervising_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" }, service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" }, diagnoses: [{ name: "string", code_type: ABF, code: "string" }], clinical_notes: [{ category: CLINICAL, notes: }], billing_notes: [{ text: "string" }], place_of_service_code: PHARMACY, patient_histories: [{ category: PRESENT_ILLNESS, questions: [{ id: "6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176", text: "Do you have any allergies?", responses: [{ response: "No allergies", follow_ups: [{ id: "4F3D57F9-AC94-49D6-87E4-E804B709917A", text: "Do you have any allergies?", response: "No allergies" }] }] }] }], service_lines: [{ procedure_code: "string", quantity: "string", units: MJ, diagnosis_pointers: }], external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, tag_ids: ["string"], schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }], external_id: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, appointment_type: "string", existing_medications: [{ name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }], vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, interventions: [{ name: "Physical Therapy Session", category: LIFESTYLE, description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.", medication: { name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }, labs: [{ name: "Genetic Health Labs", code: "GH12345", code_type: QUEST }] }], pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, synchronicity: SYNCHRONOUS, billable_status: BILLABLE, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1 })
|
815
815
|
def create_from_pre_encounter_patient(request:, request_options: nil)
|
816
816
|
response = @request_client.conn.post do |req|
|
817
817
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1792,15 +1792,15 @@ module CandidApiClient
|
|
1792
1792
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1793
1793
|
# api.encounters.v_4.create(
|
1794
1794
|
# patient: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", non_insurance_payers: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], non_insurance_payers_info: [{ non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "string", clinical_trial_info: [{ clinical_trial_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }] }], email_consent: true, external_id: "string", date_of_birth: DateTime.parse(2023-01-15), 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", gender: MALE },
|
1795
|
-
# 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER },
|
1796
|
-
# 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" } },
|
1797
|
-
# 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" } },
|
1798
|
-
# 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 },
|
1799
|
-
# supervising_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" } },
|
1795
|
+
# 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER, first_name: "string", last_name: "string", organization_name: "string" },
|
1796
|
+
# 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" },
|
1797
|
+
# 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" }, first_name: "string", last_name: "string", organization_name: "string" },
|
1798
|
+
# 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" },
|
1799
|
+
# supervising_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" },
|
1800
1800
|
# service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" },
|
1801
|
-
# subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE },
|
1802
|
-
# subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE },
|
1803
|
-
# subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE },
|
1801
|
+
# subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01, payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), 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", gender: MALE },
|
1802
|
+
# subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01, payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), 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", gender: MALE },
|
1803
|
+
# subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01, payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), 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", gender: MALE },
|
1804
1804
|
# prior_authorization_number: "string",
|
1805
1805
|
# responsible_party: INSURANCE_PAY,
|
1806
1806
|
# diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
|
@@ -1814,7 +1814,7 @@ module CandidApiClient
|
|
1814
1814
|
# tag_ids: ["string"],
|
1815
1815
|
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }],
|
1816
1816
|
# referral_number: "string",
|
1817
|
-
# epsdt_referral: { condition_indicator_1: AV },
|
1817
|
+
# epsdt_referral: { condition_indicator_1: AV, condition_indicator_2: AV, condition_indicator_3: AV },
|
1818
1818
|
# claim_supplemental_information: [{ attachment_report_type_code: C_03, attachment_transmission_code: CBM }]
|
1819
1819
|
# )
|
1820
1820
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
@@ -2023,7 +2023,7 @@ module CandidApiClient
|
|
2023
2023
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
2024
2024
|
# @example
|
2025
2025
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
2026
|
-
# api.encounters.v_4.create_from_pre_encounter_patient(request: { pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER }, 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" } }, 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 }, supervising_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" } }, service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" }, diagnoses: [{ name: "string", code_type: ABF, code: "string" }], clinical_notes: [{ category: CLINICAL, notes: }], billing_notes: [{ text: "string" }], place_of_service_code: PHARMACY, patient_histories: [{ category: PRESENT_ILLNESS, questions: [{ id: "6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176", text: "Do you have any allergies?", responses: [{ response: "No allergies", follow_ups: [{ id: "4F3D57F9-AC94-49D6-87E4-E804B709917A", text: "Do you have any allergies?", response: "No allergies" }] }] }] }], service_lines: [{ procedure_code: "string", quantity: "string", units: MJ, diagnosis_pointers: }], external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, tag_ids: ["string"], schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }], external_id: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, appointment_type: "string", existing_medications: [{ name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }], vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, interventions: [{ name: "Physical Therapy Session", category: LIFESTYLE, description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.", medication: { name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }, labs: [{ name: "Genetic Health Labs", code: "GH12345", code_type: QUEST }] }], pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, synchronicity: SYNCHRONOUS, billable_status: BILLABLE, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1 })
|
2026
|
+
# api.encounters.v_4.create_from_pre_encounter_patient(request: { pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER, first_name: "string", last_name: "string", organization_name: "string" }, 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" }, 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" }, supervising_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" }, service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" }, diagnoses: [{ name: "string", code_type: ABF, code: "string" }], clinical_notes: [{ category: CLINICAL, notes: }], billing_notes: [{ text: "string" }], place_of_service_code: PHARMACY, patient_histories: [{ category: PRESENT_ILLNESS, questions: [{ id: "6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176", text: "Do you have any allergies?", responses: [{ response: "No allergies", follow_ups: [{ id: "4F3D57F9-AC94-49D6-87E4-E804B709917A", text: "Do you have any allergies?", response: "No allergies" }] }] }] }], service_lines: [{ procedure_code: "string", quantity: "string", units: MJ, diagnosis_pointers: }], external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, tag_ids: ["string"], schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }], external_id: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, appointment_type: "string", existing_medications: [{ name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }], vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, interventions: [{ name: "Physical Therapy Session", category: LIFESTYLE, description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.", medication: { name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }, labs: [{ name: "Genetic Health Labs", code: "GH12345", code_type: QUEST }] }], pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, synchronicity: SYNCHRONOUS, billable_status: BILLABLE, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1 })
|
2027
2027
|
def create_from_pre_encounter_patient(request:, request_options: nil)
|
2028
2028
|
Async do
|
2029
2029
|
response = @request_client.conn.post do |req|
|
@@ -105,7 +105,7 @@ module CandidApiClient
|
|
105
105
|
# @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
|
106
106
|
# @example
|
107
107
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
108
|
-
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
108
|
+
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { first_name: "string", last_name: "string", external_id: "string", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", email_consent: true })
|
109
109
|
def update(guarantor_id:, request:, request_options: nil)
|
110
110
|
response = @request_client.conn.patch do |req|
|
111
111
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -223,7 +223,7 @@ module CandidApiClient
|
|
223
223
|
# @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
|
224
224
|
# @example
|
225
225
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
226
|
-
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
226
|
+
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { first_name: "string", last_name: "string", external_id: "string", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", email_consent: true })
|
227
227
|
def update(guarantor_id:, request:, request_options: nil)
|
228
228
|
Async do
|
229
229
|
response = @request_client.conn.patch do |req|
|
@@ -65,7 +65,7 @@ module CandidApiClient
|
|
65
65
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
66
66
|
# @example
|
67
67
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
68
|
-
# api.service_lines.v_2.create(request: { modifiers: [AV], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_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" } }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
|
68
|
+
# api.service_lines.v_2.create(request: { modifiers: [AV], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_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" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
|
69
69
|
def create(request:, request_options: nil)
|
70
70
|
response = @request_client.conn.post do |req|
|
71
71
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -210,7 +210,7 @@ module CandidApiClient
|
|
210
210
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
211
211
|
# @example
|
212
212
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
213
|
-
# api.service_lines.v_2.create(request: { modifiers: [AV], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_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" } }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
|
213
|
+
# api.service_lines.v_2.create(request: { modifiers: [AV], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_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" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
|
214
214
|
def create(request:, request_options: nil)
|
215
215
|
Async do
|
216
216
|
response = @request_client.conn.post do |req|
|
data/lib/requests.rb
CHANGED
@@ -45,7 +45,7 @@ module CandidApiClient
|
|
45
45
|
|
46
46
|
# @return [Hash{String => String}]
|
47
47
|
def get_headers
|
48
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.
|
48
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1" }
|
49
49
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
50
50
|
headers
|
51
51
|
end
|
@@ -90,7 +90,7 @@ module CandidApiClient
|
|
90
90
|
|
91
91
|
# @return [Hash{String => String}]
|
92
92
|
def get_headers
|
93
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.
|
93
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.1" }
|
94
94
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
95
95
|
headers
|
96
96
|
end
|
data/lib/types_export.rb
CHANGED
@@ -17,6 +17,7 @@ require_relative "candidhealth/charge_capture/v_1/types/charge_capture_error"
|
|
17
17
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_sort_field"
|
18
18
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_status"
|
19
19
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_post_billed_change"
|
20
|
+
require_relative "candidhealth/charge_capture/v_1/types/charge_external_id_conflict_error_message"
|
20
21
|
require_relative "candidhealth/claim_submission/v_1/types/claim_frequency_type_code"
|
21
22
|
require_relative "candidhealth/claim_submission/v_1/types/external_claim_submission_create"
|
22
23
|
require_relative "candidhealth/claim_submission/v_1/types/claim_submission_record_create"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: candidhealth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.43.
|
4
|
+
version: 0.43.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -149,6 +149,7 @@ files:
|
|
149
149
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture_post_billed_change.rb
|
150
150
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture_sort_field.rb
|
151
151
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture_status.rb
|
152
|
+
- lib/candidhealth/charge_capture/v_1/types/charge_external_id_conflict_error_message.rb
|
152
153
|
- lib/candidhealth/charge_capture_bundles/client.rb
|
153
154
|
- lib/candidhealth/charge_capture_bundles/v_1/client.rb
|
154
155
|
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation.rb
|