candidhealth 0.38.2 → 0.39.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.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/charge_capture/v_1/client.rb +4 -4
  3. data/lib/candidhealth/charge_capture_bundles/client.rb +30 -0
  4. data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +227 -0
  5. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_bundle_error.rb +112 -0
  6. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle.rb +116 -0
  7. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_page.rb +88 -0
  8. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_status.rb +16 -0
  9. data/lib/candidhealth/commons/types/network_type.rb +2 -0
  10. data/lib/candidhealth/commons/types/not_implemented_error_message.rb +60 -0
  11. data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
  12. data/lib/candidhealth/encounters/v_4/client.rb +26 -26
  13. data/lib/candidhealth/guarantor/v_1/client.rb +2 -2
  14. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +144 -12
  15. data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefit_type.rb +3 -1
  16. data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefits_related_entity.rb +99 -0
  17. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_benefits.rb +14 -2
  18. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_level.rb +3 -2
  19. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value.rb +11 -2
  20. data/lib/candidhealth/pre_encounter/coverages/v_1/types/eligibility_check_status.rb +0 -1
  21. data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_coverage_details.rb +38 -12
  22. data/lib/candidhealth/pre_encounter/coverages/v_1/types/related_entity_contact.rb +74 -0
  23. data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
  24. data/lib/candidhealth/x_12/v_1/types/rarc.rb +2 -0
  25. data/lib/candidhealth.rb +7 -0
  26. data/lib/requests.rb +2 -2
  27. data/lib/types_export.rb +7 -0
  28. metadata +11 -2
@@ -15,6 +15,8 @@ module CandidApiClient
15
15
  attr_reader :individual
16
16
  # @return [Float]
17
17
  attr_reader :employee_and_spouse
18
+ # @return [Float]
19
+ attr_reader :employee_and_children
18
20
  # @return [OpenStruct] Additional properties unmapped to the current class definition
19
21
  attr_reader :additional_properties
20
22
  # @return [Object]
@@ -26,17 +28,21 @@ module CandidApiClient
26
28
  # @param family [Float]
27
29
  # @param individual [Float]
28
30
  # @param employee_and_spouse [Float]
31
+ # @param employee_and_children [Float]
29
32
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
33
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
31
- def initialize(family: OMIT, individual: OMIT, employee_and_spouse: OMIT, additional_properties: nil)
34
+ def initialize(family: OMIT, individual: OMIT, employee_and_spouse: OMIT, employee_and_children: OMIT,
35
+ additional_properties: nil)
32
36
  @family = family if family != OMIT
33
37
  @individual = individual if individual != OMIT
34
38
  @employee_and_spouse = employee_and_spouse if employee_and_spouse != OMIT
39
+ @employee_and_children = employee_and_children if employee_and_children != OMIT
35
40
  @additional_properties = additional_properties
36
41
  @_field_set = {
37
42
  "family": family,
38
43
  "individual": individual,
39
- "employeeAndSpouse": employee_and_spouse
44
+ "employeeAndSpouse": employee_and_spouse,
45
+ "employeeAndChildren": employee_and_children
40
46
  }.reject do |_k, v|
41
47
  v == OMIT
42
48
  end
@@ -51,10 +57,12 @@ module CandidApiClient
51
57
  family = struct["family"]
52
58
  individual = struct["individual"]
53
59
  employee_and_spouse = struct["employeeAndSpouse"]
60
+ employee_and_children = struct["employeeAndChildren"]
54
61
  new(
55
62
  family: family,
56
63
  individual: individual,
57
64
  employee_and_spouse: employee_and_spouse,
65
+ employee_and_children: employee_and_children,
58
66
  additional_properties: struct
59
67
  )
60
68
  end
@@ -76,6 +84,7 @@ module CandidApiClient
76
84
  obj.family&.is_a?(Float) != false || raise("Passed value for field obj.family is not the expected type, validation failed.")
77
85
  obj.individual&.is_a?(Float) != false || raise("Passed value for field obj.individual is not the expected type, validation failed.")
78
86
  obj.employee_and_spouse&.is_a?(Float) != false || raise("Passed value for field obj.employee_and_spouse is not the expected type, validation failed.")
87
+ obj.employee_and_children&.is_a?(Float) != false || raise("Passed value for field obj.employee_and_children is not the expected type, validation failed.")
79
88
  end
80
89
  end
81
90
  end
@@ -7,7 +7,6 @@ module CandidApiClient
7
7
  module Types
8
8
  # enum to represent the statuses of eligibility checks
9
9
  class EligibilityCheckStatus
10
- CREATED = "CREATED"
11
10
  COMPLETED = "COMPLETED"
