samplehc 0.11.0__py3-none-any.whl → 0.13.0__py3-none-any.whl

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 (68) hide show
  1. samplehc/__init__.py +3 -1
  2. samplehc/_base_client.py +9 -9
  3. samplehc/_client.py +8 -8
  4. samplehc/_models.py +10 -4
  5. samplehc/_qs.py +7 -7
  6. samplehc/_types.py +18 -11
  7. samplehc/_utils/_transform.py +2 -2
  8. samplehc/_utils/_utils.py +4 -4
  9. samplehc/_version.py +1 -1
  10. samplehc/resources/v1/v1.py +9 -9
  11. samplehc/resources/v2/async_results.py +13 -13
  12. samplehc/resources/v2/browser_agents/browser_agents.py +5 -5
  13. samplehc/resources/v2/browser_agents/runs/help_requests.py +3 -3
  14. samplehc/resources/v2/browser_agents/runs/runs.py +131 -0
  15. samplehc/resources/v2/browser_automation/availity.py +3 -3
  16. samplehc/resources/v2/clearinghouse/claim.py +29 -29
  17. samplehc/resources/v2/clearinghouse/clearinghouse.py +33 -33
  18. samplehc/resources/v2/clearinghouse/payers.py +5 -5
  19. samplehc/resources/v2/communication.py +29 -29
  20. samplehc/resources/v2/database.py +5 -5
  21. samplehc/resources/v2/documents/documents.py +152 -37
  22. samplehc/resources/v2/documents/formats.py +3 -3
  23. samplehc/resources/v2/documents/legacy.py +91 -6
  24. samplehc/resources/v2/documents/pdf_template.py +3 -3
  25. samplehc/resources/v2/documents/templates.py +27 -27
  26. samplehc/resources/v2/events.py +7 -7
  27. samplehc/resources/v2/hie/adt.py +7 -7
  28. samplehc/resources/v2/hie/documents.py +15 -15
  29. samplehc/resources/v2/integrations/bank/transactions.py +5 -5
  30. samplehc/resources/v2/integrations/careviso.py +29 -29
  31. samplehc/resources/v2/integrations/glidian/glidian.py +13 -13
  32. samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +5 -5
  33. samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +19 -19
  34. samplehc/resources/v2/integrations/kno2/messages.py +5 -5
  35. samplehc/resources/v2/integrations/salesforce.py +92 -8
  36. samplehc/resources/v2/integrations/snowflake.py +3 -3
  37. samplehc/resources/v2/integrations/xcures.py +7 -7
  38. samplehc/resources/v2/ledger/account.py +10 -11
  39. samplehc/resources/v2/ledger/entry.py +21 -22
  40. samplehc/resources/v2/policies.py +47 -47
  41. samplehc/resources/v2/tasks/state.py +7 -7
  42. samplehc/resources/v2/tasks/tasks.py +125 -16
  43. samplehc/resources/v2/workflow_runs/step.py +3 -3
  44. samplehc/resources/v2/workflow_runs/workflow_runs.py +11 -11
  45. samplehc/resources/v2/workflows.py +13 -13
  46. samplehc/types/v2/__init__.py +3 -0
  47. samplehc/types/v2/browser_agents/__init__.py +3 -0
  48. samplehc/types/v2/browser_agents/run_list_events_params.py +15 -0
  49. samplehc/types/v2/browser_agents/run_list_events_response.py +30 -0
  50. samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +0 -2
  51. samplehc/types/v2/document_extract_params.py +4 -1
  52. samplehc/types/v2/document_split_params.py +16 -1
  53. samplehc/types/v2/document_unzip_async_response.py +12 -0
  54. samplehc/types/v2/documents/__init__.py +2 -0
  55. samplehc/types/v2/documents/legacy_split_params.py +20 -0
  56. samplehc/types/v2/documents/legacy_split_response.py +12 -0
  57. samplehc/types/v2/documents/template_render_document_params.py +17 -5
  58. samplehc/types/v2/integrations/__init__.py +1 -0
  59. samplehc/types/v2/integrations/salesforce_run_soql_query_params.py +11 -0
  60. samplehc/types/v2/ledger/account_writeoff_params.py +2 -3
  61. samplehc/types/v2/ledger/entry_post_params.py +1 -2
  62. samplehc/types/v2/ledger/entry_reverse_params.py +2 -3
  63. samplehc/types/v2/task_update_column_params.py +16 -0
  64. samplehc/types/v2/task_update_column_response.py +9 -0
  65. {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/METADATA +1 -1
  66. {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/RECORD +68 -60
  67. {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/WHEEL +0 -0
  68. {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/licenses/LICENSE +0 -0
@@ -2,8 +2,18 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ import httpx
6
+
7
+ from ....._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
8
+ from ....._utils import maybe_transform, async_maybe_transform
5
9
  from ....._compat import cached_property
6
10
  from ....._resource import SyncAPIResource, AsyncAPIResource
11
+ from ....._response import (
12
+ to_raw_response_wrapper,
13
+ to_streamed_response_wrapper,
14
+ async_to_raw_response_wrapper,
15
+ async_to_streamed_response_wrapper,
16
+ )
7
17
  from .help_requests import (
8
18
  HelpRequestsResource,
9
19
  AsyncHelpRequestsResource,
@@ -12,6 +22,9 @@ from .help_requests import (
12
22
  HelpRequestsResourceWithStreamingResponse,
13
23
  AsyncHelpRequestsResourceWithStreamingResponse,
14
24
  )
25
+ from ....._base_client import make_request_options
26
+ from .....types.v2.browser_agents import run_list_events_params
27
+ from .....types.v2.browser_agents.run_list_events_response import RunListEventsResponse
15
28
 
16
29
  __all__ = ["RunsResource", "AsyncRunsResource"]
17
30
 
@@ -40,6 +53,57 @@ class RunsResource(SyncAPIResource):
40
53
  """
41
54
  return RunsResourceWithStreamingResponse(self)
42
55
 
56
+ def list_events(
57
+ self,
58
+ browser_agent_run_id: str,
59
+ *,
60
+ cursor: str | Omit = omit,
61
+ limit: float | Omit = omit,
62
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
63
+ # The extra values given here take precedence over values defined on the client or passed to this method.
64
+ extra_headers: Headers | None = None,
65
+ extra_query: Query | None = None,
66
+ extra_body: Body | None = None,
67
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
68
+ ) -> RunListEventsResponse:
69
+ """
70
+ Get events for a browser agent run.
71
+
72
+ Args:
73
+ cursor: Cursor from previous page
74
+
75
+ limit: Maximum number of events to return
76
+
77
+ extra_headers: Send extra headers
78
+
79
+ extra_query: Add additional query parameters to the request
80
+
81
+ extra_body: Add additional JSON properties to the request
82
+
83
+ timeout: Override the client-level default timeout for this request, in seconds
84
+ """
85
+ if not browser_agent_run_id:
86
+ raise ValueError(
87
+ f"Expected a non-empty value for `browser_agent_run_id` but received {browser_agent_run_id!r}"
88
+ )
89
+ return self._get(
90
+ f"/api/v2/browser-agents/runs/{browser_agent_run_id}/events",
91
+ options=make_request_options(
92
+ extra_headers=extra_headers,
93
+ extra_query=extra_query,
94
+ extra_body=extra_body,
95
+ timeout=timeout,
96
+ query=maybe_transform(
97
+ {
98
+ "cursor": cursor,
99
+ "limit": limit,
100
+ },
101
+ run_list_events_params.RunListEventsParams,
102
+ ),
103
+ ),
104
+ cast_to=RunListEventsResponse,
105
+ )
106
+
43
107
 
44
108
  class AsyncRunsResource(AsyncAPIResource):
45
109
  @cached_property
@@ -65,11 +129,66 @@ class AsyncRunsResource(AsyncAPIResource):
65
129
  """
66
130
  return AsyncRunsResourceWithStreamingResponse(self)
67
131
 
132
+ async def list_events(
133
+ self,
134
+ browser_agent_run_id: str,
135
+ *,
136
+ cursor: str | Omit = omit,
137
+ limit: float | Omit = omit,
138
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
139
+ # The extra values given here take precedence over values defined on the client or passed to this method.
140
+ extra_headers: Headers | None = None,
141
+ extra_query: Query | None = None,
142
+ extra_body: Body | None = None,
143
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
144
+ ) -> RunListEventsResponse:
145
+ """
146
+ Get events for a browser agent run.
147
+
148
+ Args:
149
+ cursor: Cursor from previous page
150
+
151
+ limit: Maximum number of events to return
152
+
153
+ extra_headers: Send extra headers
154
+
155
+ extra_query: Add additional query parameters to the request
156
+
157
+ extra_body: Add additional JSON properties to the request
158
+
159
+ timeout: Override the client-level default timeout for this request, in seconds
160
+ """
161
+ if not browser_agent_run_id:
162
+ raise ValueError(
163
+ f"Expected a non-empty value for `browser_agent_run_id` but received {browser_agent_run_id!r}"
164
+ )
165
+ return await self._get(
166
+ f"/api/v2/browser-agents/runs/{browser_agent_run_id}/events",
167
+ options=make_request_options(
168
+ extra_headers=extra_headers,
169
+ extra_query=extra_query,
170
+ extra_body=extra_body,
171
+ timeout=timeout,
172
+ query=await async_maybe_transform(
173
+ {
174
+ "cursor": cursor,
175
+ "limit": limit,
176
+ },
177
+ run_list_events_params.RunListEventsParams,
178
+ ),
179
+ ),
180
+ cast_to=RunListEventsResponse,
181
+ )
182
+
68
183
 
69
184
  class RunsResourceWithRawResponse:
70
185
  def __init__(self, runs: RunsResource) -> None:
71
186
  self._runs = runs
72
187
 
188
+ self.list_events = to_raw_response_wrapper(
189
+ runs.list_events,
190
+ )
191
+
73
192
  @cached_property
74
193
  def help_requests(self) -> HelpRequestsResourceWithRawResponse:
75
194
  return HelpRequestsResourceWithRawResponse(self._runs.help_requests)
@@ -79,6 +198,10 @@ class AsyncRunsResourceWithRawResponse:
79
198
  def __init__(self, runs: AsyncRunsResource) -> None:
80
199
  self._runs = runs
81
200
 
201
+ self.list_events = async_to_raw_response_wrapper(
202
+ runs.list_events,
203
+ )
204
+
82
205
  @cached_property
83
206
  def help_requests(self) -> AsyncHelpRequestsResourceWithRawResponse:
84
207
  return AsyncHelpRequestsResourceWithRawResponse(self._runs.help_requests)
@@ -88,6 +211,10 @@ class RunsResourceWithStreamingResponse:
88
211
  def __init__(self, runs: RunsResource) -> None:
89
212
  self._runs = runs
90
213
 
214
+ self.list_events = to_streamed_response_wrapper(
215
+ runs.list_events,
216
+ )
217
+
91
218
  @cached_property
92
219
  def help_requests(self) -> HelpRequestsResourceWithStreamingResponse:
93
220
  return HelpRequestsResourceWithStreamingResponse(self._runs.help_requests)
@@ -97,6 +224,10 @@ class AsyncRunsResourceWithStreamingResponse:
97
224
  def __init__(self, runs: AsyncRunsResource) -> None:
98
225
  self._runs = runs
99
226
 
227
+ self.list_events = async_to_streamed_response_wrapper(
228
+ runs.list_events,
229
+ )
230
+
100
231
  @cached_property
101
232
  def help_requests(self) -> AsyncHelpRequestsResourceWithStreamingResponse:
102
233
  return AsyncHelpRequestsResourceWithStreamingResponse(self._runs.help_requests)
@@ -6,7 +6,7 @@ from typing_extensions import Literal
6
6
 
7
7
  import httpx
8
8
 
9
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
9
+ from ...._types import Body, Query, Headers, NotGiven, not_given
10
10
  from ...._utils import maybe_transform, async_maybe_transform
11
11
  from ...._compat import cached_property
12
12
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -75,7 +75,7 @@ class AvailityResource(SyncAPIResource):
75
75
  extra_headers: Headers | None = None,
76
76
  extra_query: Query | None = None,
77
77
  extra_body: Body | None = None,
78
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
78
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
79
79
  ) -> AvailitySubmitAppealResponse:
80
80
  """Initiates an asynchronous process to submit an appeal to Availity.
81
81
 
@@ -170,7 +170,7 @@ class AsyncAvailityResource(AsyncAPIResource):
170
170
  extra_headers: Headers | None = None,
171
171
  extra_query: Query | None = None,
172
172
  extra_body: Body | None = None,
173
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
173
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
174
174
  ) -> AvailitySubmitAppealResponse:
175
175
  """Initiates an asynchronous process to submit an appeal to Availity.
176
176
 
@@ -6,7 +6,7 @@ from typing import Iterable
6
6
 
7
7
  import httpx
8
8
 
9
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
9
+ from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
10
10
  from ...._utils import maybe_transform, async_maybe_transform
11
11
  from ...._compat import cached_property
12
12
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -52,7 +52,7 @@ class ClaimResource(SyncAPIResource):
52
52
  extra_headers: Headers | None = None,
53
53
  extra_query: Query | None = None,
54
54
  extra_body: Body | None = None,
55
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
55
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
56
56
  ) -> object:
57
57
  """
58
58
  Voids a previously submitted claim by submitting a new claim with
@@ -86,7 +86,7 @@ class ClaimResource(SyncAPIResource):
86
86
  extra_headers: Headers | None = None,
87
87
  extra_query: Query | None = None,
88
88
  extra_body: Body | None = None,
89
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
89
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
90
90
  ) -> object:
91
91
  """
92
92
  Retrieves the status and details of a submitted claim by its ID.
@@ -120,23 +120,23 @@ class ClaimResource(SyncAPIResource):
120
120
  submitter: claim_submit_params.Submitter,
121
121
  subscriber: claim_submit_params.Subscriber,
122
122
  trading_partner_service_id: str,
123
- control_number: str | NotGiven = NOT_GIVEN,
124
- dependent: claim_submit_params.Dependent | NotGiven = NOT_GIVEN,
125
- ordering: claim_submit_params.Ordering | NotGiven = NOT_GIVEN,
126
- payer_address: claim_submit_params.PayerAddress | NotGiven = NOT_GIVEN,
127
- pay_to_address: claim_submit_params.PayToAddress | NotGiven = NOT_GIVEN,
128
- pay_to_plan: claim_submit_params.PayToPlan | NotGiven = NOT_GIVEN,
129
- providers: Iterable[claim_submit_params.Provider] | NotGiven = NOT_GIVEN,
130
- referring: claim_submit_params.Referring | NotGiven = NOT_GIVEN,
131
- rendering: claim_submit_params.Rendering | NotGiven = NOT_GIVEN,
132
- supervising: claim_submit_params.Supervising | NotGiven = NOT_GIVEN,
133
- trading_partner_name: str | NotGiven = NOT_GIVEN,
123
+ control_number: str | Omit = omit,
124
+ dependent: claim_submit_params.Dependent | Omit = omit,
125
+ ordering: claim_submit_params.Ordering | Omit = omit,
126
+ payer_address: claim_submit_params.PayerAddress | Omit = omit,
127
+ pay_to_address: claim_submit_params.PayToAddress | Omit = omit,
128
+ pay_to_plan: claim_submit_params.PayToPlan | Omit = omit,
129
+ providers: Iterable[claim_submit_params.Provider] | Omit = omit,
130
+ referring: claim_submit_params.Referring | Omit = omit,
131
+ rendering: claim_submit_params.Rendering | Omit = omit,
132
+ supervising: claim_submit_params.Supervising | Omit = omit,
133
+ trading_partner_name: str | Omit = omit,
134
134
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
135
135
  # The extra values given here take precedence over values defined on the client or passed to this method.
136
136
  extra_headers: Headers | None = None,
137
137
  extra_query: Query | None = None,
138
138
  extra_body: Body | None = None,
139
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
139
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
140
140
  ) -> ClaimSubmitResponse:
141
141
  """Submits an electronic claim for processing.
142
142
 
@@ -214,7 +214,7 @@ class AsyncClaimResource(AsyncAPIResource):
214
214
  extra_headers: Headers | None = None,
215
215
  extra_query: Query | None = None,
216
216
  extra_body: Body | None = None,
217
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
217
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
218
218
  ) -> object:
219
219
  """
220
220
  Voids a previously submitted claim by submitting a new claim with
@@ -248,7 +248,7 @@ class AsyncClaimResource(AsyncAPIResource):
248
248
  extra_headers: Headers | None = None,
249
249
  extra_query: Query | None = None,
250
250
  extra_body: Body | None = None,
251
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
251
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
252
252
  ) -> object:
253
253
  """
254
254
  Retrieves the status and details of a submitted claim by its ID.
@@ -282,23 +282,23 @@ class AsyncClaimResource(AsyncAPIResource):
282
282
  submitter: claim_submit_params.Submitter,
283
283
  subscriber: claim_submit_params.Subscriber,
284
284
  trading_partner_service_id: str,
285
- control_number: str | NotGiven = NOT_GIVEN,
286
- dependent: claim_submit_params.Dependent | NotGiven = NOT_GIVEN,
287
- ordering: claim_submit_params.Ordering | NotGiven = NOT_GIVEN,
288
- payer_address: claim_submit_params.PayerAddress | NotGiven = NOT_GIVEN,
289
- pay_to_address: claim_submit_params.PayToAddress | NotGiven = NOT_GIVEN,
290
- pay_to_plan: claim_submit_params.PayToPlan | NotGiven = NOT_GIVEN,
291
- providers: Iterable[claim_submit_params.Provider] | NotGiven = NOT_GIVEN,
292
- referring: claim_submit_params.Referring | NotGiven = NOT_GIVEN,
293
- rendering: claim_submit_params.Rendering | NotGiven = NOT_GIVEN,
294
- supervising: claim_submit_params.Supervising | NotGiven = NOT_GIVEN,
295
- trading_partner_name: str | NotGiven = NOT_GIVEN,
285
+ control_number: str | Omit = omit,
286
+ dependent: claim_submit_params.Dependent | Omit = omit,
287
+ ordering: claim_submit_params.Ordering | Omit = omit,
288
+ payer_address: claim_submit_params.PayerAddress | Omit = omit,
289
+ pay_to_address: claim_submit_params.PayToAddress | Omit = omit,
290
+ pay_to_plan: claim_submit_params.PayToPlan | Omit = omit,
291
+ providers: Iterable[claim_submit_params.Provider] | Omit = omit,
292
+ referring: claim_submit_params.Referring | Omit = omit,
293
+ rendering: claim_submit_params.Rendering | Omit = omit,
294
+ supervising: claim_submit_params.Supervising | Omit = omit,
295
+ trading_partner_name: str | Omit = omit,
296
296
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
297
297
  # The extra values given here take precedence over values defined on the client or passed to this method.
298
298
  extra_headers: Headers | None = None,
299
299
  extra_query: Query | None = None,
300
300
  extra_body: Body | None = None,
301
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
301
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
302
302
  ) -> ClaimSubmitResponse:
303
303
  """Submits an electronic claim for processing.
304
304
 
@@ -22,7 +22,7 @@ from .payers import (
22
22
  PayersResourceWithStreamingResponse,
23
23
  AsyncPayersResourceWithStreamingResponse,
24
24
  )
25
- from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, SequenceNotStr
25
+ from ...._types import Body, Omit, Query, Headers, NoneType, NotGiven, SequenceNotStr, omit, not_given
26
26
  from ...._utils import maybe_transform, strip_not_given, async_maybe_transform
27
27
  from ...._compat import cached_property
28
28
  from ....types.v2 import (
@@ -84,7 +84,7 @@ class ClearinghouseResource(SyncAPIResource):
84
84
  extra_headers: Headers | None = None,
85
85
  extra_query: Query | None = None,
86
86
  extra_body: Body | None = None,
87
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
87
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
88
88
  ) -> None:
89
89
  """
90
90
  Calculates the cost of a patient's services based on the provided information.
@@ -128,16 +128,16 @@ class ClearinghouseResource(SyncAPIResource):
128
128
  subscriber_last_name: str,
129
129
  subscriber_member_id: str,
130
130
  trading_partner_service_id: str,
131
- payer_claim_number: str | NotGiven = NOT_GIVEN,
132
- provider_name: str | NotGiven = NOT_GIVEN,
133
- service_from_date: str | NotGiven = NOT_GIVEN,
134
- service_to_date: str | NotGiven = NOT_GIVEN,
131
+ payer_claim_number: str | Omit = omit,
132
+ provider_name: str | Omit = omit,
133
+ service_from_date: str | Omit = omit,
134
+ service_to_date: str | Omit = omit,
135
135
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
136
136
  # The extra values given here take precedence over values defined on the client or passed to this method.
137
137
  extra_headers: Headers | None = None,
138
138
  extra_query: Query | None = None,
139
139
  extra_body: Body | None = None,
140
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
140
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
141
141
  ) -> object:
142
142
  """
143
143
  Checks the real-time status of a claim using 276/277 transactions.
@@ -210,7 +210,7 @@ class ClearinghouseResource(SyncAPIResource):
210
210
  extra_headers: Headers | None = None,
211
211
  extra_query: Query | None = None,
212
212
  extra_body: Body | None = None,
213
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
213
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
214
214
  ) -> ClearinghouseCheckEligibilityResponse:
215
215
  """
216
216
  Verifies patient eligibility with a specific payer for given services based on
@@ -282,7 +282,7 @@ class ClearinghouseResource(SyncAPIResource):
282
282
  extra_headers: Headers | None = None,
283
283
  extra_query: Query | None = None,
284
284
  extra_body: Body | None = None,
285
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
285
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
286
286
  ) -> object:
287
287
  """
288
288
  Fetches coordination of benefits (COB) information for a patient from a
@@ -326,19 +326,19 @@ class ClearinghouseResource(SyncAPIResource):
326
326
  self,
327
327
  *,
328
328
  person: clearinghouse_run_discovery_params.Person,
329
- account_number: str | NotGiven = NOT_GIVEN,
330
- check_credit: bool | NotGiven = NOT_GIVEN,
331
- check_demographics: bool | NotGiven = NOT_GIVEN,
332
- date_of_service: str | NotGiven = NOT_GIVEN,
333
- run_business_rules: bool | NotGiven = NOT_GIVEN,
334
- service_code: str | NotGiven = NOT_GIVEN,
335
- idempotency_key: str | NotGiven = NOT_GIVEN,
329
+ account_number: str | Omit = omit,
330
+ check_credit: bool | Omit = omit,
331
+ check_demographics: bool | Omit = omit,
332
+ date_of_service: str | Omit = omit,
333
+ run_business_rules: bool | Omit = omit,
334
+ service_code: str | Omit = omit,
335
+ idempotency_key: str | Omit = omit,
336
336
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
337
337
  # The extra values given here take precedence over values defined on the client or passed to this method.
338
338
  extra_headers: Headers | None = None,
339
339
  extra_query: Query | None = None,
340
340
  extra_body: Body | None = None,
341
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
341
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
342
342
  ) -> ClearinghouseRunDiscoveryResponse:
343
343
  """
344
344
  Initiates a discovery process to find insurance coverage for a patient using
@@ -425,7 +425,7 @@ class AsyncClearinghouseResource(AsyncAPIResource):
425
425
  extra_headers: Headers | None = None,
426
426
  extra_query: Query | None = None,
427
427
  extra_body: Body | None = None,
428
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
428
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
429
429
  ) -> None:
430
430
  """
431
431
  Calculates the cost of a patient's services based on the provided information.
@@ -469,16 +469,16 @@ class AsyncClearinghouseResource(AsyncAPIResource):
469
469
  subscriber_last_name: str,
470
470
  subscriber_member_id: str,
471
471
  trading_partner_service_id: str,
472
- payer_claim_number: str | NotGiven = NOT_GIVEN,
473
- provider_name: str | NotGiven = NOT_GIVEN,
474
- service_from_date: str | NotGiven = NOT_GIVEN,
475
- service_to_date: str | NotGiven = NOT_GIVEN,
472
+ payer_claim_number: str | Omit = omit,
473
+ provider_name: str | Omit = omit,
474
+ service_from_date: str | Omit = omit,
475
+ service_to_date: str | Omit = omit,
476
476
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
477
477
  # The extra values given here take precedence over values defined on the client or passed to this method.
