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.
- samplehc/_base_client.py +5 -2
- samplehc/_client.py +1 -38
- samplehc/_compat.py +3 -3
- samplehc/_utils/_json.py +35 -0
- 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 +44 -196
- samplehc/resources/v2/v2.py +0 -224
- samplehc/types/__init__.py +0 -5
- samplehc/types/v2/__init__.py +0 -53
- samplehc/types/v2/document_extract_params.py +20 -1
- samplehc/types/v2/documents/__init__.py +0 -3
- {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/METADATA +22 -27
- samplehc-0.19.0.dist-info/RECORD +93 -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 -377
- 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 -25
- samplehc/types/v2/workflow_start_response.py +0 -25
- samplehc-0.17.0.dist-info/RECORD +0 -226
- {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/WHEEL +0 -0
- {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,407 +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 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 ....types.v2.clearinghouse import claim_submit_params
|
|
21
|
-
from ....types.v2.clearinghouse.claim_submit_response import ClaimSubmitResponse
|
|
22
|
-
|
|
23
|
-
__all__ = ["ClaimResource", "AsyncClaimResource"]
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class ClaimResource(SyncAPIResource):
|
|
27
|
-
@cached_property
|
|
28
|
-
def with_raw_response(self) -> ClaimResourceWithRawResponse:
|
|
29
|
-
"""
|
|
30
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
31
|
-
the raw response object instead of the parsed content.
|
|
32
|
-
|
|
33
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
34
|
-
"""
|
|
35
|
-
return ClaimResourceWithRawResponse(self)
|
|
36
|
-
|
|
37
|
-
@cached_property
|
|
38
|
-
def with_streaming_response(self) -> ClaimResourceWithStreamingResponse:
|
|
39
|
-
"""
|
|
40
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
41
|
-
|
|
42
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
43
|
-
"""
|
|
44
|
-
return ClaimResourceWithStreamingResponse(self)
|
|
45
|
-
|
|
46
|
-
def cancel(
|
|
47
|
-
self,
|
|
48
|
-
claim_id: str,
|
|
49
|
-
*,
|
|
50
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
51
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
52
|
-
extra_headers: Headers | None = None,
|
|
53
|
-
extra_query: Query | None = None,
|
|
54
|
-
extra_body: Body | None = None,
|
|
55
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
56
|
-
) -> object:
|
|
57
|
-
"""
|
|
58
|
-
Voids a previously submitted claim by submitting a new claim with
|
|
59
|
-
claimFrequencyCode set to 8.
|
|
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 claim_id:
|
|
71
|
-
raise ValueError(f"Expected a non-empty value for `claim_id` but received {claim_id!r}")
|
|
72
|
-
return self._post(
|
|
73
|
-
f"/api/v2/clearinghouse/claim/{claim_id}/cancel",
|
|
74
|
-
options=make_request_options(
|
|
75
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
76
|
-
),
|
|
77
|
-
cast_to=object,
|
|
78
|
-
)
|
|
79
|
-
|
|
80
|
-
def retrieve_status(
|
|
81
|
-
self,
|
|
82
|
-
claim_id: str,
|
|
83
|
-
*,
|
|
84
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
85
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
86
|
-
extra_headers: Headers | None = None,
|
|
87
|
-
extra_query: Query | None = None,
|
|
88
|
-
extra_body: Body | None = None,
|
|
89
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
90
|
-
) -> object:
|
|
91
|
-
"""
|
|
92
|
-
Retrieves the status and details of a submitted claim by its ID.
|
|
93
|
-
|
|
94
|
-
Args:
|
|
95
|
-
extra_headers: Send extra headers
|
|
96
|
-
|
|
97
|
-
extra_query: Add additional query parameters to the request
|
|
98
|
-
|
|
99
|
-
extra_body: Add additional JSON properties to the request
|
|
100
|
-
|
|
101
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
102
|
-
"""
|
|
103
|
-
if not claim_id:
|
|
104
|
-
raise ValueError(f"Expected a non-empty value for `claim_id` but received {claim_id!r}")
|
|
105
|
-
return self._get(
|
|
106
|
-
f"/api/v2/clearinghouse/claim/{claim_id}",
|
|
107
|
-
options=make_request_options(
|
|
108
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
109
|
-
),
|
|
110
|
-
cast_to=object,
|
|
111
|
-
)
|
|
112
|
-
|
|
113
|
-
def submit(
|
|
114
|
-
self,
|
|
115
|
-
*,
|
|
116
|
-
billing: claim_submit_params.Billing,
|
|
117
|
-
claim_information: claim_submit_params.ClaimInformation,
|
|
118
|
-
is_testing: bool,
|
|
119
|
-
receiver: claim_submit_params.Receiver,
|
|
120
|
-
submitter: claim_submit_params.Submitter,
|
|
121
|
-
subscriber: claim_submit_params.Subscriber,
|
|
122
|
-
trading_partner_service_id: str,
|
|
123
|
-
control_number: str | Omit = omit,
|
|
124
|
-
dependent: claim_submit_params.Dependent | Omit = omit,
|
|
125
|
-
ordering: claim_submit_params.Ordering | Omit = omit,
|
|
126
|
-
payer_address: claim_submit_params.PayerAddress | Omit = omit,
|
|
127
|
-
pay_to_address: claim_submit_params.PayToAddress | Omit = omit,
|
|
128
|
-
pay_to_plan: claim_submit_params.PayToPlan | Omit = omit,
|
|
129
|
-
providers: Iterable[claim_submit_params.Provider] | Omit = omit,
|
|
130
|
-
referring: claim_submit_params.Referring | Omit = omit,
|
|
131
|
-
rendering: claim_submit_params.Rendering | Omit = omit,
|
|
132
|
-
supervising: claim_submit_params.Supervising | Omit = omit,
|
|
133
|
-
trading_partner_name: str | Omit = omit,
|
|
134
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
135
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
136
|
-
extra_headers: Headers | None = None,
|
|
137
|
-
extra_query: Query | None = None,
|
|
138
|
-
extra_body: Body | None = None,
|
|
139
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
140
|
-
) -> ClaimSubmitResponse:
|
|
141
|
-
"""Submits an electronic claim for processing.
|
|
142
|
-
|
|
143
|
-
The submission is handled
|
|
144
|
-
asynchronously, and this endpoint returns an identifier to track the status of
|
|
145
|
-
the claim submission.
|
|
146
|
-
|
|
147
|
-
Args:
|
|
148
|
-
extra_headers: Send extra headers
|
|
149
|
-
|
|
150
|
-
extra_query: Add additional query parameters to the request
|
|
151
|
-
|
|
152
|
-
extra_body: Add additional JSON properties to the request
|
|
153
|
-
|
|
154
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
155
|
-
"""
|
|
156
|
-
return self._post(
|
|
157
|
-
"/api/v2/clearinghouse/claim",
|
|
158
|
-
body=maybe_transform(
|
|
159
|
-
{
|
|
160
|
-
"billing": billing,
|
|
161
|
-
"claim_information": claim_information,
|
|
162
|
-
"is_testing": is_testing,
|
|
163
|
-
"receiver": receiver,
|
|
164
|
-
"submitter": submitter,
|
|
165
|
-
"subscriber": subscriber,
|
|
166
|
-
"trading_partner_service_id": trading_partner_service_id,
|
|
167
|
-
"control_number": control_number,
|
|
168
|
-
"dependent": dependent,
|
|
169
|
-
"ordering": ordering,
|
|
170
|
-
"payer_address": payer_address,
|
|
171
|
-
"pay_to_address": pay_to_address,
|
|
172
|
-
"pay_to_plan": pay_to_plan,
|
|
173
|
-
"providers": providers,
|
|
174
|
-
"referring": referring,
|
|
175
|
-
"rendering": rendering,
|
|
176
|
-
"supervising": supervising,
|
|
177
|
-
"trading_partner_name": trading_partner_name,
|
|
178
|
-
},
|
|
179
|
-
claim_submit_params.ClaimSubmitParams,
|
|
180
|
-
),
|
|
181
|
-
options=make_request_options(
|
|
182
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
183
|
-
),
|
|
184
|
-
cast_to=ClaimSubmitResponse,
|
|
185
|
-
)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
class AsyncClaimResource(AsyncAPIResource):
|
|
189
|
-
@cached_property
|
|
190
|
-
def with_raw_response(self) -> AsyncClaimResourceWithRawResponse:
|
|
191
|
-
"""
|
|
192
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
193
|
-
the raw response object instead of the parsed content.
|
|
194
|
-
|
|
195
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
196
|
-
"""
|
|
197
|
-
return AsyncClaimResourceWithRawResponse(self)
|
|
198
|
-
|
|
199
|
-
@cached_property
|
|
200
|
-
def with_streaming_response(self) -> AsyncClaimResourceWithStreamingResponse:
|
|
201
|
-
"""
|
|
202
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
203
|
-
|
|
204
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
205
|
-
"""
|
|
206
|
-
return AsyncClaimResourceWithStreamingResponse(self)
|
|
207
|
-
|
|
208
|
-
async def cancel(
|
|
209
|
-
self,
|
|
210
|
-
claim_id: str,
|
|
211
|
-
*,
|
|
212
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
213
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
214
|
-
extra_headers: Headers | None = None,
|
|
215
|
-
extra_query: Query | None = None,
|
|
216
|
-
extra_body: Body | None = None,
|
|
217
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
218
|
-
) -> object:
|
|
219
|
-
"""
|
|
220
|
-
Voids a previously submitted claim by submitting a new claim with
|
|
221
|
-
claimFrequencyCode set to 8.
|
|
222
|
-
|
|
223
|
-
Args:
|
|
224
|
-
extra_headers: Send extra headers
|
|
225
|
-
|
|
226
|
-
extra_query: Add additional query parameters to the request
|
|
227
|
-
|
|
228
|
-
extra_body: Add additional JSON properties to the request
|
|
229
|
-
|
|
230
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
231
|
-
"""
|
|
232
|
-
if not claim_id:
|
|
233
|
-
raise ValueError(f"Expected a non-empty value for `claim_id` but received {claim_id!r}")
|
|
234
|
-
return await self._post(
|
|
235
|
-
f"/api/v2/clearinghouse/claim/{claim_id}/cancel",
|
|
236
|
-
options=make_request_options(
|
|
237
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
238
|
-
),
|
|
239
|
-
cast_to=object,
|
|
240
|
-
)
|
|
241
|
-
|
|
242
|
-
async def retrieve_status(
|
|
243
|
-
self,
|
|
244
|
-
claim_id: str,
|
|
245
|
-
*,
|
|
246
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
247
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
248
|
-
extra_headers: Headers | None = None,
|
|
249
|
-
extra_query: Query | None = None,
|
|
250
|
-
extra_body: Body | None = None,
|
|
251
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
252
|
-
) -> object:
|
|
253
|
-
"""
|
|
254
|
-
Retrieves the status and details of a submitted claim by its ID.
|
|
255
|
-
|
|
256
|
-
Args:
|
|
257
|
-
extra_headers: Send extra headers
|
|
258
|
-
|
|
259
|
-
extra_query: Add additional query parameters to the request
|
|
260
|
-
|
|
261
|
-
extra_body: Add additional JSON properties to the request
|
|
262
|
-
|
|
263
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
264
|
-
"""
|
|
265
|
-
if not claim_id:
|
|
266
|
-
raise ValueError(f"Expected a non-empty value for `claim_id` but received {claim_id!r}")
|
|
267
|
-
return await self._get(
|
|
268
|
-
f"/api/v2/clearinghouse/claim/{claim_id}",
|
|
269
|
-
options=make_request_options(
|
|
270
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
271
|
-
),
|
|
272
|
-
cast_to=object,
|
|
273
|
-
)
|
|
274
|
-
|
|
275
|
-
async def submit(
|
|
276
|
-
self,
|
|
277
|
-
*,
|
|
278
|
-
billing: claim_submit_params.Billing,
|
|
279
|
-
claim_information: claim_submit_params.ClaimInformation,
|
|
280
|
-
is_testing: bool,
|
|
281
|
-
receiver: claim_submit_params.Receiver,
|
|
282
|
-
submitter: claim_submit_params.Submitter,
|
|
283
|
-
subscriber: claim_submit_params.Subscriber,
|
|
284
|
-
trading_partner_service_id: str,
|
|
285
|
-
control_number: str | Omit = omit,
|
|
286
|
-
dependent: claim_submit_params.Dependent | Omit = omit,
|
|
287
|
-
ordering: claim_submit_params.Ordering | Omit = omit,
|
|
288
|
-
payer_address: claim_submit_params.PayerAddress | Omit = omit,
|
|
289
|
-
pay_to_address: claim_submit_params.PayToAddress | Omit = omit,
|
|
290
|
-
pay_to_plan: claim_submit_params.PayToPlan | Omit = omit,
|
|
291
|
-
providers: Iterable[claim_submit_params.Provider] | Omit = omit,
|
|
292
|
-
referring: claim_submit_params.Referring | Omit = omit,
|
|
293
|
-
rendering: claim_submit_params.Rendering | Omit = omit,
|
|
294
|
-
supervising: claim_submit_params.Supervising | Omit = omit,
|
|
295
|
-
trading_partner_name: str | Omit = omit,
|
|
296
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
297
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
298
|
-
extra_headers: Headers | None = None,
|
|
299
|
-
extra_query: Query | None = None,
|
|
300
|
-
extra_body: Body | None = None,
|
|
301
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
302
|
-
) -> ClaimSubmitResponse:
|
|
303
|
-
"""Submits an electronic claim for processing.
|
|
304
|
-
|
|
305
|
-
The submission is handled
|
|
306
|
-
asynchronously, and this endpoint returns an identifier to track the status of
|
|
307
|
-
the claim submission.
|
|
308
|
-
|
|
309
|
-
Args:
|
|
310
|
-
extra_headers: Send extra headers
|
|
311
|
-
|
|
312
|
-
extra_query: Add additional query parameters to the request
|
|
313
|
-
|
|
314
|
-
extra_body: Add additional JSON properties to the request
|
|
315
|
-
|
|
316
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
317
|
-
"""
|
|
318
|
-
return await self._post(
|
|
319
|
-
"/api/v2/clearinghouse/claim",
|
|
320
|
-
body=await async_maybe_transform(
|
|
321
|
-
{
|
|
322
|
-
"billing": billing,
|
|
323
|
-
"claim_information": claim_information,
|
|
324
|
-
"is_testing": is_testing,
|
|
325
|
-
"receiver": receiver,
|
|
326
|
-
"submitter": submitter,
|
|
327
|
-
"subscriber": subscriber,
|
|
328
|
-
"trading_partner_service_id": trading_partner_service_id,
|
|
329
|
-
"control_number": control_number,
|
|
330
|
-
"dependent": dependent,
|
|
331
|
-
"ordering": ordering,
|
|
332
|
-
"payer_address": payer_address,
|
|
333
|
-
"pay_to_address": pay_to_address,
|
|
334
|
-
"pay_to_plan": pay_to_plan,
|
|
335
|
-
"providers": providers,
|
|
336
|
-
"referring": referring,
|
|
337
|
-
"rendering": rendering,
|
|
338
|
-
"supervising": supervising,
|
|
339
|
-
"trading_partner_name": trading_partner_name,
|
|
340
|
-
},
|
|
341
|
-
claim_submit_params.ClaimSubmitParams,
|
|
342
|
-
),
|
|
343
|
-
options=make_request_options(
|
|
344
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
345
|
-
),
|
|
346
|
-
cast_to=ClaimSubmitResponse,
|
|
347
|
-
)
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
class ClaimResourceWithRawResponse:
|
|
351
|
-
def __init__(self, claim: ClaimResource) -> None:
|
|
352
|
-
self._claim = claim
|
|
353
|
-
|
|
354
|
-
self.cancel = to_raw_response_wrapper(
|
|
355
|
-
claim.cancel,
|
|
356
|
-
)
|
|
357
|
-
self.retrieve_status = to_raw_response_wrapper(
|
|
358
|
-
claim.retrieve_status,
|
|
359
|
-
)
|
|
360
|
-
self.submit = to_raw_response_wrapper(
|
|
361
|
-
claim.submit,
|
|
362
|
-
)
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
class AsyncClaimResourceWithRawResponse:
|
|
366
|
-
def __init__(self, claim: AsyncClaimResource) -> None:
|
|
367
|
-
self._claim = claim
|
|
368
|
-
|
|
369
|
-
self.cancel = async_to_raw_response_wrapper(
|
|
370
|
-
claim.cancel,
|
|
371
|
-
)
|
|
372
|
-
self.retrieve_status = async_to_raw_response_wrapper(
|
|
373
|
-
claim.retrieve_status,
|
|
374
|
-
)
|
|
375
|
-
self.submit = async_to_raw_response_wrapper(
|
|
376
|
-
claim.submit,
|
|
377
|
-
)
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
class ClaimResourceWithStreamingResponse:
|
|
381
|
-
def __init__(self, claim: ClaimResource) -> None:
|
|
382
|
-
self._claim = claim
|
|
383
|
-
|
|
384
|
-
self.cancel = to_streamed_response_wrapper(
|
|
385
|
-
claim.cancel,
|
|
386
|
-
)
|
|
387
|
-
self.retrieve_status = to_streamed_response_wrapper(
|
|
388
|
-
claim.retrieve_status,
|
|
389
|
-
)
|
|
390
|
-
self.submit = to_streamed_response_wrapper(
|
|
391
|
-
claim.submit,
|
|
392
|
-
)
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
class AsyncClaimResourceWithStreamingResponse:
|
|
396
|
-
def __init__(self, claim: AsyncClaimResource) -> None:
|
|
397
|
-
self._claim = claim
|
|
398
|
-
|
|
399
|
-
self.cancel = async_to_streamed_response_wrapper(
|
|
400
|
-
claim.cancel,
|
|
401
|
-
)
|
|
402
|
-
self.retrieve_status = async_to_streamed_response_wrapper(
|
|
403
|
-
claim.retrieve_status,
|
|
404
|
-
)
|
|
405
|
-
self.submit = async_to_streamed_response_wrapper(
|
|
406
|
-
claim.submit,
|
|
407
|
-
)
|