12
11
  FAILED = "FAILED"
13
12
  PENDING = "PENDING"
@@ -13,15 +13,19 @@ module CandidApiClient
13
13
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
14
14
  attr_reader :deductible
15
15
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
16
+ attr_reader :deductible_contract
17
+ # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
16
18
  attr_reader :deductible_remaining
17
19
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
18
20
  attr_reader :deductible_year_to_date
19
21
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
20
22
  attr_reader :oop_max
21
23
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
24
+ attr_reader :oop_max_contract
25
+ # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
22
26
  attr_reader :oop_max_remaining
23
27
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
24
- attr_reader :oop_year_to_date
28
+ attr_reader :oop_max_year_to_date
25
29
  # @return [String]
26
30
  attr_reader :additional_notes
27
31
  # @return [OpenStruct] Additional properties unmapped to the current class definition
@@ -33,31 +37,37 @@ module CandidApiClient
33
37
  OMIT = Object.new
34
38
 
35
39
  # @param deductible [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
40
+ # @param deductible_contract [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
36
41
  # @param deductible_remaining [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
37
42
  # @param deductible_year_to_date [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
38
43
  # @param oop_max [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
44
+ # @param oop_max_contract [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
39
45
  # @param oop_max_remaining [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
40
- # @param oop_year_to_date [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
46
+ # @param oop_max_year_to_date [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue]
41
47
  # @param additional_notes [String]
42
48
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
43
49
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::PlanCoverageDetails]
44
- def initialize(deductible: OMIT, deductible_remaining: OMIT, deductible_year_to_date: OMIT, oop_max: OMIT,
45
- oop_max_remaining: OMIT, oop_year_to_date: OMIT, additional_notes: OMIT, additional_properties: nil)
50
+ def initialize(deductible: OMIT, deductible_contract: OMIT, deductible_remaining: OMIT,
51
+ deductible_year_to_date: OMIT, oop_max: OMIT, oop_max_contract: OMIT, oop_max_remaining: OMIT, oop_max_year_to_date: OMIT, additional_notes: OMIT, additional_properties: nil)
46
52
  @deductible = deductible if deductible != OMIT
53
+ @deductible_contract = deductible_contract if deductible_contract != OMIT
47
54
  @deductible_remaining = deductible_remaining if deductible_remaining != OMIT
48
55
  @deductible_year_to_date = deductible_year_to_date if deductible_year_to_date != OMIT
49
56
  @oop_max = oop_max if oop_max != OMIT
57
+ @oop_max_contract = oop_max_contract if oop_max_contract != OMIT
50
58
  @oop_max_remaining = oop_max_remaining if oop_max_remaining != OMIT
51
- @oop_year_to_date = oop_year_to_date if oop_year_to_date != OMIT
59
+ @oop_max_year_to_date = oop_max_year_to_date if oop_max_year_to_date != OMIT
52
60
  @additional_notes = additional_notes if additional_notes != OMIT
53
61
  @additional_properties = additional_properties
54
62
  @_field_set = {
55
63
  "deductible": deductible,
64
+ "deductible_contract": deductible_contract,
56
65
  "deductible_remaining": deductible_remaining,
57
66
  "deductible_year_to_date": deductible_year_to_date,
58
67
  "oop_max": oop_max,
68
+ "oop_max_contract": oop_max_contract,
59
69
  "oop_max_remaining": oop_max_remaining,
60
- "oop_year_to_date": oop_year_to_date,
70
+ "oop_max_year_to_date": oop_max_year_to_date,
61
71
  "additional_notes": additional_notes
62
72
  }.reject do |_k, v|
63
73
  v == OMIT
@@ -77,6 +87,12 @@ module CandidApiClient
77
87
  deductible = parsed_json["deductible"].to_json
78
88
  deductible = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.from_json(json_object: deductible)
79
89
  end
90
+ if parsed_json["deductible_contract"].nil?
91
+ deductible_contract = nil
92
+ else
93
+ deductible_contract = parsed_json["deductible_contract"].to_json
94
+ deductible_contract = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.from_json(json_object: deductible_contract)
95
+ end
80
96
  if parsed_json["deductible_remaining"].nil?
81
97
  deductible_remaining = nil
82
98
  else
@@ -95,26 +111,34 @@ module CandidApiClient
95
111
  oop_max = parsed_json["oop_max"].to_json
96
112
  oop_max = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.from_json(json_object: oop_max)
97
113
  end
114
+ if parsed_json["oop_max_contract"].nil?
115
+ oop_max_contract = nil
116
+ else
117
+ oop_max_contract = parsed_json["oop_max_contract"].to_json
118
+ oop_max_contract = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.from_json(json_object: oop_max_contract)
119
+ end
98
120
  if parsed_json["oop_max_remaining"].nil?
99
121
  oop_max_remaining = nil
100
122
  else
101
123
  oop_max_remaining = parsed_json["oop_max_remaining"].to_json
102
124
  oop_max_remaining = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.from_json(json_object: oop_max_remaining)
103
125
  end
104
- if parsed_json["oop_year_to_date"].nil?
105
- oop_year_to_date = nil
126
+ if parsed_json["oop_max_year_to_date"].nil?
127
+ oop_max_year_to_date = nil
106
128
  else
107
- oop_year_to_date = parsed_json["oop_year_to_date"].to_json
108
- oop_year_to_date = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.from_json(json_object: oop_year_to_date)
129
+ oop_max_year_to_date = parsed_json["oop_max_year_to_date"].to_json
130
+ oop_max_year_to_date = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.from_json(json_object: oop_max_year_to_date)
109
131
  end
110
132
  additional_notes = struct["additional_notes"]
111
133
  new(
112
134
  deductible: deductible,
135
+ deductible_contract: deductible_contract,
113
136
  deductible_remaining: deductible_remaining,
114
137
  deductible_year_to_date: deductible_year_to_date,
115
138
  oop_max: oop_max,
139
+ oop_max_contract: oop_max_contract,
116
140
  oop_max_remaining: oop_max_remaining,
117
- oop_year_to_date: oop_year_to_date,
141
+ oop_max_year_to_date: oop_max_year_to_date,
118
142
  additional_notes: additional_notes,
119
143
  additional_properties: struct
120
144
  )
@@ -135,11 +159,13 @@ module CandidApiClient
135
159
  # @return [Void]
136
160
  def self.validate_raw(obj:)
137
161
  obj.deductible.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.deductible)
162
+ obj.deductible_contract.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.deductible_contract)
138
163
  obj.deductible_remaining.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.deductible_remaining)
139
164
  obj.deductible_year_to_date.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.deductible_year_to_date)
140
165
  obj.oop_max.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.oop_max)
166
+ obj.oop_max_contract.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.oop_max_contract)
141
167
  obj.oop_max_remaining.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.oop_max_remaining)
142
- obj.oop_year_to_date.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.oop_year_to_date)
168
+ obj.oop_max_year_to_date.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageValue.validate_raw(obj: obj.oop_max_year_to_date)
143
169
  obj.additional_notes&.is_a?(String) != false || raise("Passed value for field obj.additional_notes is not the expected type, validation failed.")
144
170
  end
145
171
  end
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module CandidApiClient
7
+ module PreEncounter
8
+ module Coverages
9
+ module V1
10
+ module Types
11
+ class RelatedEntityContact
12
+ # @return [String]
13
+ attr_reader :mode
14
+ # @return [String]
15
+ attr_reader :value
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 mode [String]
25
+ # @param value [String]
26
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
27
+ # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::RelatedEntityContact]
28
+ def initialize(mode: OMIT, value: OMIT, additional_properties: nil)
29
+ @mode = mode if mode != OMIT
30
+ @value = value if value != OMIT
31
+ @additional_properties = additional_properties
32
+ @_field_set = { "mode": mode, "value": value }.reject do |_k, v|
33
+ v == OMIT
34
+ end
35
+ end
36
+
37
+ # Deserialize a JSON object to an instance of RelatedEntityContact
38
+ #
39
+ # @param json_object [String]
40
+ # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::RelatedEntityContact]
41
+ def self.from_json(json_object:)
42
+ struct = JSON.parse(json_object, object_class: OpenStruct)
43
+ mode = struct["mode"]
44
+ value = struct["value"]
45
+ new(
46
+ mode: mode,
47
+ value: value,
48
+ additional_properties: struct
49
+ )
50
+ end
51
+
52
+ # Serialize an instance of RelatedEntityContact to a JSON object
53
+ #
54
+ # @return [String]
55
+ def to_json(*_args)
56
+ @_field_set&.to_json
57
+ end
58
+
59
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
60
+ # hash and check each fields type against the current object's property
61
+ # definitions.
62
+ #
63
+ # @param obj [Object]
64
+ # @return [Void]
65
+ def self.validate_raw(obj:)
66
+ obj.mode&.is_a?(String) != false || raise("Passed value for field obj.mode is not the expected type, validation failed.")
67
+ obj.value&.is_a?(String) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end
@@ -63,7 +63,7 @@ module CandidApiClient
63
63
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
64
64
  # @example
65
65
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
66
- # api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }] })
66
+ # api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }] })
67
67
  def create(request:, request_options: nil)
68
68
  response = @request_client.conn.post do |req|
69
69
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -204,7 +204,7 @@ module CandidApiClient
204
204
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
205
205
  # @example
206
206
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
207
- # api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }] })
207
+ # api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }] })
208
208
  def create(request:, request_options: nil)
209
209
  Async do
210
210
  response = @request_client.conn.post do |req|
@@ -73,6 +73,7 @@ module CandidApiClient
73
73
  M_75 = "M75"
74
74
  M_76 = "M76"
75
75
  M_77 = "M77"
76
+ M_78 = "M78"
76
77
  M_79 = "M79"
77
78
  M_80 = "M80"
78
79
  M_81 = "M81"
@@ -1076,6 +1077,7 @@ module CandidApiClient
1076
1077
  N_887 = "N887"
1077
1078
  N_888 = "N888"
1078
1079
  N_891 = "N891"
1080
+ N_900 = "N900"
1079
1081
  end
1080
1082
  end
1081
1083
  end
data/lib/candidhealth.rb CHANGED
@@ -6,6 +6,7 @@ require_relative "core/oauth"
6
6
  require_relative "requests"
7
7
  require_relative "candidhealth/auth/client"
8
8
  require_relative "candidhealth/billing_notes/client"
9
+ require_relative "candidhealth/charge_capture_bundles/client"
9
10
  require_relative "candidhealth/charge_capture/client"
10
11
  require_relative "candidhealth/contracts/client"
11
12
  require_relative "candidhealth/credentialing/client"
@@ -44,6 +45,8 @@ module CandidApiClient
44
45
  attr_reader :auth
45
46
  # @return [CandidApiClient::BillingNotes::Client]
46
47
  attr_reader :billing_notes
48
+ # @return [CandidApiClient::ChargeCaptureBundles::Client]
49
+ attr_reader :charge_capture_bundles
47
50
  # @return [CandidApiClient::ChargeCapture::Client]
48
51
  attr_reader :charge_capture
49
52
  # @return [CandidApiClient::Contracts::Client]
@@ -135,6 +138,7 @@ module CandidApiClient
135
138
  )
136
139
  @auth = CandidApiClient::Auth::Client.new(request_client: @request_client)
137
140
  @billing_notes = CandidApiClient::BillingNotes::Client.new(request_client: @request_client)
141
+ @charge_capture_bundles = CandidApiClient::ChargeCaptureBundles::Client.new(request_client: @request_client)
138
142
  @charge_capture = CandidApiClient::ChargeCapture::Client.new(request_client: @request_client)
139
143
  @contracts = CandidApiClient::Contracts::Client.new(request_client: @request_client)
140
144
  @credentialing = CandidApiClient::Credentialing::Client.new(request_client: @request_client)
@@ -174,6 +178,8 @@ module CandidApiClient
174
178
  attr_reader :auth
175
179
  # @return [CandidApiClient::BillingNotes::AsyncClient]
176
180
  attr_reader :billing_notes
181
+ # @return [CandidApiClient::ChargeCaptureBundles::AsyncClient]
182
+ attr_reader :charge_capture_bundles
177
183
  # @return [CandidApiClient::ChargeCapture::AsyncClient]
178
184
  attr_reader :charge_capture
179
185
  # @return [CandidApiClient::Contracts::AsyncClient]
@@ -265,6 +271,7 @@ module CandidApiClient
265
271
  )
266
272
  @auth = CandidApiClient::Auth::AsyncClient.new(request_client: @async_request_client)
267
273
  @billing_notes = CandidApiClient::BillingNotes::AsyncClient.new(request_client: @async_request_client)
274
+ @charge_capture_bundles = CandidApiClient::ChargeCaptureBundles::AsyncClient.new(request_client: @async_request_client)
268
275
  @charge_capture = CandidApiClient::ChargeCapture::AsyncClient.new(request_client: @async_request_client)
269
276
  @contracts = CandidApiClient::Contracts::AsyncClient.new(request_client: @async_request_client)
270
277
  @credentialing = CandidApiClient::Credentialing::AsyncClient.new(request_client: @async_request_client)
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.38.2" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.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.38.2" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.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
@@ -4,6 +4,10 @@ require_relative "candidhealth/auth/v_2/types/auth_get_token_response"
4
4
  require_relative "candidhealth/auth/v_2/types/too_many_requests_error_type"
5
5
  require_relative "candidhealth/billing_notes/v_2/types/billing_note_base"
6
6
  require_relative "candidhealth/billing_notes/v_2/types/billing_note"
7
+ require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_page"
8
+ require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle"
9
+ require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_bundle_error"
10
+ require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_status"
7
11
  require_relative "candidhealth/charge_capture/v_1/types/charge_capture_page"
8
12
  require_relative "candidhealth/charge_capture/v_1/types/charge_capture"
9
13
  require_relative "candidhealth/charge_capture/v_1/types/charge_capture_data"
@@ -304,6 +308,8 @@ require_relative "candidhealth/pre_encounter/coverages/v_1/types/network_type"
304
308
  require_relative "candidhealth/pre_encounter/coverages/v_1/types/insurance_plan"
305
309
  require_relative "candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage"
306
310
  require_relative "candidhealth/pre_encounter/coverages/v_1/types/coverage"
311
+ require_relative "candidhealth/pre_encounter/coverages/v_1/types/benefits_related_entity"
312
+ require_relative "candidhealth/pre_encounter/coverages/v_1/types/related_entity_contact"
307
313
  require_relative "candidhealth/pre_encounter/coverages/v_1/types/insurance_type_code"
308
314
  require_relative "candidhealth/pre_encounter/coverages/v_1/types/service_type_code"
309
315
  require_relative "candidhealth/pre_encounter/lists/v_1/types/patient_list_item"
@@ -361,6 +367,7 @@ require_relative "candidhealth/commons/types/http_service_unavailable_error_mess
361
367
  require_relative "candidhealth/commons/types/request_validation_error"
362
368
  require_relative "candidhealth/commons/types/updates_disabled_due_to_external_system_integration_error_message"
363
369
  require_relative "candidhealth/commons/types/organization_not_authorized_error_message"
370
+ require_relative "candidhealth/commons/types/not_implemented_error_message"
364
371
  require_relative "candidhealth/commons/types/phone_number"
365
372
  require_relative "candidhealth/commons/types/phone_number_type"
366
373
  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.38.2
4
+ version: 0.39.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-15 00:00:00.000000000 Z
11
+ date: 2025-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday
@@ -111,6 +111,12 @@ files:
111
111
  - lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb
112
112
  - lib/candidhealth/charge_capture/v_1/types/charge_capture_page.rb
113
113
  - lib/candidhealth/charge_capture/v_1/types/charge_capture_status.rb
114
+ - lib/candidhealth/charge_capture_bundles/client.rb
115
+ - lib/candidhealth/charge_capture_bundles/v_1/client.rb
116
+ - lib/candidhealth/charge_capture_bundles/v_1/types/charge_bundle_error.rb
117
+ - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle.rb
118
+ - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_page.rb
119
+ - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_status.rb
114
120
  - lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb
115
121
  - lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb
116
122
  - lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb
@@ -129,6 +135,7 @@ files:
129
135
  - lib/candidhealth/commons/types/insurance_type_code.rb
130
136
  - lib/candidhealth/commons/types/intended_submission_medium.rb
131
137
  - lib/candidhealth/commons/types/network_type.rb
138
+ - lib/candidhealth/commons/types/not_implemented_error_message.rb
132
139
  - lib/candidhealth/commons/types/organization_not_authorized_error_message.rb
133
140
  - lib/candidhealth/commons/types/patient_relationship_to_insured_code_all.rb
134
141
  - lib/candidhealth/commons/types/phone_number.rb
@@ -504,6 +511,7 @@ files:
504
511
  - lib/candidhealth/pre_encounter/coverages/client.rb
505
512
  - lib/candidhealth/pre_encounter/coverages/v_1/client.rb
506
513
  - lib/candidhealth/pre_encounter/coverages/v_1/types/benefit_type.rb
514
+ - lib/candidhealth/pre_encounter/coverages/v_1/types/benefits_related_entity.rb
507
515
  - lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb
508
516
  - lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_benefits.rb
509
517
  - lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_details.rb
@@ -525,6 +533,7 @@ files:
525
533
  - lib/candidhealth/pre_encounter/coverages/v_1/types/plan_coverage_details.rb
526
534
  - lib/candidhealth/pre_encounter/coverages/v_1/types/plan_date.rb
527
535
  - lib/candidhealth/pre_encounter/coverages/v_1/types/plan_metadata.rb
536
+ - lib/candidhealth/pre_encounter/coverages/v_1/types/related_entity_contact.rb
528
537
  - lib/candidhealth/pre_encounter/coverages/v_1/types/service_coverage.rb
529
538
  - lib/candidhealth/pre_encounter/coverages/v_1/types/service_coverage_details.rb
530
539
  - lib/candidhealth/pre_encounter/coverages/v_1/types/service_type_code.rb