candidhealth 0.41.3 → 0.41.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: 5214d69f57a49a1660927a52af327025bbb13421a9b28b0bd444f02623c5fd28
4
- data.tar.gz: da7f97e325824d1610009592c1d624e5306915418721c99c216b09349a8ab62e
3
+ metadata.gz: be4c5cd730f0e512cc91aad03321e192751715d9266e41716532a60bd282b067
4
+ data.tar.gz: e816365693926d5d4caba7714a8f2b8b18ecc05154ba18ec69a447c23c976363
5
5
  SHA512:
6
- metadata.gz: e5dfed78cb1aa5a363b8d939d1f2274ab420d74d441f9948b054da488e4c66bead8bf0d2845cc5adf47a9d06e1fc07e89291fca3b3bb1aaaed3b4ea02b0addb2
7
- data.tar.gz: d33e1a76f5a87a747e05c03558d7082e5985aafd564f66190ced046bea2b5f658342ab0cb746c2dab69843b1d6caa72b96fb2c1a3470b633897dd6fa7f5fec8e
6
+ metadata.gz: 462519820e6e0c3769bbb44f90cc2cc5f93278b7b6fcb212815207b94cd99cf0ee56ba27669a506d1b5156035b46494c2d5fbee85a81be7a0a5964fe9605813f
7
+ data.tar.gz: 8f0f17df316647ce78d8b58229f0bcc5806112b4adac66f15f1194aea6c8d4b651dd6fc5a227e5959a1b2e18cc351ef866d877fcfaeb1dbd73d3d58674330459
@@ -2,11 +2,11 @@
2
2
 
3
3
  require_relative "../../../requests"
4
4
  require_relative "types/charge_capture_data"
5
- require "date"
6
5
  require_relative "types/charge_capture_status"
7
6
  require_relative "types/charge_capture"
8
7
  require_relative "types/charge_capture_sort_field"
9
8
  require_relative "../../commons/types/sort_direction"
9
+ require "date"
10
10
  require_relative "types/charge_capture_page"
11
11
  require_relative "types/charge_capture_post_billed_change"
12
12
  require "async"
@@ -281,8 +281,6 @@ module CandidApiClient
281
281
  # @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
282
282
  # system (e.g. the EHR visit page). Send full URL format for the external link
283
283
  # (e.g. https://emr_charge_capture_url.com/123).
284
- # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
285
- # This date must be the local date in the timezone where the service occurred.
286
284
  # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
287
285
  # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
288
286
  # @param request_options [CandidApiClient::RequestOptions]
@@ -293,12 +291,10 @@ module CandidApiClient
293
291
  # data: { },
294
292
  # charge_external_id: "string",
295
293
  # ehr_source_url: "string",
296
- # date_of_service: DateTime.parse(2023-01-15),
297
294
  # patient_external_id: "string",
298
295
  # status: PLANNED
299
296
  # )
300
- def create(data:, charge_external_id:, patient_external_id:, status:, ehr_source_url: nil,
301
- date_of_service: nil, request_options: nil)
297
+ def create(data:, charge_external_id:, patient_external_id:, status:, ehr_source_url: nil, request_options: nil)
302
298
  response = @request_client.conn.post do |req|
303
299
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
304
300
  req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
@@ -312,7 +308,6 @@ module CandidApiClient
312
308
  data: data,
313
309
  charge_external_id: charge_external_id,
314
310
  ehr_source_url: ehr_source_url,
315
- date_of_service: date_of_service,
316
311
  patient_external_id: patient_external_id,
317
312
  status: status
318
313
  }.compact
@@ -601,8 +596,6 @@ module CandidApiClient
601
596
  # https://emr_charge_capture_url.com/123).
602
597
  # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
603
598
  # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
604
- # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
605
- # This date must be the local date in the timezone where the service occurred.
606
599
  # @param request_options [CandidApiClient::RequestOptions]
607
600
  # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
608
601
  # @example
@@ -613,11 +606,10 @@ module CandidApiClient
613
606
  # charge_external_id: "string",
614
607
  # ehr_source_url: "string",
615
608
  # patient_external_id: "string",
616
- # status: PLANNED,
617
- # date_of_service: DateTime.parse(2023-01-15)
609
+ # status: PLANNED
618
610
  # )
619
611
  def update(charge_capture_id:, data: nil, charge_external_id: nil, ehr_source_url: nil,
620
- patient_external_id: nil, status: nil, date_of_service: nil, request_options: nil)
612
+ patient_external_id: nil, status: nil, request_options: nil)
621
613
  response = @request_client.conn.patch do |req|
