candidhealth 0.24.4 → 0.24.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cc6b4451b8313b62bce521f1a66fbb1c3fd3841179886017423caaf5ab5e741
4
- data.tar.gz: 63a2bb039a538e78c8bc3d1ffb86e5193a9517e958e9a401714f3d907e3ae203
3
+ metadata.gz: d5ff8c4c0d313269cb5562b1d858aeb1edd111a93674fea096bffbaff0709dfe
4
+ data.tar.gz: b73699ae13470f85b07c5eba00ff61f9b0f698baee49522f40897ac8e8ab2755
5
5
  SHA512:
6
- metadata.gz: 0e22c5eacf0626bcdaff500b93bb1273d9abc5b84b6a034461be91723fc63329e827c1a6c6e46f3b785923a758f589854d28538cdf7131a904d10a858990bb67
7
- data.tar.gz: 1abbeb8295ca1fbe2fa7bb0d00cd6bb637f7fb08cd89f3b9cc91905331654a9ba92e55df9ac491399671d86a336aa128723ad0c3b76d90101eb900fb0d0b8a95
6
+ metadata.gz: eaf9394896b6a1cebd6c7be9ede2f5258ae496e1a4ffae0fca323b96026d61be88b11fb2001e70ba0546f5e720e581576deb05b2c835deb90dcc265f9fad222e
7
+ data.tar.gz: 6b835c8885844a4efadbcb514ae5fedae7857e9309d0cf63b7b0220d7a7d35f364c291d90a25783281a2d5694966a61df7db4ccd0733821dcbf694e235551265
@@ -94,6 +94,7 @@ module CandidApiClient
94
94
  CT = "CT"
95
95
  CO = "CO"
96
96
  CQ = "CQ"
97
+ DA = "DA"
97
98
  E_1 = "E1"
98
99
  E_2 = "E2"
99
100
  E_3 = "E3"
@@ -48,7 +48,7 @@ module CandidApiClient
48
48
  # @return [CandidApiClient::CustomSchemas::V1::Types::Schema]
49
49
  # @example
50
50
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
51
- # api.custom_schemas.v_1.get(schema_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
51
+ # api.custom_schemas.v_1.get(schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582")
52
52
  def get(schema_id:, request_options: nil)
53
53
  response = @request_client.conn.get do |req|
54
54
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -64,8 +64,8 @@ module CandidApiClient
64
64
  CandidApiClient::CustomSchemas::V1::Types::Schema.from_json(json_object: response.body)
65
65
  end
66
66
 
67
- # Create a custom schema. Schema keys can be referenced as inputs in
68
- # user-configurable rules in the Rules
67
+ # Create custom schema with a set of typed keys. Schema keys can be referenced as
68
+ # inputs in user-configurable rules in the Rules
69
69
  # Engine, and key-value pairs can be attached to claims via the Encounters API.
70
70
  #
71
71
  # @param name [String]
@@ -78,9 +78,9 @@ module CandidApiClient
78
78
  # @example
79
79
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
80
80
  # api.custom_schemas.v_1.create(
81
- # name: "string",
82
- # description: "string",
83
- # fields: [{ key: "string", type: BOOLEAN }]
81
+ # name: "General Medicine",
82
+ # description: "Values associated with a generic visit",
83
+ # fields: [{ key: "provider_category", type: STRING }, { key: "is_urgent_care", type: BOOLEAN }, { key: "bmi", type: DOUBLE }, { key: "age", type: INTEGER }]
84
84
  # )
85
85
  def create(name:, fields:, description: nil, request_options: nil)
86
86
  response = @request_client.conn.post do |req|
@@ -117,10 +117,10 @@ module CandidApiClient
117
117
  # @example
118
118
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
119
119
  # api.custom_schemas.v_1.update(
120
- # schema_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
121
- # name: "string",
122
- # description: "string",
123
- # fields_to_add: [{ key: "string", type: BOOLEAN }]
120
+ # schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582",
121
+ # name: "General Medicine and Health",
122
+ # description: "Values collected during all visits",
123
+ # fields_to_add: [{ key: "visit_type", type: STRING }]
124
124
  # )
125
125
  def update(schema_id:, name: nil, description: nil, fields_to_add: nil, request_options: nil)
126
126
  response = @request_client.conn.patch do |req|
@@ -185,7 +185,7 @@ module CandidApiClient
185
185
  # @return [CandidApiClient::CustomSchemas::V1::Types::Schema]
186
186
  # @example
187
187
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
188
- # api.custom_schemas.v_1.get(schema_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
188
+ # api.custom_schemas.v_1.get(schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582")
189
189
  def get(schema_id:, request_options: nil)
