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
@@ -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, 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
@@ -17,7 +17,8 @@ from ...._response import (
17
17
  async_to_streamed_response_wrapper,
18
18
  )
19
19
  from ...._base_client import make_request_options
20
- from ....types.v2.documents import legacy_reason_params, legacy_extract_params
20
+ from ....types.v2.documents import legacy_split_params, legacy_reason_params, legacy_extract_params
21
+ from ....types.v2.documents.legacy_split_response import LegacySplitResponse
21
22
  from ....types.v2.documents.legacy_reason_response import LegacyReasonResponse
22
23
  from ....types.v2.documents.legacy_extract_response import LegacyExtractResponse
23
24
 
@@ -54,7 +55,7 @@ class LegacyResource(SyncAPIResource):
54
55
  extra_headers: Headers | None = None,
55
56
  extra_query: Query | None = None,
56
57
  extra_body: Body | None = None,
57
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
58
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
58
59
  ) -> LegacyExtractResponse:
59
60
  """Initiates an asynchronous legacy data extraction process.
60
61
 
@@ -99,7 +100,7 @@ class LegacyResource(SyncAPIResource):
99
100
  extra_headers: Headers | None = None,
100
101
  extra_query: Query | None = None,
101
102
  extra_body: Body | None = None,
102
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
103
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
103
104
  ) -> LegacyReasonResponse:
104
105
  """Initiates an asynchronous document reasoning process based on a task.
105
106
 
@@ -134,6 +135,42 @@ class LegacyResource(SyncAPIResource):
134
135
  cast_to=LegacyReasonResponse,
135
136
  )
136
137
 
138
+ def split(
139
+ self,
140
+ *,
141
+ document: legacy_split_params.Document,
142
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
143
+ # The extra values given here take precedence over values defined on the client or passed to this method.
144
+ extra_headers: Headers | None = None,
145
+ extra_query: Query | None = None,
146
+ extra_body: Body | None = None,
147
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
148
+ ) -> LegacySplitResponse:
149
+ """Initiates an asynchronous document splitting process.
150
+
151
+ Returns an ID to track the
152
+ async result.
153
+
154
+ Args:
155
+ document: The document to be split.
156
+
157
+ extra_headers: Send extra headers
158
+
159
+ extra_query: Add additional query parameters to the request
160
+
161
+ extra_body: Add additional JSON properties to the request
162
+
163
+ timeout: Override the client-level default timeout for this request, in seconds
164
+ """
165
+ return self._post(
166
+ "/api/v2/documents/legacy/split",
167
+ body=maybe_transform({"document": document}, legacy_split_params.LegacySplitParams),
168
+ options=make_request_options(
169
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
170
+ ),
171
+ cast_to=LegacySplitResponse,
172
+ )
173
+
137
174
 
138
175
  class AsyncLegacyResource(AsyncAPIResource):
139
176
  @cached_property
@@ -165,7 +202,7 @@ class AsyncLegacyResource(AsyncAPIResource):
165
202
  extra_headers: Headers | None = None,
166
203
  extra_query: Query | None = None,
167
204
  extra_body: Body | None = None,
168
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
205
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
169
206
  ) -> LegacyExtractResponse:
170
207
  """Initiates an asynchronous legacy data extraction process.
171
208
 
@@ -210,7 +247,7 @@ class AsyncLegacyResource(AsyncAPIResource):
210
247
  extra_headers: Headers | None = None,
211
248
  extra_query: Query | None = None,
212
249
  extra_body: Body | None = None,
213
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
250
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
214
251
  ) -> LegacyReasonResponse:
215
252
  """Initiates an asynchronous document reasoning process based on a task.
216
253
 
@@ -245,6 +282,42 @@ class AsyncLegacyResource(AsyncAPIResource):
245
282
  cast_to=LegacyReasonResponse,
246
283
  )
247
284
 
