samplehc 0.5.0__py3-none-any.whl → 0.7.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.
- samplehc/_version.py +1 -1
- samplehc/resources/v2/__init__.py +14 -0
- samplehc/resources/v2/browser_agents.py +177 -0
- samplehc/resources/v2/clearinghouse/claim.py +20 -36
- samplehc/resources/v2/communication.py +8 -0
- samplehc/resources/v2/database.py +19 -9
- samplehc/resources/v2/events/__init__.py +33 -0
- samplehc/resources/v2/{events.py → events/events.py} +42 -10
- samplehc/resources/v2/events/hie/__init__.py +33 -0
- samplehc/resources/v2/events/hie/adt.py +249 -0
- samplehc/resources/v2/events/hie/hie.py +102 -0
- samplehc/resources/v2/integrations/__init__.py +14 -0
- samplehc/resources/v2/integrations/glidian/__init__.py +33 -0
- samplehc/resources/v2/integrations/glidian/glidian.py +425 -0
- samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +33 -0
- samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +276 -0
- samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +527 -0
- samplehc/resources/v2/integrations/integrations.py +32 -0
- samplehc/resources/v2/ledger/ledger.py +152 -0
- samplehc/resources/v2/v2.py +40 -8
- samplehc/types/v2/__init__.py +8 -0
- samplehc/types/v2/browser_agent_invoke_params.py +13 -0
- samplehc/types/v2/browser_agent_invoke_response.py +12 -0
- samplehc/types/v2/clearinghouse/claim_submit_params.py +1214 -884
- samplehc/types/v2/clearinghouse/claim_submit_response.py +10 -1
- samplehc/types/v2/communication_send_email_params.py +3 -0
- samplehc/types/v2/database_execute_sql_params.py +5 -3
- samplehc/types/v2/event_emit_params.py +1 -1
- samplehc/types/v2/events/__init__.py +3 -0
- samplehc/types/v2/events/hie/__init__.py +5 -0
- samplehc/types/v2/events/hie/adt_subscribe_params.py +92 -0
- samplehc/types/v2/integrations/__init__.py +10 -0
- samplehc/types/v2/integrations/glidian/__init__.py +20 -0
- samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +32 -0
- samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +22 -0
- samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +11 -0
- samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +14 -0
- samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +20 -0
- samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +14 -0
- samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +7 -0
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +40 -0
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +22 -0
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +17 -0
- samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +17 -0
- samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +31 -0
- samplehc/types/v2/integrations/glidian_list_payers_params.py +11 -0
- samplehc/types/v2/integrations/glidian_list_payers_response.py +17 -0
- samplehc/types/v2/integrations/glidian_list_services_params.py +13 -0
- samplehc/types/v2/integrations/glidian_list_services_response.py +19 -0
- samplehc/types/v2/ledger_post_remittance_accepted_params.py +37 -0
- samplehc/types/v2/ledger_post_remittance_accepted_response.py +12 -0
- {samplehc-0.5.0.dist-info → samplehc-0.7.0.dist-info}/METADATA +1 -1
- {samplehc-0.5.0.dist-info → samplehc-0.7.0.dist-info}/RECORD +55 -21
- {samplehc-0.5.0.dist-info → samplehc-0.7.0.dist-info}/WHEEL +0 -0
- {samplehc-0.5.0.dist-info → samplehc-0.7.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,276 @@
|
|
|
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 NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
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.glidian.prior_authorizations import clinical_question_update_params
|
|
21
|
+
from ......types.v2.integrations.glidian.prior_authorizations.clinical_question_list_response import (
|
|
22
|
+
ClinicalQuestionListResponse,
|
|
23
|
+
)
|
|
24
|
+
from ......types.v2.integrations.glidian.prior_authorizations.clinical_question_update_response import (
|
|
25
|
+
ClinicalQuestionUpdateResponse,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
__all__ = ["ClinicalQuestionsResource", "AsyncClinicalQuestionsResource"]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ClinicalQuestionsResource(SyncAPIResource):
|
|
32
|
+
@cached_property
|
|
33
|
+
def with_raw_response(self) -> ClinicalQuestionsResourceWithRawResponse:
|
|
34
|
+
"""
|
|
35
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
36
|
+
the raw response object instead of the parsed content.
|
|
37
|
+
|
|
38
|
+
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
39
|
+
"""
|
|
40
|
+
return ClinicalQuestionsResourceWithRawResponse(self)
|
|
41
|
+
|
|
42
|
+
@cached_property
|
|
43
|
+
def with_streaming_response(self) -> ClinicalQuestionsResourceWithStreamingResponse:
|
|
44
|
+
"""
|
|
45
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
46
|
+
|
|
47
|
+
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
48
|
+
"""
|
|
49
|
+
return ClinicalQuestionsResourceWithStreamingResponse(self)
|
|
50
|
+
|
|
51
|
+
def update(
|
|
52
|
+
self,
|
|
53
|
+
record_id: str,
|
|
54
|
+
*,
|
|
55
|
+
slug: str,
|
|
56
|
+
responses: Dict[str, clinical_question_update_params.Responses],
|
|
57
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
58
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
59
|
+
extra_headers: Headers | None = None,
|
|
60
|
+
extra_query: Query | None = None,
|
|
61
|
+
extra_body: Body | None = None,
|
|
62
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
63
|
+
) -> ClinicalQuestionUpdateResponse:
|
|
64
|
+
"""Update clinical question responses for a Glidian prior authorization.
|
|
65
|
+
|
|
66
|
+
May
|
|
67
|
+
trigger additional questions.
|
|
68
|
+
|
|
69
|
+
Args:
|
|
70
|
+
extra_headers: Send extra headers
|
|
71
|
+
|
|
72
|
+
extra_query: Add additional query parameters to the request
|
|
73
|
+
|
|
74
|
+
extra_body: Add additional JSON properties to the request
|
|
75
|
+
|
|
76
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
77
|
+
"""
|
|
78
|
+
if not slug:
|
|
79
|
+
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
80
|
+
if not record_id:
|
|
81
|
+
raise ValueError(f"Expected a non-empty value for `record_id` but received {record_id!r}")
|
|
82
|
+
return self._put(
|
|
83
|
+
f"/api/v2/integrations/glidian/{slug}/prior-authorizations/{record_id}/clinical-questions",
|
|
84
|
+
body=maybe_transform(
|
|
85
|
+
{"responses": responses}, clinical_question_update_params.ClinicalQuestionUpdateParams
|
|
86
|
+
),
|
|
87
|
+
options=make_request_options(
|
|
88
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
89
|
+
),
|
|
90
|
+
cast_to=ClinicalQuestionUpdateResponse,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
def list(
|
|
94
|
+
self,
|
|
95
|
+
record_id: str,
|
|
96
|
+
*,
|
|
97
|
+
slug: str,
|
|
98
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
99
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
100
|
+
extra_headers: Headers | None = None,
|
|
101
|
+
extra_query: Query | None = None,
|
|
102
|
+
extra_body: Body | None = None,
|
|
103
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
104
|
+
) -> ClinicalQuestionListResponse:
|
|
105
|
+
"""
|
|
106
|
+
Retrieve clinical questions for a specific prior authorization record from
|
|
107
|
+
Glidian.
|
|
108
|
+
|
|
109
|
+
Args:
|
|
110
|
+
extra_headers: Send extra headers
|
|
111
|
+
|
|
112
|
+
extra_query: Add additional query parameters to the request
|
|
113
|
+
|
|
114
|
+
extra_body: Add additional JSON properties to the request
|
|
115
|
+
|
|
116
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
117
|
+
"""
|
|
118
|
+
if not slug:
|
|
119
|
+
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
120
|
+
if not record_id:
|
|
121
|
+
raise ValueError(f"Expected a non-empty value for `record_id` but received {record_id!r}")
|
|
122
|
+
return self._get(
|
|
123
|
+
f"/api/v2/integrations/glidian/{slug}/prior-authorizations/{record_id}/clinical-questions",
|
|
124
|
+
options=make_request_options(
|
|
125
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
126
|
+
),
|
|
127
|
+
cast_to=ClinicalQuestionListResponse,
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
class AsyncClinicalQuestionsResource(AsyncAPIResource):
|
|
132
|
+
@cached_property
|
|
133
|
+
def with_raw_response(self) -> AsyncClinicalQuestionsResourceWithRawResponse:
|
|
134
|
+
"""
|
|
135
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
136
|
+
the raw response object instead of the parsed content.
|
|
137
|
+
|
|
138
|
+
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
139
|
+
"""
|
|
140
|
+
return AsyncClinicalQuestionsResourceWithRawResponse(self)
|
|
141
|
+
|
|
142
|
+
@cached_property
|
|
143
|
+
def with_streaming_response(self) -> AsyncClinicalQuestionsResourceWithStreamingResponse:
|
|
144
|
+
"""
|
|
145
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
146
|
+
|
|
147
|
+
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
148
|
+
"""
|
|
149
|
+
return AsyncClinicalQuestionsResourceWithStreamingResponse(self)
|
|
150
|
+
|
|
151
|
+
async def update(
|
|
152
|
+
self,
|
|
153
|
+
record_id: str,
|
|
154
|
+
*,
|
|
155
|
+
slug: str,
|
|
156
|
+
responses: Dict[str, clinical_question_update_params.Responses],
|
|
157
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
158
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
159
|
+
extra_headers: Headers | None = None,
|
|
160
|
+
extra_query: Query | None = None,
|
|
161
|
+
extra_body: Body | None = None,
|
|
162
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
163
|
+
) -> ClinicalQuestionUpdateResponse:
|
|
164
|
+
"""Update clinical question responses for a Glidian prior authorization.
|
|
165
|
+
|
|
166
|
+
May
|
|
167
|
+
trigger additional questions.
|
|
168
|
+
|
|
169
|
+
Args:
|
|
170
|
+
extra_headers: Send extra headers
|
|
171
|
+
|
|
172
|
+
extra_query: Add additional query parameters to the request
|
|
173
|
+
|
|
174
|
+
extra_body: Add additional JSON properties to the request
|
|
175
|
+
|
|
176
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
177
|
+
"""
|
|
178
|
+
if not slug:
|
|
179
|
+
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
180
|
+
if not record_id:
|
|
181
|
+
raise ValueError(f"Expected a non-empty value for `record_id` but received {record_id!r}")
|
|
182
|
+
return await self._put(
|
|
183
|
+
f"/api/v2/integrations/glidian/{slug}/prior-authorizations/{record_id}/clinical-questions",
|
|
184
|
+
body=await async_maybe_transform(
|
|
185
|
+
{"responses": responses}, clinical_question_update_params.ClinicalQuestionUpdateParams
|
|
186
|
+
),
|
|
187
|
+
options=make_request_options(
|
|
188
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
189
|
+
),
|
|
190
|
+
cast_to=ClinicalQuestionUpdateResponse,
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
async def list(
|
|
194
|
+
self,
|
|
195
|
+
record_id: str,
|
|
196
|
+
*,
|
|
197
|
+
slug: str,
|
|
198
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
199
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
200
|
+
extra_headers: Headers | None = None,
|
|
201
|
+
extra_query: Query | None = None,
|
|
202
|
+
extra_body: Body | None = None,
|
|
203
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
204
|
+
) -> ClinicalQuestionListResponse:
|
|
205
|
+
"""
|
|
206
|
+
Retrieve clinical questions for a specific prior authorization record from
|
|
207
|
+
Glidian.
|
|
208
|
+
|
|
209
|
+
Args:
|
|
210
|
+
extra_headers: Send extra headers
|
|
211
|
+
|
|
212
|
+
extra_query: Add additional query parameters to the request
|
|
213
|
+
|
|
214
|
+
extra_body: Add additional JSON properties to the request
|
|
215
|
+
|
|
216
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
217
|
+
"""
|
|
218
|
+
if not slug:
|
|
219
|
+
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
220
|
+
if not record_id:
|
|
221
|
+
raise ValueError(f"Expected a non-empty value for `record_id` but received {record_id!r}")
|
|
222
|
+
return await self._get(
|
|
223
|
+
f"/api/v2/integrations/glidian/{slug}/prior-authorizations/{record_id}/clinical-questions",
|
|
224
|
+
options=make_request_options(
|
|
225
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
226
|
+
),
|
|
227
|
+
cast_to=ClinicalQuestionListResponse,
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
class ClinicalQuestionsResourceWithRawResponse:
|
|
232
|
+
def __init__(self, clinical_questions: ClinicalQuestionsResource) -> None:
|
|
233
|
+
self._clinical_questions = clinical_questions
|
|
234
|
+
|
|
235
|
+
self.update = to_raw_response_wrapper(
|
|
236
|
+
clinical_questions.update,
|
|
237
|
+
)
|
|
238
|
+
self.list = to_raw_response_wrapper(
|
|
239
|
+
clinical_questions.list,
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
class AsyncClinicalQuestionsResourceWithRawResponse:
|
|
244
|
+
def __init__(self, clinical_questions: AsyncClinicalQuestionsResource) -> None:
|
|
245
|
+
self._clinical_questions = clinical_questions
|
|
246
|
+
|
|
247
|
+
self.update = async_to_raw_response_wrapper(
|
|
248
|
+
clinical_questions.update,
|
|
249
|
+
)
|
|
250
|
+
self.list = async_to_raw_response_wrapper(
|
|
251
|
+
clinical_questions.list,
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
class ClinicalQuestionsResourceWithStreamingResponse:
|
|
256
|
+
def __init__(self, clinical_questions: ClinicalQuestionsResource) -> None:
|
|
257
|
+
self._clinical_questions = clinical_questions
|
|
258
|
+
|
|
259
|
+
self.update = to_streamed_response_wrapper(
|
|
260
|
+
clinical_questions.update,
|
|
261
|
+
)
|
|
262
|
+
self.list = to_streamed_response_wrapper(
|
|
263
|
+
clinical_questions.list,
|
|
264
|
+
)
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
class AsyncClinicalQuestionsResourceWithStreamingResponse:
|
|
268
|
+
def __init__(self, clinical_questions: AsyncClinicalQuestionsResource) -> None:
|
|
269
|
+
self._clinical_questions = clinical_questions
|
|
270
|
+
|
|
271
|
+
self.update = async_to_streamed_response_wrapper(
|
|
272
|
+
clinical_questions.update,
|
|
273
|
+
)
|
|
274
|
+
self.list = async_to_streamed_response_wrapper(
|
|
275
|
+
clinical_questions.list,
|
|
276
|
+
)
|