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,655 +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 ...types.v2 import policy_list_params, policy_list_plans_params, policy_list_companies_params
|
|
11
|
-
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
12
|
-
from ..._response import (
|
|
13
|
-
to_raw_response_wrapper,
|
|
14
|
-
to_streamed_response_wrapper,
|
|
15
|
-
async_to_raw_response_wrapper,
|
|
16
|
-
async_to_streamed_response_wrapper,
|
|
17
|
-
)
|
|
18
|
-
from ..._base_client import make_request_options
|
|
19
|
-
from ...types.v2.policy_list_response import PolicyListResponse
|
|
20
|
-
from ...types.v2.policy_list_plans_response import PolicyListPlansResponse
|
|
21
|
-
from ...types.v2.policy_retrieve_text_response import PolicyRetrieveTextResponse
|
|
22
|
-
from ...types.v2.policy_list_companies_response import PolicyListCompaniesResponse
|
|
23
|
-
from ...types.v2.policy_retrieve_presigned_url_response import PolicyRetrievePresignedURLResponse
|
|
24
|
-
|
|
25
|
-
__all__ = ["PoliciesResource", "AsyncPoliciesResource"]
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class PoliciesResource(SyncAPIResource):
|
|
29
|
-
@cached_property
|
|
30
|
-
def with_raw_response(self) -> PoliciesResourceWithRawResponse:
|
|
31
|
-
"""
|
|
32
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
33
|
-
the raw response object instead of the parsed content.
|
|
34
|
-
|
|
35
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
36
|
-
"""
|
|
37
|
-
return PoliciesResourceWithRawResponse(self)
|
|
38
|
-
|
|
39
|
-
@cached_property
|
|
40
|
-
def with_streaming_response(self) -> PoliciesResourceWithStreamingResponse:
|
|
41
|
-
"""
|
|
42
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
43
|
-
|
|
44
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
45
|
-
"""
|
|
46
|
-
return PoliciesResourceWithStreamingResponse(self)
|
|
47
|
-
|
|
48
|
-
def list(
|
|
49
|
-
self,
|
|
50
|
-
*,
|
|
51
|
-
active_at: str | Omit = omit,
|
|
52
|
-
company_id: str | Omit = omit,
|
|
53
|
-
hcpcs_codes: str | Omit = omit,
|
|
54
|
-
icd10_cm_codes: str | Omit = omit,
|
|
55
|
-
limit: float | Omit = omit,
|
|
56
|
-
plan_id: str | Omit = omit,
|
|
57
|
-
policy_topic: str | Omit = omit,
|
|
58
|
-
policy_topic_for_keyword_extraction: str | Omit = omit,
|
|
59
|
-
policy_type: str | Omit = omit,
|
|
60
|
-
skip: float | Omit = omit,
|
|
61
|
-
updated_at_max: str | Omit = omit,
|
|
62
|
-
updated_at_min: str | Omit = omit,
|
|
63
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
64
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
65
|
-
extra_headers: Headers | None = None,
|
|
66
|
-
extra_query: Query | None = None,
|
|
67
|
-
extra_body: Body | None = None,
|
|
68
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
69
|
-
) -> PolicyListResponse:
|
|
70
|
-
"""
|
|
71
|
-
Retrieve a list of policies based on specified filters.
|
|
72
|
-
|
|
73
|
-
Args:
|
|
74
|
-
active_at: Filter policies active at this date (YYYY-MM-DD)
|
|
75
|
-
|
|
76
|
-
company_id: ID of the company to which the policy belongs
|
|
77
|
-
|
|
78
|
-
hcpcs_codes: Comma-separated HCPCS codes to filter by
|
|
79
|
-
|
|
80
|
-
icd10_cm_codes: Comma-separated ICD-10-CM codes to filter by
|
|
81
|
-
|
|
82
|
-
limit: Maximum number of results to return
|
|
83
|
-
|
|
84
|
-
plan_id: ID of the plan to which the policy belongs
|
|
85
|
-
|
|
86
|
-
policy_topic: Keywords describing the policy content
|
|
87
|
-
|
|
88
|
-
policy_topic_for_keyword_extraction: String for keyword extraction (beta)
|
|
89
|
-
|
|
90
|
-
policy_type: Type of policy (MEDICAL_POLICY, PAYMENT_POLICY, etc.)
|
|
91
|
-
|
|
92
|
-
skip: Number of results to skip
|
|
93
|
-
|
|
94
|
-
updated_at_max: Filter policies updated on or before this date (YYYY-MM-DD)
|
|
95
|
-
|
|
96
|
-
updated_at_min: Filter policies updated on or after this date (YYYY-MM-DD)
|
|
97
|
-
|
|
98
|
-
extra_headers: Send extra headers
|
|
99
|
-
|
|
100
|
-
extra_query: Add additional query parameters to the request
|
|
101
|
-
|
|
102
|
-
extra_body: Add additional JSON properties to the request
|
|
103
|
-
|
|
104
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
105
|
-
"""
|
|
106
|
-
return self._get(
|
|
107
|
-
"/api/v2/policies/",
|
|
108
|
-
options=make_request_options(
|
|
109
|
-
extra_headers=extra_headers,
|
|
110
|
-
extra_query=extra_query,
|
|
111
|
-
extra_body=extra_body,
|
|
112
|
-
timeout=timeout,
|
|
113
|
-
query=maybe_transform(
|
|
114
|
-
{
|
|
115
|
-
"active_at": active_at,
|
|
116
|
-
"company_id": company_id,
|
|
117
|
-
"hcpcs_codes": hcpcs_codes,
|
|
118
|
-
"icd10_cm_codes": icd10_cm_codes,
|
|
119
|
-
"limit": limit,
|
|
120
|
-
"plan_id": plan_id,
|
|
121
|
-
"policy_topic": policy_topic,
|
|
122
|
-
"policy_topic_for_keyword_extraction": policy_topic_for_keyword_extraction,
|
|
123
|
-
"policy_type": policy_type,
|
|
124
|
-
"skip": skip,
|
|
125
|
-
"updated_at_max": updated_at_max,
|
|
126
|
-
"updated_at_min": updated_at_min,
|
|
127
|
-
},
|
|
128
|
-
policy_list_params.PolicyListParams,
|
|
129
|
-
),
|
|
130
|
-
),
|
|
131
|
-
cast_to=PolicyListResponse,
|
|
132
|
-
)
|
|
133
|
-
|
|
134
|
-
def list_companies(
|
|
135
|
-
self,
|
|
136
|
-
*,
|
|
137
|
-
company_name: str | Omit = omit,
|
|
138
|
-
limit: float | Omit = omit,
|
|
139
|
-
skip: float | Omit = omit,
|
|
140
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
141
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
142
|
-
extra_headers: Headers | None = None,
|
|
143
|
-
extra_query: Query | None = None,
|
|
144
|
-
extra_body: Body | None = None,
|
|
145
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
146
|
-
) -> PolicyListCompaniesResponse:
|
|
147
|
-
"""
|
|
148
|
-
Retrieve a list of companies.
|
|
149
|
-
|
|
150
|
-
Args:
|
|
151
|
-
company_name: Company name to filter by
|
|
152
|
-
|
|
153
|
-
limit: Maximum number of results to return
|
|
154
|
-
|
|
155
|
-
skip: Number of results to skip
|
|
156
|
-
|
|
157
|
-
extra_headers: Send extra headers
|
|
158
|
-
|
|
159
|
-
extra_query: Add additional query parameters to the request
|
|
160
|
-
|
|
161
|
-
extra_body: Add additional JSON properties to the request
|
|
162
|
-
|
|
163
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
164
|
-
"""
|
|
165
|
-
return self._get(
|
|
166
|
-
"/api/v2/policies/companies",
|
|
167
|
-
options=make_request_options(
|
|
168
|
-
extra_headers=extra_headers,
|
|
169
|
-
extra_query=extra_query,
|
|
170
|
-
extra_body=extra_body,
|
|
171
|
-
timeout=timeout,
|
|
172
|
-
query=maybe_transform(
|
|
173
|
-
{
|
|
174
|
-
"company_name": company_name,
|
|
175
|
-
"limit": limit,
|
|
176
|
-
"skip": skip,
|
|
177
|
-
},
|
|
178
|
-
policy_list_companies_params.PolicyListCompaniesParams,
|
|
179
|
-
),
|
|
180
|
-
),
|
|
181
|
-
cast_to=PolicyListCompaniesResponse,
|
|
182
|
-
)
|
|
183
|
-
|
|
184
|
-
def list_plans(
|
|
185
|
-
self,
|
|
186
|
-
*,
|
|
187
|
-
limit: float | Omit = omit,
|
|
188
|
-
plan_name: str | Omit = omit,
|
|
189
|
-
skip: float | Omit = omit,
|
|
190
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
191
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
192
|
-
extra_headers: Headers | None = None,
|
|
193
|
-
extra_query: Query | None = None,
|
|
194
|
-
extra_body: Body | None = None,
|
|
195
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
196
|
-
) -> PolicyListPlansResponse:
|
|
197
|
-
"""
|
|
198
|
-
Retrieve a list of plans.
|
|
199
|
-
|
|
200
|
-
Args:
|
|
201
|
-
limit: Maximum number of results to return
|
|
202
|
-
|
|
203
|
-
plan_name: Plan name to filter by
|
|
204
|
-
|
|
205
|
-
skip: Number of results to skip
|
|
206
|
-
|
|
207
|
-
extra_headers: Send extra headers
|
|
208
|
-
|
|
209
|
-
extra_query: Add additional query parameters to the request
|
|
210
|
-
|
|
211
|
-
extra_body: Add additional JSON properties to the request
|
|
212
|
-
|
|
213
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
214
|
-
"""
|
|
215
|
-
return self._get(
|
|
216
|
-
"/api/v2/policies/plans",
|
|
217
|
-
options=make_request_options(
|
|
218
|
-
extra_headers=extra_headers,
|
|
219
|
-
extra_query=extra_query,
|
|
220
|
-
extra_body=extra_body,
|
|
221
|
-
timeout=timeout,
|
|
222
|
-
query=maybe_transform(
|
|
223
|
-
{
|
|
224
|
-
"limit": limit,
|
|
225
|
-
"plan_name": plan_name,
|
|
226
|
-
"skip": skip,
|
|
227
|
-
},
|
|
228
|
-
policy_list_plans_params.PolicyListPlansParams,
|
|
229
|
-
),
|
|
230
|
-
),
|
|
231
|
-
cast_to=PolicyListPlansResponse,
|
|
232
|
-
)
|
|
233
|
-
|
|
234
|
-
def retrieve_presigned_url(
|
|
235
|
-
self,
|
|
236
|
-
policy_id: str,
|
|
237
|
-
*,
|
|
238
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
239
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
240
|
-
extra_headers: Headers | None = None,
|
|
241
|
-
extra_query: Query | None = None,
|
|
242
|
-
extra_body: Body | None = None,
|
|
243
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
244
|
-
) -> PolicyRetrievePresignedURLResponse:
|
|
245
|
-
"""
|
|
246
|
-
Retrieve a presigned URL for accessing a policy document.
|
|
247
|
-
|
|
248
|
-
Args:
|
|
249
|
-
extra_headers: Send extra headers
|
|
250
|
-
|
|
251
|
-
extra_query: Add additional query parameters to the request
|
|
252
|
-
|
|
253
|
-
extra_body: Add additional JSON properties to the request
|
|
254
|
-
|
|
255
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
256
|
-
"""
|
|
257
|
-
if not policy_id:
|
|
258
|
-
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
|
|
259
|
-
return self._get(
|
|
260
|
-
f"/api/v2/policies/{policy_id}/url",
|
|
261
|
-
options=make_request_options(
|
|
262
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
263
|
-
),
|
|
264
|
-
cast_to=PolicyRetrievePresignedURLResponse,
|
|
265
|
-
)
|
|
266
|
-
|
|
267
|
-
def retrieve_text(
|
|
268
|
-
self,
|
|
269
|
-
policy_id: str,
|
|
270
|
-
*,
|
|
271
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
272
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
273
|
-
extra_headers: Headers | None = None,
|
|
274
|
-
extra_query: Query | None = None,
|
|
275
|
-
extra_body: Body | None = None,
|
|
276
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
277
|
-
) -> PolicyRetrieveTextResponse:
|
|
278
|
-
"""
|
|
279
|
-
Retrieve the raw text content of a policy document.
|
|
280
|
-
|
|
281
|
-
Args:
|
|
282
|
-
extra_headers: Send extra headers
|
|
283
|
-
|
|
284
|
-
extra_query: Add additional query parameters to the request
|
|
285
|
-
|
|
286
|
-
extra_body: Add additional JSON properties to the request
|
|
287
|
-
|
|
288
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
289
|
-
"""
|
|
290
|
-
if not policy_id:
|
|
291
|
-
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
|
|
292
|
-
return self._get(
|
|
293
|
-
f"/api/v2/policies/{policy_id}/text",
|
|
294
|
-
options=make_request_options(
|
|
295
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
296
|
-
),
|
|
297
|
-
cast_to=PolicyRetrieveTextResponse,
|
|
298
|
-
)
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
class AsyncPoliciesResource(AsyncAPIResource):
|
|
302
|
-
@cached_property
|
|
303
|
-
def with_raw_response(self) -> AsyncPoliciesResourceWithRawResponse:
|
|
304
|
-
"""
|
|
305
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
306
|
-
the raw response object instead of the parsed content.
|
|
307
|
-
|
|
308
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
309
|
-
"""
|
|
310
|
-
return AsyncPoliciesResourceWithRawResponse(self)
|
|
311
|
-
|
|
312
|
-
@cached_property
|
|
313
|
-
def with_streaming_response(self) -> AsyncPoliciesResourceWithStreamingResponse:
|
|
314
|
-
"""
|
|
315
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
316
|
-
|
|
317
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
318
|
-
"""
|
|
319
|
-
return AsyncPoliciesResourceWithStreamingResponse(self)
|
|
320
|
-
|
|
321
|
-
async def list(
|
|
322
|
-
self,
|
|
323
|
-
*,
|
|
324
|
-
active_at: str | Omit = omit,
|
|
325
|
-
company_id: str | Omit = omit,
|
|
326
|
-
hcpcs_codes: str | Omit = omit,
|
|
327
|
-
icd10_cm_codes: str | Omit = omit,
|
|
328
|
-
limit: float | Omit = omit,
|
|
329
|
-
plan_id: str | Omit = omit,
|
|
330
|
-
policy_topic: str | Omit = omit,
|
|
331
|
-
policy_topic_for_keyword_extraction: str | Omit = omit,
|
|
332
|
-
policy_type: str | Omit = omit,
|
|
333
|
-
skip: float | Omit = omit,
|
|
334
|
-
updated_at_max: str | Omit = omit,
|
|
335
|
-
updated_at_min: str | Omit = omit,
|
|
336
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
337
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
338
|
-
extra_headers: Headers | None = None,
|
|
339
|
-
extra_query: Query | None = None,
|
|
340
|
-
extra_body: Body | None = None,
|
|
341
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
342
|
-
) -> PolicyListResponse:
|
|
343
|
-
"""
|
|
344
|
-
Retrieve a list of policies based on specified filters.
|
|
345
|
-
|
|
346
|
-
Args:
|
|
347
|
-
active_at: Filter policies active at this date (YYYY-MM-DD)
|
|
348
|
-
|
|
349
|
-
company_id: ID of the company to which the policy belongs
|
|
350
|
-
|
|
351
|
-
hcpcs_codes: Comma-separated HCPCS codes to filter by
|
|
352
|
-
|
|
353
|
-
icd10_cm_codes: Comma-separated ICD-10-CM codes to filter by
|
|
354
|
-
|
|
355
|
-
limit: Maximum number of results to return
|
|
356
|
-
|
|
357
|
-
plan_id: ID of the plan to which the policy belongs
|
|
358
|
-
|
|
359
|
-
policy_topic: Keywords describing the policy content
|
|
360
|
-
|
|
361
|
-
policy_topic_for_keyword_extraction: String for keyword extraction (beta)
|
|
362
|
-
|
|
363
|
-
policy_type: Type of policy (MEDICAL_POLICY, PAYMENT_POLICY, etc.)
|
|
364
|
-
|
|
365
|
-
skip: Number of results to skip
|
|
366
|
-
|
|
367
|
-
updated_at_max: Filter policies updated on or before this date (YYYY-MM-DD)
|
|
368
|
-
|
|
369
|
-
updated_at_min: Filter policies updated on or after this date (YYYY-MM-DD)
|
|
370
|
-
|
|
371
|
-
extra_headers: Send extra headers
|
|
372
|
-
|
|
373
|
-
extra_query: Add additional query parameters to the request
|
|
374
|
-
|
|
375
|
-
extra_body: Add additional JSON properties to the request
|
|
376
|
-
|
|
377
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
378
|
-
"""
|
|
379
|
-
return await self._get(
|
|
380
|
-
"/api/v2/policies/",
|
|
381
|
-
options=make_request_options(
|
|
382
|
-
extra_headers=extra_headers,
|
|
383
|
-
extra_query=extra_query,
|
|
384
|
-
extra_body=extra_body,
|
|
385
|
-
timeout=timeout,
|
|
386
|
-
query=await async_maybe_transform(
|
|
387
|
-
{
|
|
388
|
-
"active_at": active_at,
|
|
389
|
-
"company_id": company_id,
|
|
390
|
-
"hcpcs_codes": hcpcs_codes,
|
|
391
|
-
"icd10_cm_codes": icd10_cm_codes,
|
|
392
|
-
"limit": limit,
|
|
393
|
-
"plan_id": plan_id,
|
|
394
|
-
"policy_topic": policy_topic,
|
|
395
|
-
"policy_topic_for_keyword_extraction": policy_topic_for_keyword_extraction,
|
|
396
|
-
"policy_type": policy_type,
|
|
397
|
-
"skip": skip,
|
|
398
|
-
"updated_at_max": updated_at_max,
|
|
399
|
-
"updated_at_min": updated_at_min,
|
|
400
|
-
},
|
|
401
|
-
policy_list_params.PolicyListParams,
|
|
402
|
-
),
|
|
403
|
-
),
|
|
404
|
-
cast_to=PolicyListResponse,
|
|
405
|
-
)
|
|
406
|
-
|
|
407
|
-
async def list_companies(
|
|
408
|
-
self,
|
|
409
|
-
*,
|
|
410
|
-
company_name: str | Omit = omit,
|
|
411
|
-
limit: float | Omit = omit,
|
|
412
|
-
skip: float | Omit = omit,
|
|
413
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
414
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
415
|
-
extra_headers: Headers | None = None,
|
|
416
|
-
extra_query: Query | None = None,
|
|
417
|
-
extra_body: Body | None = None,
|
|
418
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
419
|
-
) -> PolicyListCompaniesResponse:
|
|
420
|
-
"""
|
|
421
|
-
Retrieve a list of companies.
|
|
422
|
-
|
|
423
|
-
Args:
|
|
424
|
-
company_name: Company name to filter by
|
|
425
|
-
|
|
426
|
-
limit: Maximum number of results to return
|
|
427
|
-
|
|
428
|
-
skip: Number of results to skip
|
|
429
|
-
|
|
430
|
-
extra_headers: Send extra headers
|
|
431
|
-
|
|
432
|
-
extra_query: Add additional query parameters to the request
|
|
433
|
-
|
|
434
|
-
extra_body: Add additional JSON properties to the request
|
|
435
|
-
|
|
436
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
437
|
-
"""
|
|
438
|
-
return await self._get(
|
|
439
|
-
"/api/v2/policies/companies",
|
|
440
|
-
options=make_request_options(
|
|
441
|
-
extra_headers=extra_headers,
|
|
442
|
-
extra_query=extra_query,
|
|
443
|
-
extra_body=extra_body,
|
|
444
|
-
timeout=timeout,
|
|
445
|
-
query=await async_maybe_transform(
|
|
446
|
-
{
|
|
447
|
-
"company_name": company_name,
|
|
448
|
-
"limit": limit,
|
|
449
|
-
"skip": skip,
|
|
450
|
-
},
|
|
451
|
-
policy_list_companies_params.PolicyListCompaniesParams,
|
|
452
|
-
),
|
|
453
|
-
),
|
|
454
|
-
cast_to=PolicyListCompaniesResponse,
|
|
455
|
-
)
|
|
456
|
-
|
|
457
|
-
async def list_plans(
|
|
458
|
-
self,
|
|
459
|
-
*,
|
|
460
|
-
limit: float | Omit = omit,
|
|
461
|
-
plan_name: str | Omit = omit,
|
|
462
|
-
skip: float | Omit = omit,
|
|
463
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
464
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
465
|
-
extra_headers: Headers | None = None,
|
|
466
|
-
extra_query: Query | None = None,
|
|
467
|
-
extra_body: Body | None = None,
|
|
468
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
469
|
-
) -> PolicyListPlansResponse:
|
|
470
|
-
"""
|
|
471
|
-
Retrieve a list of plans.
|
|
472
|
-
|
|
473
|
-
Args:
|
|
474
|
-
limit: Maximum number of results to return
|
|
475
|
-
|
|
476
|
-
plan_name: Plan name to filter by
|
|
477
|
-
|
|
478
|
-
skip: Number of results to skip
|
|
479
|
-
|
|
480
|
-
extra_headers: Send extra headers
|
|
481
|
-
|
|
482
|
-
extra_query: Add additional query parameters to the request
|
|
483
|
-
|
|
484
|
-
extra_body: Add additional JSON properties to the request
|
|
485
|
-
|
|
486
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
487
|
-
"""
|
|
488
|
-
return await self._get(
|
|
489
|
-
"/api/v2/policies/plans",
|
|
490
|
-
options=make_request_options(
|
|
491
|
-
extra_headers=extra_headers,
|
|
492
|
-
extra_query=extra_query,
|
|
493
|
-
extra_body=extra_body,
|
|
494
|
-
timeout=timeout,
|
|
495
|
-
query=await async_maybe_transform(
|
|
496
|
-
{
|
|
497
|
-
"limit": limit,
|
|
498
|
-
"plan_name": plan_name,
|
|
499
|
-
"skip": skip,
|
|
500
|
-
},
|
|
501
|
-
policy_list_plans_params.PolicyListPlansParams,
|
|
502
|
-
),
|
|
503
|
-
),
|
|
504
|
-
cast_to=PolicyListPlansResponse,
|
|
505
|
-
)
|
|
506
|
-
|
|
507
|
-
async def retrieve_presigned_url(
|
|
508
|
-
self,
|
|
509
|
-
policy_id: str,
|
|
510
|
-
*,
|
|
511
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
512
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
513
|
-
extra_headers: Headers | None = None,
|
|
514
|
-
extra_query: Query | None = None,
|
|
515
|
-
extra_body: Body | None = None,
|
|
516
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
517
|
-
) -> PolicyRetrievePresignedURLResponse:
|
|
518
|
-
"""
|
|
519
|
-
Retrieve a presigned URL for accessing a policy document.
|
|
520
|
-
|
|
521
|
-
Args:
|
|
522
|
-
extra_headers: Send extra headers
|
|
523
|
-
|
|
524
|
-
extra_query: Add additional query parameters to the request
|
|
525
|
-
|
|
526
|
-
extra_body: Add additional JSON properties to the request
|
|
527
|
-
|
|
528
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
529
|
-
"""
|
|
530
|
-
if not policy_id:
|
|
531
|
-
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
|
|
532
|
-
return await self._get(
|
|
533
|
-
f"/api/v2/policies/{policy_id}/url",
|
|
534
|
-
options=make_request_options(
|
|
535
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
536
|
-
),
|
|
537
|
-
cast_to=PolicyRetrievePresignedURLResponse,
|
|
538
|
-
)
|
|
539
|
-
|
|
540
|
-
async def retrieve_text(
|
|
541
|
-
self,
|
|
542
|
-
policy_id: str,
|
|
543
|
-
*,
|
|
544
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
545
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
546
|
-
extra_headers: Headers | None = None,
|
|
547
|
-
extra_query: Query | None = None,
|
|
548
|
-
extra_body: Body | None = None,
|
|
549
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
550
|
-
) -> PolicyRetrieveTextResponse:
|
|
551
|
-
"""
|
|
552
|
-
Retrieve the raw text content of a policy document.
|
|
553
|
-
|
|
554
|
-
Args:
|
|
555
|
-
extra_headers: Send extra headers
|
|
556
|
-
|
|
557
|
-
extra_query: Add additional query parameters to the request
|
|
558
|
-
|
|
559
|
-
extra_body: Add additional JSON properties to the request
|
|
560
|
-
|
|
561
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
562
|
-
"""
|
|
563
|
-
if not policy_id:
|
|
564
|
-
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
|
|
565
|
-
return await self._get(
|
|
566
|
-
f"/api/v2/policies/{policy_id}/text",
|
|
567
|
-
options=make_request_options(
|
|
568
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
569
|
-
),
|
|
570
|
-
cast_to=PolicyRetrieveTextResponse,
|
|
571
|
-
)
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
class PoliciesResourceWithRawResponse:
|
|
575
|
-
def __init__(self, policies: PoliciesResource) -> None:
|
|
576
|
-
self._policies = policies
|
|
577
|
-
|
|
578
|
-
self.list = to_raw_response_wrapper(
|
|
579
|
-
policies.list,
|
|
580
|
-
)
|
|
581
|
-
self.list_companies = to_raw_response_wrapper(
|
|
582
|
-
policies.list_companies,
|
|
583
|
-
)
|
|
584
|
-
self.list_plans = to_raw_response_wrapper(
|
|
585
|
-
policies.list_plans,
|
|
586
|
-
)
|
|
587
|
-
self.retrieve_presigned_url = to_raw_response_wrapper(
|
|
588
|
-
policies.retrieve_presigned_url,
|
|
589
|
-
)
|
|
590
|
-
self.retrieve_text = to_raw_response_wrapper(
|
|
591
|
-
policies.retrieve_text,
|
|
592
|
-
)
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
class AsyncPoliciesResourceWithRawResponse:
|
|
596
|
-
def __init__(self, policies: AsyncPoliciesResource) -> None:
|
|
597
|
-
self._policies = policies
|
|
598
|
-
|
|
599
|
-
self.list = async_to_raw_response_wrapper(
|
|
600
|
-
policies.list,
|
|
601
|
-
)
|
|
602
|
-
self.list_companies = async_to_raw_response_wrapper(
|
|
603
|
-
policies.list_companies,
|
|
604
|
-
)
|
|
605
|
-
self.list_plans = async_to_raw_response_wrapper(
|
|
606
|
-
policies.list_plans,
|
|
607
|
-
)
|
|
608
|
-
self.retrieve_presigned_url = async_to_raw_response_wrapper(
|
|
609
|
-
policies.retrieve_presigned_url,
|
|
610
|
-
)
|
|
611
|
-
self.retrieve_text = async_to_raw_response_wrapper(
|
|
612
|
-
policies.retrieve_text,
|
|
613
|
-
)
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
class PoliciesResourceWithStreamingResponse:
|
|
617
|
-
def __init__(self, policies: PoliciesResource) -> None:
|
|
618
|
-
self._policies = policies
|
|
619
|
-
|
|
620
|
-
self.list = to_streamed_response_wrapper(
|
|
621
|
-
policies.list,
|
|
622
|
-
)
|
|
623
|
-
self.list_companies = to_streamed_response_wrapper(
|
|
624
|
-
policies.list_companies,
|
|
625
|
-
)
|
|
626
|
-
self.list_plans = to_streamed_response_wrapper(
|
|
627
|
-
policies.list_plans,
|
|
628
|
-
)
|
|
629
|
-
self.retrieve_presigned_url = to_streamed_response_wrapper(
|
|
630
|
-
policies.retrieve_presigned_url,
|
|
631
|
-
)
|
|
632
|
-
self.retrieve_text = to_streamed_response_wrapper(
|
|
633
|
-
policies.retrieve_text,
|
|
634
|
-
)
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
class AsyncPoliciesResourceWithStreamingResponse:
|
|
638
|
-
def __init__(self, policies: AsyncPoliciesResource) -> None:
|
|
639
|
-
self._policies = policies
|
|
640
|
-
|
|
641
|
-
self.list = async_to_streamed_response_wrapper(
|
|
642
|
-
policies.list,
|
|
643
|
-
)
|
|
644
|
-
self.list_companies = async_to_streamed_response_wrapper(
|
|
645
|
-
policies.list_companies,
|
|
646
|
-
)
|
|
647
|
-
self.list_plans = async_to_streamed_response_wrapper(
|
|
648
|
-
policies.list_plans,
|
|
649
|
-
)
|
|
650
|
-
self.retrieve_presigned_url = async_to_streamed_response_wrapper(
|
|
651
|
-
policies.retrieve_presigned_url,
|
|
652
|
-
)
|
|
653
|
-
self.retrieve_text = async_to_streamed_response_wrapper(
|
|
654
|
-
policies.retrieve_text,
|
|
655
|
-
)
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from .state import (
|
|
4
|
-
StateResource,
|
|
5
|
-
AsyncStateResource,
|
|
6
|
-
StateResourceWithRawResponse,
|
|
7
|
-
AsyncStateResourceWithRawResponse,
|
|
8
|
-
StateResourceWithStreamingResponse,
|
|
9
|
-
AsyncStateResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
|
-
from .tasks import (
|
|
12
|
-
TasksResource,
|
|
13
|
-
AsyncTasksResource,
|
|
14
|
-
TasksResourceWithRawResponse,
|
|
15
|
-
AsyncTasksResourceWithRawResponse,
|
|
16
|
-
TasksResourceWithStreamingResponse,
|
|
17
|
-
AsyncTasksResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
__all__ = [
|
|
21
|
-
"StateResource",
|
|
22
|
-
"AsyncStateResource",
|
|
23
|
-
"StateResourceWithRawResponse",
|
|
24
|
-
"AsyncStateResourceWithRawResponse",
|
|
25
|
-
"StateResourceWithStreamingResponse",
|
|
26
|
-
"AsyncStateResourceWithStreamingResponse",
|
|
27
|
-
"TasksResource",
|
|
28
|
-
"AsyncTasksResource",
|
|
29
|
-
"TasksResourceWithRawResponse",
|
|
30
|
-
"AsyncTasksResourceWithRawResponse",
|
|
31
|
-
"TasksResourceWithStreamingResponse",
|
|
32
|
-
"AsyncTasksResourceWithStreamingResponse",
|
|
33
|
-
]
|