285
+ async def split(
286
+ self,
287
+ *,
288
+ document: legacy_split_params.Document,
289
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
290
+ # The extra values given here take precedence over values defined on the client or passed to this method.
291
+ extra_headers: Headers | None = None,
292
+ extra_query: Query | None = None,
293
+ extra_body: Body | None = None,
294
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
295
+ ) -> LegacySplitResponse:
296
+ """Initiates an asynchronous document splitting process.
297
+
298
+ Returns an ID to track the
299
+ async result.
300
+
301
+ Args:
302
+ document: The document to be split.
303
+
304
+ extra_headers: Send extra headers
305
+
306
+ extra_query: Add additional query parameters to the request
307
+
308
+ extra_body: Add additional JSON properties to the request
309
+
310
+ timeout: Override the client-level default timeout for this request, in seconds
311
+ """
312
+ return await self._post(
313
+ "/api/v2/documents/legacy/split",
314
+ body=await async_maybe_transform({"document": document}, legacy_split_params.LegacySplitParams),
315
+ options=make_request_options(
316
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
317
+ ),
318
+ cast_to=LegacySplitResponse,
319
+ )
320
+
248
321
 
249
322
  class LegacyResourceWithRawResponse:
250
323
  def __init__(self, legacy: LegacyResource) -> None:
@@ -256,6 +329,9 @@ class LegacyResourceWithRawResponse:
256
329
  self.reason = to_raw_response_wrapper(
257
330
  legacy.reason,
258
331
  )
332
+ self.split = to_raw_response_wrapper(
333
+ legacy.split,
334
+ )
259
335
 
260
336
 
261
337
  class AsyncLegacyResourceWithRawResponse:
@@ -268,6 +344,9 @@ class AsyncLegacyResourceWithRawResponse:
268
344
  self.reason = async_to_raw_response_wrapper(
269
345
  legacy.reason,
270
346
  )
347
+ self.split = async_to_raw_response_wrapper(
348
+ legacy.split,
349
+ )
271
350
 
272
351
 
273
352
  class LegacyResourceWithStreamingResponse:
@@ -280,6 +359,9 @@ class LegacyResourceWithStreamingResponse:
280
359
  self.reason = to_streamed_response_wrapper(
281
360
  legacy.reason,
282
361
  )
362
+ self.split = to_streamed_response_wrapper(
363
+ legacy.split,
364
+ )
283
365
 
284
366
 
285
367
  class AsyncLegacyResourceWithStreamingResponse:
@@ -292,3 +374,6 @@ class AsyncLegacyResourceWithStreamingResponse:
292
374
  self.reason = async_to_streamed_response_wrapper(
293
375
  legacy.reason,
294
376
  )
377
+ self.split = async_to_streamed_response_wrapper(
378
+ legacy.split,
379
+ )
@@ -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 ...._compat import cached_property
9
9
  from ...._resource import SyncAPIResource, AsyncAPIResource
10
10
  from ...._response import (
@@ -48,7 +48,7 @@ class PdfTemplateResource(SyncAPIResource):
48
48
  extra_headers: Headers | None = None,
49
49
  extra_query: Query | None = None,
50
50
  extra_body: Body | None = None,
51
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
52
52
  ) -> PdfTemplateRetrieveMetadataResponse:
53
53
  """
54
54
  Retrieves document metadata for a PDF template by slug, including a presigned
@@ -103,7 +103,7 @@ class AsyncPdfTemplateResource(AsyncAPIResource):
103
103
  extra_headers: Headers | None = None,
104
104
  extra_query: Query | None = None,
105
105
  extra_body: Body | None = None,
106
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
106
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
107
107
  ) -> PdfTemplateRetrieveMetadataResponse:
108
108
  """
109
109
  Retrieves document metadata for a PDF template by slug, including a presigned
@@ -7,7 +7,7 @@ from typing_extensions import Literal, overload
7
7
 
8
8
  import httpx
9
9
 
10
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11
11
  from ...._utils import required_args, maybe_transform, async_maybe_transform
12
12
  from ...._compat import cached_property
13
13
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -51,14 +51,14 @@ class TemplatesResource(SyncAPIResource):
51
51
  *,
52
52
  slug: str,
53
53
  type: Literal["document"],
54
- document_body: object | NotGiven = NOT_GIVEN,
55
- file_name: str | NotGiven = NOT_GIVEN,
54
+ document_body: object | Omit = omit,
55
+ file_name: str | Omit = omit,
56
56
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
57
57
  # The extra values given here take precedence over values defined on the client or passed to this method.