622
614
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
623
615
  req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
@@ -632,8 +624,7 @@ module CandidApiClient
632
624
  charge_external_id: charge_external_id,
633
625
  ehr_source_url: ehr_source_url,
634
626
  patient_external_id: patient_external_id,
635
- status: status,
636
- date_of_service: date_of_service
627
+ status: status
637
628
  }.compact
638
629
  req.url "#{@request_client.get_url(environment: CandidApi,
639
630
  request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
@@ -1014,8 +1005,6 @@ module CandidApiClient
1014
1005
  # @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
1015
1006
  # system (e.g. the EHR visit page). Send full URL format for the external link
1016
1007
  # (e.g. https://emr_charge_capture_url.com/123).
1017
- # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
1018
- # This date must be the local date in the timezone where the service occurred.
1019
1008
  # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
1020
1009
  # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
1021
1010
  # @param request_options [CandidApiClient::RequestOptions]
@@ -1026,12 +1015,10 @@ module CandidApiClient
1026
1015
  # data: { },
1027
1016
  # charge_external_id: "string",
1028
1017
  # ehr_source_url: "string",
1029
- # date_of_service: DateTime.parse(2023-01-15),
1030
1018
  # patient_external_id: "string",
1031
1019
  # status: PLANNED
1032
1020
  # )
1033
- def create(data:, charge_external_id:, patient_external_id:, status:, ehr_source_url: nil,
1034
- date_of_service: nil, request_options: nil)
1021
+ def create(data:, charge_external_id:, patient_external_id:, status:, ehr_source_url: nil, request_options: nil)
1035
1022
  Async do
1036
1023
  response = @request_client.conn.post do |req|
1037
1024
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -1046,7 +1033,6 @@ module CandidApiClient
1046
1033
  data: data,
1047
1034
  charge_external_id: charge_external_id,
1048
1035
  ehr_source_url: ehr_source_url,
1049
- date_of_service: date_of_service,
1050
1036
  patient_external_id: patient_external_id,
1051
1037
  status: status
1052
1038
  }.compact
@@ -1338,8 +1324,6 @@ module CandidApiClient
1338
1324
  # https://emr_charge_capture_url.com/123).
1339
1325
  # @param patient_external_id [String] The patient ID from the external EMR platform for the patient
1340
1326
  # @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
1341
- # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
1342
- # This date must be the local date in the timezone where the service occurred.
1343
1327
  # @param request_options [CandidApiClient::RequestOptions]
1344
1328
  # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
1345
1329
  # @example
@@ -1350,11 +1334,10 @@ module CandidApiClient
1350
1334
  # charge_external_id: "string",
1351
1335
  # ehr_source_url: "string",
1352
1336
  # patient_external_id: "string",
1353
- # status: PLANNED,
1354
- # date_of_service: DateTime.parse(2023-01-15)
1337
+ # status: PLANNED
1355
1338
  # )
1356
1339
  def update(charge_capture_id:, data: nil, charge_external_id: nil, ehr_source_url: nil,
1357
- patient_external_id: nil, status: nil, date_of_service: nil, request_options: nil)
1340
+ patient_external_id: nil, status: nil, request_options: nil)
1358
1341
  Async do
1359
1342
  response = @request_client.conn.patch do |req|
1360
1343
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -1370,8 +1353,7 @@ module CandidApiClient
1370
1353
  charge_external_id: charge_external_id,
1371
1354
  ehr_source_url: ehr_source_url,
1372
1355
  patient_external_id: patient_external_id,
1373
- status: status,
1374
- date_of_service: date_of_service
1356
+ status: status
1375
1357
  }.compact
1376
1358
  req.url "#{@request_client.get_url(environment: CandidApi,
1377
1359
  request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
@@ -2,7 +2,6 @@
2
2
 
3
3
  require_relative "charge_capture_status"
4
4
  require_relative "charge_capture_data"
5
- require "date"
6
5
  require_relative "charge_capture_error"
7
6
  require_relative "charge_capture_post_billed_change"
8
7
  require "ostruct"
@@ -25,9 +24,6 @@ module CandidApiClient
25
24
  attr_reader :charge_external_id
26
25
  # @return [String]
27
26
  attr_reader :ehr_source_url
28
- # @return [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
29
- # This date must be the local date in the timezone where the service occurred.
30
- attr_reader :date_of_service
31
27
  # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError]
