samplehc 0.10.0__py3-none-any.whl → 0.12.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/__init__.py +3 -1
- samplehc/_base_client.py +12 -12
- samplehc/_client.py +8 -8
- samplehc/_compat.py +48 -48
- samplehc/_models.py +50 -44
- samplehc/_qs.py +7 -7
- samplehc/_types.py +53 -12
- samplehc/_utils/__init__.py +9 -2
- samplehc/_utils/_compat.py +45 -0
- samplehc/_utils/_datetime_parse.py +136 -0
- samplehc/_utils/_transform.py +13 -3
- samplehc/_utils/_typing.py +6 -1
- samplehc/_utils/_utils.py +4 -5
- samplehc/_version.py +1 -1
- samplehc/resources/v1/v1.py +9 -9
- samplehc/resources/v2/async_results.py +13 -13
- samplehc/resources/v2/browser_agents/__init__.py +33 -0
- samplehc/resources/v2/{browser_agents.py → browser_agents/browser_agents.py} +44 -12
- samplehc/resources/v2/browser_agents/runs/__init__.py +33 -0
- samplehc/resources/v2/browser_agents/runs/help_requests.py +191 -0
- samplehc/resources/v2/browser_agents/runs/runs.py +102 -0
- samplehc/resources/v2/browser_automation/availity.py +3 -3
- samplehc/resources/v2/clearinghouse/claim.py +29 -29
- samplehc/resources/v2/clearinghouse/clearinghouse.py +36 -36
- samplehc/resources/v2/clearinghouse/payers.py +5 -5
- samplehc/resources/v2/communication.py +29 -29
- samplehc/resources/v2/database.py +5 -5
- samplehc/resources/v2/documents/documents.py +152 -37
- samplehc/resources/v2/documents/formats.py +3 -3
- samplehc/resources/v2/documents/legacy.py +91 -6
- samplehc/resources/v2/documents/pdf_template.py +3 -3
- samplehc/resources/v2/documents/templates.py +27 -27
- samplehc/resources/v2/{events/events.py → events.py} +14 -46
- samplehc/resources/v2/hie/adt.py +7 -7
- samplehc/resources/v2/hie/documents.py +15 -15
- samplehc/resources/v2/integrations/__init__.py +28 -0
- samplehc/resources/v2/integrations/bank/transactions.py +5 -5
- samplehc/resources/v2/integrations/careviso.py +36 -36
- samplehc/resources/v2/integrations/glidian/glidian.py +13 -13
- samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +5 -5
- samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +19 -19
- samplehc/resources/v2/integrations/integrations.py +64 -0
- samplehc/resources/v2/integrations/kno2/messages.py +5 -5
- samplehc/resources/v2/integrations/salesforce.py +193 -0
- samplehc/resources/v2/integrations/snowflake.py +3 -3
- samplehc/resources/v2/{events/integrations → integrations}/xcures.py +13 -13
- samplehc/resources/v2/ledger/__init__.py +27 -55
- samplehc/resources/v2/ledger/{orders.py → account.py} +123 -86
- samplehc/resources/v2/ledger/entry.py +381 -0
- samplehc/resources/v2/ledger/ledger.py +38 -1560
- samplehc/resources/v2/policies.py +47 -47
- samplehc/resources/v2/tasks/state.py +7 -7
- samplehc/resources/v2/tasks/tasks.py +15 -15
- samplehc/resources/v2/v2.py +16 -16
- samplehc/resources/v2/workflow_runs/step.py +3 -3
- samplehc/resources/v2/workflow_runs/workflow_runs.py +11 -11
- samplehc/resources/v2/workflows.py +13 -13
- samplehc/types/v2/__init__.py +1 -28
- samplehc/types/v2/browser_agents/runs/__init__.py +6 -0
- samplehc/types/v2/browser_agents/runs/help_request_resolve_params.py +18 -0
- samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +28 -0
- samplehc/types/v2/clearinghouse/claim_submit_params.py +10 -9
- samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +3 -2
- samplehc/types/v2/clearinghouse_check_eligibility_params.py +2 -2
- samplehc/types/v2/communication_send_letter_params.py +4 -3
- samplehc/types/v2/document_classify_params.py +3 -2
- samplehc/types/v2/document_extract_params.py +4 -1
- samplehc/types/v2/document_generate_csv_params.py +3 -2
- samplehc/types/v2/document_split_params.py +16 -1
- samplehc/types/v2/document_unzip_async_response.py +12 -0
- samplehc/types/v2/documents/__init__.py +2 -0
- samplehc/types/v2/documents/legacy_extract_params.py +8 -7
- samplehc/types/v2/documents/legacy_split_params.py +20 -0
- samplehc/types/v2/documents/legacy_split_response.py +12 -0
- samplehc/types/v2/documents/template_render_document_params.py +17 -5
- samplehc/types/v2/integrations/__init__.py +2 -0
- samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +6 -5
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +3 -2
- samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +22 -0
- samplehc/types/v2/ledger/__init__.py +6 -17
- samplehc/types/v2/ledger/account_writeoff_params.py +23 -0
- samplehc/types/v2/ledger/account_writeoff_response.py +12 -0
- samplehc/types/v2/ledger/entry_post_params.py +60 -0
- samplehc/types/v2/ledger/entry_post_response.py +10 -0
- samplehc/types/v2/ledger/entry_reverse_params.py +18 -0
- samplehc/types/v2/ledger/entry_reverse_response.py +10 -0
- {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/METADATA +1 -1
- {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/RECORD +92 -111
- samplehc/resources/v2/events/__init__.py +0 -33
- samplehc/resources/v2/events/integrations/__init__.py +0 -33
- samplehc/resources/v2/events/integrations/integrations.py +0 -102
- samplehc/resources/v2/ledger/institutions/__init__.py +0 -33
- samplehc/resources/v2/ledger/institutions/institutions.py +0 -258
- samplehc/resources/v2/ledger/institutions/orders.py +0 -169
- samplehc/resources/v2/ledger/insurance.py +0 -141
- samplehc/resources/v2/ledger/patients.py +0 -141
- samplehc/types/v2/events/integrations/__init__.py +0 -5
- samplehc/types/v2/ledger/institution_list_outstanding_accounts_response.py +0 -25
- samplehc/types/v2/ledger/institution_retrieve_outstanding_orders_response.py +0 -25
- samplehc/types/v2/ledger/institutions/__init__.py +0 -5
- samplehc/types/v2/ledger/institutions/order_retrieve_balance_response.py +0 -12
- samplehc/types/v2/ledger/insurance_list_outstanding_accounts_response.py +0 -25
- samplehc/types/v2/ledger/order_retrieve_balances_response.py +0 -31
- samplehc/types/v2/ledger/order_retrieve_batch_balances_params.py +0 -15
- samplehc/types/v2/ledger/order_retrieve_batch_balances_response.py +0 -38
- samplehc/types/v2/ledger/patient_list_outstanding_accounts_response.py +0 -22
- samplehc/types/v2/ledger_assign_invoice_params.py +0 -34
- samplehc/types/v2/ledger_assign_invoice_response.py +0 -12
- samplehc/types/v2/ledger_claim_adjustment_params.py +0 -34
- samplehc/types/v2/ledger_claim_adjustment_response.py +0 -12
- samplehc/types/v2/ledger_claim_payment_params.py +0 -34
- samplehc/types/v2/ledger_claim_payment_response.py +0 -12
- samplehc/types/v2/ledger_institution_adjustment_params.py +0 -31
- samplehc/types/v2/ledger_institution_adjustment_response.py +0 -12
- samplehc/types/v2/ledger_institution_payment_params.py +0 -31
- samplehc/types/v2/ledger_institution_payment_response.py +0 -12
- samplehc/types/v2/ledger_new_order_params.py +0 -22
- samplehc/types/v2/ledger_new_order_response.py +0 -12
- samplehc/types/v2/ledger_order_writeoff_params.py +0 -28
- samplehc/types/v2/ledger_order_writeoff_response.py +0 -12
- samplehc/types/v2/ledger_patient_adjustment_params.py +0 -31
- samplehc/types/v2/ledger_patient_adjustment_response.py +0 -12
- samplehc/types/v2/ledger_patient_payment_params.py +0 -28
- samplehc/types/v2/ledger_patient_payment_response.py +0 -12
- samplehc/types/v2/ledger_post_remittance_accepted_params.py +0 -37
- samplehc/types/v2/ledger_post_remittance_accepted_response.py +0 -12
- samplehc/types/v2/ledger_reverse_entry_params.py +0 -12
- samplehc/types/v2/ledger_reverse_entry_response.py +0 -12
- /samplehc/types/v2/{events → browser_agents}/__init__.py +0 -0
- /samplehc/types/v2/{events/integrations → integrations}/xcure_make_request_params.py +0 -0
- {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/WHEEL +0 -0
- {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,141 +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 NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
8
|
-
from ...._compat import cached_property
|
|
9
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
10
|
-
from ...._response import (
|
|
11
|
-
to_raw_response_wrapper,
|
|
12
|
-
to_streamed_response_wrapper,
|
|
13
|
-
async_to_raw_response_wrapper,
|
|
14
|
-
async_to_streamed_response_wrapper,
|
|
15
|
-
)
|
|
16
|
-
from ...._base_client import make_request_options
|
|
17
|
-
from ....types.v2.ledger.insurance_list_outstanding_accounts_response import InsuranceListOutstandingAccountsResponse
|
|
18
|
-
|
|
19
|
-
__all__ = ["InsuranceResource", "AsyncInsuranceResource"]
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class InsuranceResource(SyncAPIResource):
|
|
23
|
-
@cached_property
|
|
24
|
-
def with_raw_response(self) -> InsuranceResourceWithRawResponse:
|
|
25
|
-
"""
|
|
26
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
27
|
-
the raw response object instead of the parsed content.
|
|
28
|
-
|
|
29
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
30
|
-
"""
|
|
31
|
-
return InsuranceResourceWithRawResponse(self)
|
|
32
|
-
|
|
33
|
-
@cached_property
|
|
34
|
-
def with_streaming_response(self) -> InsuranceResourceWithStreamingResponse:
|
|
35
|
-
"""
|
|
36
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
37
|
-
|
|
38
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
39
|
-
"""
|
|
40
|
-
return InsuranceResourceWithStreamingResponse(self)
|
|
41
|
-
|
|
42
|
-
def list_outstanding_accounts(
|
|
43
|
-
self,
|
|
44
|
-
*,
|
|
45
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
46
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
47
|
-
extra_headers: Headers | None = None,
|
|
48
|
-
extra_query: Query | None = None,
|
|
49
|
-
extra_body: Body | None = None,
|
|
50
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
51
|
-
) -> InsuranceListOutstandingAccountsResponse:
|
|
52
|
-
"""
|
|
53
|
-
Retrieves all outstanding insurance accounts across all insurance payors (claims
|
|
54
|
-
with non-zero balances).
|
|
55
|
-
"""
|
|
56
|
-
return self._get(
|
|
57
|
-
"/api/v2/ledger/insurance/outstanding-accounts",
|
|
58
|
-
options=make_request_options(
|
|
59
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
60
|
-
),
|
|
61
|
-
cast_to=InsuranceListOutstandingAccountsResponse,
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
class AsyncInsuranceResource(AsyncAPIResource):
|
|
66
|
-
@cached_property
|
|
67
|
-
def with_raw_response(self) -> AsyncInsuranceResourceWithRawResponse:
|
|
68
|
-
"""
|
|
69
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
70
|
-
the raw response object instead of the parsed content.
|
|
71
|
-
|
|
72
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
73
|
-
"""
|
|
74
|
-
return AsyncInsuranceResourceWithRawResponse(self)
|
|
75
|
-
|
|
76
|
-
@cached_property
|
|
77
|
-
def with_streaming_response(self) -> AsyncInsuranceResourceWithStreamingResponse:
|
|
78
|
-
"""
|
|
79
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
80
|
-
|
|
81
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
82
|
-
"""
|
|
83
|
-
return AsyncInsuranceResourceWithStreamingResponse(self)
|
|
84
|
-
|
|
85
|
-
async def list_outstanding_accounts(
|
|
86
|
-
self,
|
|
87
|
-
*,
|
|
88
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
89
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
90
|
-
extra_headers: Headers | None = None,
|
|
91
|
-
extra_query: Query | None = None,
|
|
92
|
-
extra_body: Body | None = None,
|
|
93
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
94
|
-
) -> InsuranceListOutstandingAccountsResponse:
|
|
95
|
-
"""
|
|
96
|
-
Retrieves all outstanding insurance accounts across all insurance payors (claims
|
|
97
|
-
with non-zero balances).
|
|
98
|
-
"""
|
|
99
|
-
return await self._get(
|
|
100
|
-
"/api/v2/ledger/insurance/outstanding-accounts",
|
|
101
|
-
options=make_request_options(
|
|
102
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
103
|
-
),
|
|
104
|
-
cast_to=InsuranceListOutstandingAccountsResponse,
|
|
105
|
-
)
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
class InsuranceResourceWithRawResponse:
|
|
109
|
-
def __init__(self, insurance: InsuranceResource) -> None:
|
|
110
|
-
self._insurance = insurance
|
|
111
|
-
|
|
112
|
-
self.list_outstanding_accounts = to_raw_response_wrapper(
|
|
113
|
-
insurance.list_outstanding_accounts,
|
|
114
|
-
)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
class AsyncInsuranceResourceWithRawResponse:
|
|
118
|
-
def __init__(self, insurance: AsyncInsuranceResource) -> None:
|
|
119
|
-
self._insurance = insurance
|
|
120
|
-
|
|
121
|
-
self.list_outstanding_accounts = async_to_raw_response_wrapper(
|
|
122
|
-
insurance.list_outstanding_accounts,
|
|
123
|
-
)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
class InsuranceResourceWithStreamingResponse:
|
|
127
|
-
def __init__(self, insurance: InsuranceResource) -> None:
|
|
128
|
-
self._insurance = insurance
|
|
129
|
-
|
|
130
|
-
self.list_outstanding_accounts = to_streamed_response_wrapper(
|
|
131
|
-
insurance.list_outstanding_accounts,
|
|
132
|
-
)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
class AsyncInsuranceResourceWithStreamingResponse:
|
|
136
|
-
def __init__(self, insurance: AsyncInsuranceResource) -> None:
|
|
137
|
-
self._insurance = insurance
|
|
138
|
-
|
|
139
|
-
self.list_outstanding_accounts = async_to_streamed_response_wrapper(
|
|
140
|
-
insurance.list_outstanding_accounts,
|
|
141
|
-
)
|
|
@@ -1,141 +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 NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
8
|
-
from ...._compat import cached_property
|
|
9
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
10
|
-
from ...._response import (
|
|
11
|
-
to_raw_response_wrapper,
|
|
12
|
-
to_streamed_response_wrapper,
|
|
13
|
-
async_to_raw_response_wrapper,
|
|
14
|
-
async_to_streamed_response_wrapper,
|
|
15
|
-
)
|
|
16
|
-
from ...._base_client import make_request_options
|
|
17
|
-
from ....types.v2.ledger.patient_list_outstanding_accounts_response import PatientListOutstandingAccountsResponse
|
|
18
|
-
|
|
19
|
-
__all__ = ["PatientsResource", "AsyncPatientsResource"]
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class PatientsResource(SyncAPIResource):
|
|
23
|
-
@cached_property
|
|
24
|
-
def with_raw_response(self) -> PatientsResourceWithRawResponse:
|
|
25
|
-
"""
|
|
26
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
27
|
-
the raw response object instead of the parsed content.
|
|
28
|
-
|
|
29
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
30
|
-
"""
|
|
31
|
-
return PatientsResourceWithRawResponse(self)
|
|
32
|
-
|
|
33
|
-
@cached_property
|
|
34
|
-
def with_streaming_response(self) -> PatientsResourceWithStreamingResponse:
|
|
35
|
-
"""
|
|
36
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
37
|
-
|
|
38
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
39
|
-
"""
|
|
40
|
-
return PatientsResourceWithStreamingResponse(self)
|
|
41
|
-
|
|
42
|
-
def list_outstanding_accounts(
|
|
43
|
-
self,
|
|
44
|
-
*,
|
|
45
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
46
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
47
|
-
extra_headers: Headers | None = None,
|
|
48
|
-
extra_query: Query | None = None,
|
|
49
|
-
extra_body: Body | None = None,
|
|
50
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
51
|
-
) -> PatientListOutstandingAccountsResponse:
|
|
52
|
-
"""
|
|
53
|
-
Retrieves all outstanding patient accounts across all patients (accounts with
|
|
54
|
-
non-zero balances).
|
|
55
|
-
"""
|
|
56
|
-
return self._get(
|
|
57
|
-
"/api/v2/ledger/patients/outstanding-accounts",
|
|
58
|
-
options=make_request_options(
|
|
59
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
60
|
-
),
|
|
61
|
-
cast_to=PatientListOutstandingAccountsResponse,
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
class AsyncPatientsResource(AsyncAPIResource):
|
|
66
|
-
@cached_property
|
|
67
|
-
def with_raw_response(self) -> AsyncPatientsResourceWithRawResponse:
|
|
68
|
-
"""
|
|
69
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
70
|
-
the raw response object instead of the parsed content.
|
|
71
|
-
|
|
72
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
73
|
-
"""
|
|
74
|
-
return AsyncPatientsResourceWithRawResponse(self)
|
|
75
|
-
|
|
76
|
-
@cached_property
|
|
77
|
-
def with_streaming_response(self) -> AsyncPatientsResourceWithStreamingResponse:
|
|
78
|
-
"""
|
|
79
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
80
|
-
|
|
81
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
82
|
-
"""
|
|
83
|
-
return AsyncPatientsResourceWithStreamingResponse(self)
|
|
84
|
-
|
|
85
|
-
async def list_outstanding_accounts(
|
|
86
|
-
self,
|
|
87
|
-
*,
|
|
88
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
89
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
90
|
-
extra_headers: Headers | None = None,
|
|
91
|
-
extra_query: Query | None = None,
|
|
92
|
-
extra_body: Body | None = None,
|
|
93
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
94
|
-
) -> PatientListOutstandingAccountsResponse:
|
|
95
|
-
"""
|
|
96
|
-
Retrieves all outstanding patient accounts across all patients (accounts with
|
|
97
|
-
non-zero balances).
|
|
98
|
-
"""
|
|
99
|
-
return await self._get(
|
|
100
|
-
"/api/v2/ledger/patients/outstanding-accounts",
|
|
101
|
-
options=make_request_options(
|
|
102
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
103
|
-
),
|
|
104
|
-
cast_to=PatientListOutstandingAccountsResponse,
|
|
105
|
-
)
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
class PatientsResourceWithRawResponse:
|
|
109
|
-
def __init__(self, patients: PatientsResource) -> None:
|
|
110
|
-
self._patients = patients
|
|
111
|
-
|
|
112
|
-
self.list_outstanding_accounts = to_raw_response_wrapper(
|
|
113
|
-
patients.list_outstanding_accounts,
|
|
114
|
-
)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
class AsyncPatientsResourceWithRawResponse:
|
|
118
|
-
def __init__(self, patients: AsyncPatientsResource) -> None:
|
|
119
|
-
self._patients = patients
|
|
120
|
-
|
|
121
|
-
self.list_outstanding_accounts = async_to_raw_response_wrapper(
|
|
122
|
-
patients.list_outstanding_accounts,
|
|
123
|
-
)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
class PatientsResourceWithStreamingResponse:
|
|
127
|
-
def __init__(self, patients: PatientsResource) -> None:
|
|
128
|
-
self._patients = patients
|
|
129
|
-
|
|
130
|
-
self.list_outstanding_accounts = to_streamed_response_wrapper(
|
|
131
|
-
patients.list_outstanding_accounts,
|
|
132
|
-
)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
class AsyncPatientsResourceWithStreamingResponse:
|
|
136
|
-
def __init__(self, patients: AsyncPatientsResource) -> None:
|
|
137
|
-
self._patients = patients
|
|
138
|
-
|
|
139
|
-
self.list_outstanding_accounts = async_to_streamed_response_wrapper(
|
|
140
|
-
patients.list_outstanding_accounts,
|
|
141
|
-
)
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import List
|
|
4
|
-
|
|
5
|
-
from pydantic import Field as FieldInfo
|
|
6
|
-
|
|
7
|
-
from ...._models import BaseModel
|
|
8
|
-
|
|
9
|
-
__all__ = ["InstitutionListOutstandingAccountsResponse", "Account"]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Account(BaseModel):
|
|
13
|
-
balance_usd_cents: float = FieldInfo(alias="balanceUsdCents")
|
|
14
|
-
"""Outstanding balance in cents"""
|
|
15
|
-
|
|
16
|
-
institution_id: str = FieldInfo(alias="institutionId")
|
|
17
|
-
"""Institution ID"""
|
|
18
|
-
|
|
19
|
-
invoice_id: str = FieldInfo(alias="invoiceId")
|
|
20
|
-
"""Invoice ID"""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class InstitutionListOutstandingAccountsResponse(BaseModel):
|
|
24
|
-
accounts: List[Account]
|
|
25
|
-
"""List of all outstanding institutional accounts"""
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import List
|
|
4
|
-
|
|
5
|
-
from pydantic import Field as FieldInfo
|
|
6
|
-
|
|
7
|
-
from ...._models import BaseModel
|
|
8
|
-
|
|
9
|
-
__all__ = ["InstitutionRetrieveOutstandingOrdersResponse", "Order"]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Order(BaseModel):
|
|
13
|
-
balance_usd_cents: float = FieldInfo(alias="balanceUsdCents")
|
|
14
|
-
"""Outstanding balance in cents"""
|
|
15
|
-
|
|
16
|
-
institution_id: str = FieldInfo(alias="institutionId")
|
|
17
|
-
"""Institution ID"""
|
|
18
|
-
|
|
19
|
-
order_id: str = FieldInfo(alias="orderId")
|
|
20
|
-
"""Order ID"""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class InstitutionRetrieveOutstandingOrdersResponse(BaseModel):
|
|
24
|
-
orders: List[Order]
|
|
25
|
-
"""List of outstanding institutional orders"""
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from pydantic import Field as FieldInfo
|
|
4
|
-
|
|
5
|
-
from ....._models import BaseModel
|
|
6
|
-
|
|
7
|
-
__all__ = ["OrderRetrieveBalanceResponse"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class OrderRetrieveBalanceResponse(BaseModel):
|
|
11
|
-
balance_usd_cents: float = FieldInfo(alias="balanceUsdCents")
|
|
12
|
-
"""Balance in cents"""
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import List
|
|
4
|
-
|
|
5
|
-
from pydantic import Field as FieldInfo
|
|
6
|
-
|
|
7
|
-
from ...._models import BaseModel
|
|
8
|
-
|
|
9
|
-
__all__ = ["InsuranceListOutstandingAccountsResponse", "Account"]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Account(BaseModel):
|
|
13
|
-
balance_usd_cents: float = FieldInfo(alias="balanceUsdCents")
|
|
14
|
-
"""Outstanding balance in cents"""
|
|
15
|
-
|
|
16
|
-
claim_id: str = FieldInfo(alias="claimId")
|
|
17
|
-
"""Claim ID"""
|
|
18
|
-
|
|
19
|
-
insurance_id: str = FieldInfo(alias="insuranceId")
|
|
20
|
-
"""Insurance ID"""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class InsuranceListOutstandingAccountsResponse(BaseModel):
|
|
24
|
-
accounts: List[Account]
|
|
25
|
-
"""List of all outstanding insurance accounts"""
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from pydantic import Field as FieldInfo
|
|
4
|
-
|
|
5
|
-
from ...._models import BaseModel
|
|
6
|
-
|
|
7
|
-
__all__ = ["OrderRetrieveBalancesResponse", "Balances"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Balances(BaseModel):
|
|
11
|
-
institution_invoiced: float = FieldInfo(alias="institutionInvoiced")
|
|
12
|
-
"""Institution invoiced balance in cents"""
|
|
13
|
-
|
|
14
|
-
institution_uninvoiced: float = FieldInfo(alias="institutionUninvoiced")
|
|
15
|
-
"""Institution uninvoiced balance in cents"""
|
|
16
|
-
|
|
17
|
-
order_writeoff: float = FieldInfo(alias="orderWriteoff")
|
|
18
|
-
"""Order writeoff balance in cents"""
|
|
19
|
-
|
|
20
|
-
patient_responsibility: float = FieldInfo(alias="patientResponsibility")
|
|
21
|
-
"""Patient responsibility balance in cents"""
|
|
22
|
-
|
|
23
|
-
unallocated: float
|
|
24
|
-
"""Unallocated balance in cents"""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class OrderRetrieveBalancesResponse(BaseModel):
|
|
28
|
-
balances: Balances
|
|
29
|
-
|
|
30
|
-
order_id: str = FieldInfo(alias="orderId")
|
|
31
|
-
"""Order ID"""
|
|
@@ -1,15 +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 List
|
|
6
|
-
from typing_extensions import Required, Annotated, TypedDict
|
|
7
|
-
|
|
8
|
-
from ...._utils import PropertyInfo
|
|
9
|
-
|
|
10
|
-
__all__ = ["OrderRetrieveBatchBalancesParams"]
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class OrderRetrieveBatchBalancesParams(TypedDict, total=False):
|
|
14
|
-
order_ids: Required[Annotated[List[str], PropertyInfo(alias="orderIds")]]
|
|
15
|
-
"""Array of order IDs to retrieve balances for (max 100)"""
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import List
|
|
4
|
-
|
|
5
|
-
from pydantic import Field as FieldInfo
|
|
6
|
-
|
|
7
|
-
from ...._models import BaseModel
|
|
8
|
-
|
|
9
|
-
__all__ = ["OrderRetrieveBatchBalancesResponse", "Order", "OrderBalances"]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class OrderBalances(BaseModel):
|
|
13
|
-
institution_invoiced: float = FieldInfo(alias="institutionInvoiced")
|
|
14
|
-
"""Institution invoiced balance in cents"""
|
|
15
|
-
|
|
16
|
-
institution_uninvoiced: float = FieldInfo(alias="institutionUninvoiced")
|
|
17
|
-
"""Institution uninvoiced balance in cents"""
|
|
18
|
-
|
|
19
|
-
order_writeoff: float = FieldInfo(alias="orderWriteoff")
|
|
20
|
-
"""Order writeoff balance in cents"""
|
|
21
|
-
|
|
22
|
-
patient_responsibility: float = FieldInfo(alias="patientResponsibility")
|
|
23
|
-
"""Patient responsibility balance in cents"""
|
|
24
|
-
|
|
25
|
-
unallocated: float
|
|
26
|
-
"""Unallocated balance in cents"""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
class Order(BaseModel):
|
|
30
|
-
balances: OrderBalances
|
|
31
|
-
|
|
32
|
-
order_id: str = FieldInfo(alias="orderId")
|
|
33
|
-
"""Order ID"""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class OrderRetrieveBatchBalancesResponse(BaseModel):
|
|
37
|
-
orders: List[Order]
|
|
38
|
-
"""Array of orders with their outstanding balances"""
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import List
|
|
4
|
-
|
|
5
|
-
from pydantic import Field as FieldInfo
|
|
6
|
-
|
|
7
|
-
from ...._models import BaseModel
|
|
8
|
-
|
|
9
|
-
__all__ = ["PatientListOutstandingAccountsResponse", "Account"]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Account(BaseModel):
|
|
13
|
-
balance_usd_cents: float = FieldInfo(alias="balanceUsdCents")
|
|
14
|
-
"""Outstanding balance in cents"""
|
|
15
|
-
|
|
16
|
-
patient_id: str = FieldInfo(alias="patientId")
|
|
17
|
-
"""Patient ID"""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class PatientListOutstandingAccountsResponse(BaseModel):
|
|
21
|
-
accounts: List[Account]
|
|
22
|
-
"""List of all outstanding patient accounts"""
|
|
@@ -1,34 +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 Union
|
|
6
|
-
from datetime import datetime
|
|
7
|
-
from typing_extensions import Required, Annotated, TypedDict
|
|
8
|
-
|
|
9
|
-
from ..._utils import PropertyInfo
|
|
10
|
-
|
|
11
|
-
__all__ = ["LedgerAssignInvoiceParams"]
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class LedgerAssignInvoiceParams(TypedDict, total=False):
|
|
15
|
-
amount_usd_cents: Required[Annotated[float, PropertyInfo(alias="amountUsdCents")]]
|
|
16
|
-
"""Assignment amount in cents (positive or negative)."""
|
|
17
|
-
|
|
18
|
-
ik: Required[str]
|
|
19
|
-
"""Idempotency key for the assignment."""
|
|
20
|
-
|
|
21
|
-
institution_id: Required[Annotated[str, PropertyInfo(alias="institutionId")]]
|
|
22
|
-
"""Identifier of the institution for the assignment."""
|
|
23
|
-
|
|
24
|
-
invoice_id: Required[Annotated[str, PropertyInfo(alias="invoiceId")]]
|
|
25
|
-
"""Invoice ID being assigned."""
|
|
26
|
-
|
|
27
|
-
order_id: Required[Annotated[str, PropertyInfo(alias="orderId")]]
|
|
28
|
-
"""Order ID associated with the assignment."""
|
|
29
|
-
|
|
30
|
-
reason: Required[str]
|
|
31
|
-
"""Reason for the assignment."""
|
|
32
|
-
|
|
33
|
-
posted_at: Annotated[Union[str, datetime], PropertyInfo(alias="postedAt", format="iso8601")]
|
|
34
|
-
"""Optional ISO 8601 date-time to post the entry."""
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from pydantic import Field as FieldInfo
|
|
4
|
-
|
|
5
|
-
from ..._models import BaseModel
|
|
6
|
-
|
|
7
|
-
__all__ = ["LedgerAssignInvoiceResponse"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class LedgerAssignInvoiceResponse(BaseModel):
|
|
11
|
-
ledger_entry_id: str = FieldInfo(alias="ledgerEntryId")
|
|
12
|
-
"""Created ledger entry ID"""
|
|
@@ -1,34 +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 Union
|
|
6
|
-
from datetime import datetime
|
|
7
|
-
from typing_extensions import Required, Annotated, TypedDict
|
|
8
|
-
|
|
9
|
-
from ..._utils import PropertyInfo
|
|
10
|
-
|
|
11
|
-
__all__ = ["LedgerClaimAdjustmentParams"]
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class LedgerClaimAdjustmentParams(TypedDict, total=False):
|
|
15
|
-
amount_usd_cents: Required[Annotated[float, PropertyInfo(alias="amountUsdCents")]]
|
|
16
|
-
"""Adjustment amount in cents (positive or negative)."""
|
|
17
|
-
|
|
18
|
-
claim_id: Required[Annotated[str, PropertyInfo(alias="claimId")]]
|
|
19
|
-
"""Identifier of the claim associated with this adjustment."""
|
|
20
|
-
|
|
21
|
-
ik: Required[str]
|
|
22
|
-
"""Idempotency key for the adjustment."""
|
|
23
|
-
|
|
24
|
-
insurance_id: Required[Annotated[str, PropertyInfo(alias="insuranceId")]]
|
|
25
|
-
"""Identifier of the insurance for the adjustment."""
|
|
26
|
-
|
|
27
|
-
order_id: Required[Annotated[str, PropertyInfo(alias="orderId")]]
|
|
28
|
-
"""Order ID associated with the adjustment."""
|
|
29
|
-
|
|
30
|
-
reason: Required[str]
|
|
31
|
-
"""Reason for the adjustment."""
|
|
32
|
-
|
|
33
|
-
posted_at: Annotated[Union[str, datetime], PropertyInfo(alias="postedAt", format="iso8601")]
|
|
34
|
-
"""Optional ISO 8601 date-time to post the entry."""
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from pydantic import Field as FieldInfo
|
|
4
|
-
|
|
5
|
-
from ..._models import BaseModel
|
|
6
|
-
|
|
7
|
-
__all__ = ["LedgerClaimAdjustmentResponse"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class LedgerClaimAdjustmentResponse(BaseModel):
|
|
11
|
-
ledger_entry_id: str = FieldInfo(alias="ledgerEntryId")
|
|
12
|
-
"""The unique identifier of the successfully created ledger entry."""
|
|
@@ -1,34 +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 Union
|
|
6
|
-
from datetime import datetime
|
|
7
|
-
from typing_extensions import Required, Annotated, TypedDict
|
|
8
|
-
|
|
9
|
-
from ..._utils import PropertyInfo
|
|
10
|
-
|
|
11
|
-
__all__ = ["LedgerClaimPaymentParams"]
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class LedgerClaimPaymentParams(TypedDict, total=False):
|
|
15
|
-
amount_usd_cents: Required[Annotated[float, PropertyInfo(alias="amountUsdCents")]]
|
|
16
|
-
"""Payment amount in cents."""
|
|
17
|
-
|
|
18
|
-
claim_id: Required[Annotated[str, PropertyInfo(alias="claimId")]]
|
|
19
|
-
"""Identifier of the claim associated with this payment."""
|
|
20
|
-
|
|
21
|
-
ik: Required[str]
|
|
22
|
-
"""Idempotency key for the payment."""
|
|
23
|
-
|
|
24
|
-
insurance_id: Required[Annotated[str, PropertyInfo(alias="insuranceId")]]
|
|
25
|
-
"""Identifier of the insurance for the payment."""
|
|
26
|
-
|
|
27
|
-
order_id: Required[Annotated[str, PropertyInfo(alias="orderId")]]
|
|
28
|
-
"""Order ID associated with the payment."""
|
|
29
|
-
|
|
30
|
-
reason: Required[str]
|
|
31
|
-
"""Reason for the payment."""
|
|
32
|
-
|
|
33
|
-
posted_at: Annotated[Union[str, datetime], PropertyInfo(alias="postedAt", format="iso8601")]
|
|
34
|
-
"""Optional ISO 8601 date-time to post the entry."""
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from pydantic import Field as FieldInfo
|
|
4
|
-
|
|
5
|
-
from ..._models import BaseModel
|
|
6
|
-
|
|
7
|
-
__all__ = ["LedgerClaimPaymentResponse"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class LedgerClaimPaymentResponse(BaseModel):
|
|
11
|
-
ledger_entry_id: str = FieldInfo(alias="ledgerEntryId")
|
|
12
|
-
"""The unique identifier of the successfully created ledger entry."""
|