samplehc 0.7.0__py3-none-any.whl → 0.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- samplehc/_version.py +1 -1
- samplehc/resources/v2/clearinghouse/clearinghouse.py +187 -4
- samplehc/resources/v2/documents/documents.py +4 -0
- samplehc/resources/v2/events/__init__.py +14 -14
- samplehc/resources/v2/events/events.py +20 -20
- samplehc/resources/v2/events/integrations/__init__.py +33 -0
- samplehc/resources/v2/events/integrations/integrations.py +102 -0
- samplehc/resources/v2/events/integrations/xcures.py +197 -0
- samplehc/resources/v2/hie/__init__.py +14 -0
- samplehc/resources/v2/{events/hie → hie}/adt.py +7 -7
- samplehc/resources/v2/hie/hie.py +32 -0
- samplehc/types/v2/__init__.py +3 -0
- samplehc/types/v2/clearinghouse_check_claim_status_params.py +41 -0
- samplehc/types/v2/clearinghouse_run_discovery_params.py +9 -1
- samplehc/types/v2/document_presigned_upload_url_params.py +2 -0
- samplehc/types/v2/events/{hie → integrations}/__init__.py +1 -1
- samplehc/types/v2/events/integrations/xcure_make_request_params.py +18 -0
- samplehc/types/v2/hie/__init__.py +1 -0
- samplehc/types/v2/{events/hie → hie}/adt_subscribe_params.py +3 -3
- samplehc/types/v2/hie/document_query_params.py +2 -2
- {samplehc-0.7.0.dist-info → samplehc-0.9.0.dist-info}/METADATA +1 -1
- {samplehc-0.7.0.dist-info → samplehc-0.9.0.dist-info}/RECORD +24 -21
- samplehc/resources/v2/events/hie/__init__.py +0 -33
- samplehc/resources/v2/events/hie/hie.py +0 -102
- {samplehc-0.7.0.dist-info → samplehc-0.9.0.dist-info}/WHEEL +0 -0
- {samplehc-0.7.0.dist-info → samplehc-0.9.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import Literal
|
|
7
|
+
|
|
8
|
+
import httpx
|
|
9
|
+
|
|
10
|
+
from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
11
|
+
from ....._utils import maybe_transform, async_maybe_transform
|
|
12
|
+
from ....._compat import cached_property
|
|
13
|
+
from ....._resource import SyncAPIResource, AsyncAPIResource
|
|
14
|
+
from ....._response import (
|
|
15
|
+
to_raw_response_wrapper,
|
|
16
|
+
to_streamed_response_wrapper,
|
|
17
|
+
async_to_raw_response_wrapper,
|
|
18
|
+
async_to_streamed_response_wrapper,
|
|
19
|
+
)
|
|
20
|
+
from ....._base_client import make_request_options
|
|
21
|
+
from .....types.v2.events.integrations import xcure_make_request_params
|
|
22
|
+
|
|
23
|
+
__all__ = ["XcuresResource", "AsyncXcuresResource"]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class XcuresResource(SyncAPIResource):
|
|
27
|
+
@cached_property
|
|
28
|
+
def with_raw_response(self) -> XcuresResourceWithRawResponse:
|
|
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 XcuresResourceWithRawResponse(self)
|
|
36
|
+
|
|
37
|
+
@cached_property
|
|
38
|
+
def with_streaming_response(self) -> XcuresResourceWithStreamingResponse:
|
|
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 XcuresResourceWithStreamingResponse(self)
|
|
45
|
+
|
|
46
|
+
def make_request(
|
|
47
|
+
self,
|
|
48
|
+
slug: str,
|
|
49
|
+
*,
|
|
50
|
+
method: Literal["GET", "POST", "PUT"],
|
|
51
|
+
path: str,
|
|
52
|
+
body: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
53
|
+
parameters: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
54
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
55
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
56
|
+
extra_headers: Headers | None = None,
|
|
57
|
+
extra_query: Query | None = None,
|
|
58
|
+
extra_body: Body | None = None,
|
|
59
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
60
|
+
) -> object:
|
|
61
|
+
"""
|
|
62
|
+
Make an arbitrary request to xCures using the configured connection identified
|
|
63
|
+
by slug. Refer to https://partner.xcures.com/api-docs for the full API
|
|
64
|
+
documentation.
|
|
65
|
+
|
|
66
|
+
Args:
|
|
67
|
+
extra_headers: Send extra headers
|
|
68
|
+
|
|
69
|
+
extra_query: Add additional query parameters to the request
|
|
70
|
+
|
|
71
|
+
extra_body: Add additional JSON properties to the request
|
|
72
|
+
|
|
73
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
74
|
+
"""
|
|
75
|
+
if not slug:
|
|
76
|
+
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
77
|
+
return self._post(
|
|
78
|
+
f"/api/v2/integrations/xcures/{slug}/request",
|
|
79
|
+
body=maybe_transform(
|
|
80
|
+
{
|
|
81
|
+
"method": method,
|
|
82
|
+
"path": path,
|
|
83
|
+
"body": body,
|
|
84
|
+
"parameters": parameters,
|
|
85
|
+
},
|
|
86
|
+
xcure_make_request_params.XcureMakeRequestParams,
|
|
87
|
+
),
|
|
88
|
+
options=make_request_options(
|
|
89
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
90
|
+
),
|
|
91
|
+
cast_to=object,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class AsyncXcuresResource(AsyncAPIResource):
|
|
96
|
+
@cached_property
|
|
97
|
+
def with_raw_response(self) -> AsyncXcuresResourceWithRawResponse:
|
|
98
|
+
"""
|
|
99
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
100
|
+
the raw response object instead of the parsed content.
|
|
101
|
+
|
|
102
|
+
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
103
|
+
"""
|
|
104
|
+
return AsyncXcuresResourceWithRawResponse(self)
|
|
105
|
+
|
|
106
|
+
@cached_property
|
|
107
|
+
def with_streaming_response(self) -> AsyncXcuresResourceWithStreamingResponse:
|
|
108
|
+
"""
|
|
109
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
110
|
+
|
|
111
|
+
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
112
|
+
"""
|
|
113
|
+
return AsyncXcuresResourceWithStreamingResponse(self)
|
|
114
|
+
|
|
115
|
+
async def make_request(
|
|
116
|
+
self,
|
|
117
|
+
slug: str,
|
|
118
|
+
*,
|
|
119
|
+
method: Literal["GET", "POST", "PUT"],
|
|
120
|
+
path: str,
|
|
121
|
+
body: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
122
|
+
parameters: Dict[str, object] | NotGiven = NOT_GIVEN,
|
|
123
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
124
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
125
|
+
extra_headers: Headers | None = None,
|
|
126
|
+
extra_query: Query | None = None,
|
|
127
|
+
extra_body: Body | None = None,
|
|
128
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
129
|
+
) -> object:
|
|
130
|
+
"""
|
|
131
|
+
Make an arbitrary request to xCures using the configured connection identified
|
|
132
|
+
by slug. Refer to https://partner.xcures.com/api-docs for the full API
|
|
133
|
+
documentation.
|
|
134
|
+
|
|
135
|
+
Args:
|
|
136
|
+
extra_headers: Send extra headers
|
|
137
|
+
|
|
138
|
+
extra_query: Add additional query parameters to the request
|
|
139
|
+
|
|
140
|
+
extra_body: Add additional JSON properties to the request
|
|
141
|
+
|
|
142
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
143
|
+
"""
|
|
144
|
+
if not slug:
|
|
145
|
+
raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
|
|
146
|
+
return await self._post(
|
|
147
|
+
f"/api/v2/integrations/xcures/{slug}/request",
|
|
148
|
+
body=await async_maybe_transform(
|
|
149
|
+
{
|
|
150
|
+
"method": method,
|
|
151
|
+
"path": path,
|
|
152
|
+
"body": body,
|
|
153
|
+
"parameters": parameters,
|
|
154
|
+
},
|
|
155
|
+
xcure_make_request_params.XcureMakeRequestParams,
|
|
156
|
+
),
|
|
157
|
+
options=make_request_options(
|
|
158
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
159
|
+
),
|
|
160
|
+
cast_to=object,
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
class XcuresResourceWithRawResponse:
|
|
165
|
+
def __init__(self, xcures: XcuresResource) -> None:
|
|
166
|
+
self._xcures = xcures
|
|
167
|
+
|
|
168
|
+
self.make_request = to_raw_response_wrapper(
|
|
169
|
+
xcures.make_request,
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
class AsyncXcuresResourceWithRawResponse:
|
|
174
|
+
def __init__(self, xcures: AsyncXcuresResource) -> None:
|
|
175
|
+
self._xcures = xcures
|
|
176
|
+
|
|
177
|
+
self.make_request = async_to_raw_response_wrapper(
|
|
178
|
+
xcures.make_request,
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
class XcuresResourceWithStreamingResponse:
|
|
183
|
+
def __init__(self, xcures: XcuresResource) -> None:
|
|
184
|
+
self._xcures = xcures
|
|
185
|
+
|
|
186
|
+
self.make_request = to_streamed_response_wrapper(
|
|
187
|
+
xcures.make_request,
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
class AsyncXcuresResourceWithStreamingResponse:
|
|
192
|
+
def __init__(self, xcures: AsyncXcuresResource) -> None:
|
|
193
|
+
self._xcures = xcures
|
|
194
|
+
|
|
195
|
+
self.make_request = async_to_streamed_response_wrapper(
|
|
196
|
+
xcures.make_request,
|
|
197
|
+
)
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
from .adt import (
|
|
4
|
+
AdtResource,
|
|
5
|
+
AsyncAdtResource,
|
|
6
|
+
AdtResourceWithRawResponse,
|
|
7
|
+
AsyncAdtResourceWithRawResponse,
|
|
8
|
+
AdtResourceWithStreamingResponse,
|
|
9
|
+
AsyncAdtResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
3
11
|
from .hie import (
|
|
4
12
|
HieResource,
|
|
5
13
|
AsyncHieResource,
|
|
@@ -24,6 +32,12 @@ __all__ = [
|
|
|
24
32
|
"AsyncDocumentsResourceWithRawResponse",
|
|
25
33
|
"DocumentsResourceWithStreamingResponse",
|
|
26
34
|
"AsyncDocumentsResourceWithStreamingResponse",
|
|
35
|
+
"AdtResource",
|
|
36
|
+
"AsyncAdtResource",
|
|
37
|
+
"AdtResourceWithRawResponse",
|
|
38
|
+
"AsyncAdtResourceWithRawResponse",
|
|
39
|
+
"AdtResourceWithStreamingResponse",
|
|
40
|
+
"AsyncAdtResourceWithStreamingResponse",
|
|
27
41
|
"HieResource",
|
|
28
42
|
"AsyncHieResource",
|
|
29
43
|
"HieResourceWithRawResponse",
|
|
@@ -7,18 +7,18 @@ from typing_extensions import Literal
|
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
9
9
|
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
14
|
-
from
|
|
10
|
+
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
11
|
+
from ...._utils import maybe_transform, async_maybe_transform
|
|
12
|
+
from ...._compat import cached_property
|
|
13
|
+
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
14
|
+
from ...._response import (
|
|
15
15
|
to_raw_response_wrapper,
|
|
16
16
|
to_streamed_response_wrapper,
|
|
17
17
|
async_to_raw_response_wrapper,
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
|
-
from
|
|
21
|
-
from
|
|
20
|
+
from ...._base_client import make_request_options
|
|
21
|
+
from ....types.v2.hie import adt_subscribe_params
|
|
22
22
|
|
|
23
23
|
__all__ = ["AdtResource", "AsyncAdtResource"]
|
|
24
24
|
|
samplehc/resources/v2/hie/hie.py
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from .adt import (
|
|
6
|
+
AdtResource,
|
|
7
|
+
AsyncAdtResource,
|
|
8
|
+
AdtResourceWithRawResponse,
|
|
9
|
+
AsyncAdtResourceWithRawResponse,
|
|
10
|
+
AdtResourceWithStreamingResponse,
|
|
11
|
+
AsyncAdtResourceWithStreamingResponse,
|
|
12
|
+
)
|
|
5
13
|
from .documents import (
|
|
6
14
|
DocumentsResource,
|
|
7
15
|
AsyncDocumentsResource,
|
|
@@ -21,6 +29,10 @@ class HieResource(SyncAPIResource):
|
|
|
21
29
|
def documents(self) -> DocumentsResource:
|
|
22
30
|
return DocumentsResource(self._client)
|
|
23
31
|
|
|
32
|
+
@cached_property
|
|
33
|
+
def adt(self) -> AdtResource:
|
|
34
|
+
return AdtResource(self._client)
|
|
35
|
+
|
|
24
36
|
@cached_property
|
|
25
37
|
def with_raw_response(self) -> HieResourceWithRawResponse:
|
|
26
38
|
"""
|
|
@@ -46,6 +58,10 @@ class AsyncHieResource(AsyncAPIResource):
|
|
|
46
58
|
def documents(self) -> AsyncDocumentsResource:
|
|
47
59
|
return AsyncDocumentsResource(self._client)
|
|
48
60
|
|
|
61
|
+
@cached_property
|
|
62
|
+
def adt(self) -> AsyncAdtResource:
|
|
63
|
+
return AsyncAdtResource(self._client)
|
|
64
|
+
|
|
49
65
|
@cached_property
|
|
50
66
|
def with_raw_response(self) -> AsyncHieResourceWithRawResponse:
|
|
51
67
|
"""
|
|
@@ -74,6 +90,10 @@ class HieResourceWithRawResponse:
|
|
|
74
90
|
def documents(self) -> DocumentsResourceWithRawResponse:
|
|
75
91
|
return DocumentsResourceWithRawResponse(self._hie.documents)
|
|
76
92
|
|
|
93
|
+
@cached_property
|
|
94
|
+
def adt(self) -> AdtResourceWithRawResponse:
|
|
95
|
+
return AdtResourceWithRawResponse(self._hie.adt)
|
|
96
|
+
|
|
77
97
|
|
|
78
98
|
class AsyncHieResourceWithRawResponse:
|
|
79
99
|
def __init__(self, hie: AsyncHieResource) -> None:
|
|
@@ -83,6 +103,10 @@ class AsyncHieResourceWithRawResponse:
|
|
|
83
103
|
def documents(self) -> AsyncDocumentsResourceWithRawResponse:
|
|
84
104
|
return AsyncDocumentsResourceWithRawResponse(self._hie.documents)
|
|
85
105
|
|
|
106
|
+
@cached_property
|
|
107
|
+
def adt(self) -> AsyncAdtResourceWithRawResponse:
|
|
108
|
+
return AsyncAdtResourceWithRawResponse(self._hie.adt)
|
|
109
|
+
|
|
86
110
|
|
|
87
111
|
class HieResourceWithStreamingResponse:
|
|
88
112
|
def __init__(self, hie: HieResource) -> None:
|
|
@@ -92,6 +116,10 @@ class HieResourceWithStreamingResponse:
|
|
|
92
116
|
def documents(self) -> DocumentsResourceWithStreamingResponse:
|
|
93
117
|
return DocumentsResourceWithStreamingResponse(self._hie.documents)
|
|
94
118
|
|
|
119
|
+
@cached_property
|
|
120
|
+
def adt(self) -> AdtResourceWithStreamingResponse:
|
|
121
|
+
return AdtResourceWithStreamingResponse(self._hie.adt)
|
|
122
|
+
|
|
95
123
|
|
|
96
124
|
class AsyncHieResourceWithStreamingResponse:
|
|
97
125
|
def __init__(self, hie: AsyncHieResource) -> None:
|
|
@@ -100,3 +128,7 @@ class AsyncHieResourceWithStreamingResponse:
|
|
|
100
128
|
@cached_property
|
|
101
129
|
def documents(self) -> AsyncDocumentsResourceWithStreamingResponse:
|
|
102
130
|
return AsyncDocumentsResourceWithStreamingResponse(self._hie.documents)
|
|
131
|
+
|
|
132
|
+
@cached_property
|
|
133
|
+
def adt(self) -> AsyncAdtResourceWithStreamingResponse:
|
|
134
|
+
return AsyncAdtResourceWithStreamingResponse(self._hie.adt)
|
samplehc/types/v2/__init__.py
CHANGED
|
@@ -98,6 +98,9 @@ from .ledger_post_remittance_accepted_params import (
|
|
|
98
98
|
from .policy_retrieve_presigned_url_response import (
|
|
99
99
|
PolicyRetrievePresignedURLResponse as PolicyRetrievePresignedURLResponse,
|
|
100
100
|
)
|
|
101
|
+
from .clearinghouse_check_claim_status_params import (
|
|
102
|
+
ClearinghouseCheckClaimStatusParams as ClearinghouseCheckClaimStatusParams,
|
|
103
|
+
)
|
|
101
104
|
from .clearinghouse_check_eligibility_response import (
|
|
102
105
|
ClearinghouseCheckEligibilityResponse as ClearinghouseCheckEligibilityResponse,
|
|
103
106
|
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["ClearinghouseCheckClaimStatusParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ClearinghouseCheckClaimStatusParams(TypedDict, total=False):
|
|
13
|
+
provider_npi: Required[Annotated[str, PropertyInfo(alias="providerNpi")]]
|
|
14
|
+
"""The provider's NPI number"""
|
|
15
|
+
|
|
16
|
+
subscriber_date_of_birth: Required[Annotated[str, PropertyInfo(alias="subscriberDateOfBirth")]]
|
|
17
|
+
"""The subscriber's date of birth (YYYY-MM-DD format)"""
|
|
18
|
+
|
|
19
|
+
subscriber_first_name: Required[Annotated[str, PropertyInfo(alias="subscriberFirstName")]]
|
|
20
|
+
"""The subscriber's first name"""
|
|
21
|
+
|
|
22
|
+
subscriber_last_name: Required[Annotated[str, PropertyInfo(alias="subscriberLastName")]]
|
|
23
|
+
"""The subscriber's last name"""
|
|
24
|
+
|
|
25
|
+
subscriber_member_id: Required[Annotated[str, PropertyInfo(alias="subscriberMemberId")]]
|
|
26
|
+
"""The subscriber's member ID"""
|
|
27
|
+
|
|
28
|
+
trading_partner_service_id: Required[Annotated[str, PropertyInfo(alias="tradingPartnerServiceId")]]
|
|
29
|
+
"""The Payer ID in our clearinghouse"""
|
|
30
|
+
|
|
31
|
+
payer_claim_number: Annotated[str, PropertyInfo(alias="payerClaimNumber")]
|
|
32
|
+
"""The payer claim number (ICN) to check status for"""
|
|
33
|
+
|
|
34
|
+
provider_name: Annotated[str, PropertyInfo(alias="providerName")]
|
|
35
|
+
"""The provider's organization name"""
|
|
36
|
+
|
|
37
|
+
service_from_date: Annotated[str, PropertyInfo(alias="serviceFromDate")]
|
|
38
|
+
"""The beginning date of service (YYYY-MM-DD format)"""
|
|
39
|
+
|
|
40
|
+
service_to_date: Annotated[str, PropertyInfo(alias="serviceToDate")]
|
|
41
|
+
"""The ending date of service (YYYY-MM-DD format)"""
|
|
@@ -11,14 +11,22 @@ __all__ = ["ClearinghouseRunDiscoveryParams", "Person"]
|
|
|
11
11
|
|
|
12
12
|
class ClearinghouseRunDiscoveryParams(TypedDict, total=False):
|
|
13
13
|
person: Required[Person]
|
|
14
|
-
"""Patient demographic information"""
|
|
15
14
|
|
|
16
15
|
account_number: Annotated[str, PropertyInfo(alias="accountNumber")]
|
|
17
16
|
"""Account number"""
|
|
18
17
|
|
|
18
|
+
check_credit: Annotated[bool, PropertyInfo(alias="checkCredit")]
|
|
19
|
+
"""Whether to check credit"""
|
|
20
|
+
|
|
21
|
+
check_demographics: Annotated[bool, PropertyInfo(alias="checkDemographics")]
|
|
22
|
+
"""Whether to check demographics"""
|
|
23
|
+
|
|
19
24
|
date_of_service: Annotated[str, PropertyInfo(alias="dateOfService")]
|
|
20
25
|
"""Date of service (YYYY-MM-DD)"""
|
|
21
26
|
|
|
27
|
+
run_business_rules: Annotated[bool, PropertyInfo(alias="runBusinessRules")]
|
|
28
|
+
"""Whether to run business rules"""
|
|
29
|
+
|
|
22
30
|
service_code: Annotated[str, PropertyInfo(alias="serviceCode")]
|
|
23
31
|
"""Service code"""
|
|
24
32
|
|
|
@@ -30,6 +30,8 @@ class DocumentPresignedUploadURLParams(TypedDict, total=False):
|
|
|
30
30
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
31
31
|
"text/html",
|
|
32
32
|
"application/json",
|
|
33
|
+
"application/fhir+json",
|
|
34
|
+
"application/fhir+jsonl",
|
|
33
35
|
],
|
|
34
36
|
PropertyInfo(alias="mimeType"),
|
|
35
37
|
]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["XcureMakeRequestParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class XcureMakeRequestParams(TypedDict, total=False):
|
|
12
|
+
method: Required[Literal["GET", "POST", "PUT"]]
|
|
13
|
+
|
|
14
|
+
path: Required[str]
|
|
15
|
+
|
|
16
|
+
body: Dict[str, object]
|
|
17
|
+
|
|
18
|
+
parameters: Dict[str, object]
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from .adt_subscribe_params import AdtSubscribeParams as AdtSubscribeParams
|
|
5
6
|
from .document_query_params import DocumentQueryParams as DocumentQueryParams
|
|
6
7
|
from .document_upload_params import DocumentUploadParams as DocumentUploadParams
|
|
7
8
|
from .document_query_response import DocumentQueryResponse as DocumentQueryResponse
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Iterable
|
|
5
|
+
from typing import Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
7
7
|
|
|
8
|
-
from
|
|
8
|
+
from ...._utils import PropertyInfo
|
|
9
9
|
|
|
10
10
|
__all__ = ["AdtSubscribeParams", "Address", "Contact", "PersonalIdentifier"]
|
|
11
11
|
|
|
@@ -63,7 +63,7 @@ class Address(TypedDict, total=False):
|
|
|
63
63
|
zip: Required[str]
|
|
64
64
|
"""5 digit zip code."""
|
|
65
65
|
|
|
66
|
-
address_line2: Annotated[str, PropertyInfo(alias="addressLine2")]
|
|
66
|
+
address_line2: Annotated[Optional[str], PropertyInfo(alias="addressLine2")]
|
|
67
67
|
"""The address details, for example: `#4451`."""
|
|
68
68
|
|
|
69
69
|
country: str
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Iterable
|
|
5
|
+
from typing import Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
7
7
|
|
|
8
8
|
from ...._utils import PropertyInfo
|
|
@@ -63,7 +63,7 @@ class Address(TypedDict, total=False):
|
|
|
63
63
|
zip: Required[str]
|
|
64
64
|
"""5 digit zip code."""
|
|
65
65
|
|
|
66
|
-
address_line2: Annotated[str, PropertyInfo(alias="addressLine2")]
|
|
66
|
+
address_line2: Annotated[Optional[str], PropertyInfo(alias="addressLine2")]
|
|
67
67
|
"""The address details, for example: `#4451`."""
|
|
68
68
|
|
|
69
69
|
country: str
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: samplehc
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: The official Python library for the Sample Healthcare API
|
|
5
5
|
Project-URL: Homepage, https://github.com/samplehc/samplehc-python
|
|
6
6
|
Project-URL: Repository, https://github.com/samplehc/samplehc-python
|
|
@@ -11,7 +11,7 @@ samplehc/_resource.py,sha256=Mdg6fhf_5wYd2K2JZ4BQIJMPqJOWetqpJE3h3MmGZJE,1160
|
|
|
11
11
|
samplehc/_response.py,sha256=UzsuYRbic274gcdUWq9ShPkdRt7VrzkjaqwSwdxqWIs,28816
|
|
12
12
|
samplehc/_streaming.py,sha256=yAEL3kUU3BoKZpDC6T6Psl11nDAMMAjSyWvWnk3R8vU,10140
|
|
13
13
|
samplehc/_types.py,sha256=p36YZ57rnQn_RIwBPcrliWawLmV62NbJeNxPy7Cm5P8,6199
|
|
14
|
-
samplehc/_version.py,sha256=
|
|
14
|
+
samplehc/_version.py,sha256=RPemggTM8rUK4OrpwiOcKmtK-v0jFFBwDKaIABM6xCU,160
|
|
15
15
|
samplehc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
samplehc/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
|
17
17
|
samplehc/_utils/_logs.py,sha256=EEt3P1dtoGlkVTZOwVml4xf3j9DvdDTzG2TpBjcQINc,789
|
|
@@ -40,22 +40,23 @@ samplehc/resources/v2/browser_automation/availity.py,sha256=3ApIlx_si_I4Kqe4NQ68
|
|
|
40
40
|
samplehc/resources/v2/browser_automation/browser_automation.py,sha256=jiBEq2DdaD6pEaWG2X2SvxNJSug-zaQ8GInPnYALcvQ,4071
|
|
41
41
|
samplehc/resources/v2/clearinghouse/__init__.py,sha256=q2mqlV5eEa0qmHkoQUSDMsZ5zxunWN5Eo6boQaNs49Q,1530
|
|
42
42
|
samplehc/resources/v2/clearinghouse/claim.py,sha256=wH5GIkGOHgKIO9rj7L7g3uskN6V0wlhO3XK_qiIqC9w,16522
|
|
43
|
-
samplehc/resources/v2/clearinghouse/clearinghouse.py,sha256=
|
|
43
|
+
samplehc/resources/v2/clearinghouse/clearinghouse.py,sha256=xRqivw0pcZNqFZeTSvVEPxrS9kaEwBYnjdteWB3GL3Q,34900
|
|
44
44
|
samplehc/resources/v2/clearinghouse/payers.py,sha256=snsp1vc2o54Hi_MZgUh_9fhR3gnC-mVxXWlMoxl6kJk,8620
|
|
45
45
|
samplehc/resources/v2/documents/__init__.py,sha256=9Hje-AZc-uRh1mgxCDKcRtLRxIdSOB3P7QJVGKCGAc0,2509
|
|
46
|
-
samplehc/resources/v2/documents/documents.py,sha256=
|
|
46
|
+
samplehc/resources/v2/documents/documents.py,sha256=xZB-Anps-EHq1zHyCLkJno_N7Q6FPAOyM1-IxYv9aug,59454
|
|
47
47
|
samplehc/resources/v2/documents/formats.py,sha256=41o04NRVECHsCSQhATpKh9BPn-vlpzHpUDpsRMQvX2k,6993
|
|
48
48
|
samplehc/resources/v2/documents/legacy.py,sha256=_3CYS1az2cp3BxOmPOgMAlqGH76_McAojwoUqnuEG4w,10793
|
|
49
49
|
samplehc/resources/v2/documents/pdf_template.py,sha256=z7BPMYIK0xSnhehV5vWla8bn5ehPF98MLyoSbwmVGco,6442
|
|
50
50
|
samplehc/resources/v2/documents/templates.py,sha256=YBh5E3JcpQ1X_iCTFfrFcOltlUZvSCUr7KTH8jJQ-xc,17101
|
|
51
|
-
samplehc/resources/v2/events/__init__.py,sha256=
|
|
52
|
-
samplehc/resources/v2/events/events.py,sha256=
|
|
53
|
-
samplehc/resources/v2/events/
|
|
54
|
-
samplehc/resources/v2/events/
|
|
55
|
-
samplehc/resources/v2/events/
|
|
56
|
-
samplehc/resources/v2/hie/__init__.py,sha256
|
|
51
|
+
samplehc/resources/v2/events/__init__.py,sha256=T4SQ0OlX2qpokT11_4K3sq9WRTQKVFZ00Zdaw8Zs2dA,1080
|
|
52
|
+
samplehc/resources/v2/events/events.py,sha256=co2yI62HzWfZ2GMmFJ4B-vO6MyBxPfolPj41EkwqSlo,7946
|
|
53
|
+
samplehc/resources/v2/events/integrations/__init__.py,sha256=0vla2Ar5seETJ4_QYLoXryRI_BJNHiygBU4L4SpQ-lM,1080
|
|
54
|
+
samplehc/resources/v2/events/integrations/integrations.py,sha256=kLGWaejOMoQadqsErchMy6fBYNnzKhYL59SSLu8J2E8,3819
|
|
55
|
+
samplehc/resources/v2/events/integrations/xcures.py,sha256=DVtPZk9ROio8TdoLdtqg6XenjzX63DeEw9fC8DAgL6w,7298
|
|
56
|
+
samplehc/resources/v2/hie/__init__.py,sha256=kEs1If5SVR3Inp__6822fiPvynz8MwRIJdYzzwuK0m0,1413
|
|
57
|
+
samplehc/resources/v2/hie/adt.py,sha256=Es3OBX4klkHJRCbqpTz_JjVK5fLB0qFFc7HsBF_Yq1g,9562
|
|
57
58
|
samplehc/resources/v2/hie/documents.py,sha256=uDF0pVXLku8qJXy4gcju_EemlxXtN7Rhpyfz74xXWyc,15396
|
|
58
|
-
samplehc/resources/v2/hie/hie.py,sha256=
|
|
59
|
+
samplehc/resources/v2/hie/hie.py,sha256=bdTM7CeHELmGULZRkOHnnfg-MoKadTnbaY9hDBtNMv4,4550
|
|
59
60
|
samplehc/resources/v2/integrations/__init__.py,sha256=MHYvKmsYfoivv4pJtSUR3o0tR145F6sfv8ph16CL8TU,2906
|
|
60
61
|
samplehc/resources/v2/integrations/careviso.py,sha256=mA1JmwPm0F_pEe6HbprvdemckYFg8qc4G7iemtafjiY,15578
|
|
61
62
|
samplehc/resources/v2/integrations/integrations.py,sha256=I62fQT-hVbixS8_bSXvQ_Glu1Uj9b4UQMyDf6phT0gI,8265
|
|
@@ -91,17 +92,18 @@ samplehc/types/v1_query_audit_logs_response.py,sha256=CiFZBhg0Q_c1ydzvNK0MkZLgmP
|
|
|
91
92
|
samplehc/types/v1_sql_execute_params.py,sha256=mC_HUkRzC_d4Ve0XkRMR3VrpZHRqY6RQzaAe-hOdgEA,728
|
|
92
93
|
samplehc/types/v1_sql_execute_response.py,sha256=Fo8npustnKfbqpw8a8FSqYSOwaakmZ4siPC1LRVbpWg,683
|
|
93
94
|
samplehc/types/v1/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
94
|
-
samplehc/types/v2/__init__.py,sha256=
|
|
95
|
+
samplehc/types/v2/__init__.py,sha256=RXCZcdU-k7oG4M7Y8Eqt05ct9wFXGtqT1rwN7-IGdW0,9403
|
|
95
96
|
samplehc/types/v2/async_result_retrieve_response.py,sha256=hDRnUnMvLJav6RzGqFH7OsZ2fPrTXOaTqlGbWzUhWVU,504
|
|
96
97
|
samplehc/types/v2/async_result_sleep_params.py,sha256=vdhEdUP6vA9Y44waJBU2p_PEC-rzWBOr4RkE1F2eTHs,729
|
|
97
98
|
samplehc/types/v2/async_result_sleep_response.py,sha256=nAUL4IVyG9RjVZtNyMnn_sp1mcwatJCEBjBCDf6bDtM,366
|
|
98
99
|
samplehc/types/v2/browser_agent_invoke_params.py,sha256=GH1bkTIefBLcVz9nKcvQAu1hFuodCd8avTcYEcG1SIQ,367
|
|
99
100
|
samplehc/types/v2/browser_agent_invoke_response.py,sha256=_dX2oZvsQlQhJpqaMsyxBeI6MLHApm-uCD4ogauKWWo,368
|
|
100
101
|
samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py,sha256=maMspSTt4X8dz3iHp-HFKLWv1_B_UtIP4VXQd_FNTMY,86893
|
|
102
|
+
samplehc/types/v2/clearinghouse_check_claim_status_params.py,sha256=ko1_OwVFSQZ0U2unGPYYNx5eovOObjYORZSc64-DKew,1683
|
|
101
103
|
samplehc/types/v2/clearinghouse_check_eligibility_params.py,sha256=403fR7fuCUNla_YfBx0hQD3_ykBBsPAbsp8el-o8mWo,1465
|
|
102
104
|
samplehc/types/v2/clearinghouse_check_eligibility_response.py,sha256=YFLinf3tqd55F5LS5HarQp9KO3R-qLdf7v1WmPkAaJo,301
|
|
103
105
|
samplehc/types/v2/clearinghouse_coordination_of_benefits_params.py,sha256=09vrP_Ded8wANL1jBXVBXH7fOXMqYV8ndQclUH4QaMg,1496
|
|
104
|
-
samplehc/types/v2/clearinghouse_run_discovery_params.py,sha256=
|
|
106
|
+
samplehc/types/v2/clearinghouse_run_discovery_params.py,sha256=JiXY5K6qy70xzuQYhWsgo9eLRGs_N1RI5rIs3FRThWg,1779
|
|
105
107
|
samplehc/types/v2/clearinghouse_run_discovery_response.py,sha256=nwWK_9tJKcdOb8-IrnmjqmlMrkJfOrdcfw6BocGfN_I,288
|
|
106
108
|
samplehc/types/v2/communication_send_email_params.py,sha256=thNaWdxK4JwOk4JQ0zvb3rab9AlOfkDbaweP_7vXsIg,1638
|
|
107
109
|
samplehc/types/v2/communication_send_fax_params.py,sha256=iVnTNnpH31avBEK86gFT8Y9MjduB693NQhQJCN6c3f4,1552
|
|
@@ -120,7 +122,7 @@ samplehc/types/v2/document_extract_params.py,sha256=p79B_7dAfoF0ksmeF0kmeGyFubz5
|
|
|
120
122
|
samplehc/types/v2/document_extract_response.py,sha256=dhrFk-j9M47SbbJ3rpojO_zeQ_x1OinTNK0worh5dxM,364
|
|
121
123
|
samplehc/types/v2/document_generate_csv_params.py,sha256=XEs74g9L05BT_M258ydVhaXhycZ-OXJi-Wi3HWwisf8,1022
|
|
122
124
|
samplehc/types/v2/document_generate_csv_response.py,sha256=ZaIPmJEzWhQ0HhHWCS-ridr0LoVOtFNTI69oQ3-2yWY,434
|
|
123
|
-
samplehc/types/v2/document_presigned_upload_url_params.py,sha256=
|
|
125
|
+
samplehc/types/v2/document_presigned_upload_url_params.py,sha256=GUooEmi6zACjwCaao3_SP6IqLwfnwKTUxYzVTfRT4rw,1283
|
|
124
126
|
samplehc/types/v2/document_presigned_upload_url_response.py,sha256=VQ6ffBy1AKnq2Cg4YotbWPokzw_gc0X4DVCfsVMotYE,386
|
|
125
127
|
samplehc/types/v2/document_retrieve_csv_content_response.py,sha256=9f4Hw0106k0SxguhmrRKAQlpWUhsX2Qm97P9B2kO1Gs,367
|
|
126
128
|
samplehc/types/v2/document_retrieve_metadata_response.py,sha256=2ZEGgp-eDrB2LWLVuGcVqjrsbXbRNFlmgUyANl0jCeU,382
|
|
@@ -203,10 +205,11 @@ samplehc/types/v2/documents/template_generate_document_async_response.py,sha256=
|
|
|
203
205
|
samplehc/types/v2/documents/template_render_document_params.py,sha256=kEmhC3acpJ9uTOF-AZL4BGAGwi-10Rps1fbFVWj8Z4w,571
|
|
204
206
|
samplehc/types/v2/documents/template_render_document_response.py,sha256=sUZYTl_AX3PN9H4B4Xs50tO6eFsj1rXOQuYLZgyt2Fc,319
|
|
205
207
|
samplehc/types/v2/events/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
206
|
-
samplehc/types/v2/events/
|
|
207
|
-
samplehc/types/v2/events/
|
|
208
|
-
samplehc/types/v2/hie/__init__.py,sha256=
|
|
209
|
-
samplehc/types/v2/hie/
|
|
208
|
+
samplehc/types/v2/events/integrations/__init__.py,sha256=qcDTPf4uUOAdYpbrY5I8HozgOsK4u_eU2sQFnA2WevI,211
|
|
209
|
+
samplehc/types/v2/events/integrations/xcure_make_request_params.py,sha256=j-F_IqLDzPeUreW7ov_fcpyOaMmgYpYGyKV1VxtvDEw,441
|
|
210
|
+
samplehc/types/v2/hie/__init__.py,sha256=xRIS1W4FJDJeqAukGxx2ZWzJBpWx_95Ckx5zl2UEunM,441
|
|
211
|
+
samplehc/types/v2/hie/adt_subscribe_params.py,sha256=XNvVgMWAnKEO_So8m7iEHgc3YQl9e7EM0CzzJXfiN3s,2975
|
|
212
|
+
samplehc/types/v2/hie/document_query_params.py,sha256=vdpaitjffO4TjsSJRiFM1k0haCKJhsNMBsAjXugBb4Q,2977
|
|
210
213
|
samplehc/types/v2/hie/document_query_response.py,sha256=scLiQ-nSkRW8vbAg-QiPgkQRLnBIfmjLKqauoNs0cZQ,442
|
|
211
214
|
samplehc/types/v2/hie/document_upload_params.py,sha256=y7Bu6fD5YyZDCGpxN2z5wBmJuENlPSfl_mmSUqN7V9k,1836
|
|
212
215
|
samplehc/types/v2/integrations/__init__.py,sha256=DFiEwWHMv5014DLqxhMlufd3vuWcZrlIOgAfjoVGx64,1220
|
|
@@ -253,7 +256,7 @@ samplehc/types/v2/tasks/state_update_params.py,sha256=qSLE4Ic5PJlkvcFbTu-KlfH6qg
|
|
|
253
256
|
samplehc/types/v2/tasks/state_update_response.py,sha256=ZLnR_rl9yasOnaxQvcM3fiaI_H16pDjBve1GUUleul4,214
|
|
254
257
|
samplehc/types/v2/workflow_runs/__init__.py,sha256=Nmrudr30JDOaGyeMcc_dqaqqs_9kTdebHD7W0vHHfdE,208
|
|
255
258
|
samplehc/types/v2/workflow_runs/step_get_output_response.py,sha256=XhRGcpEmxu4TBgpF8r63u5-ruEUDWuXr0ahv1CD9gis,333
|
|
256
|
-
samplehc-0.
|
|
257
|
-
samplehc-0.
|
|
258
|
-
samplehc-0.
|
|
259
|
-
samplehc-0.
|
|
259
|
+
samplehc-0.9.0.dist-info/METADATA,sha256=e_eGLQprAeDwS5c2WSeD1Jpn05aS4eMegKhgGI1K4Ks,14284
|
|
260
|
+
samplehc-0.9.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
261
|
+
samplehc-0.9.0.dist-info/licenses/LICENSE,sha256=nrJkK4JSAQb1p7FJcTysujPJoAZtrnXxwsLkwHz0-J8,11347
|
|
262
|
+
samplehc-0.9.0.dist-info/RECORD,,
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from .adt import (
|
|
4
|
-
AdtResource,
|
|
5
|
-
AsyncAdtResource,
|
|
6
|
-
AdtResourceWithRawResponse,
|
|
7
|
-
AsyncAdtResourceWithRawResponse,
|
|
8
|
-
AdtResourceWithStreamingResponse,
|
|
9
|
-
AsyncAdtResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
|
-
from .hie import (
|
|
12
|
-
HieResource,
|
|
13
|
-
AsyncHieResource,
|
|
14
|
-
HieResourceWithRawResponse,
|
|
15
|
-
AsyncHieResourceWithRawResponse,
|
|
16
|
-
HieResourceWithStreamingResponse,
|
|
17
|
-
AsyncHieResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
__all__ = [
|
|
21
|
-
"AdtResource",
|
|
22
|
-
"AsyncAdtResource",
|
|
23
|
-
"AdtResourceWithRawResponse",
|
|
24
|
-
"AsyncAdtResourceWithRawResponse",
|
|
25
|
-
"AdtResourceWithStreamingResponse",
|
|
26
|
-
"AsyncAdtResourceWithStreamingResponse",
|
|
27
|
-
"HieResource",
|
|
28
|
-
"AsyncHieResource",
|
|
29
|
-
"HieResourceWithRawResponse",
|
|
30
|
-
"AsyncHieResourceWithRawResponse",
|
|
31
|
-
"HieResourceWithStreamingResponse",
|
|
32
|
-
"AsyncHieResourceWithStreamingResponse",
|
|
33
|
-
]
|