58
58
  extra_headers: Headers | None = None,
59
59
  extra_query: Query | None = None,
60
60
  extra_body: Body | None = None,
61
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
61
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
62
62
  ) -> TemplateGenerateDocumentAsyncResponse:
63
63
  """
64
64
  Initiates an asynchronous process to generate a document from a template slug
@@ -89,13 +89,13 @@ class TemplatesResource(SyncAPIResource):
89
89
  slug: str,
90
90
  type: Literal["pdf"],
91
91
  variables: Dict[str, Union[str, float, bool, Iterable[Dict[str, Union[str, float]]]]],
92
- file_name: str | NotGiven = NOT_GIVEN,
92
+ file_name: str | Omit = omit,
93
93
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
94
94
  # The extra values given here take precedence over values defined on the client or passed to this method.
95
95
  extra_headers: Headers | None = None,
96
96
  extra_query: Query | None = None,
97
97
  extra_body: Body | None = None,
98
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
98
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
99
99
  ) -> TemplateGenerateDocumentAsyncResponse:
100
100
  """
101
101
  Initiates an asynchronous process to generate a document from a template slug
@@ -126,15 +126,15 @@ class TemplatesResource(SyncAPIResource):
126
126
  *,
127
127
  slug: str,
128
128
  type: Literal["document"] | Literal["pdf"],
129
- document_body: object | NotGiven = NOT_GIVEN,
130
- file_name: str | NotGiven = NOT_GIVEN,
131
- variables: Dict[str, Union[str, float, bool, Iterable[Dict[str, Union[str, float]]]]] | NotGiven = NOT_GIVEN,
129
+ document_body: object | Omit = omit,
130
+ file_name: str | Omit = omit,
131
+ variables: Dict[str, Union[str, float, bool, Iterable[Dict[str, Union[str, float]]]]] | Omit = omit,
132
132
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
133
133
  # The extra values given here take precedence over values defined on the client or passed to this method.
134
134
  extra_headers: Headers | None = None,
135
135
  extra_query: Query | None = None,
136
136
  extra_body: Body | None = None,
137
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
137
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
138
138
  ) -> TemplateGenerateDocumentAsyncResponse:
139
139
  return self._post(
140
140
  "/api/v2/documents/templates/generate-document",
@@ -158,13 +158,13 @@ class TemplatesResource(SyncAPIResource):
158
158
  self,
159
159
  *,
160
160
  slug: str,
161
- variables: Dict[str, Union[Iterable[Dict[str, str]], str]],
161
+ variables: Dict[str, template_render_document_params.Variables],
162
162
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
163
163
  # The extra values given here take precedence over values defined on the client or passed to this method.
164
164
  extra_headers: Headers | None = None,
165
165
  extra_query: Query | None = None,
166
166
  extra_body: Body | None = None,
167
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
167
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
168
168
  ) -> TemplateRenderDocumentResponse:
169
169
  """
170
170
  Renders a document body from a template slug and variables and returns the JSON
@@ -173,8 +173,8 @@ class TemplatesResource(SyncAPIResource):
173
173
  Args:
174
174
  slug: The slug of the template to use.
175
175
 
176
- variables: The variables to use in the template. Can be strings or arrays of objects for
177
- table data.
176
+ variables: Variables for the template. Accepts strings, arrays of objects for tables, or
177
+ nested templates via `{ type: 'template', slug, variables }`.
178
178
 
179
179
  extra_headers: Send extra headers
180
180
 
@@ -226,14 +226,14 @@ class AsyncTemplatesResource(AsyncAPIResource):
226
226
  *,
227
227
  slug: str,
228
228
  type: Literal["document"],
229
- document_body: object | NotGiven = NOT_GIVEN,
230
- file_name: str | NotGiven = NOT_GIVEN,
229
+ document_body: object | Omit = omit,
230
+ file_name: str | Omit = omit,
231
231
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
232
232
  # The extra values given here take precedence over values defined on the client or passed to this method.
233
233
  extra_headers: Headers | None = None,
234
234
  extra_query: Query | None = None,
235
235
  extra_body: Body | None = None,
236
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
236
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
237
237
  ) -> TemplateGenerateDocumentAsyncResponse:
238
238
  """
239
239
  Initiates an asynchronous process to generate a document from a template slug
@@ -264,13 +264,13 @@ class AsyncTemplatesResource(AsyncAPIResource):
264
264
  slug: str,
265
265
  type: Literal["pdf"],
266
266
  variables: Dict[str, Union[str, float, bool, Iterable[Dict[str, Union[str, float]]]]],
267
- file_name: str | NotGiven = NOT_GIVEN,
267
+ file_name: str | Omit = omit,
268
268
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
269
269
  # The extra values given here take precedence over values defined on the client or passed to this method.
270
270
  extra_headers: Headers | None = None,
271
271
  extra_query: Query | None = None,
272
272
  extra_body: Body | None = None,
273
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
273
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
274
274
  ) -> TemplateGenerateDocumentAsyncResponse:
275
275
  """
276
276
  Initiates an asynchronous process to generate a document from a template slug
@@ -301,15 +301,15 @@ class AsyncTemplatesResource(AsyncAPIResource):
301
301
  *,
302
302
  slug: str,
303
303
  type: Literal["document"] | Literal["pdf"],
304
- document_body: object | NotGiven = NOT_GIVEN,
305
- file_name: str | NotGiven = NOT_GIVEN,
306
- variables: Dict[str, Union[str, float, bool, Iterable[Dict[str, Union[str, float]]]]] | NotGiven = NOT_GIVEN,
304
+ document_body: object | Omit = omit,
305
+ file_name: str | Omit = omit,
306
+ variables: Dict[str, Union[str, float, bool, Iterable[Dict[str, Union[str, float]]]]] | Omit = omit,
307
307
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
308
308
  # The extra values given here take precedence over values defined on the client or passed to this method.
309
309
  extra_headers: Headers | None = None,
310
310
  extra_query: Query | None = None,
311
311
  extra_body: Body | None = None,
312
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
312
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
313
313
  ) -> TemplateGenerateDocumentAsyncResponse:
314
314
  return await self._post(
315
315
  "/api/v2/documents/templates/generate-document",
@@ -333,13 +333,13 @@ class AsyncTemplatesResource(AsyncAPIResource):
333
333
  self,
334
334
  *,
335
335
  slug: str,
336
- variables: Dict[str, Union[Iterable[Dict[str, str]], str]],
336
+ variables: Dict[str, template_render_document_params.Variables],
337
337
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
338
338
  # The extra values given here take precedence over values defined on the client or passed to this method.
339
339
  extra_headers: Headers | None = None,
340
340
  extra_query: Query | None = None,
341
341
  extra_body: Body | None = None,
342
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
342
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
343
343
  ) -> TemplateRenderDocumentResponse:
344
344
  """
345
345
  Renders a document body from a template slug and variables and returns the JSON
@@ -348,8 +348,8 @@ class AsyncTemplatesResource(AsyncAPIResource):
348
348
  Args:
349
349
  slug: The slug of the template to use.
350
350
 
351
- variables: The variables to use in the template. Can be strings or arrays of objects for
352
- table data.
351
+ variables: Variables for the template. Accepts strings, arrays of objects for tables, or
352
+ nested templates via `{ type: 'template', slug, variables }`.
353
353
 
354
354
  extra_headers: Send extra headers
355
355
 
@@ -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, Omit, Query, Headers, NotGiven, omit, not_given
8
8
  from ..._utils import maybe_transform, strip_not_given, async_maybe_transform
9
9
  from ..._compat import cached_property
10
10
  from ...types.v2 import event_emit_params
@@ -45,14 +45,14 @@ class EventsResource(SyncAPIResource):
45
45
  self,
46
46
  *,
47
47
  name: str,
48
- payload: object | NotGiven = NOT_GIVEN,
49
- idempotency_key: str | NotGiven = NOT_GIVEN,
48
+ payload: object | Omit = omit,
49
+ idempotency_key: str | Omit = omit,
50
50
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
51
51
  # The extra values given here take precedence over values defined on the client or passed to this method.
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
  ) -> EventEmitResponse:
57
57
  """
58
58
  Create event
@@ -111,14 +111,14 @@ class AsyncEventsResource(AsyncAPIResource):
111
111
  self,
112
112
  *,
113
113
  name: str,
114
- payload: object | NotGiven = NOT_GIVEN,
115
- idempotency_key: str | NotGiven = NOT_GIVEN,
114
+ payload: object | Omit = omit,
115
+ idempotency_key: str | Omit = omit,
116
116
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
117
117
  # The extra values given here take precedence over values defined on the client or passed to this method.
118
118
  extra_headers: Headers | None = None,
119
119
  extra_query: Query | None = None,
120
120
  extra_body: Body | None = None,
121
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
121
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
122
122
  ) -> EventEmitResponse:
123
123
  """
124
124
  Create event
@@ -7,7 +7,7 @@ from typing_extensions import Literal
7
7
 
8
8
  import httpx
9
9
 
10
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11
11
  from ...._utils import maybe_transform, async_maybe_transform
12
12
  from ...._compat import cached_property
13
13
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -52,14 +52,14 @@ class AdtResource(SyncAPIResource):
52
52
  first_name: str,
53
53
  gender_at_birth: Literal["M", "F", "O", "U"],
54
54
  last_name: str,
55
- contact: Iterable[adt_subscribe_params.Contact] | NotGiven = NOT_GIVEN,
56
- personal_identifiers: Iterable[adt_subscribe_params.PersonalIdentifier] | NotGiven = NOT_GIVEN,
55
+ contact: Iterable[adt_subscribe_params.Contact] | Omit = omit,
56
+ personal_identifiers: Iterable[adt_subscribe_params.PersonalIdentifier] | Omit = omit,
57
57
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
58
58
  # The extra values given here take precedence over values defined on the client or passed to this method.
59
59
  extra_headers: Headers | None = None,
60
60
  extra_query: Query | None = None,
61
61
  extra_body: Body | None = None,
62
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
62
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
63
63
  ) -> object:
64
64
  """
65
65
  Creates or updates a patient and subscribes to their ADT (Admission, Discharge,
@@ -147,14 +147,14 @@ class AsyncAdtResource(AsyncAPIResource):
147
147
  first_name: str,
148
148
  gender_at_birth: Literal["M", "F", "O", "U"],
149
149
  last_name: str,
150
- contact: Iterable[adt_subscribe_params.Contact] | NotGiven = NOT_GIVEN,
151
- personal_identifiers: Iterable[adt_subscribe_params.PersonalIdentifier] | NotGiven = NOT_GIVEN,
150
+ contact: Iterable[adt_subscribe_params.Contact] | Omit = omit,
151
+ personal_identifiers: Iterable[adt_subscribe_params.PersonalIdentifier] | Omit = omit,
152
152
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
153
153
  # The extra values given here take precedence over values defined on the client or passed to this method.
154
154
  extra_headers: Headers | None = None,
155
155
  extra_query: Query | None = None,
156
156
  extra_body: Body | None = None,
157
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
157
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
158
158
  ) -> object:
159
159
  """
160
160
  Creates or updates a patient and subscribes to their ADT (Admission, Discharge,
@@ -7,7 +7,7 @@ from typing_extensions import Literal
7
7
 
8
8
  import httpx
9
9
 
10
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11
11
  from ...._utils import maybe_transform, async_maybe_transform
12
12
  from ...._compat import cached_property
13
13
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -53,14 +53,14 @@ class DocumentsResource(SyncAPIResource):
53
53
  first_name: str,
54
54
  gender_at_birth: Literal["M", "F", "O", "U"],
55
55
  last_name: str,
56
- contact: Iterable[document_query_params.Contact] | NotGiven = NOT_GIVEN,
57
- personal_identifiers: Iterable[document_query_params.PersonalIdentifier] | NotGiven = NOT_GIVEN,
56
+ contact: Iterable[document_query_params.Contact] | Omit = omit,
57
+ personal_identifiers: Iterable[document_query_params.PersonalIdentifier] | Omit = omit,
58
58
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
59
59
  # The extra values given here take precedence over values defined on the client or passed to this method.
60
60
  extra_headers: Headers | None = None,
61
61
  extra_query: Query | None = None,
62
62
  extra_body: Body | None = None,
63
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
63
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
64
64
  ) -> DocumentQueryResponse:
65
65
  """Queries patient documents from the HIE network.
66
66
 
@@ -126,15 +126,15 @@ class DocumentsResource(SyncAPIResource):
126
126
  document_type: document_upload_params.DocumentType,
127
127
  file_metadata_id: str,
128
128
  patient_id: str,
129
- date_end: str | NotGiven = NOT_GIVEN,
130
- date_start: str | NotGiven = NOT_GIVEN,
131
- facility_name: str | NotGiven = NOT_GIVEN,
129
+ date_end: str | Omit = omit,
130
+ date_start: str | Omit = omit,
131
+ facility_name: str | Omit = omit,
132
132
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
133
133
  # The extra values given here take precedence over values defined on the client or passed to this method.
134
134
  extra_headers: Headers | None = None,
135
135
  extra_query: Query | None = None,
136
136
  extra_body: Body | None = None,
137
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
137
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
138
138
  ) -> object:
139
139
  """
140
140
  Contributes a document to the HIE network for a specific patient.
@@ -212,14 +212,14 @@ class AsyncDocumentsResource(AsyncAPIResource):
212
212
  first_name: str,
213
213
  gender_at_birth: Literal["M", "F", "O", "U"],
214
214
  last_name: str,
215
- contact: Iterable[document_query_params.Contact] | NotGiven = NOT_GIVEN,
216
- personal_identifiers: Iterable[document_query_params.PersonalIdentifier] | NotGiven = NOT_GIVEN,
215
+ contact: Iterable[document_query_params.Contact] | Omit = omit,
216
+ personal_identifiers: Iterable[document_query_params.PersonalIdentifier] | Omit = omit,
217
217
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
218
218
  # The extra values given here take precedence over values defined on the client or passed to this method.
219
219
  extra_headers: Headers | None = None,
220
220
  extra_query: Query | None = None,
221
221
  extra_body: Body | None = None,
222
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
222
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
223
223
  ) -> DocumentQueryResponse:
224
224
  """Queries patient documents from the HIE network.
225
225
 
@@ -285,15 +285,15 @@ class AsyncDocumentsResource(AsyncAPIResource):
285
285
  document_type: document_upload_params.DocumentType,
286
286
  file_metadata_id: str,
287
287
  patient_id: str,
288
- date_end: str | NotGiven = NOT_GIVEN,
289
- date_start: str | NotGiven = NOT_GIVEN,
290
- facility_name: str | NotGiven = NOT_GIVEN,
288
+ date_end: str | Omit = omit,
289
+ date_start: str | Omit = omit,
290
+ facility_name: str | Omit = omit,
291
291
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
292
292
  # The extra values given here take precedence over values defined on the client or passed to this method.
293
293
  extra_headers: Headers | None = None,
294
294
  extra_query: Query | None = None,
295
295
  extra_body: Body | None = None,
296
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
296
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
297
297
  ) -> object:
298
298
  """
299
299
  Contributes a document to the HIE network for a specific patient.
@@ -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, Omit, Query, Headers, NotGiven, omit, 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
@@ -45,13 +45,13 @@ class TransactionsResource(SyncAPIResource):
45
45
  self,
46
46
  *,
47
47
  slug: str,
48
- cursor: str | NotGiven = NOT_GIVEN,
48
+ cursor: str | Omit = omit,
49
49
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
50
50
  # The extra values given here take precedence over values defined on the client or passed to this method.
51
51
  extra_headers: Headers | None = None,
52
52
  extra_query: Query | None = None,
53
53
  extra_body: Body | None = None,
54
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
54
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
55
55
  ) -> TransactionSyncResponse:
56
56
  """
57
57
  Sync bank transactions
@@ -109,13 +109,13 @@ class AsyncTransactionsResource(AsyncAPIResource):
109
109
  self,
110
110
  *,
111
111
  slug: str,
112
- cursor: str | NotGiven = NOT_GIVEN,
112
+ cursor: str | Omit = omit,
113
113
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
114
114
  # The extra values given here take precedence over values defined on the client or passed to this method.
115
115
  extra_headers: Headers | None = None,
116
116
  extra_query: Query | None = None,
117
117
  extra_body: Body | None = None,
118
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
118
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
119
119
  ) -> TransactionSyncResponse:
120
120
  """
121
121
  Sync bank transactions