samplehc 0.16.0__py3-none-any.whl → 0.18.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/_client.py +1 -38
- samplehc/_version.py +1 -1
- samplehc/resources/__init__.py +0 -14
- samplehc/resources/v2/__init__.py +0 -98
- samplehc/resources/v2/async_results.py +0 -79
- samplehc/resources/v2/documents/__init__.py +0 -14
- samplehc/resources/v2/documents/documents.py +0 -194
- samplehc/resources/v2/v2.py +0 -224
- samplehc/types/__init__.py +0 -5
- samplehc/types/v2/__init__.py +0 -53
- samplehc/types/v2/documents/__init__.py +0 -3
- {samplehc-0.16.0.dist-info → samplehc-0.18.0.dist-info}/METADATA +22 -27
- samplehc-0.18.0.dist-info/RECORD +92 -0
- samplehc/resources/v1/__init__.py +0 -19
- samplehc/resources/v1/v1.py +0 -298
- samplehc/resources/v2/clearinghouse/__init__.py +0 -47
- samplehc/resources/v2/clearinghouse/claim.py +0 -407
- samplehc/resources/v2/clearinghouse/clearinghouse.py +0 -844
- samplehc/resources/v2/clearinghouse/payers.py +0 -224
- samplehc/resources/v2/documents/pdf_template.py +0 -165
- samplehc/resources/v2/hie/__init__.py +0 -47
- samplehc/resources/v2/hie/adt.py +0 -249
- samplehc/resources/v2/hie/documents.py +0 -390
- samplehc/resources/v2/hie/hie.py +0 -134
- samplehc/resources/v2/integrations/__init__.py +0 -131
- samplehc/resources/v2/integrations/bank/__init__.py +0 -33
- samplehc/resources/v2/integrations/bank/bank.py +0 -102
- samplehc/resources/v2/integrations/bank/transactions.py +0 -185
- samplehc/resources/v2/integrations/careviso.py +0 -372
- samplehc/resources/v2/integrations/glidian/__init__.py +0 -33
- samplehc/resources/v2/integrations/glidian/glidian.py +0 -425
- samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +0 -33
- samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +0 -276
- samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +0 -527
- samplehc/resources/v2/integrations/integrations.py +0 -326
- samplehc/resources/v2/integrations/kno2/__init__.py +0 -33
- samplehc/resources/v2/integrations/kno2/kno2.py +0 -102
- samplehc/resources/v2/integrations/kno2/messages.py +0 -260
- samplehc/resources/v2/integrations/salesforce.py +0 -277
- samplehc/resources/v2/integrations/snowflake.py +0 -173
- samplehc/resources/v2/integrations/wellsky/__init__.py +0 -33
- samplehc/resources/v2/integrations/wellsky/patients.py +0 -324
- samplehc/resources/v2/integrations/wellsky/wellsky.py +0 -102
- samplehc/resources/v2/integrations/xcures.py +0 -197
- samplehc/resources/v2/policies.py +0 -655
- samplehc/resources/v2/tasks/__init__.py +0 -33
- samplehc/resources/v2/tasks/state.py +0 -266
- samplehc/resources/v2/tasks/tasks.py +0 -754
- samplehc/resources/v2/workflow_runs/__init__.py +0 -33
- samplehc/resources/v2/workflow_runs/step.py +0 -169
- samplehc/resources/v2/workflow_runs/workflow_runs.py +0 -479
- samplehc/resources/v2/workflows.py +0 -365
- samplehc/types/v1/__init__.py +0 -3
- samplehc/types/v1_query_audit_logs_params.py +0 -12
- samplehc/types/v1_query_audit_logs_response.py +0 -16
- samplehc/types/v1_sql_execute_params.py +0 -27
- samplehc/types/v1_sql_execute_response.py +0 -27
- samplehc/types/v2/async_result_retrieve_response.py +0 -18
- samplehc/types/v2/clearinghouse/__init__.py +0 -9
- samplehc/types/v2/clearinghouse/claim_submit_params.py +0 -2693
- samplehc/types/v2/clearinghouse/claim_submit_response.py +0 -23
- samplehc/types/v2/clearinghouse/payer_list_response.py +0 -27
- samplehc/types/v2/clearinghouse/payer_search_params.py +0 -12
- samplehc/types/v2/clearinghouse/payer_search_response.py +0 -33
- samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +0 -3129
- samplehc/types/v2/clearinghouse_check_claim_status_params.py +0 -41
- samplehc/types/v2/clearinghouse_check_eligibility_params.py +0 -36
- samplehc/types/v2/clearinghouse_check_eligibility_response.py +0 -15
- samplehc/types/v2/clearinghouse_coordination_of_benefits_params.py +0 -35
- samplehc/types/v2/clearinghouse_run_discovery_params.py +0 -59
- samplehc/types/v2/clearinghouse_run_discovery_response.py +0 -13
- samplehc/types/v2/document_unzip_async_response.py +0 -12
- samplehc/types/v2/document_unzip_response.py +0 -20
- samplehc/types/v2/documents/pdf_template_retrieve_metadata_response.py +0 -17
- samplehc/types/v2/hie/__init__.py +0 -8
- samplehc/types/v2/hie/adt_subscribe_params.py +0 -92
- samplehc/types/v2/hie/document_query_params.py +0 -92
- samplehc/types/v2/hie/document_query_response.py +0 -16
- samplehc/types/v2/hie/document_upload_params.py +0 -54
- samplehc/types/v2/integrations/__init__.py +0 -23
- samplehc/types/v2/integrations/bank/__init__.py +0 -6
- samplehc/types/v2/integrations/bank/transaction_sync_params.py +0 -15
- samplehc/types/v2/integrations/bank/transaction_sync_response.py +0 -26
- samplehc/types/v2/integrations/careviso_get_payers_response.py +0 -19
- samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +0 -90
- samplehc/types/v2/integrations/glidian/__init__.py +0 -20
- samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +0 -32
- samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +0 -24
- samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +0 -13
- samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +0 -16
- samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +0 -20
- samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +0 -16
- samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +0 -7
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +0 -42
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +0 -23
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +0 -19
- samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +0 -17
- samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +0 -31
- samplehc/types/v2/integrations/glidian_list_payers_params.py +0 -11
- samplehc/types/v2/integrations/glidian_list_payers_response.py +0 -17
- samplehc/types/v2/integrations/glidian_list_services_params.py +0 -13
- samplehc/types/v2/integrations/glidian_list_services_response.py +0 -19
- samplehc/types/v2/integrations/kno2/__init__.py +0 -6
- samplehc/types/v2/integrations/kno2/message_get_attachment_response.py +0 -15
- samplehc/types/v2/integrations/kno2/message_retrieve_response.py +0 -13
- samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +0 -22
- samplehc/types/v2/integrations/salesforce_run_soql_query_params.py +0 -11
- samplehc/types/v2/integrations/snowflake_query_params.py +0 -12
- samplehc/types/v2/integrations/snowflake_query_response.py +0 -8
- samplehc/types/v2/integrations/wellsky/__init__.py +0 -6
- samplehc/types/v2/integrations/wellsky/patient_add_params.py +0 -13
- samplehc/types/v2/integrations/wellsky/patient_search_params.py +0 -32
- samplehc/types/v2/integrations/xcure_make_request_params.py +0 -18
- samplehc/types/v2/ledger/__init__.py +0 -3
- samplehc/types/v2/policy_list_companies_params.py +0 -18
- samplehc/types/v2/policy_list_companies_response.py +0 -24
- samplehc/types/v2/policy_list_params.py +0 -47
- samplehc/types/v2/policy_list_plans_params.py +0 -18
- samplehc/types/v2/policy_list_plans_response.py +0 -30
- samplehc/types/v2/policy_list_response.py +0 -67
- samplehc/types/v2/policy_retrieve_presigned_url_response.py +0 -17
- samplehc/types/v2/policy_retrieve_text_response.py +0 -12
- samplehc/types/v2/task_cancel_response.py +0 -12
- samplehc/types/v2/task_complete_params.py +0 -12
- samplehc/types/v2/task_complete_response.py +0 -16
- samplehc/types/v2/task_get_suspended_payload_response.py +0 -8
- samplehc/types/v2/task_retrieve_response.py +0 -22
- samplehc/types/v2/task_retry_response.py +0 -10
- samplehc/types/v2/task_update_column_params.py +0 -19
- samplehc/types/v2/task_update_column_response.py +0 -9
- samplehc/types/v2/task_update_screen_time_params.py +0 -14
- samplehc/types/v2/task_update_screen_time_response.py +0 -8
- samplehc/types/v2/tasks/__init__.py +0 -7
- samplehc/types/v2/tasks/state_get_response.py +0 -8
- samplehc/types/v2/tasks/state_update_params.py +0 -13
- samplehc/types/v2/tasks/state_update_response.py +0 -9
- samplehc/types/v2/workflow_deploy_response.py +0 -12
- samplehc/types/v2/workflow_query_params.py +0 -12
- samplehc/types/v2/workflow_query_response.py +0 -8
- samplehc/types/v2/workflow_run_get_start_data_response.py +0 -14
- samplehc/types/v2/workflow_run_resume_when_complete_params.py +0 -14
- samplehc/types/v2/workflow_run_resume_when_complete_response.py +0 -12
- samplehc/types/v2/workflow_run_retrieve_response.py +0 -16
- samplehc/types/v2/workflow_runs/__init__.py +0 -5
- samplehc/types/v2/workflow_runs/step_get_output_response.py +0 -14
- samplehc/types/v2/workflow_start_params.py +0 -17
- samplehc/types/v2/workflow_start_response.py +0 -25
- samplehc-0.16.0.dist-info/RECORD +0 -226
- {samplehc-0.16.0.dist-info → samplehc-0.18.0.dist-info}/WHEEL +0 -0
- {samplehc-0.16.0.dist-info → samplehc-0.18.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,527 +0,0 @@
|
|
|
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, Iterable
|
|
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 .clinical_questions import (
|
|
21
|
-
ClinicalQuestionsResource,
|
|
22
|
-
AsyncClinicalQuestionsResource,
|
|
23
|
-
ClinicalQuestionsResourceWithRawResponse,
|
|
24
|
-
AsyncClinicalQuestionsResourceWithRawResponse,
|
|
25
|
-
ClinicalQuestionsResourceWithStreamingResponse,
|
|
26
|
-
AsyncClinicalQuestionsResourceWithStreamingResponse,
|
|
27
|
-
)
|
|
28
|
-
from ......types.v2.integrations.glidian import (
|
|
29
|
-
prior_authorization_create_draft_params,
|
|
30
|
-
prior_authorization_update_record_params,
|
|
31
|
-
)
|
|
32
|
-
from ......types.v2.integrations.glidian.prior_authorization_submit_response import PriorAuthorizationSubmitResponse
|
|
33
|
-
from ......types.v2.integrations.glidian.prior_authorization_create_draft_response import (
|
|
34
|
-
PriorAuthorizationCreateDraftResponse,
|
|
35
|
-
)
|
|
36
|
-
from ......types.v2.integrations.glidian.prior_authorization_update_record_response import (
|
|
37
|
-
PriorAuthorizationUpdateRecordResponse,
|
|
38
|
-
)
|
|
39
|
-
from ......types.v2.integrations.glidian.prior_authorization_retrieve_record_response import (
|
|
40
|
-
PriorAuthorizationRetrieveRecordResponse,
|
|
41
|
-
)
|
|
42
|
-
|
|
43
|
-
__all__ = ["PriorAuthorizationsResource", "AsyncPriorAuthorizationsResource"]
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class PriorAuthorizationsResource(SyncAPIResource):
|
|
47
|
-
@cached_property
|
|
48
|
-
def clinical_questions(self) -> ClinicalQuestionsResource:
|
|
49
|
-
return ClinicalQuestionsResource(self._client)
|
|
50
|
-
|
|
51
|
-
@cached_property
|
|
52
|
-
def with_raw_response(self) -> PriorAuthorizationsResourceWithRawResponse:
|
|
53
|
-
"""
|
|
54
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
55
|
-
the raw response object instead of the parsed content.
|
|
56
|
-
|
|
57
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
58
|
-
"""
|
|
59
|
-
return PriorAuthorizationsResourceWithRawResponse(self)
|
|
60
|
-
|
|
61
|
-
@cached_property
|
|
62
|
-
def with_streaming_response(self) -> PriorAuthorizationsResourceWithStreamingResponse:
|
|
63
|
-
"""
|
|
64
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
65
|
-
|
|
66
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
67
|
-
"""
|
|
68
|
-
return PriorAuthorizationsResourceWithStreamingResponse(self)
|
|
69
|
-
|
|
70
|
-
def create_draft(
|
|
71
|
-
self,
|
|
72
|
-
slug: str,
|
|
73
|
-
*,
|
|
74
|
-
attachments: Iterable[prior_authorization_create_draft_params.Attachment],
|
|
75
|
-
glidian_payer_id: float,
|
|
76
|
-
glidian_service_id: str,
|
|
77
|
-
reference_number: str,
|
|
78
|
-
submission_requirements: Dict[str, str],
|
|
79
|
-
reference_number_two: str | Omit = omit,
|
|
80
|
-
state: str | Omit = omit,
|
|
81
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
82
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
83
|
-
extra_headers: Headers | None = None,
|
|
84
|
-
extra_query: Query | None = None,
|
|
85
|
-
extra_body: Body | None = None,
|
|
86
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
87
|
-
) -> PriorAuthorizationCreateDraftResponse:
|
|
88
|
-
"""
|
|
89
|
-
Create a draft prior authorization request in Glidian.
|
|
90
|
-
|
|
91
|
-
Args:
|
|
92
|
-
extra_headers: Send extra headers
|
|
93
|
-
|
|
94
|
-
extra_query: Add additional query parameters to the request
|
|
95
|
-
|
|
96
|
-
extra_body: Add additional JSON properties to the request
|
|
97
|
-
|
|
98
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
99
|
-
"""
|
|
100
|
-
if not slug:
|
|
101
|
-
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
102
|
-
return self._post(
|
|
103
|
-
f"/api/v2/integrations/glidian/{slug}/prior-authorizations",
|
|
104
|
-
body=maybe_transform(
|
|
105
|
-
{
|
|
106
|
-
"attachments": attachments,
|
|
107
|
-
"glidian_payer_id": glidian_payer_id,
|
|
108
|
-
"glidian_service_id": glidian_service_id,
|
|
109
|
-
"reference_number": reference_number,
|
|
110
|
-
"submission_requirements": submission_requirements,
|
|
111
|
-
"reference_number_two": reference_number_two,
|
|
112
|
-
"state": state,
|
|
113
|
-
},
|
|
114
|
-
prior_authorization_create_draft_params.PriorAuthorizationCreateDraftParams,
|
|
115
|
-
),
|
|
116
|
-
options=make_request_options(
|
|
117
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
118
|
-
),
|
|
119
|
-
cast_to=PriorAuthorizationCreateDraftResponse,
|
|
120
|
-
)
|
|
121
|
-
|
|
122
|
-
def retrieve_record(
|
|
123
|
-
self,
|
|
124
|
-
record_id: str,
|
|
125
|
-
*,
|
|
126
|
-
slug: str,
|
|
127
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
128
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
129
|
-
extra_headers: Headers | None = None,
|
|
130
|
-
extra_query: Query | None = None,
|
|
131
|
-
extra_body: Body | None = None,
|
|
132
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
133
|
-
) -> PriorAuthorizationRetrieveRecordResponse:
|
|
134
|
-
"""
|
|
135
|
-
Retrieve a specific prior authorization record from Glidian.
|
|
136
|
-
|
|
137
|
-
Args:
|
|
138
|
-
extra_headers: Send extra headers
|
|
139
|
-
|
|
140
|
-
extra_query: Add additional query parameters to the request
|
|
141
|
-
|
|
142
|
-
extra_body: Add additional JSON properties to the request
|
|
143
|
-
|
|
144
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
145
|
-
"""
|
|
146
|
-
if not slug:
|
|
147
|
-
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
148
|
-
if not record_id:
|
|
149
|
-
raise ValueError(f"Expected a non-empty value for `record_id` but received {record_id!r}")
|
|
150
|
-
return self._get(
|
|
151
|
-
f"/api/v2/integrations/glidian/{slug}/prior-authorizations/{record_id}",
|
|
152
|
-
options=make_request_options(
|
|
153
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
154
|
-
),
|
|
155
|
-
cast_to=PriorAuthorizationRetrieveRecordResponse,
|
|
156
|
-
)
|
|
157
|
-
|
|
158
|
-
def submit(
|
|
159
|
-
self,
|
|
160
|
-
record_id: str,
|
|
161
|
-
*,
|
|
162
|
-
slug: str,
|
|
163
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
164
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
165
|
-
extra_headers: Headers | None = None,
|
|
166
|
-
extra_query: Query | None = None,
|
|
167
|
-
extra_body: Body | None = None,
|
|
168
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
169
|
-
) -> PriorAuthorizationSubmitResponse:
|
|
170
|
-
"""Submit a completed prior authorization to Glidian.
|
|
171
|
-
|
|
172
|
-
All clinical questions must
|
|
173
|
-
be answered first.
|
|
174
|
-
|
|
175
|
-
Args:
|
|
176
|
-
extra_headers: Send extra headers
|
|
177
|
-
|
|
178
|
-
extra_query: Add additional query parameters to the request
|
|
179
|
-
|
|
180
|
-
extra_body: Add additional JSON properties to the request
|
|
181
|
-
|
|
182
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
183
|
-
"""
|
|
184
|
-
if not slug:
|
|
185
|
-
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
186
|
-
if not record_id:
|
|
187
|
-
raise ValueError(f"Expected a non-empty value for `record_id` but received {record_id!r}")
|
|
188
|
-
return self._post(
|
|
189
|
-
f"/api/v2/integrations/glidian/{slug}/prior-authorizations/{record_id}/submit",
|
|
190
|
-
options=make_request_options(
|
|
191
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
192
|
-
),
|
|
193
|
-
cast_to=PriorAuthorizationSubmitResponse,
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
def update_record(
|
|
197
|
-
self,
|
|
198
|
-
record_id: str,
|
|
199
|
-
*,
|
|
200
|
-
slug: str,
|
|
201
|
-
reference_number: str | Omit = omit,
|
|
202
|
-
reference_number_two: str | Omit = omit,
|
|
203
|
-
submission_requirements: Dict[str, str] | Omit = omit,
|
|
204
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
205
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
206
|
-
extra_headers: Headers | None = None,
|
|
207
|
-
extra_query: Query | None = None,
|
|
208
|
-
extra_body: Body | None = None,
|
|
209
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
210
|
-
) -> PriorAuthorizationUpdateRecordResponse:
|
|
211
|
-
"""
|
|
212
|
-
Update an existing prior authorization record in Glidian.
|
|
213
|
-
|
|
214
|
-
Args:
|
|
215
|
-
extra_headers: Send extra headers
|
|
216
|
-
|
|
217
|
-
extra_query: Add additional query parameters to the request
|
|
218
|
-
|
|
219
|
-
extra_body: Add additional JSON properties to the request
|
|
220
|
-
|
|
221
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
222
|
-
"""
|
|
223
|
-
if not slug:
|
|
224
|
-
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
225
|
-
if not record_id:
|
|
226
|
-
raise ValueError(f"Expected a non-empty value for `record_id` but received {record_id!r}")
|
|
227
|
-
return self._put(
|
|
228
|
-
f"/api/v2/integrations/glidian/{slug}/prior-authorizations/{record_id}",
|
|
229
|
-
body=maybe_transform(
|
|
230
|
-
{
|
|
231
|
-
"reference_number": reference_number,
|
|
232
|
-
"reference_number_two": reference_number_two,
|
|
233
|
-
"submission_requirements": submission_requirements,
|
|
234
|
-
},
|
|
235
|
-
prior_authorization_update_record_params.PriorAuthorizationUpdateRecordParams,
|
|
236
|
-
),
|
|
237
|
-
options=make_request_options(
|
|
238
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
239
|
-
),
|
|
240
|
-
cast_to=PriorAuthorizationUpdateRecordResponse,
|
|
241
|
-
)
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
class AsyncPriorAuthorizationsResource(AsyncAPIResource):
|
|
245
|
-
@cached_property
|
|
246
|
-
def clinical_questions(self) -> AsyncClinicalQuestionsResource:
|
|
247
|
-
return AsyncClinicalQuestionsResource(self._client)
|
|
248
|
-
|
|
249
|
-
@cached_property
|
|
250
|
-
def with_raw_response(self) -> AsyncPriorAuthorizationsResourceWithRawResponse:
|
|
251
|
-
"""
|
|
252
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
253
|
-
the raw response object instead of the parsed content.
|
|
254
|
-
|
|
255
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
256
|
-
"""
|
|
257
|
-
return AsyncPriorAuthorizationsResourceWithRawResponse(self)
|
|
258
|
-
|
|
259
|
-
@cached_property
|
|
260
|
-
def with_streaming_response(self) -> AsyncPriorAuthorizationsResourceWithStreamingResponse:
|
|
261
|
-
"""
|
|
262
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
263
|
-
|
|
264
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
265
|
-
"""
|
|
266
|
-
return AsyncPriorAuthorizationsResourceWithStreamingResponse(self)
|
|
267
|
-
|
|
268
|
-
async def create_draft(
|
|
269
|
-
self,
|
|
270
|
-
slug: str,
|
|
271
|
-
*,
|
|
272
|
-
attachments: Iterable[prior_authorization_create_draft_params.Attachment],
|
|
273
|
-
glidian_payer_id: float,
|
|
274
|
-
glidian_service_id: str,
|
|
275
|
-
reference_number: str,
|
|
276
|
-
submission_requirements: Dict[str, str],
|
|
277
|
-
reference_number_two: str | Omit = omit,
|
|
278
|
-
state: str | Omit = omit,
|
|
279
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
280
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
281
|
-
extra_headers: Headers | None = None,
|
|
282
|
-
extra_query: Query | None = None,
|
|
283
|
-
extra_body: Body | None = None,
|
|
284
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
285
|
-
) -> PriorAuthorizationCreateDraftResponse:
|
|
286
|
-
"""
|
|
287
|
-
Create a draft prior authorization request in Glidian.
|
|
288
|
-
|
|
289
|
-
Args:
|
|
290
|
-
extra_headers: Send extra headers
|
|
291
|
-
|
|
292
|
-
extra_query: Add additional query parameters to the request
|
|
293
|
-
|
|
294
|
-
extra_body: Add additional JSON properties to the request
|
|
295
|
-
|
|
296
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
297
|
-
"""
|
|
298
|
-
if not slug:
|
|
299
|
-
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
300
|
-
return await self._post(
|
|
301
|
-
f"/api/v2/integrations/glidian/{slug}/prior-authorizations",
|
|
302
|
-
body=await async_maybe_transform(
|
|
303
|
-
{
|
|
304
|
-
"attachments": attachments,
|
|
305
|
-
"glidian_payer_id": glidian_payer_id,
|
|
306
|
-
"glidian_service_id": glidian_service_id,
|
|
307
|
-
"reference_number": reference_number,
|
|
308
|
-
"submission_requirements": submission_requirements,
|
|
309
|
-
"reference_number_two": reference_number_two,
|
|
310
|
-
"state": state,
|
|
311
|
-
},
|
|
312
|
-
prior_authorization_create_draft_params.PriorAuthorizationCreateDraftParams,
|
|
313
|
-
),
|
|
314
|
-
options=make_request_options(
|
|
315
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
316
|
-
),
|
|
317
|
-
cast_to=PriorAuthorizationCreateDraftResponse,
|
|
318
|
-
)
|
|
319
|
-
|
|
320
|
-
async def retrieve_record(
|
|
321
|
-
self,
|
|
322
|
-
record_id: str,
|
|
323
|
-
*,
|
|
324
|
-
slug: str,
|
|
325
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
326
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
327
|
-
extra_headers: Headers | None = None,
|
|
328
|
-
extra_query: Query | None = None,
|
|
329
|
-
extra_body: Body | None = None,
|
|
330
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
331
|
-
) -> PriorAuthorizationRetrieveRecordResponse:
|
|
332
|
-
"""
|
|
333
|
-
Retrieve a specific prior authorization record from Glidian.
|
|
334
|
-
|
|
335
|
-
Args:
|
|
336
|
-
extra_headers: Send extra headers
|
|
337
|
-
|
|
338
|
-
extra_query: Add additional query parameters to the request
|
|
339
|
-
|
|
340
|
-
extra_body: Add additional JSON properties to the request
|
|
341
|
-
|
|
342
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
343
|
-
"""
|
|
344
|
-
if not slug:
|
|
345
|
-
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
346
|
-
if not record_id:
|
|
347
|
-
raise ValueError(f"Expected a non-empty value for `record_id` but received {record_id!r}")
|
|
348
|
-
return await self._get(
|
|
349
|
-
f"/api/v2/integrations/glidian/{slug}/prior-authorizations/{record_id}",
|
|
350
|
-
options=make_request_options(
|
|
351
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
352
|
-
),
|
|
353
|
-
cast_to=PriorAuthorizationRetrieveRecordResponse,
|
|
354
|
-
)
|
|
355
|
-
|
|
356
|
-
async def submit(
|
|
357
|
-
self,
|
|
358
|
-
record_id: str,
|
|
359
|
-
*,
|
|
360
|
-
slug: str,
|
|
361
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
362
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
363
|
-
extra_headers: Headers | None = None,
|
|
364
|
-
extra_query: Query | None = None,
|
|
365
|
-
extra_body: Body | None = None,
|
|
366
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
367
|
-
) -> PriorAuthorizationSubmitResponse:
|
|
368
|
-
"""Submit a completed prior authorization to Glidian.
|
|
369
|
-
|
|
370
|
-
All clinical questions must
|
|
371
|
-
be answered first.
|
|
372
|
-
|
|
373
|
-
Args:
|
|
374
|
-
extra_headers: Send extra headers
|
|
375
|
-
|
|
376
|
-
extra_query: Add additional query parameters to the request
|
|
377
|
-
|
|
378
|
-
extra_body: Add additional JSON properties to the request
|
|
379
|
-
|
|
380
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
381
|
-
"""
|
|
382
|
-
if not slug:
|
|
383
|
-
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
384
|
-
if not record_id:
|
|
385
|
-
raise ValueError(f"Expected a non-empty value for `record_id` but received {record_id!r}")
|
|
386
|
-
return await self._post(
|
|
387
|
-
f"/api/v2/integrations/glidian/{slug}/prior-authorizations/{record_id}/submit",
|
|
388
|
-
options=make_request_options(
|
|
389
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
390
|
-
),
|
|
391
|
-
cast_to=PriorAuthorizationSubmitResponse,
|
|
392
|
-
)
|
|
393
|
-
|
|
394
|
-
async def update_record(
|
|
395
|
-
self,
|
|
396
|
-
record_id: str,
|
|
397
|
-
*,
|
|
398
|
-
slug: str,
|
|
399
|
-
reference_number: str | Omit = omit,
|
|
400
|
-
reference_number_two: str | Omit = omit,
|
|
401
|
-
submission_requirements: Dict[str, str] | Omit = omit,
|
|
402
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
403
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
404
|
-
extra_headers: Headers | None = None,
|
|
405
|
-
extra_query: Query | None = None,
|
|
406
|
-
extra_body: Body | None = None,
|
|
407
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
408
|
-
) -> PriorAuthorizationUpdateRecordResponse:
|
|
409
|
-
"""
|
|
410
|
-
Update an existing prior authorization record in Glidian.
|
|
411
|
-
|
|
412
|
-
Args:
|
|
413
|
-
extra_headers: Send extra headers
|
|
414
|
-
|
|
415
|
-
extra_query: Add additional query parameters to the request
|
|
416
|
-
|
|
417
|
-
extra_body: Add additional JSON properties to the request
|
|
418
|
-
|
|
419
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
420
|
-
"""
|
|
421
|
-
if not slug:
|
|
422
|
-
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
423
|
-
if not record_id:
|
|
424
|
-
raise ValueError(f"Expected a non-empty value for `record_id` but received {record_id!r}")
|
|
425
|
-
return await self._put(
|
|
426
|
-
f"/api/v2/integrations/glidian/{slug}/prior-authorizations/{record_id}",
|
|
427
|
-
body=await async_maybe_transform(
|
|
428
|
-
{
|
|
429
|
-
"reference_number": reference_number,
|
|
430
|
-
"reference_number_two": reference_number_two,
|
|
431
|
-
"submission_requirements": submission_requirements,
|
|
432
|
-
},
|
|
433
|
-
prior_authorization_update_record_params.PriorAuthorizationUpdateRecordParams,
|
|
434
|
-
),
|
|
435
|
-
options=make_request_options(
|
|
436
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
437
|
-
),
|
|
438
|
-
cast_to=PriorAuthorizationUpdateRecordResponse,
|
|
439
|
-
)
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
class PriorAuthorizationsResourceWithRawResponse:
|
|
443
|
-
def __init__(self, prior_authorizations: PriorAuthorizationsResource) -> None:
|
|
444
|
-
self._prior_authorizations = prior_authorizations
|
|
445
|
-
|
|
446
|
-
self.create_draft = to_raw_response_wrapper(
|
|
447
|
-
prior_authorizations.create_draft,
|
|
448
|
-
)
|
|
449
|
-
self.retrieve_record = to_raw_response_wrapper(
|
|
450
|
-
prior_authorizations.retrieve_record,
|
|
451
|
-
)
|
|
452
|
-
self.submit = to_raw_response_wrapper(
|
|
453
|
-
prior_authorizations.submit,
|
|
454
|
-
)
|
|
455
|
-
self.update_record = to_raw_response_wrapper(
|
|
456
|
-
prior_authorizations.update_record,
|
|
457
|
-
)
|
|
458
|
-
|
|
459
|
-
@cached_property
|
|
460
|
-
def clinical_questions(self) -> ClinicalQuestionsResourceWithRawResponse:
|
|
461
|
-
return ClinicalQuestionsResourceWithRawResponse(self._prior_authorizations.clinical_questions)
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
class AsyncPriorAuthorizationsResourceWithRawResponse:
|
|
465
|
-
def __init__(self, prior_authorizations: AsyncPriorAuthorizationsResource) -> None:
|
|
466
|
-
self._prior_authorizations = prior_authorizations
|
|
467
|
-
|
|
468
|
-
self.create_draft = async_to_raw_response_wrapper(
|
|
469
|
-
prior_authorizations.create_draft,
|
|
470
|
-
)
|
|
471
|
-
self.retrieve_record = async_to_raw_response_wrapper(
|
|
472
|
-
prior_authorizations.retrieve_record,
|
|
473
|
-
)
|
|
474
|
-
self.submit = async_to_raw_response_wrapper(
|
|
475
|
-
prior_authorizations.submit,
|
|
476
|
-
)
|
|
477
|
-
self.update_record = async_to_raw_response_wrapper(
|
|
478
|
-
prior_authorizations.update_record,
|
|
479
|
-
)
|
|
480
|
-
|
|
481
|
-
@cached_property
|
|
482
|
-
def clinical_questions(self) -> AsyncClinicalQuestionsResourceWithRawResponse:
|
|
483
|
-
return AsyncClinicalQuestionsResourceWithRawResponse(self._prior_authorizations.clinical_questions)
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
class PriorAuthorizationsResourceWithStreamingResponse:
|
|
487
|
-
def __init__(self, prior_authorizations: PriorAuthorizationsResource) -> None:
|
|
488
|
-
self._prior_authorizations = prior_authorizations
|
|
489
|
-
|
|
490
|
-
self.create_draft = to_streamed_response_wrapper(
|
|
491
|
-
prior_authorizations.create_draft,
|
|
492
|
-
)
|
|
493
|
-
self.retrieve_record = to_streamed_response_wrapper(
|
|
494
|
-
prior_authorizations.retrieve_record,
|
|
495
|
-
)
|
|
496
|
-
self.submit = to_streamed_response_wrapper(
|
|
497
|
-
prior_authorizations.submit,
|
|
498
|
-
)
|
|
499
|
-
self.update_record = to_streamed_response_wrapper(
|
|
500
|
-
prior_authorizations.update_record,
|
|
501
|
-
)
|
|
502
|
-
|
|
503
|
-
@cached_property
|
|
504
|
-
def clinical_questions(self) -> ClinicalQuestionsResourceWithStreamingResponse:
|
|
505
|
-
return ClinicalQuestionsResourceWithStreamingResponse(self._prior_authorizations.clinical_questions)
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
class AsyncPriorAuthorizationsResourceWithStreamingResponse:
|
|
509
|
-
def __init__(self, prior_authorizations: AsyncPriorAuthorizationsResource) -> None:
|
|
510
|
-
self._prior_authorizations = prior_authorizations
|
|
511
|
-
|
|
512
|
-
self.create_draft = async_to_streamed_response_wrapper(
|
|
513
|
-
prior_authorizations.create_draft,
|
|
514
|
-
)
|
|
515
|
-
self.retrieve_record = async_to_streamed_response_wrapper(
|
|
516
|
-
prior_authorizations.retrieve_record,
|
|
517
|
-
)
|
|
518
|
-
self.submit = async_to_streamed_response_wrapper(
|
|
519
|
-
prior_authorizations.submit,
|
|
520
|
-
)
|
|
521
|
-
self.update_record = async_to_streamed_response_wrapper(
|
|
522
|
-
prior_authorizations.update_record,
|
|
523
|
-
)
|
|
524
|
-
|
|
525
|
-
@cached_property
|
|
526
|
-
def clinical_questions(self) -> AsyncClinicalQuestionsResourceWithStreamingResponse:
|
|
527
|
-
return AsyncClinicalQuestionsResourceWithStreamingResponse(self._prior_authorizations.clinical_questions)
|