candidhealth 0.46.1 → 1.0.0
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 +0 -42
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +13 -13
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_eligibility_check_response.rb +10 -10
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/latest_eligibility_check.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage.rb +4 -4
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +140 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/batch_eligibility_response.rb +75 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check.rb +18 -6
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error.rb +80 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error_details.rb +112 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error_source.rb +17 -0
- data/lib/candidhealth/pre_encounter/{coverages → eligibility_checks}/v_1/types/eligibility_check_metadata.rb +7 -7
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_page.rb +98 -0
- data/lib/candidhealth/pre_encounter/{coverages → eligibility_checks}/v_1/types/eligibility_check_status.rb +2 -2
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_request.rb +18 -2
- data/lib/candidhealth/pre_encounter/{coverages → eligibility_checks}/v_1/types/eligibility_status.rb +2 -1
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/parsed_response.rb +4 -4
- data/lib/candidhealth/service_lines/v_2/types/denial_reason_content.rb +1 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +9 -5
- metadata +10 -6
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/eligibility_check.rb +0 -116
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: 1.0.0
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -599,10 +599,6 @@ files:
|
|
599
599
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value.rb
|
600
600
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value_unit.rb
|
601
601
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/coverages_page.rb
|
602
|
-
- lib/candidhealth/pre_encounter/coverages/v_1/types/eligibility_check.rb
|
603
|
-
- lib/candidhealth/pre_encounter/coverages/v_1/types/eligibility_check_metadata.rb
|
604
|
-
- lib/candidhealth/pre_encounter/coverages/v_1/types/eligibility_check_status.rb
|
605
|
-
- lib/candidhealth/pre_encounter/coverages/v_1/types/eligibility_status.rb
|
606
602
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/expanded_member_info.rb
|
607
603
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb
|
608
604
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_type_code.rb
|
@@ -622,9 +618,17 @@ files:
|
|
622
618
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb
|
623
619
|
- lib/candidhealth/pre_encounter/eligibility_checks/client.rb
|
624
620
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb
|
621
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/batch_eligibility_response.rb
|
625
622
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check.rb
|
623
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error.rb
|
624
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error_details.rb
|
625
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error_source.rb
|
626
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_metadata.rb
|
627
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_page.rb
|
628
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_status.rb
|
626
629
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_request.rb
|
627
630
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_response.rb
|
631
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_status.rb
|
628
632
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/encounter.rb
|
629
633
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/individual_provider.rb
|
630
634
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/organization_provider.rb
|
@@ -1,116 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "eligibility_status"
|
4
|
-
require_relative "plan_metadata"
|
5
|
-
require_relative "coverage_benefits"
|
6
|
-
require "ostruct"
|
7
|
-
require "json"
|
8
|
-
|
9
|
-
module CandidApiClient
|
10
|
-
module PreEncounter
|
11
|
-
module Coverages
|
12
|
-
module V1
|
13
|
-
module Types
|
14
|
-
class EligibilityCheck
|
15
|
-
# @return [Object]
|
16
|
-
attr_reader :raw_json
|
17
|
-
# @return [Object]
|
18
|
-
attr_reader :errors
|
19
|
-
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::EligibilityStatus]
|
20
|
-
attr_reader :eligibility_status
|
21
|
-
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::PlanMetadata]
|
22
|
-
attr_reader :plan_metadata
|
23
|
-
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageBenefits]
|
24
|
-
attr_reader :benefits
|
25
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
26
|
-
attr_reader :additional_properties
|
27
|
-
# @return [Object]
|
28
|
-
attr_reader :_field_set
|
29
|
-
protected :_field_set
|
30
|
-
|
31
|
-
OMIT = Object.new
|
32
|
-
|
33
|
-
# @param raw_json [Object]
|
34
|
-
# @param errors [Object]
|
35
|
-
# @param eligibility_status [CandidApiClient::PreEncounter::Coverages::V1::Types::EligibilityStatus]
|
36
|
-
# @param plan_metadata [CandidApiClient::PreEncounter::Coverages::V1::Types::PlanMetadata]
|
37
|
-
# @param benefits [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageBenefits]
|
38
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
39
|
-
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::EligibilityCheck]
|
40
|
-
def initialize(raw_json:, eligibility_status:, errors: OMIT, plan_metadata: OMIT, benefits: OMIT,
|
41
|
-
additional_properties: nil)
|
42
|
-
@raw_json = raw_json
|
43
|
-
@errors = errors if errors != OMIT
|
44
|
-
@eligibility_status = eligibility_status
|
45
|
-
@plan_metadata = plan_metadata if plan_metadata != OMIT
|
46
|
-
@benefits = benefits if benefits != OMIT
|
47
|
-
@additional_properties = additional_properties
|
48
|
-
@_field_set = {
|
49
|
-
"raw_json": raw_json,
|
50
|
-
"errors": errors,
|
51
|
-
"eligibility_status": eligibility_status,
|
52
|
-
"plan_metadata": plan_metadata,
|
53
|
-
"benefits": benefits
|
54
|
-
}.reject do |_k, v|
|
55
|
-
v == OMIT
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# Deserialize a JSON object to an instance of EligibilityCheck
|
60
|
-
#
|
61
|
-
# @param json_object [String]
|
62
|
-
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::EligibilityCheck]
|
63
|
-
def self.from_json(json_object:)
|
64
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
65
|
-
parsed_json = JSON.parse(json_object)
|
66
|
-
raw_json = struct["raw_json"]
|
67
|
-
errors = struct["errors"]
|
68
|
-
eligibility_status = struct["eligibility_status"]
|
69
|
-
if parsed_json["plan_metadata"].nil?
|
70
|
-
plan_metadata = nil
|
71
|
-
else
|
72
|
-
plan_metadata = parsed_json["plan_metadata"].to_json
|
73
|
-
plan_metadata = CandidApiClient::PreEncounter::Coverages::V1::Types::PlanMetadata.from_json(json_object: plan_metadata)
|
74
|
-
end
|
75
|
-
if parsed_json["benefits"].nil?
|
76
|
-
benefits = nil
|
77
|
-
else
|
78
|
-
benefits = parsed_json["benefits"].to_json
|
79
|
-
benefits = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageBenefits.from_json(json_object: benefits)
|
80
|
-
end
|
81
|
-
new(
|
82
|
-
raw_json: raw_json,
|
83
|
-
errors: errors,
|
84
|
-
eligibility_status: eligibility_status,
|
85
|
-
plan_metadata: plan_metadata,
|
86
|
-
benefits: benefits,
|
87
|
-
additional_properties: struct
|
88
|
-
)
|
89
|
-
end
|
90
|
-
|
91
|
-
# Serialize an instance of EligibilityCheck to a JSON object
|
92
|
-
#
|
93
|
-
# @return [String]
|
94
|
-
def to_json(*_args)
|
95
|
-
@_field_set&.to_json
|
96
|
-
end
|
97
|
-
|
98
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
99
|
-
# hash and check each fields type against the current object's property
|
100
|
-
# definitions.
|
101
|
-
#
|
102
|
-
# @param obj [Object]
|
103
|
-
# @return [Void]
|
104
|
-
def self.validate_raw(obj:)
|
105
|
-
obj.raw_json.is_a?(Object) != false || raise("Passed value for field obj.raw_json is not the expected type, validation failed.")
|
106
|
-
obj.errors&.is_a?(Object) != false || raise("Passed value for field obj.errors is not the expected type, validation failed.")
|
107
|
-
obj.eligibility_status.is_a?(CandidApiClient::PreEncounter::Coverages::V1::Types::EligibilityStatus) != false || raise("Passed value for field obj.eligibility_status is not the expected type, validation failed.")
|
108
|
-
obj.plan_metadata.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::PlanMetadata.validate_raw(obj: obj.plan_metadata)
|
109
|
-
obj.benefits.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageBenefits.validate_raw(obj: obj.benefits)
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
114
|
-
end
|
115
|
-
end
|
116
|
-
end
|