samplehc 0.13.0__py3-none-any.whl → 0.15.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 (97) hide show
  1. samplehc/_base_client.py +8 -2
  2. samplehc/_client.py +105 -29
  3. samplehc/_models.py +37 -15
  4. samplehc/_streaming.py +12 -12
  5. samplehc/_types.py +3 -2
  6. samplehc/_utils/_sync.py +3 -31
  7. samplehc/_utils/_utils.py +1 -1
  8. samplehc/_version.py +1 -1
  9. samplehc/resources/v2/__init__.py +0 -28
  10. samplehc/resources/v2/documents/documents.py +8 -0
  11. samplehc/resources/v2/integrations/__init__.py +14 -0
  12. samplehc/resources/v2/integrations/integrations.py +32 -0
  13. samplehc/resources/v2/integrations/wellsky/__init__.py +33 -0
  14. samplehc/resources/v2/integrations/wellsky/patients.py +324 -0
  15. samplehc/resources/v2/integrations/wellsky/wellsky.py +102 -0
  16. samplehc/resources/v2/tasks/tasks.py +12 -3
  17. samplehc/resources/v2/v2.py +0 -64
  18. samplehc/types/v1_query_audit_logs_response.py +4 -0
  19. samplehc/types/v2/__init__.py +0 -2
  20. samplehc/types/v2/clearinghouse/claim_submit_response.py +5 -0
  21. samplehc/types/v2/clearinghouse/payer_list_response.py +2 -0
  22. samplehc/types/v2/clearinghouse/payer_search_response.py +2 -0
  23. samplehc/types/v2/clearinghouse_check_eligibility_response.py +4 -0
  24. samplehc/types/v2/clearinghouse_run_discovery_response.py +2 -0
  25. samplehc/types/v2/communication_send_fax_params.py +2 -0
  26. samplehc/types/v2/communication_send_fax_response.py +2 -0
  27. samplehc/types/v2/communication_send_letter_params.py +8 -0
  28. samplehc/types/v2/communication_send_letter_response.py +2 -0
  29. samplehc/types/v2/database_execute_sql_response.py +2 -0
  30. samplehc/types/v2/document_classify_params.py +2 -0
  31. samplehc/types/v2/document_classify_response.py +2 -0
  32. samplehc/types/v2/document_combine_response.py +4 -0
  33. samplehc/types/v2/document_create_from_splits_params.py +2 -0
  34. samplehc/types/v2/document_create_from_splits_response.py +2 -0
  35. samplehc/types/v2/document_extract_params.py +40 -3
  36. samplehc/types/v2/document_extract_response.py +2 -0
  37. samplehc/types/v2/document_generate_csv_response.py +4 -0
  38. samplehc/types/v2/document_presigned_upload_url_response.py +2 -0
  39. samplehc/types/v2/document_retrieve_csv_content_response.py +2 -0
  40. samplehc/types/v2/document_retrieve_metadata_response.py +2 -0
  41. samplehc/types/v2/document_search_response.py +2 -0
  42. samplehc/types/v2/document_split_params.py +2 -0
  43. samplehc/types/v2/document_split_response.py +2 -0
  44. samplehc/types/v2/documents/format_create_pdf_response.py +2 -0
  45. samplehc/types/v2/documents/legacy_extract_response.py +2 -0
  46. samplehc/types/v2/documents/legacy_reason_response.py +2 -0
  47. samplehc/types/v2/documents/legacy_split_params.py +2 -0
  48. samplehc/types/v2/documents/legacy_split_response.py +2 -0
  49. samplehc/types/v2/documents/pdf_template_retrieve_metadata_response.py +2 -0
  50. samplehc/types/v2/documents/template_render_document_response.py +2 -0
  51. samplehc/types/v2/hie/document_upload_params.py +2 -0
  52. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +2 -0
  53. samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +2 -0
  54. samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +2 -0
  55. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +2 -0
  56. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +2 -0
  57. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +2 -0
  58. samplehc/types/v2/integrations/kno2/message_get_attachment_response.py +2 -0
  59. samplehc/types/v2/integrations/kno2/message_retrieve_response.py +2 -0
  60. samplehc/types/v2/integrations/wellsky/__init__.py +6 -0
  61. samplehc/types/v2/integrations/wellsky/patient_add_params.py +13 -0
  62. samplehc/types/v2/integrations/wellsky/patient_search_params.py +32 -0
  63. samplehc/types/v2/policy_list_companies_response.py +2 -0
  64. samplehc/types/v2/policy_list_plans_response.py +2 -0
  65. samplehc/types/v2/policy_list_response.py +2 -0
  66. samplehc/types/v2/policy_retrieve_presigned_url_response.py +2 -0
  67. samplehc/types/v2/policy_retrieve_text_response.py +2 -0
  68. samplehc/types/v2/task_cancel_response.py +2 -0
  69. samplehc/types/v2/task_complete_response.py +2 -0
  70. samplehc/types/v2/task_update_column_params.py +6 -3
  71. samplehc/types/v2/workflow_run_resume_when_complete_response.py +2 -0
  72. samplehc/types/v2/workflow_run_retrieve_response.py +2 -0
  73. samplehc/types/v2/workflow_runs/step_get_output_response.py +2 -0
  74. samplehc/types/v2/workflow_start_response.py +2 -0
  75. {samplehc-0.13.0.dist-info → samplehc-0.15.0.dist-info}/METADATA +8 -7
  76. {samplehc-0.13.0.dist-info → samplehc-0.15.0.dist-info}/RECORD +78 -91
  77. {samplehc-0.13.0.dist-info → samplehc-0.15.0.dist-info}/licenses/LICENSE +1 -1
  78. samplehc/resources/v2/browser_agents/__init__.py +0 -33
  79. samplehc/resources/v2/browser_agents/browser_agents.py +0 -209
  80. samplehc/resources/v2/browser_agents/runs/__init__.py +0 -33
  81. samplehc/resources/v2/browser_agents/runs/help_requests.py +0 -191
  82. samplehc/resources/v2/browser_agents/runs/runs.py +0 -233
  83. samplehc/resources/v2/browser_automation/__init__.py +0 -33
  84. samplehc/resources/v2/browser_automation/availity.py +0 -249
  85. samplehc/resources/v2/browser_automation/browser_automation.py +0 -102
  86. samplehc/types/v2/browser_agent_invoke_params.py +0 -13
  87. samplehc/types/v2/browser_agent_invoke_response.py +0 -15
  88. samplehc/types/v2/browser_agents/__init__.py +0 -6
  89. samplehc/types/v2/browser_agents/run_list_events_params.py +0 -15
  90. samplehc/types/v2/browser_agents/run_list_events_response.py +0 -30
  91. samplehc/types/v2/browser_agents/runs/__init__.py +0 -6
  92. samplehc/types/v2/browser_agents/runs/help_request_resolve_params.py +0 -18
  93. samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +0 -28
  94. samplehc/types/v2/browser_automation/__init__.py +0 -6
  95. samplehc/types/v2/browser_automation/availity_submit_appeal_params.py +0 -59
  96. samplehc/types/v2/browser_automation/availity_submit_appeal_response.py +0 -12
  97. {samplehc-0.13.0.dist-info → samplehc-0.15.0.dist-info}/WHEEL +0 -0
@@ -60,6 +60,14 @@ from .glidian.glidian import (
60
60
  GlidianResourceWithStreamingResponse,
61
61
  AsyncGlidianResourceWithStreamingResponse,
62
62
  )
63
+ from .wellsky.wellsky import (
64
+ WellskyResource,
65
+ AsyncWellskyResource,
66
+ WellskyResourceWithRawResponse,
67
+ AsyncWellskyResourceWithRawResponse,
68
+ WellskyResourceWithStreamingResponse,
69
+ AsyncWellskyResourceWithStreamingResponse,
70
+ )
63
71
 
64
72
  __all__ = ["IntegrationsResource", "AsyncIntegrationsResource"]
65
73
 
@@ -69,6 +77,10 @@ class IntegrationsResource(SyncAPIResource):
69
77
  def snowflake(self) -> SnowflakeResource:
70
78
  return SnowflakeResource(self._client)
71
79
 
80
+ @cached_property
81
+ def wellsky(self) -> WellskyResource:
82
+ return WellskyResource(self._client)
83
+
72
84
  @cached_property
73
85
  def bank(self) -> BankResource:
74
86
  return BankResource(self._client)
@@ -118,6 +130,10 @@ class AsyncIntegrationsResource(AsyncAPIResource):
118
130
  def snowflake(self) -> AsyncSnowflakeResource:
119
131
  return AsyncSnowflakeResource(self._client)
120
132
 
133
+ @cached_property
134
+ def wellsky(self) -> AsyncWellskyResource:
135
+ return AsyncWellskyResource(self._client)
136
+
121
137
  @cached_property
122
138
  def bank(self) -> AsyncBankResource:
123
139
  return AsyncBankResource(self._client)
@@ -170,6 +186,10 @@ class IntegrationsResourceWithRawResponse:
170
186
  def snowflake(self) -> SnowflakeResourceWithRawResponse:
171
187
  return SnowflakeResourceWithRawResponse(self._integrations.snowflake)
172
188
 
189
+ @cached_property
190
+ def wellsky(self) -> WellskyResourceWithRawResponse:
191
+ return WellskyResourceWithRawResponse(self._integrations.wellsky)
192
+
173
193
  @cached_property
174
194
  def bank(self) -> BankResourceWithRawResponse:
175
195
  return BankResourceWithRawResponse(self._integrations.bank)
@@ -203,6 +223,10 @@ class AsyncIntegrationsResourceWithRawResponse:
203
223
  def snowflake(self) -> AsyncSnowflakeResourceWithRawResponse:
204
224
  return AsyncSnowflakeResourceWithRawResponse(self._integrations.snowflake)
205
225
 
226
+ @cached_property
227
+ def wellsky(self) -> AsyncWellskyResourceWithRawResponse:
228
+ return AsyncWellskyResourceWithRawResponse(self._integrations.wellsky)
229
+
206
230
  @cached_property
207
231
  def bank(self) -> AsyncBankResourceWithRawResponse:
208
232
  return AsyncBankResourceWithRawResponse(self._integrations.bank)
@@ -236,6 +260,10 @@ class IntegrationsResourceWithStreamingResponse:
236
260
  def snowflake(self) -> SnowflakeResourceWithStreamingResponse:
237
261
  return SnowflakeResourceWithStreamingResponse(self._integrations.snowflake)
238
262
 
263
+ @cached_property
264
+ def wellsky(self) -> WellskyResourceWithStreamingResponse:
265
+ return WellskyResourceWithStreamingResponse(self._integrations.wellsky)
266
+
239
267
  @cached_property
240
268
  def bank(self) -> BankResourceWithStreamingResponse:
241
269
  return BankResourceWithStreamingResponse(self._integrations.bank)
@@ -269,6 +297,10 @@ class AsyncIntegrationsResourceWithStreamingResponse:
269
297
  def snowflake(self) -> AsyncSnowflakeResourceWithStreamingResponse:
270
298
  return AsyncSnowflakeResourceWithStreamingResponse(self._integrations.snowflake)
271
299
 
300
+ @cached_property
301
+ def wellsky(self) -> AsyncWellskyResourceWithStreamingResponse:
302
+ return AsyncWellskyResourceWithStreamingResponse(self._integrations.wellsky)
303
+
272
304
  @cached_property
273
305
  def bank(self) -> AsyncBankResourceWithStreamingResponse:
274
306
  return AsyncBankResourceWithStreamingResponse(self._integrations.bank)
@@ -0,0 +1,33 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .wellsky import (
4
+ WellskyResource,
5
+ AsyncWellskyResource,
6
+ WellskyResourceWithRawResponse,
7
+ AsyncWellskyResourceWithRawResponse,
8
+ WellskyResourceWithStreamingResponse,
9
+ AsyncWellskyResourceWithStreamingResponse,
10
+ )
11
+ from .patients import (
12
+ PatientsResource,
13
+ AsyncPatientsResource,
14
+ PatientsResourceWithRawResponse,
15
+ AsyncPatientsResourceWithRawResponse,
16
+ PatientsResourceWithStreamingResponse,
17
+ AsyncPatientsResourceWithStreamingResponse,
18
+ )
19
+
20
+ __all__ = [
21
+ "PatientsResource",
22
+ "AsyncPatientsResource",
23
+ "PatientsResourceWithRawResponse",
24
+ "AsyncPatientsResourceWithRawResponse",
25
+ "PatientsResourceWithStreamingResponse",
26
+ "AsyncPatientsResourceWithStreamingResponse",
27
+ "WellskyResource",
28
+ "AsyncWellskyResource",
29
+ "WellskyResourceWithRawResponse",
30
+ "AsyncWellskyResourceWithRawResponse",
31
+ "WellskyResourceWithStreamingResponse",
32
+ "AsyncWellskyResourceWithStreamingResponse",
33
+ ]
@@ -0,0 +1,324 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ import httpx
8
+
9
+ from ....._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
10
+ from ....._utils import maybe_transform, async_maybe_transform
11
+ from ....._compat import cached_property
12
+ from ....._resource import SyncAPIResource, AsyncAPIResource
13
+ from ....._response import (
14
+ to_raw_response_wrapper,
15
+ to_streamed_response_wrapper,
16
+ async_to_raw_response_wrapper,
17
+ async_to_streamed_response_wrapper,
18
+ )
19
+ from ....._base_client import make_request_options
20
+ from .....types.v2.integrations.wellsky import patient_add_params, patient_search_params
21
+
22
+ __all__ = ["PatientsResource", "AsyncPatientsResource"]
23
+
24
+
25
+ class PatientsResource(SyncAPIResource):
26
+ @cached_property
27
+ def with_raw_response(self) -> PatientsResourceWithRawResponse:
28
+ """
29
+ This property can be used as a prefix for any HTTP method call to return
30
+ the raw response object instead of the parsed content.
31
+
32
+ For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
33
+ """
34
+ return PatientsResourceWithRawResponse(self)
35
+
36
+ @cached_property
37
+ def with_streaming_response(self) -> PatientsResourceWithStreamingResponse:
38
+ """
39
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
40
+
41
+ For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
42
+ """
43
+ return PatientsResourceWithStreamingResponse(self)
44
+
45
+ def add(
46
+ self,
47
+ slug: str,
48
+ *,
49
+ data: Dict[str, object],
50
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
51
+ # The extra values given here take precedence over values defined on the client or passed to this method.
52
+ extra_headers: Headers | None = None,
53
+ extra_query: Query | None = None,
54
+ extra_body: Body | None = None,
55
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
56
+ ) -> object:
57
+ """
58
+ Add a patient to WellSky.
59
+
60
+ Args:
61
+ data: The data to add the patient to WellSky.
62
+
63
+ extra_headers: Send extra headers
64
+
65
+ extra_query: Add additional query parameters to the request
66
+
67
+ extra_body: Add additional JSON properties to the request
68
+
69
+ timeout: Override the client-level default timeout for this request, in seconds
70
+ """
71
+ if not slug:
72
+ raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
73
+ return self._post(
74
+ f"/api/v2/integrations/wellsky/{slug}/patients",
75
+ body=maybe_transform({"data": data}, patient_add_params.PatientAddParams),
76
+ options=make_request_options(
77
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
78
+ ),
79
+ cast_to=object,
80
+ )
81
+
82
+ def search(
83
+ self,
84
+ slug: str,
85
+ *,
86
+ reqdelete: str | Omit = omit,
87
+ reqdispin: str | Omit = omit,
88
+ reqlvl6_in: str | Omit = omit,
89
+ reqnamein: str | Omit = omit,
90
+ reqnonprosp: str | Omit = omit,
91
+ reqprosp: str | Omit = omit,
92
+ reqsortin: str | Omit = omit,
93
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
94
+ # The extra values given here take precedence over values defined on the client or passed to this method.
95
+ extra_headers: Headers | None = None,
96
+ extra_query: Query | None = None,
97
+ extra_body: Body | None = None,
98
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
99
+ ) -> object:
100
+ """
101
+ Search for patients in WellSky.
102
+
103
+ Args:
104
+ reqdelete: Delete flag (Y/N)
105
+
106
+ reqdispin: Disposition filter
107
+
108
+ reqlvl6_in: Facility ID
109
+
110
+ reqnamein: Patient name to search
111
+
112
+ reqnonprosp: Non-prospect flag (Y/N)
113
+
114
+ reqprosp: Prospect flag (Y/N)
115
+
116
+ reqsortin: Sort field
117
+
118
+ extra_headers: Send extra headers
119
+
120
+ extra_query: Add additional query parameters to the request
121
+
122
+ extra_body: Add additional JSON properties to the request
123
+
124
+ timeout: Override the client-level default timeout for this request, in seconds
125
+ """
126
+ if not slug:
127
+ raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
128
+ return self._get(
129
+ f"/api/v2/integrations/wellsky/{slug}/patients",
130
+ options=make_request_options(
131
+ extra_headers=extra_headers,
132
+ extra_query=extra_query,
133
+ extra_body=extra_body,
134
+ timeout=timeout,
135
+ query=maybe_transform(
136
+ {
137
+ "reqdelete": reqdelete,
138
+ "reqdispin": reqdispin,
139
+ "reqlvl6_in": reqlvl6_in,
140
+ "reqnamein": reqnamein,
141
+ "reqnonprosp": reqnonprosp,
142
+ "reqprosp": reqprosp,
143
+ "reqsortin": reqsortin,
144
+ },
145
+ patient_search_params.PatientSearchParams,
146
+ ),
147
+ ),
148
+ cast_to=object,
149
+ )
150
+
151
+
152
+ class AsyncPatientsResource(AsyncAPIResource):
153
+ @cached_property
154
+ def with_raw_response(self) -> AsyncPatientsResourceWithRawResponse:
155
+ """
156
+ This property can be used as a prefix for any HTTP method call to return
157
+ the raw response object instead of the parsed content.
158
+
159
+ For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
160
+ """
161
+ return AsyncPatientsResourceWithRawResponse(self)
162
+
163
+ @cached_property
164
+ def with_streaming_response(self) -> AsyncPatientsResourceWithStreamingResponse:
165
+ """
166
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
167
+
168
+ For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
169
+ """
170
+ return AsyncPatientsResourceWithStreamingResponse(self)
171
+
172
+ async def add(
173
+ self,
174
+ slug: str,
175
+ *,
176
+ data: Dict[str, object],
177
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
178
+ # The extra values given here take precedence over values defined on the client or passed to this method.
179
+ extra_headers: Headers | None = None,
180
+ extra_query: Query | None = None,
181
+ extra_body: Body | None = None,
182
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
183
+ ) -> object:
184
+ """
185
+ Add a patient to WellSky.
186
+
187
+ Args:
188
+ data: The data to add the patient to WellSky.
189
+
190
+ extra_headers: Send extra headers
191
+
192
+ extra_query: Add additional query parameters to the request
193
+
194
+ extra_body: Add additional JSON properties to the request
195
+
196
+ timeout: Override the client-level default timeout for this request, in seconds
197
+ """
198
+ if not slug:
199
+ raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
200
+ return await self._post(
201
+ f"/api/v2/integrations/wellsky/{slug}/patients",
202
+ body=await async_maybe_transform({"data": data}, patient_add_params.PatientAddParams),
203
+ options=make_request_options(
204
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
205
+ ),
206
+ cast_to=object,
207
+ )
208
+
209
+ async def search(
210
+ self,
211
+ slug: str,
212
+ *,
213
+ reqdelete: str | Omit = omit,
214
+ reqdispin: str | Omit = omit,
215
+ reqlvl6_in: str | Omit = omit,
216
+ reqnamein: str | Omit = omit,
217
+ reqnonprosp: str | Omit = omit,
218
+ reqprosp: str | Omit = omit,
219
+ reqsortin: str | Omit = omit,
220
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
221
+ # The extra values given here take precedence over values defined on the client or passed to this method.
222
+ extra_headers: Headers | None = None,
223
+ extra_query: Query | None = None,
224
+ extra_body: Body | None = None,
225
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
226
+ ) -> object:
227
+ """
228
+ Search for patients in WellSky.
229
+
230
+ Args:
231
+ reqdelete: Delete flag (Y/N)
232
+
233
+ reqdispin: Disposition filter
234
+
235
+ reqlvl6_in: Facility ID
236
+
237
+ reqnamein: Patient name to search
238
+
239
+ reqnonprosp: Non-prospect flag (Y/N)
240
+
241
+ reqprosp: Prospect flag (Y/N)
242
+
243
+ reqsortin: Sort field
244
+
245
+ extra_headers: Send extra headers
246
+
247
+ extra_query: Add additional query parameters to the request
248
+
249
+ extra_body: Add additional JSON properties to the request
250
+
251
+ timeout: Override the client-level default timeout for this request, in seconds
252
+ """
253
+ if not slug:
254
+ raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
255
+ return await self._get(
256
+ f"/api/v2/integrations/wellsky/{slug}/patients",
257
+ options=make_request_options(
258
+ extra_headers=extra_headers,
259
+ extra_query=extra_query,
260
+ extra_body=extra_body,
261
+ timeout=timeout,
262
+ query=await async_maybe_transform(
263
+ {
264
+ "reqdelete": reqdelete,
265
+ "reqdispin": reqdispin,
266
+ "reqlvl6_in": reqlvl6_in,
267
+ "reqnamein": reqnamein,
268
+ "reqnonprosp": reqnonprosp,
269
+ "reqprosp": reqprosp,
270
+ "reqsortin": reqsortin,
271
+ },
272
+ patient_search_params.PatientSearchParams,
273
+ ),
274
+ ),
275
+ cast_to=object,
276
+ )
277
+
278
+
279
+ class PatientsResourceWithRawResponse:
280
+ def __init__(self, patients: PatientsResource) -> None:
281
+ self._patients = patients
282
+
283
+ self.add = to_raw_response_wrapper(
284
+ patients.add,
285
+ )
286
+ self.search = to_raw_response_wrapper(
287
+ patients.search,
288
+ )
289
+
290
+
291
+ class AsyncPatientsResourceWithRawResponse:
292
+ def __init__(self, patients: AsyncPatientsResource) -> None:
293
+ self._patients = patients
294
+
295
+ self.add = async_to_raw_response_wrapper(
296
+ patients.add,
297
+ )
298
+ self.search = async_to_raw_response_wrapper(
299
+ patients.search,
300
+ )
301
+
302
+
303
+ class PatientsResourceWithStreamingResponse:
304
+ def __init__(self, patients: PatientsResource) -> None:
305
+ self._patients = patients
306
+
307
+ self.add = to_streamed_response_wrapper(
308
+ patients.add,
309
+ )
310
+ self.search = to_streamed_response_wrapper(
311
+ patients.search,
312
+ )
313
+
314
+
315
+ class AsyncPatientsResourceWithStreamingResponse:
316
+ def __init__(self, patients: AsyncPatientsResource) -> None:
317
+ self._patients = patients
318
+
319
+ self.add = async_to_streamed_response_wrapper(
320
+ patients.add,
321
+ )
322
+ self.search = async_to_streamed_response_wrapper(
323
+ patients.search,
324
+ )
@@ -0,0 +1,102 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from .patients import (
6
+ PatientsResource,
7
+ AsyncPatientsResource,
8
+ PatientsResourceWithRawResponse,
9
+ AsyncPatientsResourceWithRawResponse,
10
+ PatientsResourceWithStreamingResponse,
11
+ AsyncPatientsResourceWithStreamingResponse,
12
+ )
13
+ from ....._compat import cached_property
14
+ from ....._resource import SyncAPIResource, AsyncAPIResource
15
+
16
+ __all__ = ["WellskyResource", "AsyncWellskyResource"]
17
+
18
+
19
+ class WellskyResource(SyncAPIResource):
20
+ @cached_property
21
+ def patients(self) -> PatientsResource:
22
+ return PatientsResource(self._client)
23
+
24
+ @cached_property
25
+ def with_raw_response(self) -> WellskyResourceWithRawResponse:
26
+ """
27
+ This property can be used as a prefix for any HTTP method call to return
28
+ the raw response object instead of the parsed content.
29
+
30
+ For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
31
+ """
32
+ return WellskyResourceWithRawResponse(self)
33
+
34
+ @cached_property
35
+ def with_streaming_response(self) -> WellskyResourceWithStreamingResponse:
36
+ """
37
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
38
+
39
+ For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
40
+ """
41
+ return WellskyResourceWithStreamingResponse(self)
42
+
43
+
44
+ class AsyncWellskyResource(AsyncAPIResource):
45
+ @cached_property
46
+ def patients(self) -> AsyncPatientsResource:
47
+ return AsyncPatientsResource(self._client)
48
+
49
+ @cached_property
50
+ def with_raw_response(self) -> AsyncWellskyResourceWithRawResponse:
51
+ """
52
+ This property can be used as a prefix for any HTTP method call to return
53
+ the raw response object instead of the parsed content.
54
+
55
+ For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
56
+ """
57
+ return AsyncWellskyResourceWithRawResponse(self)
58
+
59
+ @cached_property
60
+ def with_streaming_response(self) -> AsyncWellskyResourceWithStreamingResponse:
61
+ """
62
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
63
+
64
+ For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
65
+ """
66
+ return AsyncWellskyResourceWithStreamingResponse(self)
67
+
68
+
69
+ class WellskyResourceWithRawResponse:
70
+ def __init__(self, wellsky: WellskyResource) -> None:
71
+ self._wellsky = wellsky
72
+
73
+ @cached_property
74
+ def patients(self) -> PatientsResourceWithRawResponse:
75
+ return PatientsResourceWithRawResponse(self._wellsky.patients)
76
+
77
+
78
+ class AsyncWellskyResourceWithRawResponse:
79
+ def __init__(self, wellsky: AsyncWellskyResource) -> None:
80
+ self._wellsky = wellsky
81
+
82
+ @cached_property
83
+ def patients(self) -> AsyncPatientsResourceWithRawResponse:
84
+ return AsyncPatientsResourceWithRawResponse(self._wellsky.patients)
85
+
86
+
87
+ class WellskyResourceWithStreamingResponse:
88
+ def __init__(self, wellsky: WellskyResource) -> None:
89
+ self._wellsky = wellsky
90
+
91
+ @cached_property
92
+ def patients(self) -> PatientsResourceWithStreamingResponse:
93
+ return PatientsResourceWithStreamingResponse(self._wellsky.patients)
94
+
95
+
96
+ class AsyncWellskyResourceWithStreamingResponse:
97
+ def __init__(self, wellsky: AsyncWellskyResource) -> None:
98
+ self._wellsky = wellsky
99
+
100
+ @cached_property
101
+ def patients(self) -> AsyncPatientsResourceWithStreamingResponse:
102
+ return AsyncPatientsResourceWithStreamingResponse(self._wellsky.patients)
@@ -2,7 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Any, Optional, cast
5
+ from typing import Any, Union, Optional, cast
6
+ from typing_extensions import Literal
6
7
 