32
28
  attr_reader :error
33
29
  # @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
@@ -48,22 +44,19 @@ module CandidApiClient
48
44
  # @param patient_external_id [String]
49
45
  # @param charge_external_id [String]
50
46
  # @param ehr_source_url [String]
51
- # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
52
- # This date must be the local date in the timezone where the service occurred.
53
47
  # @param error [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError]
54
48
  # @param updates [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
55
49
  # @param bundle_id [String]
56
50
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
57
51
  # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
58
52
  def initialize(id:, status:, charge_capture_data:, patient_external_id:, charge_external_id:, updates:,
59
- ehr_source_url: OMIT, date_of_service: OMIT, error: OMIT, bundle_id: OMIT, additional_properties: nil)
53
+ ehr_source_url: OMIT, error: OMIT, bundle_id: OMIT, additional_properties: nil)
60
54
  @id = id
61
55
  @status = status
62
56
  @charge_capture_data = charge_capture_data
63
57
  @patient_external_id = patient_external_id
64
58
  @charge_external_id = charge_external_id
65
59
  @ehr_source_url = ehr_source_url if ehr_source_url != OMIT
66
- @date_of_service = date_of_service if date_of_service != OMIT
67
60
  @error = error if error != OMIT
68
61
  @updates = updates
69
62
  @bundle_id = bundle_id if bundle_id != OMIT
@@ -75,7 +68,6 @@ module CandidApiClient
75
68
  "patient_external_id": patient_external_id,
76
69
  "charge_external_id": charge_external_id,
77
70
  "ehr_source_url": ehr_source_url,
78
- "date_of_service": date_of_service,
79
71
  "error": error,
80
72
  "updates": updates,
81
73
  "bundle_id": bundle_id
@@ -102,7 +94,6 @@ module CandidApiClient
102
94
  patient_external_id = struct["patient_external_id"]
103
95
  charge_external_id = struct["charge_external_id"]
104
96
  ehr_source_url = struct["ehr_source_url"]
105
- date_of_service = (Date.parse(parsed_json["date_of_service"]) unless parsed_json["date_of_service"].nil?)
106
97
  if parsed_json["error"].nil?
107
98
  error = nil
108
99
  else
@@ -121,7 +112,6 @@ module CandidApiClient
121
112
  patient_external_id: patient_external_id,
122
113
  charge_external_id: charge_external_id,
123
114
  ehr_source_url: ehr_source_url,
124
- date_of_service: date_of_service,
125
115
  error: error,
126
116
  updates: updates,
127
117
  bundle_id: bundle_id,
@@ -149,7 +139,6 @@ module CandidApiClient
149
139
  obj.patient_external_id.is_a?(String) != false || raise("Passed value for field obj.patient_external_id is not the expected type, validation failed.")
150
140
  obj.charge_external_id.is_a?(String) != false || raise("Passed value for field obj.charge_external_id is not the expected type, validation failed.")
151
141
  obj.ehr_source_url&.is_a?(String) != false || raise("Passed value for field obj.ehr_source_url is not the expected type, validation failed.")
152
- obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
153
142
  obj.error.nil? || CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError.validate_raw(obj: obj.error)
154
143
  obj.updates.is_a?(Array) != false || raise("Passed value for field obj.updates is not the expected type, validation failed.")
155
144
  obj.bundle_id&.is_a?(String) != false || raise("Passed value for field obj.bundle_id is not the expected type, validation failed.")
@@ -9,9 +9,7 @@ module CandidApiClient
9
9
  NOT_BILLABLE = "not-billable"
10
10
  BILLABLE = "billable"
11
11
  ABORTED = "aborted"
12
- BILLED = "billed"
13
12
  ENTERED_IN_ERROR = "entered-in-error"
14
- UNKNOWN = "unknown"
15
13
  end
16
14
  end
17
15
  end
@@ -6,7 +6,6 @@ module CandidApiClient
6
6
  module Types
7
7
  class ChargeCaptureBundleStatus
8
8
  NOT_STARTED = "not-started"
9
- IN_PROGRESS = "in-progress"
10
9
  IN_ERROR = "in-error"
11
10
  SUCCESSFUL = "successful"
12
11
  SUCCESSFUL_DRY_RUN = "successful-dry-run"
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.41.3" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.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.41.3" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.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.41.3
4
+ version: 0.41.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-23 00:00:00.000000000 Z
11
+ date: 2025-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday