candidhealth 0.34.1 → 0.34.2
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/encounter_providers/v_2/types/rendering_provider.rb +10 -10
- data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider_update.rb +123 -0
- data/lib/candidhealth/encounters/v_4/client.rb +282 -32
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +11 -11
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +11 -1
- data/lib/candidhealth/{third_party_payers/v_1/types/toggle_third_party_payer_enablement_request.rb → encounters/v_4/types/insurance_pay_missing_primary_coverage_error_type.rb} +17 -16
- data/lib/candidhealth/guarantor/v_1/client.rb +39 -89
- data/lib/candidhealth/guarantor/v_1/types/guarantor_update.rb +144 -0
- data/lib/candidhealth/payers/v_3/types/payer.rb +41 -2
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +68 -4
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +17 -1
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/mutable_appointment.rb +17 -1
- data/lib/candidhealth/pre_encounter/common/types/additional_payer_information.rb +92 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +48 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefit_type.rb +20 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +15 -1
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_details.rb +104 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_level.rb +17 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value_unit.rb +17 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb +16 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/latest_eligibility_check.rb +83 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage.rb +15 -1
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_coverage.rb +29 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/service_coverage.rb +26 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +12 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization.rb +148 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization_unit.rb +15 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +26 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +26 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/referral.rb +106 -0
- data/lib/candidhealth/service_facility/client.rb +27 -51
- data/lib/candidhealth/service_facility/types/encounter_service_facility_update.rb +90 -0
- data/lib/candidhealth.rb +0 -21
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +13 -16
- metadata +15 -24
- data/lib/candidhealth/third_party_payer_payments/client.rb +0 -30
- data/lib/candidhealth/third_party_payer_payments/v_1/client.rb +0 -360
- data/lib/candidhealth/third_party_payer_payments/v_1/types/third_party_payer_payment.rb +0 -138
- data/lib/candidhealth/third_party_payer_payments/v_1/types/third_party_payer_payment_create.rb +0 -124
- data/lib/candidhealth/third_party_payer_payments/v_1/types/third_party_payer_payment_sort_field.rb +0 -14
- data/lib/candidhealth/third_party_payer_payments/v_1/types/third_party_payer_payments_page.rb +0 -88
- data/lib/candidhealth/third_party_payer_refunds/client.rb +0 -30
- data/lib/candidhealth/third_party_payer_refunds/v_1/client.rb +0 -385
- data/lib/candidhealth/third_party_payer_refunds/v_1/types/third_party_payer_refund.rb +0 -139
- data/lib/candidhealth/third_party_payer_refunds/v_1/types/third_party_payer_refund_create.rb +0 -125
- data/lib/candidhealth/third_party_payer_refunds/v_1/types/third_party_payer_refund_sort_field.rb +0 -14
- data/lib/candidhealth/third_party_payer_refunds/v_1/types/third_party_payer_refunds_page.rb +0 -88
- data/lib/candidhealth/third_party_payers/client.rb +0 -30
- data/lib/candidhealth/third_party_payers/v_1/client.rb +0 -375
- data/lib/candidhealth/third_party_payers/v_1/types/create_third_party_payer_request.rb +0 -79
- data/lib/candidhealth/third_party_payers/v_1/types/third_party_payer.rb +0 -100
- data/lib/candidhealth/third_party_payers/v_1/types/third_party_payer_category_update.rb +0 -97
- data/lib/candidhealth/third_party_payers/v_1/types/third_party_payer_description_update.rb +0 -97
- data/lib/candidhealth/third_party_payers/v_1/types/third_party_payer_page.rb +0 -88
- data/lib/candidhealth/third_party_payers/v_1/types/third_party_payer_sort_field.rb +0 -16
- data/lib/candidhealth/third_party_payers/v_1/types/third_party_payer_update_request.rb +0 -92
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 819cf40ef4222c17dc90bdc5ad092b5129d1f38866fb6b63b8e9b42dc11d186e
|
4
|
+
data.tar.gz: 5c578ee694ad8257d9f162a93542af6c90a84015f9c2e172e28dd6bcc65e39ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4da9c710329a09e78482ae65fafa7649b4acada46a97a996ce32d54d703b0158e0fa479cc3265dbbabc552c1c12a27f2accb55e57ada6082f5199ecbd2ca8439
|
7
|
+
data.tar.gz: 4571f3037ba1d245365731be15b2307ec5206feba874db0b7282a25a556ce0ec45c736fb084d29a745c9147c91ec83ab7ad419fec56322d8bace519ae2d83727
|
@@ -9,13 +9,13 @@ module CandidApiClient
|
|
9
9
|
module V2
|
10
10
|
module Types
|
11
11
|
class RenderingProvider
|
12
|
-
# @return [CandidApiClient::Commons::Types::StreetAddressLongZip]
|
13
|
-
attr_reader :address
|
14
12
|
# @return [String] A National Provider Identifier is a unique 10-digit identification
|
15
13
|
# number issued to health care providers in the United States
|
16
14
|
attr_reader :npi
|
17
15
|
# @return [String]
|
18
16
|
attr_reader :taxonomy_code
|
17
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressLongZip]
|
18
|
+
attr_reader :address
|
19
19
|
# @return [String] If the provider is an individual, this should be set instead of organization
|
20
20
|
# name
|
21
21
|
attr_reader :first_name
|
@@ -33,10 +33,10 @@ module CandidApiClient
|
|
33
33
|
|
34
34
|
OMIT = Object.new
|
35
35
|
|
36
|
-
# @param address [CandidApiClient::Commons::Types::StreetAddressLongZip]
|
37
36
|
# @param npi [String] A National Provider Identifier is a unique 10-digit identification
|
38
37
|
# number issued to health care providers in the United States
|
39
38
|
# @param taxonomy_code [String]
|
39
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressLongZip]
|
40
40
|
# @param first_name [String] If the provider is an individual, this should be set instead of organization
|
41
41
|
# name
|
42
42
|
# @param last_name [String] If the provider is an individual, this should be set instead of organization
|
@@ -45,19 +45,19 @@ module CandidApiClient
|
|
45
45
|
# name
|
46
46
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
47
47
|
# @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProvider]
|
48
|
-
def initialize(npi:,
|
48
|
+
def initialize(npi:, taxonomy_code: OMIT, address: OMIT, first_name: OMIT, last_name: OMIT,
|
49
49
|
organization_name: OMIT, additional_properties: nil)
|
50
|
-
@address = address if address != OMIT
|
51
50
|
@npi = npi
|
52
51
|
@taxonomy_code = taxonomy_code if taxonomy_code != OMIT
|
52
|
+
@address = address if address != OMIT
|
53
53
|
@first_name = first_name if first_name != OMIT
|
54
54
|
@last_name = last_name if last_name != OMIT
|
55
55
|
@organization_name = organization_name if organization_name != OMIT
|
56
56
|
@additional_properties = additional_properties
|
57
57
|
@_field_set = {
|
58
|
-
"address": address,
|
59
58
|
"npi": npi,
|
60
59
|
"taxonomy_code": taxonomy_code,
|
60
|
+
"address": address,
|
61
61
|
"first_name": first_name,
|
62
62
|
"last_name": last_name,
|
63
63
|
"organization_name": organization_name
|
@@ -73,21 +73,21 @@ module CandidApiClient
|
|
73
73
|
def self.from_json(json_object:)
|
74
74
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
75
75
|
parsed_json = JSON.parse(json_object)
|
76
|
+
npi = struct["npi"]
|
77
|
+
taxonomy_code = struct["taxonomy_code"]
|
76
78
|
if parsed_json["address"].nil?
|
77
79
|
address = nil
|
78
80
|
else
|
79
81
|
address = parsed_json["address"].to_json
|
80
82
|
address = CandidApiClient::Commons::Types::StreetAddressLongZip.from_json(json_object: address)
|
81
83
|
end
|
82
|
-
npi = struct["npi"]
|
83
|
-
taxonomy_code = struct["taxonomy_code"]
|
84
84
|
first_name = struct["first_name"]
|
85
85
|
last_name = struct["last_name"]
|
86
86
|
organization_name = struct["organization_name"]
|
87
87
|
new(
|
88
|
-
address: address,
|
89
88
|
npi: npi,
|
90
89
|
taxonomy_code: taxonomy_code,
|
90
|
+
address: address,
|
91
91
|
first_name: first_name,
|
92
92
|
last_name: last_name,
|
93
93
|
organization_name: organization_name,
|
@@ -109,9 +109,9 @@ module CandidApiClient
|
|
109
109
|
# @param obj [Object]
|
110
110
|
# @return [Void]
|
111
111
|
def self.validate_raw(obj:)
|
112
|
-
obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.address)
|
113
112
|
obj.npi.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
|
114
113
|
obj.taxonomy_code&.is_a?(String) != false || raise("Passed value for field obj.taxonomy_code is not the expected type, validation failed.")
|
114
|
+
obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.address)
|
115
115
|
obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
|
116
116
|
obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
|
117
117
|
obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
|
@@ -0,0 +1,123 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../commons/types/street_address_long_zip"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module EncounterProviders
|
9
|
+
module V2
|
10
|
+
module Types
|
11
|
+
class RenderingProviderUpdate
|
12
|
+
# @return [String] A National Provider Identifier is a unique 10-digit identification
|
13
|
+
# number issued to health care providers in the United States
|
14
|
+
attr_reader :npi
|
15
|
+
# @return [String]
|
16
|
+
attr_reader :taxonomy_code
|
17
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressLongZip]
|
18
|
+
attr_reader :address
|
19
|
+
# @return [String] If the provider is an individual, this should be set instead of organization
|
20
|
+
# name
|
21
|
+
attr_reader :first_name
|
22
|
+
# @return [String] If the provider is an individual, this should be set instead of organization
|
23
|
+
# name
|
24
|
+
attr_reader :last_name
|
25
|
+
# @return [String] If the provider is an organization, this should be set instead of first + last
|
26
|
+
# name
|
27
|
+
attr_reader :organization_name
|
28
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
29
|
+
attr_reader :additional_properties
|
30
|
+
# @return [Object]
|
31
|
+
attr_reader :_field_set
|
32
|
+
protected :_field_set
|
33
|
+
|
34
|
+
OMIT = Object.new
|
35
|
+
|
36
|
+
# @param npi [String] A National Provider Identifier is a unique 10-digit identification
|
37
|
+
# number issued to health care providers in the United States
|
38
|
+
# @param taxonomy_code [String]
|
39
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressLongZip]
|
40
|
+
# @param first_name [String] If the provider is an individual, this should be set instead of organization
|
41
|
+
# name
|
42
|
+
# @param last_name [String] If the provider is an individual, this should be set instead of organization
|
43
|
+
# name
|
44
|
+
# @param organization_name [String] If the provider is an organization, this should be set instead of first + last
|
45
|
+
# name
|
46
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
47
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate]
|
48
|
+
def initialize(npi: OMIT, taxonomy_code: OMIT, address: OMIT, first_name: OMIT, last_name: OMIT,
|
49
|
+
organization_name: OMIT, additional_properties: nil)
|
50
|
+
@npi = npi if npi != OMIT
|
51
|
+
@taxonomy_code = taxonomy_code if taxonomy_code != OMIT
|
52
|
+
@address = address if address != OMIT
|
53
|
+
@first_name = first_name if first_name != OMIT
|
54
|
+
@last_name = last_name if last_name != OMIT
|
55
|
+
@organization_name = organization_name if organization_name != OMIT
|
56
|
+
@additional_properties = additional_properties
|
57
|
+
@_field_set = {
|
58
|
+
"npi": npi,
|
59
|
+
"taxonomy_code": taxonomy_code,
|
60
|
+
"address": address,
|
61
|
+
"first_name": first_name,
|
62
|
+
"last_name": last_name,
|
63
|
+
"organization_name": organization_name
|
64
|
+
}.reject do |_k, v|
|
65
|
+
v == OMIT
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# Deserialize a JSON object to an instance of RenderingProviderUpdate
|
70
|
+
#
|
71
|
+
# @param json_object [String]
|
72
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate]
|
73
|
+
def self.from_json(json_object:)
|
74
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
75
|
+
parsed_json = JSON.parse(json_object)
|
76
|
+
npi = struct["npi"]
|
77
|
+
taxonomy_code = struct["taxonomy_code"]
|
78
|
+
if parsed_json["address"].nil?
|
79
|
+
address = nil
|
80
|
+
else
|
81
|
+
address = parsed_json["address"].to_json
|
82
|
+
address = CandidApiClient::Commons::Types::StreetAddressLongZip.from_json(json_object: address)
|
83
|
+
end
|
84
|
+
first_name = struct["first_name"]
|
85
|
+
last_name = struct["last_name"]
|
86
|
+
organization_name = struct["organization_name"]
|
87
|
+
new(
|
88
|
+
npi: npi,
|
89
|
+
taxonomy_code: taxonomy_code,
|
90
|
+
address: address,
|
91
|
+
first_name: first_name,
|
92
|
+
last_name: last_name,
|
93
|
+
organization_name: organization_name,
|
94
|
+
additional_properties: struct
|
95
|
+
)
|
96
|
+
end
|
97
|
+
|
98
|
+
# Serialize an instance of RenderingProviderUpdate to a JSON object
|
99
|
+
#
|
100
|
+
# @return [String]
|
101
|
+
def to_json(*_args)
|
102
|
+
@_field_set&.to_json
|
103
|
+
end
|
104
|
+
|
105
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
106
|
+
# hash and check each fields type against the current object's property
|
107
|
+
# definitions.
|
108
|
+
#
|
109
|
+
# @param obj [Object]
|
110
|
+
# @return [Void]
|
111
|
+
def self.validate_raw(obj:)
|
112
|
+
obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
|
113
|
+
obj.taxonomy_code&.is_a?(String) != false || raise("Passed value for field obj.taxonomy_code is not the expected type, validation failed.")
|
114
|
+
obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.address)
|
115
|
+
obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
|
116
|
+
obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
|
117
|
+
obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|