7
8
  import httpx
8
9
 
@@ -241,7 +242,8 @@ class TasksResource(SyncAPIResource):
241
242
  task_id: str,
242
243
  *,
243
244
  key: str,
244
- value: Optional[str],
245
+ value: Union[str, float, bool, None],
246
+ type: Literal["string", "number", "boolean", "date", "datetime"] | Omit = omit,
245
247
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
246
248
  # The extra values given here take precedence over values defined on the client or passed to this method.
247
249
  extra_headers: Headers | None = None,
@@ -259,6 +261,8 @@ class TasksResource(SyncAPIResource):
259
261
 
260
262
  value: The value to set for the column.
261
263
 
264
+ type: The semantic type of the column. Defaults to string when omitted.
265
+
262
266
  extra_headers: Send extra headers
263
267
 
264
268
  extra_query: Add additional query parameters to the request
@@ -275,6 +279,7 @@ class TasksResource(SyncAPIResource):
275
279
  {
276
280
  "key": key,
277
281
  "value": value,
282
+ "type": type,
278
283
  },
279
284
  task_update_column_params.TaskUpdateColumnParams,
280
285
  ),
@@ -533,7 +538,8 @@ class AsyncTasksResource(AsyncAPIResource):
533
538
  task_id: str,
534
539
  *,
535
540
  key: str,
536
- value: Optional[str],
541
+ value: Union[str, float, bool, None],
542
+ type: Literal["string", "number", "boolean", "date", "datetime"] | Omit = omit,
537
543
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
538
544
  # The extra values given here take precedence over values defined on the client or passed to this method.
539
545
  extra_headers: Headers | None = None,
@@ -551,6 +557,8 @@ class AsyncTasksResource(AsyncAPIResource):
551
557
 
552
558
  value: The value to set for the column.
553
559
 
560
+ type: The semantic type of the column. Defaults to string when omitted.
561
+
554
562
  extra_headers: Send extra headers
555
563
 
556
564
  extra_query: Add additional query parameters to the request
@@ -567,6 +575,7 @@ class AsyncTasksResource(AsyncAPIResource):
567
575
  {
568
576
  "key": key,
569
577
  "value": value,
578
+ "type": type,
570
579
  },
571
580
  task_update_column_params.TaskUpdateColumnParams,
572
581
  ),