478
478
  extra_headers: Headers | None = None,
479
479
  extra_query: Query | None = None,
480
480
  extra_body: Body | None = None,
481
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
481
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
482
482
  ) -> object:
483
483
  """
484
484
  Checks the real-time status of a claim using 276/277 transactions.
@@ -551,7 +551,7 @@ class AsyncClearinghouseResource(AsyncAPIResource):
551
551
  extra_headers: Headers | None = None,
552
552
  extra_query: Query | None = None,
553
553
  extra_body: Body | None = None,
554
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
554
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
555
555
  ) -> ClearinghouseCheckEligibilityResponse:
556
556
  """
557
557
  Verifies patient eligibility with a specific payer for given services based on
@@ -623,7 +623,7 @@ class AsyncClearinghouseResource(AsyncAPIResource):
623
623
  extra_headers: Headers | None = None,
624
624
  extra_query: Query | None = None,
625
625
  extra_body: Body | None = None,
626
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
626
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
627
627
  ) -> object:
628
628
  """
629
629
  Fetches coordination of benefits (COB) information for a patient from a
@@ -667,19 +667,19 @@ class AsyncClearinghouseResource(AsyncAPIResource):
667
667
  self,
668
668
  *,
669
669
  person: clearinghouse_run_discovery_params.Person,
670
- account_number: str | NotGiven = NOT_GIVEN,
671
- check_credit: bool | NotGiven = NOT_GIVEN,
672
- check_demographics: bool | NotGiven = NOT_GIVEN,
673
- date_of_service: str | NotGiven = NOT_GIVEN,
674
- run_business_rules: bool | NotGiven = NOT_GIVEN,
675
- service_code: str | NotGiven = NOT_GIVEN,
676
- idempotency_key: str | NotGiven = NOT_GIVEN,
670
+ account_number: str | Omit = omit,
671
+ check_credit: bool | Omit = omit,
672
+ check_demographics: bool | Omit = omit,
673
+ date_of_service: str | Omit = omit,
674
+ run_business_rules: bool | Omit = omit,
675
+ service_code: str | Omit = omit,
676
+ idempotency_key: str | Omit = omit,
677
677
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
678
678
  # The extra values given here take precedence over values defined on the client or passed to this method.
679
679
  extra_headers: Headers | None = None,
680
680
  extra_query: Query | None = None,
681
681
  extra_body: Body | None = None,
682
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
682
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
683
683
  ) -> ClearinghouseRunDiscoveryResponse:
684
684
  """
685
685
  Initiates a discovery process to find insurance coverage for a patient using
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from ...._types import Body, Query, Headers, NotGiven, not_given
8
8
  from ...._utils import maybe_transform, async_maybe_transform
9
9
  from ...._compat import cached_property
10
10
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -50,7 +50,7 @@ class PayersResource(SyncAPIResource):
50
50
  extra_headers: Headers | None = None,
51
51
  extra_query: Query | None = None,
52
52
  extra_body: Body | None = None,
53
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
53
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
54
54
  ) -> PayerListResponse:
55
55
  """Lists all payers available for eligibility checks."""
56
56
  return self._get(
@@ -70,7 +70,7 @@ class PayersResource(SyncAPIResource):
70
70
  extra_headers: Headers | None = None,
71
71
  extra_query: Query | None = None,
72
72
  extra_body: Body | None = None,
73
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
73
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
74
74
  ) -> PayerSearchResponse:
75
75
  """
76
76
  Searches for payers based on the provided search criteria.
@@ -127,7 +127,7 @@ class AsyncPayersResource(AsyncAPIResource):
127
127
  extra_headers: Headers | None = None,
128
128
  extra_query: Query | None = None,
129
129
  extra_body: Body | None = None,
130
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
130
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
131
131
  ) -> PayerListResponse:
132
132
  """Lists all payers available for eligibility checks."""
133
133
  return await self._get(
@@ -147,7 +147,7 @@ class AsyncPayersResource(AsyncAPIResource):
147
147
  extra_headers: Headers | None = None,
148
148
  extra_query: Query | None = None,
149
149
  extra_body: Body | None = None,
150
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
150
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
151
151
  ) -> PayerSearchResponse:
152
152
  """
153
153
  Searches for payers based on the provided search criteria.