190
190
  Async do
191
191
  response = @request_client.conn.get do |req|
@@ -203,8 +203,8 @@ module CandidApiClient
203
203
  end
204
204
  end
205
205
 
206
- # Create a custom schema. Schema keys can be referenced as inputs in
207
- # user-configurable rules in the Rules
206
+ # Create custom schema with a set of typed keys. Schema keys can be referenced as
207
+ # inputs in user-configurable rules in the Rules
208
208
  # Engine, and key-value pairs can be attached to claims via the Encounters API.
209
209
  #
210
210
  # @param name [String]
@@ -217,9 +217,9 @@ module CandidApiClient
217
217
  # @example
218
218
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
219
219
  # api.custom_schemas.v_1.create(
220
- # name: "string",
221
- # description: "string",
222
- # fields: [{ key: "string", type: BOOLEAN }]
220
+ # name: "General Medicine",
221
+ # description: "Values associated with a generic visit",
222
+ # fields: [{ key: "provider_category", type: STRING }, { key: "is_urgent_care", type: BOOLEAN }, { key: "bmi", type: DOUBLE }, { key: "age", type: INTEGER }]
223
223
  # )
224
224
  def create(name:, fields:, description: nil, request_options: nil)
225
225
  Async do
@@ -258,10 +258,10 @@ module CandidApiClient
258
258
  # @example
259
259
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
260
260
  # api.custom_schemas.v_1.update(
261
- # schema_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
262
- # name: "string",
263
- # description: "string",
264
- # fields_to_add: [{ key: "string", type: BOOLEAN }]
261
+ # schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582",
262
+ # name: "General Medicine and Health",
263
+ # description: "Values collected during all visits",
264
+ # fields_to_add: [{ key: "visit_type", type: STRING }]
265
265
  # )
266
266
  def update(schema_id:, name: nil, description: nil, fields_to_add: nil, request_options: nil)
267
267
  Async do
@@ -6,6 +6,7 @@ module CandidApiClient
6
6
  class AccountType
7
7
  PATIENT = "PATIENT"
8
8
  INSURANCE = "INSURANCE"
9
+ THIRD_PARTY_PAYER = "THIRD_PARTY_PAYER"
9
10
  end
10
11
  end
11
12
  end
@@ -32,6 +32,12 @@ module CandidApiClient
32
32
  # @return [Integer]
33
33
  attr_reader :paid_amount_cents
34
34
  # @return [Integer]
35
+ attr_reader :primary_paid_amount_cents
36
+ # @return [Integer]
37
+ attr_reader :secondary_paid_amount_cents
38
+ # @return [Integer]
39
+ attr_reader :tertiary_paid_amount_cents
40
+ # @return [Integer]
35
41
  attr_reader :patient_responsibility_cents
36
42
  # @return [String]
37
43
  attr_reader :diagnosis_id_zero
@@ -100,6 +106,9 @@ module CandidApiClient
100
106
  # @param insurance_balance_cents [Integer]
101
107
  # @param patient_balance_cents [Integer]
102
108
  # @param paid_amount_cents [Integer]
109
+ # @param primary_paid_amount_cents [Integer]
110
+ # @param secondary_paid_amount_cents [Integer]
111
+ # @param tertiary_paid_amount_cents [Integer]
103
112
  # @param patient_responsibility_cents [Integer]
104
113
  # @param diagnosis_id_zero [String]
105
114
  # @param diagnosis_id_one [String]
@@ -133,13 +142,16 @@ module CandidApiClient
133
142
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
134
143
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
135
144
  def initialize(service_line_id:, procedure_code:, quantity:, units:, claim_id:, date_of_service_range:, date_of_service:, modifiers: OMIT, charge_amount_cents: OMIT, allowed_amount_cents: OMIT,
136
- insurance_balance_cents: OMIT, patient_balance_cents: OMIT, paid_amount_cents: OMIT, patient_responsibility_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, service_line_era_data: OMIT, service_line_manual_adjustments: OMIT, related_invoices: OMIT, related_invoice_info: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, ordering_provider: OMIT, description: OMIT, end_date_of_service: OMIT, additional_properties: nil)
145
+ insurance_balance_cents: OMIT, patient_balance_cents: OMIT, paid_amount_cents: OMIT, primary_paid_amount_cents: OMIT, secondary_paid_amount_cents: OMIT, tertiary_paid_amount_cents: OMIT, patient_responsibility_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, service_line_era_data: OMIT, service_line_manual_adjustments: OMIT, related_invoices: OMIT, related_invoice_info: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, ordering_provider: OMIT, description: OMIT, end_date_of_service: OMIT, additional_properties: nil)
137
146
  @modifiers = modifiers if modifiers != OMIT
