samplehc 0.17.0__py3-none-any.whl → 0.19.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 (154) hide show
  1. samplehc/_base_client.py +5 -2
  2. samplehc/_client.py +1 -38
  3. samplehc/_compat.py +3 -3
  4. samplehc/_utils/_json.py +35 -0
  5. samplehc/_version.py +1 -1
  6. samplehc/resources/__init__.py +0 -14
  7. samplehc/resources/v2/__init__.py +0 -98
  8. samplehc/resources/v2/async_results.py +0 -79
  9. samplehc/resources/v2/documents/__init__.py +0 -14
  10. samplehc/resources/v2/documents/documents.py +44 -196
  11. samplehc/resources/v2/v2.py +0 -224
  12. samplehc/types/__init__.py +0 -5
  13. samplehc/types/v2/__init__.py +0 -53
  14. samplehc/types/v2/document_extract_params.py +20 -1
  15. samplehc/types/v2/documents/__init__.py +0 -3
  16. {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/METADATA +22 -27
  17. samplehc-0.19.0.dist-info/RECORD +93 -0
  18. samplehc/resources/v1/__init__.py +0 -19
  19. samplehc/resources/v1/v1.py +0 -298
  20. samplehc/resources/v2/clearinghouse/__init__.py +0 -47
  21. samplehc/resources/v2/clearinghouse/claim.py +0 -407
  22. samplehc/resources/v2/clearinghouse/clearinghouse.py +0 -844
  23. samplehc/resources/v2/clearinghouse/payers.py +0 -224
  24. samplehc/resources/v2/documents/pdf_template.py +0 -165
  25. samplehc/resources/v2/hie/__init__.py +0 -47
  26. samplehc/resources/v2/hie/adt.py +0 -249
  27. samplehc/resources/v2/hie/documents.py +0 -390
  28. samplehc/resources/v2/hie/hie.py +0 -134
  29. samplehc/resources/v2/integrations/__init__.py +0 -131
  30. samplehc/resources/v2/integrations/bank/__init__.py +0 -33
  31. samplehc/resources/v2/integrations/bank/bank.py +0 -102
  32. samplehc/resources/v2/integrations/bank/transactions.py +0 -185
  33. samplehc/resources/v2/integrations/careviso.py +0 -372
  34. samplehc/resources/v2/integrations/glidian/__init__.py +0 -33
  35. samplehc/resources/v2/integrations/glidian/glidian.py +0 -425
  36. samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +0 -33
  37. samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +0 -276
  38. samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +0 -527
  39. samplehc/resources/v2/integrations/integrations.py +0 -326
  40. samplehc/resources/v2/integrations/kno2/__init__.py +0 -33
  41. samplehc/resources/v2/integrations/kno2/kno2.py +0 -102
  42. samplehc/resources/v2/integrations/kno2/messages.py +0 -260
  43. samplehc/resources/v2/integrations/salesforce.py +0 -277
  44. samplehc/resources/v2/integrations/snowflake.py +0 -173
  45. samplehc/resources/v2/integrations/wellsky/__init__.py +0 -33
  46. samplehc/resources/v2/integrations/wellsky/patients.py +0 -324
  47. samplehc/resources/v2/integrations/wellsky/wellsky.py +0 -102
  48. samplehc/resources/v2/integrations/xcures.py +0 -197
  49. samplehc/resources/v2/policies.py +0 -655
  50. samplehc/resources/v2/tasks/__init__.py +0 -33
  51. samplehc/resources/v2/tasks/state.py +0 -266
  52. samplehc/resources/v2/tasks/tasks.py +0 -754
  53. samplehc/resources/v2/workflow_runs/__init__.py +0 -33
  54. samplehc/resources/v2/workflow_runs/step.py +0 -169
  55. samplehc/resources/v2/workflow_runs/workflow_runs.py +0 -479
  56. samplehc/resources/v2/workflows.py +0 -377
  57. samplehc/types/v1/__init__.py +0 -3
  58. samplehc/types/v1_query_audit_logs_params.py +0 -12
  59. samplehc/types/v1_query_audit_logs_response.py +0 -16
  60. samplehc/types/v1_sql_execute_params.py +0 -27
  61. samplehc/types/v1_sql_execute_response.py +0 -27
  62. samplehc/types/v2/async_result_retrieve_response.py +0 -18
  63. samplehc/types/v2/clearinghouse/__init__.py +0 -9
  64. samplehc/types/v2/clearinghouse/claim_submit_params.py +0 -2693
  65. samplehc/types/v2/clearinghouse/claim_submit_response.py +0 -23
  66. samplehc/types/v2/clearinghouse/payer_list_response.py +0 -27
  67. samplehc/types/v2/clearinghouse/payer_search_params.py +0 -12
  68. samplehc/types/v2/clearinghouse/payer_search_response.py +0 -33
  69. samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +0 -3129
  70. samplehc/types/v2/clearinghouse_check_claim_status_params.py +0 -41
  71. samplehc/types/v2/clearinghouse_check_eligibility_params.py +0 -36
  72. samplehc/types/v2/clearinghouse_check_eligibility_response.py +0 -15
  73. samplehc/types/v2/clearinghouse_coordination_of_benefits_params.py +0 -35
  74. samplehc/types/v2/clearinghouse_run_discovery_params.py +0 -59
  75. samplehc/types/v2/clearinghouse_run_discovery_response.py +0 -13
  76. samplehc/types/v2/document_unzip_async_response.py +0 -12
  77. samplehc/types/v2/document_unzip_response.py +0 -20
  78. samplehc/types/v2/documents/pdf_template_retrieve_metadata_response.py +0 -17
  79. samplehc/types/v2/hie/__init__.py +0 -8
  80. samplehc/types/v2/hie/adt_subscribe_params.py +0 -92
  81. samplehc/types/v2/hie/document_query_params.py +0 -92
  82. samplehc/types/v2/hie/document_query_response.py +0 -16
  83. samplehc/types/v2/hie/document_upload_params.py +0 -54
  84. samplehc/types/v2/integrations/__init__.py +0 -23
  85. samplehc/types/v2/integrations/bank/__init__.py +0 -6
  86. samplehc/types/v2/integrations/bank/transaction_sync_params.py +0 -15
  87. samplehc/types/v2/integrations/bank/transaction_sync_response.py +0 -26
  88. samplehc/types/v2/integrations/careviso_get_payers_response.py +0 -19
  89. samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +0 -90
  90. samplehc/types/v2/integrations/glidian/__init__.py +0 -20
  91. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +0 -32
  92. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +0 -24
  93. samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +0 -13
  94. samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +0 -16
  95. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +0 -20
  96. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +0 -16
  97. samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +0 -7
  98. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +0 -42
  99. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +0 -23
  100. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +0 -19
  101. samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +0 -17
  102. samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +0 -31
  103. samplehc/types/v2/integrations/glidian_list_payers_params.py +0 -11
  104. samplehc/types/v2/integrations/glidian_list_payers_response.py +0 -17
  105. samplehc/types/v2/integrations/glidian_list_services_params.py +0 -13
  106. samplehc/types/v2/integrations/glidian_list_services_response.py +0 -19
  107. samplehc/types/v2/integrations/kno2/__init__.py +0 -6
  108. samplehc/types/v2/integrations/kno2/message_get_attachment_response.py +0 -15
  109. samplehc/types/v2/integrations/kno2/message_retrieve_response.py +0 -13
  110. samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +0 -22
  111. samplehc/types/v2/integrations/salesforce_run_soql_query_params.py +0 -11
  112. samplehc/types/v2/integrations/snowflake_query_params.py +0 -12
  113. samplehc/types/v2/integrations/snowflake_query_response.py +0 -8
  114. samplehc/types/v2/integrations/wellsky/__init__.py +0 -6
  115. samplehc/types/v2/integrations/wellsky/patient_add_params.py +0 -13
  116. samplehc/types/v2/integrations/wellsky/patient_search_params.py +0 -32
  117. samplehc/types/v2/integrations/xcure_make_request_params.py +0 -18
  118. samplehc/types/v2/ledger/__init__.py +0 -3
  119. samplehc/types/v2/policy_list_companies_params.py +0 -18
  120. samplehc/types/v2/policy_list_companies_response.py +0 -24
  121. samplehc/types/v2/policy_list_params.py +0 -47
  122. samplehc/types/v2/policy_list_plans_params.py +0 -18
  123. samplehc/types/v2/policy_list_plans_response.py +0 -30
  124. samplehc/types/v2/policy_list_response.py +0 -67
  125. samplehc/types/v2/policy_retrieve_presigned_url_response.py +0 -17
  126. samplehc/types/v2/policy_retrieve_text_response.py +0 -12
  127. samplehc/types/v2/task_cancel_response.py +0 -12
  128. samplehc/types/v2/task_complete_params.py +0 -12
  129. samplehc/types/v2/task_complete_response.py +0 -16
  130. samplehc/types/v2/task_get_suspended_payload_response.py +0 -8
  131. samplehc/types/v2/task_retrieve_response.py +0 -22
  132. samplehc/types/v2/task_retry_response.py +0 -10
  133. samplehc/types/v2/task_update_column_params.py +0 -19
  134. samplehc/types/v2/task_update_column_response.py +0 -9
  135. samplehc/types/v2/task_update_screen_time_params.py +0 -14
  136. samplehc/types/v2/task_update_screen_time_response.py +0 -8
  137. samplehc/types/v2/tasks/__init__.py +0 -7
  138. samplehc/types/v2/tasks/state_get_response.py +0 -8
  139. samplehc/types/v2/tasks/state_update_params.py +0 -13
  140. samplehc/types/v2/tasks/state_update_response.py +0 -9
  141. samplehc/types/v2/workflow_deploy_response.py +0 -12
  142. samplehc/types/v2/workflow_query_params.py +0 -12
  143. samplehc/types/v2/workflow_query_response.py +0 -8
  144. samplehc/types/v2/workflow_run_get_start_data_response.py +0 -14
  145. samplehc/types/v2/workflow_run_resume_when_complete_params.py +0 -14
  146. samplehc/types/v2/workflow_run_resume_when_complete_response.py +0 -12
  147. samplehc/types/v2/workflow_run_retrieve_response.py +0 -16
  148. samplehc/types/v2/workflow_runs/__init__.py +0 -5
  149. samplehc/types/v2/workflow_runs/step_get_output_response.py +0 -14
  150. samplehc/types/v2/workflow_start_params.py +0 -25
  151. samplehc/types/v2/workflow_start_response.py +0 -25
  152. samplehc-0.17.0.dist-info/RECORD +0 -226
  153. {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/WHEEL +0 -0
  154. {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,266 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
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
9
- from ...._compat import cached_property
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
- )
17
- from ...._base_client import make_request_options
18
- from ....types.v2.tasks import state_update_params
19
- from ....types.v2.tasks.state_get_response import StateGetResponse
20
- from ....types.v2.tasks.state_update_response import StateUpdateResponse
21
-
22
- __all__ = ["StateResource", "AsyncStateResource"]
23
-
24
-
25
- class StateResource(SyncAPIResource):
26
- @cached_property
27
- def with_raw_response(self) -> StateResourceWithRawResponse:
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 StateResourceWithRawResponse(self)
35
-
36
- @cached_property
37
- def with_streaming_response(self) -> StateResourceWithStreamingResponse:
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 StateResourceWithStreamingResponse(self)
44
-
45
- def update(
46
- self,
47
- task_id: str,
48
- *,
49
- key: str,
50
- value: object | Omit = omit,
51
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
52
- # The extra values given here take precedence over values defined on the client or passed to this method.
53
- extra_headers: Headers | None = None,
54
- extra_query: Query | None = None,
55
- extra_body: Body | None = None,
56
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
57
- ) -> StateUpdateResponse:
58
- """
59
- Updates the state of a task.
60
-
61
- Args:
62
- extra_headers: Send extra headers
63
-
64
- extra_query: Add additional query parameters to the request
65
-
66
- extra_body: Add additional JSON properties to the request
67
-
68
- timeout: Override the client-level default timeout for this request, in seconds
69
- """
70
- if not task_id:
71
- raise ValueError(f"Expected a non-empty value for `task_id` but received {task_id!r}")
72
- return self._post(
73
- f"/api/v2/tasks/{task_id}/state",
74
- body=maybe_transform(
75
- {
76
- "key": key,
77
- "value": value,
78
- },
79
- state_update_params.StateUpdateParams,
80
- ),
81
- options=make_request_options(
82
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
83
- ),
84
- cast_to=StateUpdateResponse,
85
- )
86
-
87
- def get(
88
- self,
89
- task_id: str,
90
- *,
91
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
92
- # The extra values given here take precedence over values defined on the client or passed to this method.
93
- extra_headers: Headers | None = None,
94
- extra_query: Query | None = None,
95
- extra_body: Body | None = None,
96
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
97
- ) -> StateGetResponse:
98
- """Retrieves the state of a task.
99
-
100
- This is typically used for tasks that need to
101
- persist state across multiple requests.
102
-
103
- Args:
104
- extra_headers: Send extra headers
105
-
106
- extra_query: Add additional query parameters to the request
107
-
108
- extra_body: Add additional JSON properties to the request
109
-
110
- timeout: Override the client-level default timeout for this request, in seconds
111
- """
112
- if not task_id:
113
- raise ValueError(f"Expected a non-empty value for `task_id` but received {task_id!r}")
114
- return self._get(
115
- f"/api/v2/tasks/{task_id}/state",
116
- options=make_request_options(
117
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
118
- ),
119
- cast_to=StateGetResponse,
120
- )
121
-
122
-
123
- class AsyncStateResource(AsyncAPIResource):
124
- @cached_property
125
- def with_raw_response(self) -> AsyncStateResourceWithRawResponse:
126
- """
127
- This property can be used as a prefix for any HTTP method call to return
128
- the raw response object instead of the parsed content.
129
-
130
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
131
- """
132
- return AsyncStateResourceWithRawResponse(self)
133
-
134
- @cached_property
135
- def with_streaming_response(self) -> AsyncStateResourceWithStreamingResponse:
136
- """
137
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
138
-
139
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
140
- """
141
- return AsyncStateResourceWithStreamingResponse(self)
142
-
143
- async def update(
144
- self,
145
- task_id: str,
146
- *,
147
- key: str,
148
- value: object | Omit = omit,
149
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
150
- # The extra values given here take precedence over values defined on the client or passed to this method.
151
- extra_headers: Headers | None = None,
152
- extra_query: Query | None = None,
153
- extra_body: Body | None = None,
154
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
155
- ) -> StateUpdateResponse:
156
- """
157
- Updates the state of a task.
158
-
159
- Args:
160
- extra_headers: Send extra headers
161
-
162
- extra_query: Add additional query parameters to the request
163
-
164
- extra_body: Add additional JSON properties to the request
165
-
166
- timeout: Override the client-level default timeout for this request, in seconds
167
- """
168
- if not task_id:
169
- raise ValueError(f"Expected a non-empty value for `task_id` but received {task_id!r}")
170
- return await self._post(
171
- f"/api/v2/tasks/{task_id}/state",
172
- body=await async_maybe_transform(
173
- {
174
- "key": key,
175
- "value": value,
176
- },
177
- state_update_params.StateUpdateParams,
178
- ),
179
- options=make_request_options(
180
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
181
- ),
182
- cast_to=StateUpdateResponse,
183
- )
184
-
185
- async def get(
186
- self,
187
- task_id: str,
188
- *,
189
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
190
- # The extra values given here take precedence over values defined on the client or passed to this method.
191
- extra_headers: Headers | None = None,
192
- extra_query: Query | None = None,
193
- extra_body: Body | None = None,
194
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
195
- ) -> StateGetResponse:
196
- """Retrieves the state of a task.
197
-
198
- This is typically used for tasks that need to
199
- persist state across multiple requests.
200
-
201
- Args:
202
- extra_headers: Send extra headers
203
-
204
- extra_query: Add additional query parameters to the request
205
-
206
- extra_body: Add additional JSON properties to the request
207
-
208
- timeout: Override the client-level default timeout for this request, in seconds
209
- """
210
- if not task_id:
211
- raise ValueError(f"Expected a non-empty value for `task_id` but received {task_id!r}")
212
- return await self._get(
213
- f"/api/v2/tasks/{task_id}/state",
214
- options=make_request_options(
215
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
216
- ),
217
- cast_to=StateGetResponse,
218
- )
219
-
220
-
221
- class StateResourceWithRawResponse:
222
- def __init__(self, state: StateResource) -> None:
223
- self._state = state
224
-
225
- self.update = to_raw_response_wrapper(
226
- state.update,
227
- )
228
- self.get = to_raw_response_wrapper(
229
- state.get,
230
- )
231
-
232
-
233
- class AsyncStateResourceWithRawResponse:
234
- def __init__(self, state: AsyncStateResource) -> None:
235
- self._state = state
236
-
237
- self.update = async_to_raw_response_wrapper(
238
- state.update,
239
- )
240
- self.get = async_to_raw_response_wrapper(
241
- state.get,
242
- )
243
-
244
-
245
- class StateResourceWithStreamingResponse:
246
- def __init__(self, state: StateResource) -> None:
247
- self._state = state
248
-
249
- self.update = to_streamed_response_wrapper(
250
- state.update,
251
- )
252
- self.get = to_streamed_response_wrapper(
253
- state.get,
254
- )
255
-
256
-
257
- class AsyncStateResourceWithStreamingResponse:
258
- def __init__(self, state: AsyncStateResource) -> None:
259
- self._state = state
260
-
261
- self.update = async_to_streamed_response_wrapper(
262
- state.update,
263
- )
264
- self.get = async_to_streamed_response_wrapper(
265
- state.get,
266
- )