candidhealth 0.37.0 → 0.38.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 +63 -34
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +21 -10
- data/lib/candidhealth/encounters/v_4/client.rb +10 -4
- data/lib/candidhealth/encounters/v_4/types/invalid_tag_names_error_type.rb +60 -0
- data/lib/candidhealth/pre_encounter/common/types/resource_page.rb +13 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +96 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefit_type.rb +2 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_level.rb +1 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value.rb +13 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_coverage_details.rb +28 -2
- data/lib/candidhealth/pre_encounter/lists/v_1/types/appointment_list_page.rb +10 -2
- data/lib/candidhealth/pre_encounter/lists/v_1/types/patient_list_page.rb +10 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient_page.rb +10 -2
- data/lib/candidhealth/pre_encounter/tags/v_1/types/tag_page.rb +10 -2
- data/lib/candidhealth/service_facility/client.rb +2 -0
- data/lib/candidhealth/service_facility/types/encounter_service_facility.rb +19 -2
- data/lib/candidhealth/service_facility/types/encounter_service_facility_base.rb +23 -2
- data/lib/candidhealth/service_facility/types/encounter_service_facility_update.rb +23 -2
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +3 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +1 -1
- metadata +3 -3
- data/lib/candidhealth/commons/types/not_implemented_error_message.rb +0 -60
@@ -19,6 +19,12 @@ module CandidApiClient
|
|
19
19
|
# @return [CandidApiClient::Commons::Types::StreetAddressLongZip] zip_plus_four_code is required for service facility address. When the
|
20
20
|
# zip_plus_four_code is not available use "9998" as per CMS documentation.
|
21
21
|
attr_reader :address
|
22
|
+
# @return [String] An additional identifier for the service facility other than the facility's NPI.
|
23
|
+
# Some payers may require this field.
|
24
|
+
# Potential examples: state license number, provider commercial number, or
|
25
|
+
# location number.
|
26
|
+
# Box 32 section (b) of the CMS-1500 claim form.
|
27
|
+
attr_reader :secondary_identification
|
22
28
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
23
29
|
attr_reader :additional_properties
|
24
30
|
# @return [Object]
|
@@ -34,19 +40,27 @@ module CandidApiClient
|
|
34
40
|
# Box 32 section (a) of the CMS-1500 claim form.
|
35
41
|
# @param address [CandidApiClient::Commons::Types::StreetAddressLongZip] zip_plus_four_code is required for service facility address. When the
|
36
42
|
# zip_plus_four_code is not available use "9998" as per CMS documentation.
|
43
|
+
# @param secondary_identification [String] An additional identifier for the service facility other than the facility's NPI.
|
44
|
+
# Some payers may require this field.
|
45
|
+
# Potential examples: state license number, provider commercial number, or
|
46
|
+
# location number.
|
47
|
+
# Box 32 section (b) of the CMS-1500 claim form.
|
37
48
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
38
49
|
# @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacility]
|
39
|
-
def initialize(service_facility_id:, organization_name:, address:, npi: OMIT,
|
50
|
+
def initialize(service_facility_id:, organization_name:, address:, npi: OMIT, secondary_identification: OMIT,
|
51
|
+
additional_properties: nil)
|
40
52
|
@service_facility_id = service_facility_id
|
41
53
|
@organization_name = organization_name
|
42
54
|
@npi = npi if npi != OMIT
|
43
55
|
@address = address
|
56
|
+
@secondary_identification = secondary_identification if secondary_identification != OMIT
|
44
57
|
@additional_properties = additional_properties
|
45
58
|
@_field_set = {
|
46
59
|
"service_facility_id": service_facility_id,
|
47
60
|
"organization_name": organization_name,
|
48
61
|
"npi": npi,
|
49
|
-
"address": address
|
62
|
+
"address": address,
|
63
|
+
"secondary_identification": secondary_identification
|
50
64
|
}.reject do |_k, v|
|
51
65
|
v == OMIT
|
52
66
|
end
|
@@ -68,11 +82,13 @@ module CandidApiClient
|
|
68
82
|
address = parsed_json["address"].to_json
|
69
83
|
address = CandidApiClient::Commons::Types::StreetAddressLongZip.from_json(json_object: address)
|
70
84
|
end
|
85
|
+
secondary_identification = struct["secondary_identification"]
|
71
86
|
new(
|
72
87
|
service_facility_id: service_facility_id,
|
73
88
|
organization_name: organization_name,
|
74
89
|
npi: npi,
|
75
90
|
address: address,
|
91
|
+
secondary_identification: secondary_identification,
|
76
92
|
additional_properties: struct
|
77
93
|
)
|
78
94
|
end
|
@@ -95,6 +111,7 @@ module CandidApiClient
|
|
95
111
|
obj.organization_name.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
|
96
112
|
obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
|
97
113
|
CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.address)
|
114
|
+
obj.secondary_identification&.is_a?(String) != false || raise("Passed value for field obj.secondary_identification is not the expected type, validation failed.")
|
98
115
|
end
|
99
116
|
end
|
100
117
|
end
|
@@ -29,6 +29,12 @@ module CandidApiClient
|
|
29
29
|
# @return [CandidApiClient::Commons::Types::StreetAddressLongZip] zip_plus_four_code is required for service facility address. When the
|
30
30
|
# zip_plus_four_code is not available use "9998" as per CMS documentation.
|
31
31
|
attr_reader :address
|
32
|
+
# @return [String] An additional identifier for the service facility other than the facility's NPI.
|
33
|
+
# Some payers may require this field.
|
34
|
+
# Potential examples: state license number, provider commercial number, or
|
35
|
+
# location number.
|
36
|
+
# Box 32 section (b) of the CMS-1500 claim form.
|
37
|
+
attr_reader :secondary_identification
|
32
38
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
33
39
|
attr_reader :additional_properties
|
34
40
|
# @return [Object]
|
@@ -43,14 +49,26 @@ module CandidApiClient
|
|
43
49
|
# Box 32 section (a) of the CMS-1500 claim form.
|
44
50
|
# @param address [CandidApiClient::Commons::Types::StreetAddressLongZip] zip_plus_four_code is required for service facility address. When the
|
45
51
|
# zip_plus_four_code is not available use "9998" as per CMS documentation.
|
52
|
+
# @param secondary_identification [String] An additional identifier for the service facility other than the facility's NPI.
|
53
|
+
# Some payers may require this field.
|
54
|
+
# Potential examples: state license number, provider commercial number, or
|
55
|
+
# location number.
|
56
|
+
# Box 32 section (b) of the CMS-1500 claim form.
|
46
57
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
47
58
|
# @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityBase]
|
48
|
-
def initialize(organization_name:, address:, npi: OMIT,
|
59
|
+
def initialize(organization_name:, address:, npi: OMIT, secondary_identification: OMIT,
|
60
|
+
additional_properties: nil)
|
49
61
|
@organization_name = organization_name
|
50
62
|
@npi = npi if npi != OMIT
|
51
63
|
@address = address
|
64
|
+
@secondary_identification = secondary_identification if secondary_identification != OMIT
|
52
65
|
@additional_properties = additional_properties
|
53
|
-
@_field_set = {
|
66
|
+
@_field_set = {
|
67
|
+
"organization_name": organization_name,
|
68
|
+
"npi": npi,
|
69
|
+
"address": address,
|
70
|
+
"secondary_identification": secondary_identification
|
71
|
+
}.reject do |_k, v|
|
54
72
|
v == OMIT
|
55
73
|
end
|
56
74
|
end
|
@@ -70,10 +88,12 @@ module CandidApiClient
|
|
70
88
|
address = parsed_json["address"].to_json
|
71
89
|
address = CandidApiClient::Commons::Types::StreetAddressLongZip.from_json(json_object: address)
|
72
90
|
end
|
91
|
+
secondary_identification = struct["secondary_identification"]
|
73
92
|
new(
|
74
93
|
organization_name: organization_name,
|
75
94
|
npi: npi,
|
76
95
|
address: address,
|
96
|
+
secondary_identification: secondary_identification,
|
77
97
|
additional_properties: struct
|
78
98
|
)
|
79
99
|
end
|
@@ -95,6 +115,7 @@ module CandidApiClient
|
|
95
115
|
obj.organization_name.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
|
96
116
|
obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
|
97
117
|
CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.address)
|
118
|
+
obj.secondary_identification&.is_a?(String) != false || raise("Passed value for field obj.secondary_identification is not the expected type, validation failed.")
|
98
119
|
end
|
99
120
|
end
|
100
121
|
end
|
@@ -17,6 +17,12 @@ module CandidApiClient
|
|
17
17
|
# @return [CandidApiClient::Commons::Types::StreetAddressLongZip] zip_plus_four_code is required for service facility address. When the
|
18
18
|
# zip_plus_four_code is not available use "9998" as per CMS documentation.
|
19
19
|
attr_reader :address
|
20
|
+
# @return [String] An additional identifier for the service facility other than the facility's NPI.
|
21
|
+
# Some payers may require this field.
|
22
|
+
# Potential examples: state license number, provider commercial number, or
|
23
|
+
# location number.
|
24
|
+
# Box 32 section (b) of the CMS-1500 claim form.
|
25
|
+
attr_reader :secondary_identification
|
20
26
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
21
27
|
attr_reader :additional_properties
|
22
28
|
# @return [Object]
|
@@ -31,14 +37,26 @@ module CandidApiClient
|
|
31
37
|
# Box 32 section (a) of the CMS-1500 claim form.
|
32
38
|
# @param address [CandidApiClient::Commons::Types::StreetAddressLongZip] zip_plus_four_code is required for service facility address. When the
|
33
39
|
# zip_plus_four_code is not available use "9998" as per CMS documentation.
|
40
|
+
# @param secondary_identification [String] An additional identifier for the service facility other than the facility's NPI.
|
41
|
+
# Some payers may require this field.
|
42
|
+
# Potential examples: state license number, provider commercial number, or
|
43
|
+
# location number.
|
44
|
+
# Box 32 section (b) of the CMS-1500 claim form.
|
34
45
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
35
46
|
# @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate]
|
36
|
-
def initialize(organization_name: OMIT, npi: OMIT, address: OMIT,
|
47
|
+
def initialize(organization_name: OMIT, npi: OMIT, address: OMIT, secondary_identification: OMIT,
|
48
|
+
additional_properties: nil)
|
37
49
|
@organization_name = organization_name if organization_name != OMIT
|
38
50
|
@npi = npi if npi != OMIT
|
39
51
|
@address = address if address != OMIT
|
52
|
+
@secondary_identification = secondary_identification if secondary_identification != OMIT
|
40
53
|
@additional_properties = additional_properties
|
41
|
-
@_field_set = {
|
54
|
+
@_field_set = {
|
55
|
+
"organization_name": organization_name,
|
56
|
+
"npi": npi,
|
57
|
+
"address": address,
|
58
|
+
"secondary_identification": secondary_identification
|
59
|
+
}.reject do |_k, v|
|
42
60
|
v == OMIT
|
43
61
|
end
|
44
62
|
end
|
@@ -58,10 +76,12 @@ module CandidApiClient
|
|
58
76
|
address = parsed_json["address"].to_json
|
59
77
|
address = CandidApiClient::Commons::Types::StreetAddressLongZip.from_json(json_object: address)
|
60
78
|
end
|
79
|
+
secondary_identification = struct["secondary_identification"]
|
61
80
|
new(
|
62
81
|
organization_name: organization_name,
|
63
82
|
npi: npi,
|
64
83
|
address: address,
|
84
|
+
secondary_identification: secondary_identification,
|
65
85
|
additional_properties: struct
|
66
86
|
)
|
67
87
|
end
|
@@ -83,6 +103,7 @@ module CandidApiClient
|
|
83
103
|
obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
|
84
104
|
obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
|
85
105
|
obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.address)
|
106
|
+
obj.secondary_identification&.is_a?(String) != false || raise("Passed value for field obj.secondary_identification is not the expected type, validation failed.")
|
86
107
|
end
|
87
108
|
end
|
88
109
|
end
|
@@ -37,6 +37,7 @@ module CandidApiClient
|
|
37
37
|
M_30 = "M30"
|
38
38
|
M_31 = "M31"
|
39
39
|
M_32 = "M32"
|
40
|
+
M_34 = "M34"
|
40
41
|
M_36 = "M36"
|
41
42
|
M_37 = "M37"
|
42
43
|
M_38 = "M38"
|
@@ -264,6 +265,7 @@ module CandidApiClient
|
|
264
265
|
N_26 = "N26"
|
265
266
|
N_27 = "N27"
|
266
267
|
N_28 = "N28"
|
268
|
+
N_29 = "N29"
|
267
269
|
N_30 = "N30"
|
268
270
|
N_31 = "N31"
|
269
271
|
N_32 = "N32"
|
@@ -1072,6 +1074,7 @@ module CandidApiClient
|
|
1072
1074
|
N_860 = "N860"
|
1073
1075
|
N_880 = "N880"
|
1074
1076
|
N_887 = "N887"
|
1077
|
+
N_888 = "N888"
|
1075
1078
|
N_891 = "N891"
|
1076
1079
|
end
|
1077
1080
|
end
|
data/lib/requests.rb
CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
|
44
44
|
# @return [Hash{String => String}]
|
45
45
|
def get_headers
|
46
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.38.1" }
|
47
47
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
48
48
|
headers
|
49
49
|
end
|
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
|
88
88
|
# @return [Hash{String => String}]
|
89
89
|
def get_headers
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.38.1" }
|
91
91
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
92
|
headers
|
93
93
|
end
|
data/lib/types_export.rb
CHANGED
@@ -79,6 +79,7 @@ require_relative "candidhealth/encounters/v_4/types/encounter_external_id_unique
|
|
79
79
|
require_relative "candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type"
|
80
80
|
require_relative "candidhealth/encounters/v_4/types/encounter_guarantor_missing_contact_info_error_type"
|
81
81
|
require_relative "candidhealth/encounters/v_4/types/cash_pay_payer_error_message"
|
82
|
+
require_relative "candidhealth/encounters/v_4/types/invalid_tag_names_error_type"
|
82
83
|
require_relative "candidhealth/encounters/v_4/types/service_authorization_exception_code"
|
83
84
|
require_relative "candidhealth/encounters/v_4/types/schema_instance_validation_failure"
|
84
85
|
require_relative "candidhealth/encounters/v_4/types/key_does_not_exist_error"
|
@@ -360,7 +361,6 @@ require_relative "candidhealth/commons/types/http_service_unavailable_error_mess
|
|
360
361
|
require_relative "candidhealth/commons/types/request_validation_error"
|
361
362
|
require_relative "candidhealth/commons/types/updates_disabled_due_to_external_system_integration_error_message"
|
362
363
|
require_relative "candidhealth/commons/types/organization_not_authorized_error_message"
|
363
|
-
require_relative "candidhealth/commons/types/not_implemented_error_message"
|
364
364
|
require_relative "candidhealth/commons/types/phone_number"
|
365
365
|
require_relative "candidhealth/commons/types/phone_number_type"
|
366
366
|
require_relative "candidhealth/commons/types/delay_reason_code"
|
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.
|
4
|
+
version: 0.38.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -129,7 +129,6 @@ files:
|
|
129
129
|
- lib/candidhealth/commons/types/insurance_type_code.rb
|
130
130
|
- lib/candidhealth/commons/types/intended_submission_medium.rb
|
131
131
|
- lib/candidhealth/commons/types/network_type.rb
|
132
|
-
- lib/candidhealth/commons/types/not_implemented_error_message.rb
|
133
132
|
- lib/candidhealth/commons/types/organization_not_authorized_error_message.rb
|
134
133
|
- lib/candidhealth/commons/types/patient_relationship_to_insured_code_all.rb
|
135
134
|
- lib/candidhealth/commons/types/phone_number.rb
|
@@ -229,6 +228,7 @@ files:
|
|
229
228
|
- lib/candidhealth/encounters/v_4/types/intake_response_and_follow_ups.rb
|
230
229
|
- lib/candidhealth/encounters/v_4/types/intervention.rb
|
231
230
|
- lib/candidhealth/encounters/v_4/types/intervention_category.rb
|
231
|
+
- lib/candidhealth/encounters/v_4/types/invalid_tag_names_error_type.rb
|
232
232
|
- lib/candidhealth/encounters/v_4/types/key_does_not_exist_error.rb
|
233
233
|
- lib/candidhealth/encounters/v_4/types/lab.rb
|
234
234
|
- lib/candidhealth/encounters/v_4/types/lab_code_type.rb
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "ostruct"
|
4
|
-
require "json"
|
5
|
-
|
6
|
-
module CandidApiClient
|
7
|
-
module Commons
|
8
|
-
module Types
|
9
|
-
class NotImplementedErrorMessage
|
10
|
-
# @return [String]
|
11
|
-
attr_reader :message
|
12
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
13
|
-
attr_reader :additional_properties
|
14
|
-
# @return [Object]
|
15
|
-
attr_reader :_field_set
|
16
|
-
protected :_field_set
|
17
|
-
|
18
|
-
OMIT = Object.new
|
19
|
-
|
20
|
-
# @param message [String]
|
21
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
22
|
-
# @return [CandidApiClient::Commons::Types::NotImplementedErrorMessage]
|
23
|
-
def initialize(message: OMIT, additional_properties: nil)
|
24
|
-
@message = message if message != OMIT
|
25
|
-
@additional_properties = additional_properties
|
26
|
-
@_field_set = { "message": message }.reject do |_k, v|
|
27
|
-
v == OMIT
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
# Deserialize a JSON object to an instance of NotImplementedErrorMessage
|
32
|
-
#
|
33
|
-
# @param json_object [String]
|
34
|
-
# @return [CandidApiClient::Commons::Types::NotImplementedErrorMessage]
|
35
|
-
def self.from_json(json_object:)
|
36
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
37
|
-
message = struct["message"]
|
38
|
-
new(message: message, additional_properties: struct)
|
39
|
-
end
|
40
|
-
|
41
|
-
# Serialize an instance of NotImplementedErrorMessage to a JSON object
|
42
|
-
#
|
43
|
-
# @return [String]
|
44
|
-
def to_json(*_args)
|
45
|
-
@_field_set&.to_json
|
46
|
-
end
|
47
|
-
|
48
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
49
|
-
# hash and check each fields type against the current object's property
|
50
|
-
# definitions.
|
51
|
-
#
|
52
|
-
# @param obj [Object]
|
53
|
-
# @return [Void]
|
54
|
-
def self.validate_raw(obj:)
|
55
|
-
obj.message&.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|