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
data/lib/types_export.rb
CHANGED
@@ -303,6 +303,8 @@ require_relative "candidhealth/pre_encounter/lists/v_1/types/patient_list_item"
|
|
303
303
|
require_relative "candidhealth/pre_encounter/lists/v_1/types/patient_list_page"
|
304
304
|
require_relative "candidhealth/pre_encounter/lists/v_1/types/appointment_list_item"
|
305
305
|
require_relative "candidhealth/pre_encounter/lists/v_1/types/appointment_list_page"
|
306
|
+
require_relative "candidhealth/pre_encounter/notes/v_1/types/mutable_note"
|
307
|
+
require_relative "candidhealth/pre_encounter/notes/v_1/types/note"
|
306
308
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/marital_status"
|
307
309
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/external_provenance"
|
308
310
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/contact"
|
@@ -312,13 +314,13 @@ require_relative "candidhealth/pre_encounter/patients/v_1/types/mutable_patient"
|
|
312
314
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn"
|
313
315
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/patient"
|
314
316
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/patient_page"
|
315
|
-
require_relative "candidhealth/pre_encounter/patients/v_1/types/potential_duplicate_patient"
|
316
|
-
require_relative "candidhealth/pre_encounter/patients/v_1/types/potential_duplicate_patients_error_body"
|
317
|
-
require_relative "candidhealth/pre_encounter/patients/v_1/types/invalid_mrn_error_body"
|
318
317
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/authorization_unit"
|
319
318
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/authorization"
|
320
319
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/referral"
|
321
320
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/guarantor"
|
321
|
+
require_relative "candidhealth/pre_encounter/tags/v_1/types/mutable_tag"
|
322
|
+
require_relative "candidhealth/pre_encounter/tags/v_1/types/tag"
|
323
|
+
require_relative "candidhealth/pre_encounter/tags/v_1/types/tag_page"
|
322
324
|
require_relative "candidhealth/claims/types/claim"
|
323
325
|
require_relative "candidhealth/claims/types/claim_status"
|
324
326
|
require_relative "candidhealth/commons/types/primitive"
|
@@ -412,6 +414,7 @@ require_relative "candidhealth/tags/types/tag_color_enum"
|
|
412
414
|
require_relative "candidhealth/tasks/commons/types/task_status"
|
413
415
|
require_relative "candidhealth/tasks/commons/types/task_type"
|
414
416
|
require_relative "candidhealth/tasks/commons/types/task_category"
|
417
|
+
require_relative "candidhealth/pre_encounter/common/types/base_model"
|
415
418
|
require_relative "candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association"
|
416
419
|
require_relative "candidhealth/pre_encounter/common/types/relationship"
|
417
420
|
require_relative "candidhealth/pre_encounter/common/types/gender"
|
@@ -428,8 +431,7 @@ require_relative "candidhealth/pre_encounter/common/types/period"
|
|
428
431
|
require_relative "candidhealth/pre_encounter/common/types/contact_point_use"
|
429
432
|
require_relative "candidhealth/pre_encounter/common/types/contact_point"
|
430
433
|
require_relative "candidhealth/pre_encounter/common/types/resource_page"
|
431
|
-
require_relative "candidhealth/pre_encounter/common/types/
|
432
|
-
require_relative "candidhealth/pre_encounter/common/types/not_found_error_body"
|
434
|
+
require_relative "candidhealth/pre_encounter/common/types/error_base_4_xx"
|
433
435
|
require_relative "candidhealth/pre_encounter/common/types/version_conflict_error_body"
|
434
436
|
require_relative "candidhealth/pre_encounter/common/types/additional_payer_information"
|
435
437
|
require_relative "candidhealth/pre_encounter/common/types/external_provider_type"
|
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.35.
|
4
|
+
version: 0.35.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -471,18 +471,18 @@ files:
|
|
471
471
|
- lib/candidhealth/pre_encounter/common/types/additional_payer_information.rb
|
472
472
|
- lib/candidhealth/pre_encounter/common/types/address.rb
|
473
473
|
- lib/candidhealth/pre_encounter/common/types/address_use.rb
|
474
|
+
- lib/candidhealth/pre_encounter/common/types/base_model.rb
|
474
475
|
- lib/candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association.rb
|
475
476
|
- lib/candidhealth/pre_encounter/common/types/contact_point.rb
|
476
477
|
- lib/candidhealth/pre_encounter/common/types/contact_point_use.rb
|
477
478
|
- lib/candidhealth/pre_encounter/common/types/disability_status.rb
|
478
|
-
- lib/candidhealth/pre_encounter/common/types/
|
479
|
+
- lib/candidhealth/pre_encounter/common/types/error_base_4_xx.rb
|
479
480
|
- lib/candidhealth/pre_encounter/common/types/ethnicity.rb
|
480
481
|
- lib/candidhealth/pre_encounter/common/types/external_provider.rb
|
481
482
|
- lib/candidhealth/pre_encounter/common/types/external_provider_type.rb
|
482
483
|
- lib/candidhealth/pre_encounter/common/types/gender.rb
|
483
484
|
- lib/candidhealth/pre_encounter/common/types/human_name.rb
|
484
485
|
- lib/candidhealth/pre_encounter/common/types/name_use.rb
|
485
|
-
- lib/candidhealth/pre_encounter/common/types/not_found_error_body.rb
|
486
486
|
- lib/candidhealth/pre_encounter/common/types/period.rb
|
487
487
|
- lib/candidhealth/pre_encounter/common/types/race.rb
|
488
488
|
- lib/candidhealth/pre_encounter/common/types/relationship.rb
|
@@ -525,6 +525,10 @@ files:
|
|
525
525
|
- lib/candidhealth/pre_encounter/lists/v_1/types/appointment_list_page.rb
|
526
526
|
- lib/candidhealth/pre_encounter/lists/v_1/types/patient_list_item.rb
|
527
527
|
- lib/candidhealth/pre_encounter/lists/v_1/types/patient_list_page.rb
|
528
|
+
- lib/candidhealth/pre_encounter/notes/client.rb
|
529
|
+
- lib/candidhealth/pre_encounter/notes/v_1/client.rb
|
530
|
+
- lib/candidhealth/pre_encounter/notes/v_1/types/mutable_note.rb
|
531
|
+
- lib/candidhealth/pre_encounter/notes/v_1/types/note.rb
|
528
532
|
- lib/candidhealth/pre_encounter/patients/client.rb
|
529
533
|
- lib/candidhealth/pre_encounter/patients/v_1/client.rb
|
530
534
|
- lib/candidhealth/pre_encounter/patients/v_1/types/authorization.rb
|
@@ -534,15 +538,17 @@ files:
|
|
534
538
|
- lib/candidhealth/pre_encounter/patients/v_1/types/external_provenance.rb
|
535
539
|
- lib/candidhealth/pre_encounter/patients/v_1/types/filing_order.rb
|
536
540
|
- lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb
|
537
|
-
- lib/candidhealth/pre_encounter/patients/v_1/types/invalid_mrn_error_body.rb
|
538
541
|
- lib/candidhealth/pre_encounter/patients/v_1/types/marital_status.rb
|
539
542
|
- lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb
|
540
543
|
- lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb
|
541
544
|
- lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb
|
542
545
|
- lib/candidhealth/pre_encounter/patients/v_1/types/patient_page.rb
|
543
|
-
- lib/candidhealth/pre_encounter/patients/v_1/types/potential_duplicate_patient.rb
|
544
|
-
- lib/candidhealth/pre_encounter/patients/v_1/types/potential_duplicate_patients_error_body.rb
|
545
546
|
- lib/candidhealth/pre_encounter/patients/v_1/types/referral.rb
|
547
|
+
- lib/candidhealth/pre_encounter/tags/client.rb
|
548
|
+
- lib/candidhealth/pre_encounter/tags/v_1/client.rb
|
549
|
+
- lib/candidhealth/pre_encounter/tags/v_1/types/mutable_tag.rb
|
550
|
+
- lib/candidhealth/pre_encounter/tags/v_1/types/tag.rb
|
551
|
+
- lib/candidhealth/pre_encounter/tags/v_1/types/tag_page.rb
|
546
552
|
- lib/candidhealth/remits/v_1/types/payee.rb
|
547
553
|
- lib/candidhealth/remits/v_1/types/payee_identifier.rb
|
548
554
|
- lib/candidhealth/service_facility/client.rb
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "ostruct"
|
4
|
-
require "json"
|
5
|
-
|
6
|
-
module CandidApiClient
|
7
|
-
module PreEncounter
|
8
|
-
module Common
|
9
|
-
module Types
|
10
|
-
class ErrorBase
|
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::PreEncounter::Common::Types::ErrorBase]
|
24
|
-
def initialize(message:, additional_properties: nil)
|
25
|
-
@message = message
|
26
|
-
@additional_properties = additional_properties
|
27
|
-
@_field_set = { "message": message }
|
28
|
-
end
|
29
|
-
|
30
|
-
# Deserialize a JSON object to an instance of ErrorBase
|
31
|
-
#
|
32
|
-
# @param json_object [String]
|
33
|
-
# @return [CandidApiClient::PreEncounter::Common::Types::ErrorBase]
|
34
|
-
def self.from_json(json_object:)
|
35
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
36
|
-
message = struct["message"]
|
37
|
-
new(message: message, additional_properties: struct)
|
38
|
-
end
|
39
|
-
|
40
|
-
# Serialize an instance of ErrorBase to a JSON object
|
41
|
-
#
|
42
|
-
# @return [String]
|
43
|
-
def to_json(*_args)
|
44
|
-
@_field_set&.to_json
|
45
|
-
end
|
46
|
-
|
47
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
48
|
-
# hash and check each fields type against the current object's property
|
49
|
-
# definitions.
|
50
|
-
#
|
51
|
-
# @param obj [Object]
|
52
|
-
# @return [Void]
|
53
|
-
def self.validate_raw(obj:)
|
54
|
-
obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
@@ -1,72 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "ostruct"
|
4
|
-
require "json"
|
5
|
-
|
6
|
-
module CandidApiClient
|
7
|
-
module PreEncounter
|
8
|
-
module Patients
|
9
|
-
module V1
|
10
|
-
module Types
|
11
|
-
class PotentialDuplicatePatient
|
12
|
-
# @return [String]
|
13
|
-
attr_reader :existing_patient_id
|
14
|
-
# @return [String]
|
15
|
-
attr_reader :existing_patient_mrn
|
16
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
17
|
-
attr_reader :additional_properties
|
18
|
-
# @return [Object]
|
19
|
-
attr_reader :_field_set
|
20
|
-
protected :_field_set
|
21
|
-
|
22
|
-
OMIT = Object.new
|
23
|
-
|
24
|
-
# @param existing_patient_id [String]
|
25
|
-
# @param existing_patient_mrn [String]
|
26
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
27
|
-
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::PotentialDuplicatePatient]
|
28
|
-
def initialize(existing_patient_id:, existing_patient_mrn:, additional_properties: nil)
|
29
|
-
@existing_patient_id = existing_patient_id
|
30
|
-
@existing_patient_mrn = existing_patient_mrn
|
31
|
-
@additional_properties = additional_properties
|
32
|
-
@_field_set = { "existing_patient_id": existing_patient_id, "existing_patient_mrn": existing_patient_mrn }
|
33
|
-
end
|
34
|
-
|
35
|
-
# Deserialize a JSON object to an instance of PotentialDuplicatePatient
|
36
|
-
#
|
37
|
-
# @param json_object [String]
|
38
|
-
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::PotentialDuplicatePatient]
|
39
|
-
def self.from_json(json_object:)
|
40
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
41
|
-
existing_patient_id = struct["existing_patient_id"]
|
42
|
-
existing_patient_mrn = struct["existing_patient_mrn"]
|
43
|
-
new(
|
44
|
-
existing_patient_id: existing_patient_id,
|
45
|
-
existing_patient_mrn: existing_patient_mrn,
|
46
|
-
additional_properties: struct
|
47
|
-
)
|
48
|
-
end
|
49
|
-
|
50
|
-
# Serialize an instance of PotentialDuplicatePatient to a JSON object
|
51
|
-
#
|
52
|
-
# @return [String]
|
53
|
-
def to_json(*_args)
|
54
|
-
@_field_set&.to_json
|
55
|
-
end
|
56
|
-
|
57
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
58
|
-
# hash and check each fields type against the current object's property
|
59
|
-
# definitions.
|
60
|
-
#
|
61
|
-
# @param obj [Object]
|
62
|
-
# @return [Void]
|
63
|
-
def self.validate_raw(obj:)
|
64
|
-
obj.existing_patient_id.is_a?(String) != false || raise("Passed value for field obj.existing_patient_id is not the expected type, validation failed.")
|
65
|
-
obj.existing_patient_mrn.is_a?(String) != false || raise("Passed value for field obj.existing_patient_mrn is not the expected type, validation failed.")
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
data/lib/candidhealth/pre_encounter/patients/v_1/types/potential_duplicate_patients_error_body.rb
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "potential_duplicate_patient"
|
4
|
-
require "ostruct"
|
5
|
-
require "json"
|
6
|
-
|
7
|
-
module CandidApiClient
|
8
|
-
module PreEncounter
|
9
|
-
module Patients
|
10
|
-
module V1
|
11
|
-
module Types
|
12
|
-
class PotentialDuplicatePatientsErrorBody
|
13
|
-
# @return [String]
|
14
|
-
attr_reader :code
|
15
|
-
# @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::PotentialDuplicatePatient>]
|
16
|
-
attr_reader :potential_duplicates
|
17
|
-
# @return [String]
|
18
|
-
attr_reader :message
|
19
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
20
|
-
attr_reader :additional_properties
|
21
|
-
# @return [Object]
|
22
|
-
attr_reader :_field_set
|
23
|
-
protected :_field_set
|
24
|
-
|
25
|
-
OMIT = Object.new
|
26
|
-
|
27
|
-
# @param code [String]
|
28
|
-
# @param potential_duplicates [Array<CandidApiClient::PreEncounter::Patients::V1::Types::PotentialDuplicatePatient>]
|
29
|
-
# @param message [String]
|
30
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
31
|
-
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::PotentialDuplicatePatientsErrorBody]
|
32
|
-
def initialize(code:, potential_duplicates:, message:, additional_properties: nil)
|
33
|
-
@code = code
|
34
|
-
@potential_duplicates = potential_duplicates
|
35
|
-
@message = message
|
36
|
-
@additional_properties = additional_properties
|
37
|
-
@_field_set = { "code": code, "potential_duplicates": potential_duplicates, "message": message }
|
38
|
-
end
|
39
|
-
|
40
|
-
# Deserialize a JSON object to an instance of PotentialDuplicatePatientsErrorBody
|
41
|
-
#
|
42
|
-
# @param json_object [String]
|
43
|
-
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::PotentialDuplicatePatientsErrorBody]
|
44
|
-
def self.from_json(json_object:)
|
45
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
46
|
-
parsed_json = JSON.parse(json_object)
|
47
|
-
code = struct["code"]
|
48
|
-
potential_duplicates = parsed_json["potential_duplicates"]&.map do |item|
|
49
|
-
item = item.to_json
|
50
|
-
CandidApiClient::PreEncounter::Patients::V1::Types::PotentialDuplicatePatient.from_json(json_object: item)
|
51
|
-
end
|
52
|
-
message = struct["message"]
|
53
|
-
new(
|
54
|
-
code: code,
|
55
|
-
potential_duplicates: potential_duplicates,
|
56
|
-
message: message,
|
57
|
-
additional_properties: struct
|
58
|
-
)
|
59
|
-
end
|
60
|
-
|
61
|
-
# Serialize an instance of PotentialDuplicatePatientsErrorBody to a JSON object
|
62
|
-
#
|
63
|
-
# @return [String]
|
64
|
-
def to_json(*_args)
|
65
|
-
@_field_set&.to_json
|
66
|
-
end
|
67
|
-
|
68
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
69
|
-
# hash and check each fields type against the current object's property
|
70
|
-
# definitions.
|
71
|
-
#
|
72
|
-
# @param obj [Object]
|
73
|
-
# @return [Void]
|
74
|
-
def self.validate_raw(obj:)
|
75
|
-
obj.code.is_a?(String) != false || raise("Passed value for field obj.code is not the expected type, validation failed.")
|
76
|
-
obj.potential_duplicates.is_a?(Array) != false || raise("Passed value for field obj.potential_duplicates is not the expected type, validation failed.")
|
77
|
-
obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|