candidhealth 0.35.1 → 0.35.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/candidhealth/credentialing/v_2/client.rb +18 -6
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +12 -14
- data/lib/candidhealth/pre_encounter/client.rb +5 -5
- data/lib/candidhealth/pre_encounter/common/types/base_model.rb +104 -0
- data/lib/candidhealth/pre_encounter/common/types/{not_found_error_body.rb → error_base_4_xx.rb} +16 -14
- data/lib/candidhealth/pre_encounter/common/types/version_conflict_error_body.rb +13 -11
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +10 -10
- data/lib/candidhealth/pre_encounter/notes/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/notes/v_1/client.rb +257 -0
- data/lib/candidhealth/pre_encounter/notes/v_1/types/mutable_note.rb +86 -0
- data/lib/candidhealth/pre_encounter/notes/v_1/types/note.rb +149 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +20 -8
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +18 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +18 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +26 -10
- data/lib/candidhealth/pre_encounter/tags/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/tags/v_1/client.rb +311 -0
- data/lib/candidhealth/pre_encounter/{patients/v_1/types/invalid_mrn_error_body.rb → tags/v_1/types/mutable_tag.rb} +15 -24
- data/lib/candidhealth/pre_encounter/tags/v_1/types/tag.rb +123 -0
- data/lib/candidhealth/pre_encounter/tags/v_1/types/tag_page.rb +90 -0
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +1 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +7 -5
- metadata +13 -7
- data/lib/candidhealth/pre_encounter/common/types/error_base.rb +0 -60
- data/lib/candidhealth/pre_encounter/patients/v_1/types/potential_duplicate_patient.rb +0 -72
- data/lib/candidhealth/pre_encounter/patients/v_1/types/potential_duplicate_patients_error_body.rb +0 -84
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 322bb186b5d934fa214e4211428784e97434a7a8306c6c670f4f4fc59d1a6a8d
|
4
|
+
data.tar.gz: 6ee5bb4e1ec74cbaca7d0f1abb83fed9b64bc832c82a89123c110a76c4b3935b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00fbc482e506e72028c476115e64f700867a012c8815c243e14ffe9c74197eb93507cb51972f315f279bba7d8630e32a16718c81ad86ecbe4b124a942e7c7631
|
7
|
+
data.tar.gz: 8cb7ace54e4a5b6a45bdb53a7520977cf0597d39701d97dead9d8edf7e980bffe15ade49fdcfa41811a356853c5eeb06f1ea433cb92d9bf318c663aff88d8579
|
@@ -94,8 +94,12 @@ module CandidApiClient
|
|
94
94
|
# @param limit [Integer] Maximum number of entities per page, defaults to 100.
|
95
95
|
# @param page_token [String]
|
96
96
|
# @param payer_uuid [String] Filter by payer.
|
97
|
-
# @param
|
98
|
-
#
|
97
|
+
# @param provider_id [String] Filter to a particular provider. Use in conjunction as_rendering_provider and
|
98
|
+
# as_contracting_provider.
|
99
|
+
# @param as_rendering_provider [Boolean] Filter to credentialing spans where the provider is a rendering provider. To use
|
100
|
+
# this filter provider_id is required.
|
101
|
+
# @param as_contracting_provider [Boolean] Filter to credentialing spans where the provider is a contracting provider. To
|
102
|
+
# use this filter provider_id is required.
|
99
103
|
# @param request_options [CandidApiClient::RequestOptions]
|
100
104
|
# @return [CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpanPage]
|
101
105
|
# @example
|
@@ -104,10 +108,11 @@ module CandidApiClient
|
|
104
108
|
# limit: 1,
|
105
109
|
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
106
110
|
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
111
|
+
# provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
107
112
|
# as_rendering_provider: true,
|
108
113
|
# as_contracting_provider: true
|
109
114
|
# )
|
110
|
-
def get_all(limit: nil, page_token: nil, payer_uuid: nil, as_rendering_provider: nil,
|
115
|
+
def get_all(limit: nil, page_token: nil, payer_uuid: nil, provider_id: nil, as_rendering_provider: nil,
|
111
116
|
as_contracting_provider: nil, request_options: nil)
|
112
117
|
response = @request_client.conn.get do |req|
|
113
118
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -122,6 +127,7 @@ module CandidApiClient
|
|
122
127
|
"limit": limit,
|
123
128
|
"page_token": page_token,
|
124
129
|
"payer_uuid": payer_uuid,
|
130
|
+
"provider_id": provider_id,
|
125
131
|
"as_rendering_provider": as_rendering_provider,
|
126
132
|
"as_contracting_provider": as_contracting_provider
|
127
133
|
}.compact
|
@@ -291,8 +297,12 @@ module CandidApiClient
|
|
291
297
|
# @param limit [Integer] Maximum number of entities per page, defaults to 100.
|
292
298
|
# @param page_token [String]
|
293
299
|
# @param payer_uuid [String] Filter by payer.
|
294
|
-
# @param
|
295
|
-
#
|
300
|
+
# @param provider_id [String] Filter to a particular provider. Use in conjunction as_rendering_provider and
|
301
|
+
# as_contracting_provider.
|
302
|
+
# @param as_rendering_provider [Boolean] Filter to credentialing spans where the provider is a rendering provider. To use
|
303
|
+
# this filter provider_id is required.
|
304
|
+
# @param as_contracting_provider [Boolean] Filter to credentialing spans where the provider is a contracting provider. To
|
305
|
+
# use this filter provider_id is required.
|
296
306
|
# @param request_options [CandidApiClient::RequestOptions]
|
297
307
|
# @return [CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpanPage]
|
298
308
|
# @example
|
@@ -301,10 +311,11 @@ module CandidApiClient
|
|
301
311
|
# limit: 1,
|
302
312
|
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
303
313
|
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
314
|
+
# provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
304
315
|
# as_rendering_provider: true,
|
305
316
|
# as_contracting_provider: true
|
306
317
|
# )
|
307
|
-
def get_all(limit: nil, page_token: nil, payer_uuid: nil, as_rendering_provider: nil,
|
318
|
+
def get_all(limit: nil, page_token: nil, payer_uuid: nil, provider_id: nil, as_rendering_provider: nil,
|
308
319
|
as_contracting_provider: nil, request_options: nil)
|
309
320
|
Async do
|
310
321
|
response = @request_client.conn.get do |req|
|
@@ -320,6 +331,7 @@ module CandidApiClient
|
|
320
331
|
"limit": limit,
|
321
332
|
"page_token": page_token,
|
322
333
|
"payer_uuid": payer_uuid,
|
334
|
+
"provider_id": provider_id,
|
323
335
|
"as_rendering_provider": as_rendering_provider,
|
324
336
|
"as_contracting_provider": as_contracting_provider
|
325
337
|
}.compact
|
@@ -17,18 +17,17 @@ module CandidApiClient
|
|
17
17
|
class Appointment
|
18
18
|
# @return [String]
|
19
19
|
attr_reader :id
|
20
|
-
# @return [String] The organization that owns this
|
20
|
+
# @return [String] The organization that owns this object.
|
21
21
|
attr_reader :organization_id
|
22
|
-
# @return [Boolean] True if the
|
23
|
-
#
|
24
|
-
# scan.
|
22
|
+
# @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
23
|
+
# search results but are returned in all other endpoints including scan.
|
25
24
|
attr_reader :deactivated
|
26
|
-
# @return [Integer] The version of the
|
27
|
-
#
|
25
|
+
# @return [Integer] The version of the object. Any update to any property of an object object will
|
26
|
+
# create a new version.
|
28
27
|
attr_reader :version
|
29
28
|
# @return [DateTime]
|
30
29
|
attr_reader :updated_at
|
31
|
-
# @return [String] The user ID of the user who last updated the
|
30
|
+
# @return [String] The user ID of the user who last updated the object.
|
32
31
|
attr_reader :updating_user_id
|
33
32
|
# @return [String] The Candid-defined patient identifier.
|
34
33
|
attr_reader :patient_id
|
@@ -82,14 +81,13 @@ module CandidApiClient
|
|
82
81
|
OMIT = Object.new
|
83
82
|
|
84
83
|
# @param id [String]
|
85
|
-
# @param organization_id [String] The organization that owns this
|
86
|
-
# @param deactivated [Boolean] True if the
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
90
|
-
# object will create a new version.
|
84
|
+
# @param organization_id [String] The organization that owns this object.
|
85
|
+
# @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
86
|
+
# search results but are returned in all other endpoints including scan.
|
87
|
+
# @param version [Integer] The version of the object. Any update to any property of an object object will
|
88
|
+
# create a new version.
|
91
89
|
# @param updated_at [DateTime]
|
92
|
-
# @param updating_user_id [String] The user ID of the user who last updated the
|
90
|
+
# @param updating_user_id [String] The user ID of the user who last updated the object.
|
93
91
|
# @param patient_id [String] The Candid-defined patient identifier.
|
94
92
|
# @param start_timestamp [DateTime]
|
95
93
|
# @param status [CandidApiClient::PreEncounter::Appointments::V1::Types::AppointmentStatus] Defaults to PENDING. If status is NOT_READY, work_queue must be set. If status
|
@@ -1,29 +1,29 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "../../requests"
|
4
|
-
require_relative "
|
4
|
+
require_relative "tags/client"
|
5
5
|
|
6
6
|
module CandidApiClient
|
7
7
|
module PreEncounter
|
8
8
|
class Client
|
9
|
-
# @return [CandidApiClient::PreEncounter::
|
9
|
+
# @return [CandidApiClient::PreEncounter::Tags::Client]
|
10
10
|
attr_reader :pre_encounter
|
11
11
|
|
12
12
|
# @param request_client [CandidApiClient::RequestClient]
|
13
13
|
# @return [CandidApiClient::PreEncounter::Client]
|
14
14
|
def initialize(request_client:)
|
15
|
-
@pre_encounter = CandidApiClient::PreEncounter::
|
15
|
+
@pre_encounter = CandidApiClient::PreEncounter::Tags::Client.new(request_client: request_client)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
19
|
class AsyncClient
|
20
|
-
# @return [CandidApiClient::PreEncounter::
|
20
|
+
# @return [CandidApiClient::PreEncounter::Tags::AsyncClient]
|
21
21
|
attr_reader :pre_encounter
|
22
22
|
|
23
23
|
# @param request_client [CandidApiClient::AsyncRequestClient]
|
24
24
|
# @return [CandidApiClient::PreEncounter::AsyncClient]
|
25
25
|
def initialize(request_client:)
|
26
|
-
@pre_encounter = CandidApiClient::PreEncounter::
|
26
|
+
@pre_encounter = CandidApiClient::PreEncounter::Tags::AsyncClient.new(request_client: request_client)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "date"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module PreEncounter
|
9
|
+
module Common
|
10
|
+
module Types
|
11
|
+
class BaseModel
|
12
|
+
# @return [String] The organization that owns this object.
|
13
|
+
attr_reader :organization_id
|
14
|
+
# @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
15
|
+
# search results but are returned in all other endpoints including scan.
|
16
|
+
attr_reader :deactivated
|
17
|
+
# @return [Integer] The version of the object. Any update to any property of an object object will
|
18
|
+
# create a new version.
|
19
|
+
attr_reader :version
|
20
|
+
# @return [DateTime]
|
21
|
+
attr_reader :updated_at
|
22
|
+
# @return [String] The user ID of the user who last updated the object.
|
23
|
+
attr_reader :updating_user_id
|
24
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
25
|
+
attr_reader :additional_properties
|
26
|
+
# @return [Object]
|
27
|
+
attr_reader :_field_set
|
28
|
+
protected :_field_set
|
29
|
+
|
30
|
+
OMIT = Object.new
|
31
|
+
|
32
|
+
# @param organization_id [String] The organization that owns this object.
|
33
|
+
# @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
34
|
+
# search results but are returned in all other endpoints including scan.
|
35
|
+
# @param version [Integer] The version of the object. Any update to any property of an object object will
|
36
|
+
# create a new version.
|
37
|
+
# @param updated_at [DateTime]
|
38
|
+
# @param updating_user_id [String] The user ID of the user who last updated the object.
|
39
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
40
|
+
# @return [CandidApiClient::PreEncounter::Common::Types::BaseModel]
|
41
|
+
def initialize(organization_id:, deactivated:, version:, updated_at:, updating_user_id:,
|
42
|
+
additional_properties: nil)
|
43
|
+
@organization_id = organization_id
|
44
|
+
@deactivated = deactivated
|
45
|
+
@version = version
|
46
|
+
@updated_at = updated_at
|
47
|
+
@updating_user_id = updating_user_id
|
48
|
+
@additional_properties = additional_properties
|
49
|
+
@_field_set = {
|
50
|
+
"organization_id": organization_id,
|
51
|
+
"deactivated": deactivated,
|
52
|
+
"version": version,
|
53
|
+
"updated_at": updated_at,
|
54
|
+
"updating_user_id": updating_user_id
|
55
|
+
}
|
56
|
+
end
|
57
|
+
|
58
|
+
# Deserialize a JSON object to an instance of BaseModel
|
59
|
+
#
|
60
|
+
# @param json_object [String]
|
61
|
+
# @return [CandidApiClient::PreEncounter::Common::Types::BaseModel]
|
62
|
+
def self.from_json(json_object:)
|
63
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
64
|
+
parsed_json = JSON.parse(json_object)
|
65
|
+
organization_id = struct["organization_id"]
|
66
|
+
deactivated = struct["deactivated"]
|
67
|
+
version = struct["version"]
|
68
|
+
updated_at = (DateTime.parse(parsed_json["updated_at"]) unless parsed_json["updated_at"].nil?)
|
69
|
+
updating_user_id = struct["updating_user_id"]
|
70
|
+
new(
|
71
|
+
organization_id: organization_id,
|
72
|
+
deactivated: deactivated,
|
73
|
+
version: version,
|
74
|
+
updated_at: updated_at,
|
75
|
+
updating_user_id: updating_user_id,
|
76
|
+
additional_properties: struct
|
77
|
+
)
|
78
|
+
end
|
79
|
+
|
80
|
+
# Serialize an instance of BaseModel to a JSON object
|
81
|
+
#
|
82
|
+
# @return [String]
|
83
|
+
def to_json(*_args)
|
84
|
+
@_field_set&.to_json
|
85
|
+
end
|
86
|
+
|
87
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
88
|
+
# hash and check each fields type against the current object's property
|
89
|
+
# definitions.
|
90
|
+
#
|
91
|
+
# @param obj [Object]
|
92
|
+
# @return [Void]
|
93
|
+
def self.validate_raw(obj:)
|
94
|
+
obj.organization_id.is_a?(String) != false || raise("Passed value for field obj.organization_id is not the expected type, validation failed.")
|
95
|
+
obj.deactivated.is_a?(Boolean) != false || raise("Passed value for field obj.deactivated is not the expected type, validation failed.")
|
96
|
+
obj.version.is_a?(Integer) != false || raise("Passed value for field obj.version is not the expected type, validation failed.")
|
97
|
+
obj.updated_at.is_a?(DateTime) != false || raise("Passed value for field obj.updated_at is not the expected type, validation failed.")
|
98
|
+
obj.updating_user_id.is_a?(String) != false || raise("Passed value for field obj.updating_user_id is not the expected type, validation failed.")
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
data/lib/candidhealth/pre_encounter/common/types/{not_found_error_body.rb → error_base_4_xx.rb}
RENAMED
@@ -7,11 +7,11 @@ module CandidApiClient
|
|
7
7
|
module PreEncounter
|
8
8
|
module Common
|
9
9
|
module Types
|
10
|
-
class
|
11
|
-
# @return [String]
|
12
|
-
attr_reader :code
|
10
|
+
class ErrorBase4Xx
|
13
11
|
# @return [String]
|
14
12
|
attr_reader :message
|
13
|
+
# @return [Object]
|
14
|
+
attr_reader :data
|
15
15
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
16
16
|
attr_reader :additional_properties
|
17
17
|
# @return [Object]
|
@@ -20,33 +20,35 @@ module CandidApiClient
|
|
20
20
|
|
21
21
|
OMIT = Object.new
|
22
22
|
|
23
|
-
# @param code [String]
|
24
23
|
# @param message [String]
|
24
|
+
# @param data [Object]
|
25
25
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
26
|
-
# @return [CandidApiClient::PreEncounter::Common::Types::
|
27
|
-
def initialize(
|
28
|
-
@code = code
|
26
|
+
# @return [CandidApiClient::PreEncounter::Common::Types::ErrorBase4Xx]
|
27
|
+
def initialize(message:, data: OMIT, additional_properties: nil)
|
29
28
|
@message = message
|
29
|
+
@data = data if data != OMIT
|
30
30
|
@additional_properties = additional_properties
|
31
|
-
@_field_set = { "
|
31
|
+
@_field_set = { "message": message, "data": data }.reject do |_k, v|
|
32
|
+
v == OMIT
|
33
|
+
end
|
32
34
|
end
|
33
35
|
|
34
|
-
# Deserialize a JSON object to an instance of
|
36
|
+
# Deserialize a JSON object to an instance of ErrorBase4Xx
|
35
37
|
#
|
36
38
|
# @param json_object [String]
|
37
|
-
# @return [CandidApiClient::PreEncounter::Common::Types::
|
39
|
+
# @return [CandidApiClient::PreEncounter::Common::Types::ErrorBase4Xx]
|
38
40
|
def self.from_json(json_object:)
|
39
41
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
40
|
-
code = struct["code"]
|
41
42
|
message = struct["message"]
|
43
|
+
data = struct["data"]
|
42
44
|
new(
|
43
|
-
code: code,
|
44
45
|
message: message,
|
46
|
+
data: data,
|
45
47
|
additional_properties: struct
|
46
48
|
)
|
47
49
|
end
|
48
50
|
|
49
|
-
# Serialize an instance of
|
51
|
+
# Serialize an instance of ErrorBase4Xx to a JSON object
|
50
52
|
#
|
51
53
|
# @return [String]
|
52
54
|
def to_json(*_args)
|
@@ -60,8 +62,8 @@ module CandidApiClient
|
|
60
62
|
# @param obj [Object]
|
61
63
|
# @return [Void]
|
62
64
|
def self.validate_raw(obj:)
|
63
|
-
obj.code.is_a?(String) != false || raise("Passed value for field obj.code is not the expected type, validation failed.")
|
64
65
|
obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
66
|
+
obj.data&.is_a?(Object) != false || raise("Passed value for field obj.data is not the expected type, validation failed.")
|
65
67
|
end
|
66
68
|
end
|
67
69
|
end
|
@@ -8,12 +8,12 @@ module CandidApiClient
|
|
8
8
|
module Common
|
9
9
|
module Types
|
10
10
|
class VersionConflictErrorBody
|
11
|
-
# @return [String]
|
12
|
-
attr_reader :code
|
13
11
|
# @return [Integer]
|
14
12
|
attr_reader :latest_version
|
15
13
|
# @return [String]
|
16
14
|
attr_reader :message
|
15
|
+
# @return [Object]
|
16
|
+
attr_reader :data
|
17
17
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
18
18
|
attr_reader :additional_properties
|
19
19
|
# @return [Object]
|
@@ -22,17 +22,19 @@ module CandidApiClient
|
|
22
22
|
|
23
23
|
OMIT = Object.new
|
24
24
|
|
25
|
-
# @param code [String]
|
26
25
|
# @param latest_version [Integer]
|
27
26
|
# @param message [String]
|
27
|
+
# @param data [Object]
|
28
28
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
29
29
|
# @return [CandidApiClient::PreEncounter::Common::Types::VersionConflictErrorBody]
|
30
|
-
def initialize(
|
31
|
-
@
|
32
|
-
@latest_version = latest_version
|
30
|
+
def initialize(message:, latest_version: OMIT, data: OMIT, additional_properties: nil)
|
31
|
+
@latest_version = latest_version if latest_version != OMIT
|
33
32
|
@message = message
|
33
|
+
@data = data if data != OMIT
|
34
34
|
@additional_properties = additional_properties
|
35
|
-
@_field_set = { "
|
35
|
+
@_field_set = { "latest_version": latest_version, "message": message, "data": data }.reject do |_k, v|
|
36
|
+
v == OMIT
|
37
|
+
end
|
36
38
|
end
|
37
39
|
|
38
40
|
# Deserialize a JSON object to an instance of VersionConflictErrorBody
|
@@ -41,13 +43,13 @@ module CandidApiClient
|
|
41
43
|
# @return [CandidApiClient::PreEncounter::Common::Types::VersionConflictErrorBody]
|
42
44
|
def self.from_json(json_object:)
|
43
45
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
44
|
-
code = struct["code"]
|
45
46
|
latest_version = struct["latest_version"]
|
46
47
|
message = struct["message"]
|
48
|
+
data = struct["data"]
|
47
49
|
new(
|
48
|
-
code: code,
|
49
50
|
latest_version: latest_version,
|
50
51
|
message: message,
|
52
|
+
data: data,
|
51
53
|
additional_properties: struct
|
52
54
|
)
|
53
55
|
end
|
@@ -66,9 +68,9 @@ module CandidApiClient
|
|
66
68
|
# @param obj [Object]
|
67
69
|
# @return [Void]
|
68
70
|
def self.validate_raw(obj:)
|
69
|
-
obj.
|
70
|
-
obj.latest_version.is_a?(Integer) != false || raise("Passed value for field obj.latest_version is not the expected type, validation failed.")
|
71
|
+
obj.latest_version&.is_a?(Integer) != false || raise("Passed value for field obj.latest_version is not the expected type, validation failed.")
|
71
72
|
obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
73
|
+
obj.data&.is_a?(Object) != false || raise("Passed value for field obj.data is not the expected type, validation failed.")
|
72
74
|
end
|
73
75
|
end
|
74
76
|
end
|
@@ -20,17 +20,17 @@ module CandidApiClient
|
|
20
20
|
class Coverage
|
21
21
|
# @return [String]
|
22
22
|
attr_reader :id
|
23
|
-
# @return [String] The organization that owns this
|
23
|
+
# @return [String] The organization that owns this object.
|
24
24
|
attr_reader :organization_id
|
25
|
-
# @return [Boolean] True if the
|
25
|
+
# @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
26
26
|
# search results but are returned in all other endpoints including scan.
|
27
27
|
attr_reader :deactivated
|
28
|
-
# @return [Integer] The version of the
|
29
|
-
#
|
28
|
+
# @return [Integer] The version of the object. Any update to any property of an object object will
|
29
|
+
# create a new version.
|
30
30
|
attr_reader :version
|
31
31
|
# @return [DateTime]
|
32
32
|
attr_reader :updated_at
|
33
|
-
# @return [String] The user ID of the user who last updated the
|
33
|
+
# @return [String] The user ID of the user who last updated the object.
|
34
34
|
attr_reader :updating_user_id
|
35
35
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageStatus] The status indiciating if the coverage is active or not.
|
36
36
|
attr_reader :status
|
@@ -62,13 +62,13 @@ module CandidApiClient
|
|
62
62
|
OMIT = Object.new
|
63
63
|
|
64
64
|
# @param id [String]
|
65
|
-
# @param organization_id [String] The organization that owns this
|
66
|
-
# @param deactivated [Boolean] True if the
|
65
|
+
# @param organization_id [String] The organization that owns this object.
|
66
|
+
# @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
67
67
|
# search results but are returned in all other endpoints including scan.
|
68
|
-
# @param version [Integer] The version of the
|
69
|
-
#
|
68
|
+
# @param version [Integer] The version of the object. Any update to any property of an object object will
|
69
|
+
# create a new version.
|
70
70
|
# @param updated_at [DateTime]
|
71
|
-
# @param updating_user_id [String] The user ID of the user who last updated the
|
71
|
+
# @param updating_user_id [String] The user ID of the user who last updated the object.
|
72
72
|
# @param status [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageStatus] The status indiciating if the coverage is active or not.
|
73
73
|
# @param subscriber [CandidApiClient::PreEncounter::Coverages::V1::Types::Subscriber] The party who has signed-up for or 'owns' the contractual relationship to the
|
74
74
|
# policy or to whom the benefit of the policy for services rendered to them or
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../requests"
|
4
|
+
require_relative "v_1/client"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module PreEncounter
|
8
|
+
module Notes
|
9
|
+
class Client
|
10
|
+
# @return [CandidApiClient::PreEncounter::Notes::V1::V1Client]
|
11
|
+
attr_reader :v_1
|
12
|
+
|
13
|
+
# @param request_client [CandidApiClient::RequestClient]
|
14
|
+
# @return [CandidApiClient::PreEncounter::Notes::Client]
|
15
|
+
def initialize(request_client:)
|
16
|
+
@v_1 = CandidApiClient::PreEncounter::Notes::V1::V1Client.new(request_client: request_client)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class AsyncClient
|
21
|
+
# @return [CandidApiClient::PreEncounter::Notes::V1::AsyncV1Client]
|
22
|
+
attr_reader :v_1
|
23
|
+
|
24
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
25
|
+
# @return [CandidApiClient::PreEncounter::Notes::AsyncClient]
|
26
|
+
def initialize(request_client:)
|
27
|
+
@v_1 = CandidApiClient::PreEncounter::Notes::V1::AsyncV1Client.new(request_client: request_client)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|