138
147
  @charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
139
148
  @allowed_amount_cents = allowed_amount_cents if allowed_amount_cents != OMIT
140
149
  @insurance_balance_cents = insurance_balance_cents if insurance_balance_cents != OMIT
141
150
  @patient_balance_cents = patient_balance_cents if patient_balance_cents != OMIT
142
151
  @paid_amount_cents = paid_amount_cents if paid_amount_cents != OMIT
152
+ @primary_paid_amount_cents = primary_paid_amount_cents if primary_paid_amount_cents != OMIT
153
+ @secondary_paid_amount_cents = secondary_paid_amount_cents if secondary_paid_amount_cents != OMIT
154
+ @tertiary_paid_amount_cents = tertiary_paid_amount_cents if tertiary_paid_amount_cents != OMIT
143
155
  @patient_responsibility_cents = patient_responsibility_cents if patient_responsibility_cents != OMIT
144
156
  @diagnosis_id_zero = diagnosis_id_zero if diagnosis_id_zero != OMIT
145
157
  @diagnosis_id_one = diagnosis_id_one if diagnosis_id_one != OMIT
@@ -177,6 +189,9 @@ module CandidApiClient
177
189
  "insurance_balance_cents": insurance_balance_cents,
178
190
  "patient_balance_cents": patient_balance_cents,
179
191
  "paid_amount_cents": paid_amount_cents,
192
+ "primary_paid_amount_cents": primary_paid_amount_cents,
193
+ "secondary_paid_amount_cents": secondary_paid_amount_cents,
194
+ "tertiary_paid_amount_cents": tertiary_paid_amount_cents,
180
195
  "patient_responsibility_cents": patient_responsibility_cents,
181
196
  "diagnosis_id_zero": diagnosis_id_zero,
182
197
  "diagnosis_id_one": diagnosis_id_one,
@@ -220,6 +235,9 @@ module CandidApiClient
220
235
  insurance_balance_cents = struct["insurance_balance_cents"]
221
236
  patient_balance_cents = struct["patient_balance_cents"]
222
237
  paid_amount_cents = struct["paid_amount_cents"]
238
+ primary_paid_amount_cents = struct["primary_paid_amount_cents"]
239
+ secondary_paid_amount_cents = struct["secondary_paid_amount_cents"]
240
+ tertiary_paid_amount_cents = struct["tertiary_paid_amount_cents"]
223
241
  patient_responsibility_cents = struct["patient_responsibility_cents"]
224
242
  diagnosis_id_zero = struct["diagnosis_id_zero"]
225
243
  diagnosis_id_one = struct["diagnosis_id_one"]
@@ -298,6 +316,9 @@ module CandidApiClient
298
316
  insurance_balance_cents: insurance_balance_cents,
299
317
  patient_balance_cents: patient_balance_cents,
300
318
  paid_amount_cents: paid_amount_cents,
319
+ primary_paid_amount_cents: primary_paid_amount_cents,
320
+ secondary_paid_amount_cents: secondary_paid_amount_cents,
321
+ tertiary_paid_amount_cents: tertiary_paid_amount_cents,
301
322
  patient_responsibility_cents: patient_responsibility_cents,
302
323
  diagnosis_id_zero: diagnosis_id_zero,
303
324
  diagnosis_id_one: diagnosis_id_one,
@@ -347,6 +368,9 @@ module CandidApiClient
347
368
  obj.insurance_balance_cents&.is_a?(Integer) != false || raise("Passed value for field obj.insurance_balance_cents is not the expected type, validation failed.")
348
369
  obj.patient_balance_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_balance_cents is not the expected type, validation failed.")
349
370
  obj.paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.paid_amount_cents is not the expected type, validation failed.")
371
+ obj.primary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.primary_paid_amount_cents is not the expected type, validation failed.")
372
+ obj.secondary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.secondary_paid_amount_cents is not the expected type, validation failed.")
373
+ obj.tertiary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.tertiary_paid_amount_cents is not the expected type, validation failed.")
350
374
  obj.patient_responsibility_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_responsibility_cents is not the expected type, validation failed.")
351
375
  obj.diagnosis_id_zero&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_zero is not the expected type, validation failed.")
352
376
  obj.diagnosis_id_one&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_one is not the expected type, validation failed.")
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.24.4" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.24.5" }
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.24.4" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.24.5" }
91
91
  headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
92
92
  headers
93
93
  end
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.24.4
4
+ version: 0.24.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-30 00:00:00.000000000 Z
11
+ date: 2024-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday