samplehc 0.6.0__py3-none-any.whl → 0.7.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/claim.py +0 -4
- samplehc/resources/v2/events/__init__.py +33 -0
- samplehc/resources/v2/{events.py → events/events.py} +40 -8
- samplehc/resources/v2/events/hie/__init__.py +33 -0
- samplehc/resources/v2/events/hie/adt.py +249 -0
- samplehc/resources/v2/events/hie/hie.py +102 -0
- samplehc/resources/v2/ledger/ledger.py +152 -0
- samplehc/resources/v2/v2.py +8 -8
- samplehc/types/v2/__init__.py +6 -0
- samplehc/types/v2/clearinghouse/claim_submit_params.py +0 -2
- samplehc/types/v2/events/__init__.py +3 -0
- samplehc/types/v2/events/hie/__init__.py +5 -0
- samplehc/types/v2/events/hie/adt_subscribe_params.py +92 -0
- samplehc/types/v2/ledger_post_remittance_accepted_params.py +37 -0
- samplehc/types/v2/ledger_post_remittance_accepted_response.py +12 -0
- {samplehc-0.6.0.dist-info → samplehc-0.7.0.dist-info}/METADATA +1 -1
- {samplehc-0.6.0.dist-info → samplehc-0.7.0.dist-info}/RECORD +20 -11
- {samplehc-0.6.0.dist-info → samplehc-0.7.0.dist-info}/WHEEL +0 -0
- {samplehc-0.6.0.dist-info → samplehc-0.7.0.dist-info}/licenses/LICENSE +0 -0
samplehc/_version.py
CHANGED
|
@@ -115,7 +115,6 @@ class ClaimResource(SyncAPIResource):
|
|
|
115
115
|
*,
|
|
116
116
|
billing: claim_submit_params.Billing,
|
|
117
117
|
claim_information: claim_submit_params.ClaimInformation,
|
|
118
|
-
idempotency_key: str,
|
|
119
118
|
is_testing: bool,
|
|
120
119
|
receiver: claim_submit_params.Receiver,
|
|
121
120
|
submitter: claim_submit_params.Submitter,
|
|
@@ -160,7 +159,6 @@ class ClaimResource(SyncAPIResource):
|
|
|
160
159
|
{
|
|
161
160
|
"billing": billing,
|
|
162
161
|
"claim_information": claim_information,
|
|
163
|
-
"idempotency_key": idempotency_key,
|
|
164
162
|
"is_testing": is_testing,
|
|
165
163
|
"receiver": receiver,
|
|
166
164
|
"submitter": submitter,
|
|
@@ -279,7 +277,6 @@ class AsyncClaimResource(AsyncAPIResource):
|
|
|
279
277
|
*,
|
|
280
278
|
billing: claim_submit_params.Billing,
|
|
281
279
|
claim_information: claim_submit_params.ClaimInformation,
|
|
282
|
-
idempotency_key: str,
|
|
283
280
|
is_testing: bool,
|
|
284
281
|
receiver: claim_submit_params.Receiver,
|
|
285
282
|
submitter: claim_submit_params.Submitter,
|
|
@@ -324,7 +321,6 @@ class AsyncClaimResource(AsyncAPIResource):
|
|
|
324
321
|
{
|
|
325
322
|
"billing": billing,
|
|
326
323
|
"claim_information": claim_information,
|
|
327
|
-
"idempotency_key": idempotency_key,
|
|
328
324
|
"is_testing": is_testing,
|
|
329
325
|
"receiver": receiver,
|
|
330
326
|
"submitter": submitter,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .hie import (
|
|
4
|
+
HieResource,
|
|
5
|
+
AsyncHieResource,
|
|
6
|
+
HieResourceWithRawResponse,
|
|
7
|
+
AsyncHieResourceWithRawResponse,
|
|
8
|
+
HieResourceWithStreamingResponse,
|
|
9
|
+
AsyncHieResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .events import (
|
|
12
|
+
EventsResource,
|
|
13
|
+
AsyncEventsResource,
|
|
14
|
+
EventsResourceWithRawResponse,
|
|
15
|
+
AsyncEventsResourceWithRawResponse,
|
|
16
|
+
EventsResourceWithStreamingResponse,
|
|
17
|
+
AsyncEventsResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"HieResource",
|
|
22
|
+
"AsyncHieResource",
|
|
23
|
+
"HieResourceWithRawResponse",
|
|
24
|
+
"AsyncHieResourceWithRawResponse",
|
|
25
|
+
"HieResourceWithStreamingResponse",
|
|
26
|
+
"AsyncHieResourceWithStreamingResponse",
|
|
27
|
+
"EventsResource",
|
|
28
|
+
"AsyncEventsResource",
|
|
29
|
+
"EventsResourceWithRawResponse",
|
|
30
|
+
"AsyncEventsResourceWithRawResponse",
|
|
31
|
+
"EventsResourceWithStreamingResponse",
|
|
32
|
+
"AsyncEventsResourceWithStreamingResponse",
|
|
33
|
+
]
|
|
@@ -4,24 +4,36 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
from .hie.hie import (
|
|
8
|
+
HieResource,
|
|
9
|
+
AsyncHieResource,
|
|
10
|
+
HieResourceWithRawResponse,
|
|
11
|
+
AsyncHieResourceWithRawResponse,
|
|
12
|
+
HieResourceWithStreamingResponse,
|
|
13
|
+
AsyncHieResourceWithStreamingResponse,
|
|
14
|
+
)
|
|
15
|
+
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
16
|
+
from ...._utils import maybe_transform, strip_not_given, async_maybe_transform
|
|
17
|
+
from ...._compat import cached_property
|
|
18
|
+
from ....types.v2 import event_emit_params
|
|
19
|
+
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
20
|
+
from ...._response import (
|
|
13
21
|
to_raw_response_wrapper,
|
|
14
22
|
to_streamed_response_wrapper,
|
|
15
23
|
async_to_raw_response_wrapper,
|
|
16
24
|
async_to_streamed_response_wrapper,
|
|
17
25
|
)
|
|
18
|
-
from
|
|
19
|
-
from
|
|
26
|
+
from ...._base_client import make_request_options
|
|
27
|
+
from ....types.v2.event_emit_response import EventEmitResponse
|
|
20
28
|
|
|
21
29
|
__all__ = ["EventsResource", "AsyncEventsResource"]
|
|
22
30
|
|
|
23
31
|
|
|
24
32
|
class EventsResource(SyncAPIResource):
|
|
33
|
+
@cached_property
|
|
34
|
+
def hie(self) -> HieResource:
|
|
35
|
+
return HieResource(self._client)
|
|
36
|
+
|
|
25
37
|
@cached_property
|
|
26
38
|
def with_raw_response(self) -> EventsResourceWithRawResponse:
|
|
27
39
|
"""
|
|
@@ -88,6 +100,10 @@ class EventsResource(SyncAPIResource):
|
|
|
88
100
|
|
|
89
101
|
|
|
90
102
|
class AsyncEventsResource(AsyncAPIResource):
|
|
103
|
+
@cached_property
|
|
104
|
+
def hie(self) -> AsyncHieResource:
|
|
105
|
+
return AsyncHieResource(self._client)
|
|
106
|
+
|
|
91
107
|
@cached_property
|
|
92
108
|
def with_raw_response(self) -> AsyncEventsResourceWithRawResponse:
|
|
93
109
|
"""
|
|
@@ -161,6 +177,10 @@ class EventsResourceWithRawResponse:
|
|
|
161
177
|
events.emit,
|
|
162
178
|
)
|
|
163
179
|
|
|
180
|
+
@cached_property
|
|
181
|
+
def hie(self) -> HieResourceWithRawResponse:
|
|
182
|
+
return HieResourceWithRawResponse(self._events.hie)
|
|
183
|
+
|
|
164
184
|
|
|
165
185
|
class AsyncEventsResourceWithRawResponse:
|
|
166
186
|
def __init__(self, events: AsyncEventsResource) -> None:
|
|
@@ -170,6 +190,10 @@ class AsyncEventsResourceWithRawResponse:
|
|
|
170
190
|
events.emit,
|
|
171
191
|
)
|
|
172
192
|
|
|
193
|
+
@cached_property
|
|
194
|
+
def hie(self) -> AsyncHieResourceWithRawResponse:
|
|
195
|
+
return AsyncHieResourceWithRawResponse(self._events.hie)
|
|
196
|
+
|
|
173
197
|
|
|
174
198
|
class EventsResourceWithStreamingResponse:
|
|
175
199
|
def __init__(self, events: EventsResource) -> None:
|
|
@@ -179,6 +203,10 @@ class EventsResourceWithStreamingResponse:
|
|
|
179
203
|
events.emit,
|
|
180
204
|
)
|
|
181
205
|
|
|
206
|
+
@cached_property
|
|
207
|
+
def hie(self) -> HieResourceWithStreamingResponse:
|
|
208
|
+
return HieResourceWithStreamingResponse(self._events.hie)
|
|
209
|
+
|
|
182
210
|
|
|
183
211
|
class AsyncEventsResourceWithStreamingResponse:
|
|
184
212
|
def __init__(self, events: AsyncEventsResource) -> None:
|
|
@@ -187,3 +215,7 @@ class AsyncEventsResourceWithStreamingResponse:
|
|
|
187
215
|
self.emit = async_to_streamed_response_wrapper(
|
|
188
216
|
events.emit,
|
|
189
217
|
)
|
|
218
|
+
|
|
219
|
+
@cached_property
|
|
220
|
+
def hie(self) -> AsyncHieResourceWithStreamingResponse:
|
|
221
|
+
return AsyncHieResourceWithStreamingResponse(self._events.hie)
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
]
|
|
@@ -0,0 +1,249 @@
|
|
|
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
|
+
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.hie import adt_subscribe_params
|
|
22
|
+
|
|
23
|
+
__all__ = ["AdtResource", "AsyncAdtResource"]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class AdtResource(SyncAPIResource):
|
|
27
|
+
@cached_property
|
|
28
|
+
def with_raw_response(self) -> AdtResourceWithRawResponse:
|
|
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 AdtResourceWithRawResponse(self)
|
|
36
|
+
|
|
37
|
+
@cached_property
|
|
38
|
+
def with_streaming_response(self) -> AdtResourceWithStreamingResponse:
|
|
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 AdtResourceWithStreamingResponse(self)
|
|
45
|
+
|
|
46
|
+
def subscribe(
|
|
47
|
+
self,
|
|
48
|
+
*,
|
|
49
|
+
address: Iterable[adt_subscribe_params.Address],
|
|
50
|
+
dob: str,
|
|
51
|
+
external_id: str,
|
|
52
|
+
first_name: str,
|
|
53
|
+
gender_at_birth: Literal["M", "F", "O", "U"],
|
|
54
|
+
last_name: str,
|
|
55
|
+
contact: Iterable[adt_subscribe_params.Contact] | NotGiven = NOT_GIVEN,
|
|
56
|
+
personal_identifiers: Iterable[adt_subscribe_params.PersonalIdentifier] | NotGiven = NOT_GIVEN,
|
|
57
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
58
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
59
|
+
extra_headers: Headers | None = None,
|
|
60
|
+
extra_query: Query | None = None,
|
|
61
|
+
extra_body: Body | None = None,
|
|
62
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
63
|
+
) -> object:
|
|
64
|
+
"""
|
|
65
|
+
Creates or updates a patient and subscribes to their ADT (Admission, Discharge,
|
|
66
|
+
Transfer) feed.
|
|
67
|
+
|
|
68
|
+
Args:
|
|
69
|
+
address: An array of Address objects, representing the Patient's current and/or previous
|
|
70
|
+
addresses. May be empty.
|
|
71
|
+
|
|
72
|
+
dob: The Patient's date of birth (DOB), formatted `YYYY-MM-DD` as per ISO 8601.
|
|
73
|
+
|
|
74
|
+
external_id: An external Patient ID that you store and can use to reference this Patient.
|
|
75
|
+
|
|
76
|
+
first_name: The Patient's first name(s).
|
|
77
|
+
|
|
78
|
+
gender_at_birth: The Patient's gender at birth, can be one of `M` or `F` or `O` or `U`. Use `O`
|
|
79
|
+
(other) when the patient's gender is known but it is not `M` or `F`, i.e
|
|
80
|
+
intersex or hermaphroditic. Use `U` (unknown) when the patient's gender is not
|
|
81
|
+
known.
|
|
82
|
+
|
|
83
|
+
last_name: The Patient's last name(s).
|
|
84
|
+
|
|
85
|
+
contact: An array of Contact objects, representing the Patient's current and/or previous
|
|
86
|
+
contact information. May be empty.
|
|
87
|
+
|
|
88
|
+
personal_identifiers: An array of the Patient's personal IDs, such as a driver's license or SSN. May
|
|
89
|
+
be empty.
|
|
90
|
+
|
|
91
|
+
extra_headers: Send extra headers
|
|
92
|
+
|
|
93
|
+
extra_query: Add additional query parameters to the request
|
|
94
|
+
|
|
95
|
+
extra_body: Add additional JSON properties to the request
|
|
96
|
+
|
|
97
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
98
|
+
"""
|
|
99
|
+
return self._post(
|
|
100
|
+
"/api/v2/hie/adt/subscribe",
|
|
101
|
+
body=maybe_transform(
|
|
102
|
+
{
|
|
103
|
+
"address": address,
|
|
104
|
+
"dob": dob,
|
|
105
|
+
"external_id": external_id,
|
|
106
|
+
"first_name": first_name,
|
|
107
|
+
"gender_at_birth": gender_at_birth,
|
|
108
|
+
"last_name": last_name,
|
|
109
|
+
"contact": contact,
|
|
110
|
+
"personal_identifiers": personal_identifiers,
|
|
111
|
+
},
|
|
112
|
+
adt_subscribe_params.AdtSubscribeParams,
|
|
113
|
+
),
|
|
114
|
+
options=make_request_options(
|
|
115
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
116
|
+
),
|
|
117
|
+
cast_to=object,
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class AsyncAdtResource(AsyncAPIResource):
|
|
122
|
+
@cached_property
|
|
123
|
+
def with_raw_response(self) -> AsyncAdtResourceWithRawResponse:
|
|
124
|
+
"""
|
|
125
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
126
|
+
the raw response object instead of the parsed content.
|
|
127
|
+
|
|
128
|
+
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
129
|
+
"""
|
|
130
|
+
return AsyncAdtResourceWithRawResponse(self)
|
|
131
|
+
|
|
132
|
+
@cached_property
|
|
133
|
+
def with_streaming_response(self) -> AsyncAdtResourceWithStreamingResponse:
|
|
134
|
+
"""
|
|
135
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
136
|
+
|
|
137
|
+
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
138
|
+
"""
|
|
139
|
+
return AsyncAdtResourceWithStreamingResponse(self)
|
|
140
|
+
|
|
141
|
+
async def subscribe(
|
|
142
|
+
self,
|
|
143
|
+
*,
|
|
144
|
+
address: Iterable[adt_subscribe_params.Address],
|
|
145
|
+
dob: str,
|
|
146
|
+
external_id: str,
|
|
147
|
+
first_name: str,
|
|
148
|
+
gender_at_birth: Literal["M", "F", "O", "U"],
|
|
149
|
+
last_name: str,
|
|
150
|
+
contact: Iterable[adt_subscribe_params.Contact] | NotGiven = NOT_GIVEN,
|
|
151
|
+
personal_identifiers: Iterable[adt_subscribe_params.PersonalIdentifier] | NotGiven = NOT_GIVEN,
|
|
152
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
153
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
154
|
+
extra_headers: Headers | None = None,
|
|
155
|
+
extra_query: Query | None = None,
|
|
156
|
+
extra_body: Body | None = None,
|
|
157
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
158
|
+
) -> object:
|
|
159
|
+
"""
|
|
160
|
+
Creates or updates a patient and subscribes to their ADT (Admission, Discharge,
|
|
161
|
+
Transfer) feed.
|
|
162
|
+
|
|
163
|
+
Args:
|
|
164
|
+
address: An array of Address objects, representing the Patient's current and/or previous
|
|
165
|
+
addresses. May be empty.
|
|
166
|
+
|
|
167
|
+
dob: The Patient's date of birth (DOB), formatted `YYYY-MM-DD` as per ISO 8601.
|
|
168
|
+
|
|
169
|
+
external_id: An external Patient ID that you store and can use to reference this Patient.
|
|
170
|
+
|
|
171
|
+
first_name: The Patient's first name(s).
|
|
172
|
+
|
|
173
|
+
gender_at_birth: The Patient's gender at birth, can be one of `M` or `F` or `O` or `U`. Use `O`
|
|
174
|
+
(other) when the patient's gender is known but it is not `M` or `F`, i.e
|
|
175
|
+
intersex or hermaphroditic. Use `U` (unknown) when the patient's gender is not
|
|
176
|
+
known.
|
|
177
|
+
|
|
178
|
+
last_name: The Patient's last name(s).
|
|
179
|
+
|
|
180
|
+
contact: An array of Contact objects, representing the Patient's current and/or previous
|
|
181
|
+
contact information. May be empty.
|
|
182
|
+
|
|
183
|
+
personal_identifiers: An array of the Patient's personal IDs, such as a driver's license or SSN. May
|
|
184
|
+
be empty.
|
|
185
|
+
|
|
186
|
+
extra_headers: Send extra headers
|
|
187
|
+
|
|
188
|
+
extra_query: Add additional query parameters to the request
|
|
189
|
+
|
|
190
|
+
extra_body: Add additional JSON properties to the request
|
|
191
|
+
|
|
192
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
193
|
+
"""
|
|
194
|
+
return await self._post(
|
|
195
|
+
"/api/v2/hie/adt/subscribe",
|
|
196
|
+
body=await async_maybe_transform(
|
|
197
|
+
{
|
|
198
|
+
"address": address,
|
|
199
|
+
"dob": dob,
|
|
200
|
+
"external_id": external_id,
|
|
201
|
+
"first_name": first_name,
|
|
202
|
+
"gender_at_birth": gender_at_birth,
|
|
203
|
+
"last_name": last_name,
|
|
204
|
+
"contact": contact,
|
|
205
|
+
"personal_identifiers": personal_identifiers,
|
|
206
|
+
},
|
|
207
|
+
adt_subscribe_params.AdtSubscribeParams,
|
|
208
|
+
),
|
|
209
|
+
options=make_request_options(
|
|
210
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
211
|
+
),
|
|
212
|
+
cast_to=object,
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
class AdtResourceWithRawResponse:
|
|
217
|
+
def __init__(self, adt: AdtResource) -> None:
|
|
218
|
+
self._adt = adt
|
|
219
|
+
|
|
220
|
+
self.subscribe = to_raw_response_wrapper(
|
|
221
|
+
adt.subscribe,
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
class AsyncAdtResourceWithRawResponse:
|
|
226
|
+
def __init__(self, adt: AsyncAdtResource) -> None:
|
|
227
|
+
self._adt = adt
|
|
228
|
+
|
|
229
|
+
self.subscribe = async_to_raw_response_wrapper(
|
|
230
|
+
adt.subscribe,
|
|
231
|
+
)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
class AdtResourceWithStreamingResponse:
|
|
235
|
+
def __init__(self, adt: AdtResource) -> None:
|
|
236
|
+
self._adt = adt
|
|
237
|
+
|
|
238
|
+
self.subscribe = to_streamed_response_wrapper(
|
|
239
|
+
adt.subscribe,
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
class AsyncAdtResourceWithStreamingResponse:
|
|
244
|
+
def __init__(self, adt: AsyncAdtResource) -> None:
|
|
245
|
+
self._adt = adt
|
|
246
|
+
|
|
247
|
+
self.subscribe = async_to_streamed_response_wrapper(
|
|
248
|
+
adt.subscribe,
|
|
249
|
+
)
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .adt import (
|
|
6
|
+
AdtResource,
|
|
7
|
+
AsyncAdtResource,
|
|
8
|
+
AdtResourceWithRawResponse,
|
|
9
|
+
AsyncAdtResourceWithRawResponse,
|
|
10
|
+
AdtResourceWithStreamingResponse,
|
|
11
|
+
AsyncAdtResourceWithStreamingResponse,
|
|
12
|
+
)
|
|
13
|
+
from ....._compat import cached_property
|
|
14
|
+
from ....._resource import SyncAPIResource, AsyncAPIResource
|
|
15
|
+
|
|
16
|
+
__all__ = ["HieResource", "AsyncHieResource"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class HieResource(SyncAPIResource):
|
|
20
|
+
@cached_property
|
|
21
|
+
def adt(self) -> AdtResource:
|
|
22
|
+
return AdtResource(self._client)
|
|
23
|
+
|
|
24
|
+
@cached_property
|
|
25
|
+
def with_raw_response(self) -> HieResourceWithRawResponse:
|
|
26
|
+
"""
|
|
27
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
28
|
+
the raw response object instead of the parsed content.
|
|
29
|
+
|
|
30
|
+
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
31
|
+
"""
|
|
32
|
+
return HieResourceWithRawResponse(self)
|
|
33
|
+
|
|
34
|
+
@cached_property
|
|
35
|
+
def with_streaming_response(self) -> HieResourceWithStreamingResponse:
|
|
36
|
+
"""
|
|
37
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
38
|
+
|
|
39
|
+
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
40
|
+
"""
|
|
41
|
+
return HieResourceWithStreamingResponse(self)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class AsyncHieResource(AsyncAPIResource):
|
|
45
|
+
@cached_property
|
|
46
|
+
def adt(self) -> AsyncAdtResource:
|
|
47
|
+
return AsyncAdtResource(self._client)
|
|
48
|
+
|
|
49
|
+
@cached_property
|
|
50
|
+
def with_raw_response(self) -> AsyncHieResourceWithRawResponse:
|
|
51
|
+
"""
|
|
52
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
53
|
+
the raw response object instead of the parsed content.
|
|
54
|
+
|
|
55
|
+
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
56
|
+
"""
|
|
57
|
+
return AsyncHieResourceWithRawResponse(self)
|
|
58
|
+
|
|
59
|
+
@cached_property
|
|
60
|
+
def with_streaming_response(self) -> AsyncHieResourceWithStreamingResponse:
|
|
61
|
+
"""
|
|
62
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
63
|
+
|
|
64
|
+
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
65
|
+
"""
|
|
66
|
+
return AsyncHieResourceWithStreamingResponse(self)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class HieResourceWithRawResponse:
|
|
70
|
+
def __init__(self, hie: HieResource) -> None:
|
|
71
|
+
self._hie = hie
|
|
72
|
+
|
|
73
|
+
@cached_property
|
|
74
|
+
def adt(self) -> AdtResourceWithRawResponse:
|
|
75
|
+
return AdtResourceWithRawResponse(self._hie.adt)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class AsyncHieResourceWithRawResponse:
|
|
79
|
+
def __init__(self, hie: AsyncHieResource) -> None:
|
|
80
|
+
self._hie = hie
|
|
81
|
+
|
|
82
|
+
@cached_property
|
|
83
|
+
def adt(self) -> AsyncAdtResourceWithRawResponse:
|
|
84
|
+
return AsyncAdtResourceWithRawResponse(self._hie.adt)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class HieResourceWithStreamingResponse:
|
|
88
|
+
def __init__(self, hie: HieResource) -> None:
|
|
89
|
+
self._hie = hie
|
|
90
|
+
|
|
91
|
+
@cached_property
|
|
92
|
+
def adt(self) -> AdtResourceWithStreamingResponse:
|
|
93
|
+
return AdtResourceWithStreamingResponse(self._hie.adt)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
class AsyncHieResourceWithStreamingResponse:
|
|
97
|
+
def __init__(self, hie: AsyncHieResource) -> None:
|
|
98
|
+
self._hie = hie
|
|
99
|
+
|
|
100
|
+
@cached_property
|
|
101
|
+
def adt(self) -> AsyncAdtResourceWithStreamingResponse:
|
|
102
|
+
return AsyncAdtResourceWithStreamingResponse(self._hie.adt)
|
|
@@ -45,6 +45,7 @@ from ....types.v2 import (
|
|
|
45
45
|
ledger_patient_adjustment_params,
|
|
46
46
|
ledger_institution_payment_params,
|
|
47
47
|
ledger_institution_adjustment_params,
|
|
48
|
+
ledger_post_remittance_accepted_params,
|
|
48
49
|
)
|
|
49
50
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
50
51
|
from ...._response import (
|
|
@@ -72,6 +73,7 @@ from ....types.v2.ledger_claim_adjustment_response import LedgerClaimAdjustmentR
|
|
|
72
73
|
from ....types.v2.ledger_patient_adjustment_response import LedgerPatientAdjustmentResponse
|
|
73
74
|
from ....types.v2.ledger_institution_payment_response import LedgerInstitutionPaymentResponse
|
|
74
75
|
from ....types.v2.ledger_institution_adjustment_response import LedgerInstitutionAdjustmentResponse
|
|
76
|
+
from ....types.v2.ledger_post_remittance_accepted_response import LedgerPostRemittanceAcceptedResponse
|
|
75
77
|
|
|
76
78
|
__all__ = ["LedgerResource", "AsyncLedgerResource"]
|
|
77
79
|
|
|
@@ -651,6 +653,75 @@ class LedgerResource(SyncAPIResource):
|
|
|
651
653
|
cast_to=LedgerPatientPaymentResponse,
|
|
652
654
|
)
|
|
653
655
|
|
|
656
|
+
def post_remittance_accepted(
|
|
657
|
+
self,
|
|
658
|
+
*,
|
|
659
|
+
adjustment_usd_cents: float,
|
|
660
|
+
claim_id: str,
|
|
661
|
+
ik: str,
|
|
662
|
+
insurance_id: str,
|
|
663
|
+
order_id: str,
|
|
664
|
+
patient_id: str,
|
|
665
|
+
patient_responsibility_usd_cents: float,
|
|
666
|
+
posted_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
667
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
668
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
669
|
+
extra_headers: Headers | None = None,
|
|
670
|
+
extra_query: Query | None = None,
|
|
671
|
+
extra_body: Body | None = None,
|
|
672
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
673
|
+
) -> LedgerPostRemittanceAcceptedResponse:
|
|
674
|
+
"""Posts a remittance accepted entry to the ledger.
|
|
675
|
+
|
|
676
|
+
All monetary amounts should be
|
|
677
|
+
provided in cents.
|
|
678
|
+
|
|
679
|
+
Args:
|
|
680
|
+
adjustment_usd_cents: Adjustment amount in cents (positive or negative).
|
|
681
|
+
|
|
682
|
+
claim_id: Identifier of the claim associated with this remittance.
|
|
683
|
+
|
|
684
|
+
ik: Idempotency key for the remittance.
|
|
685
|
+
|
|
686
|
+
insurance_id: Identifier of the insurance for the remittance.
|
|
687
|
+
|
|
688
|
+
order_id: Order ID associated with the remittance.
|
|
689
|
+
|
|
690
|
+
patient_id: Identifier of the patient for the remittance.
|
|
691
|
+
|
|
692
|
+
patient_responsibility_usd_cents: Patient responsibility amount in cents.
|
|
693
|
+
|
|
694
|
+
posted_at: Optional ISO 8601 date-time to post the entry.
|
|
695
|
+
|
|
696
|
+
extra_headers: Send extra headers
|
|
697
|
+
|
|
698
|
+
extra_query: Add additional query parameters to the request
|
|
699
|
+
|
|
700
|
+
extra_body: Add additional JSON properties to the request
|
|
701
|
+
|
|
702
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
703
|
+
"""
|
|
704
|
+
return self._post(
|
|
705
|
+
"/api/v2/ledger/remittance-accepted",
|
|
706
|
+
body=maybe_transform(
|
|
707
|
+
{
|
|
708
|
+
"adjustment_usd_cents": adjustment_usd_cents,
|
|
709
|
+
"claim_id": claim_id,
|
|
710
|
+
"ik": ik,
|
|
711
|
+
"insurance_id": insurance_id,
|
|
712
|
+
"order_id": order_id,
|
|
713
|
+
"patient_id": patient_id,
|
|
714
|
+
"patient_responsibility_usd_cents": patient_responsibility_usd_cents,
|
|
715
|
+
"posted_at": posted_at,
|
|
716
|
+
},
|
|
717
|
+
ledger_post_remittance_accepted_params.LedgerPostRemittanceAcceptedParams,
|
|
718
|
+
),
|
|
719
|
+
options=make_request_options(
|
|
720
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
721
|
+
),
|
|
722
|
+
cast_to=LedgerPostRemittanceAcceptedResponse,
|
|
723
|
+
)
|
|
724
|
+
|
|
654
725
|
def reverse_entry(
|
|
655
726
|
self,
|
|
656
727
|
*,
|
|
@@ -1261,6 +1332,75 @@ class AsyncLedgerResource(AsyncAPIResource):
|
|
|
1261
1332
|
cast_to=LedgerPatientPaymentResponse,
|
|
1262
1333
|
)
|
|
1263
1334
|
|
|
1335
|
+
async def post_remittance_accepted(
|
|
1336
|
+
self,
|
|
1337
|
+
*,
|
|
1338
|
+
adjustment_usd_cents: float,
|
|
1339
|
+
claim_id: str,
|
|
1340
|
+
ik: str,
|
|
1341
|
+
insurance_id: str,
|
|
1342
|
+
order_id: str,
|
|
1343
|
+
patient_id: str,
|
|
1344
|
+
patient_responsibility_usd_cents: float,
|
|
1345
|
+
posted_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
|
1346
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1347
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1348
|
+
extra_headers: Headers | None = None,
|
|
1349
|
+
extra_query: Query | None = None,
|
|
1350
|
+
extra_body: Body | None = None,
|
|
1351
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1352
|
+
) -> LedgerPostRemittanceAcceptedResponse:
|
|
1353
|
+
"""Posts a remittance accepted entry to the ledger.
|
|
1354
|
+
|
|
1355
|
+
All monetary amounts should be
|
|
1356
|
+
provided in cents.
|
|
1357
|
+
|
|
1358
|
+
Args:
|
|
1359
|
+
adjustment_usd_cents: Adjustment amount in cents (positive or negative).
|
|
1360
|
+
|
|
1361
|
+
claim_id: Identifier of the claim associated with this remittance.
|
|
1362
|
+
|
|
1363
|
+
ik: Idempotency key for the remittance.
|
|
1364
|
+
|
|
1365
|
+
insurance_id: Identifier of the insurance for the remittance.
|
|
1366
|
+
|
|
1367
|
+
order_id: Order ID associated with the remittance.
|
|
1368
|
+
|
|
1369
|
+
patient_id: Identifier of the patient for the remittance.
|
|
1370
|
+
|
|
1371
|
+
patient_responsibility_usd_cents: Patient responsibility amount in cents.
|
|
1372
|
+
|
|
1373
|
+
posted_at: Optional ISO 8601 date-time to post the entry.
|
|
1374
|
+
|
|
1375
|
+
extra_headers: Send extra headers
|
|
1376
|
+
|
|
1377
|
+
extra_query: Add additional query parameters to the request
|
|
1378
|
+
|
|
1379
|
+
extra_body: Add additional JSON properties to the request
|
|
1380
|
+
|
|
1381
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1382
|
+
"""
|
|
1383
|
+
return await self._post(
|
|
1384
|
+
"/api/v2/ledger/remittance-accepted",
|
|
1385
|
+
body=await async_maybe_transform(
|
|
1386
|
+
{
|
|
1387
|
+
"adjustment_usd_cents": adjustment_usd_cents,
|
|
1388
|
+
"claim_id": claim_id,
|
|
1389
|
+
"ik": ik,
|
|
1390
|
+
"insurance_id": insurance_id,
|
|
1391
|
+
"order_id": order_id,
|
|
1392
|
+
"patient_id": patient_id,
|
|
1393
|
+
"patient_responsibility_usd_cents": patient_responsibility_usd_cents,
|
|
1394
|
+
"posted_at": posted_at,
|
|
1395
|
+
},
|
|
1396
|
+
ledger_post_remittance_accepted_params.LedgerPostRemittanceAcceptedParams,
|
|
1397
|
+
),
|
|
1398
|
+
options=make_request_options(
|
|
1399
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1400
|
+
),
|
|
1401
|
+
cast_to=LedgerPostRemittanceAcceptedResponse,
|
|
1402
|
+
)
|
|
1403
|
+
|
|
1264
1404
|
async def reverse_entry(
|
|
1265
1405
|
self,
|
|
1266
1406
|
*,
|
|
@@ -1327,6 +1467,9 @@ class LedgerResourceWithRawResponse:
|
|
|
1327
1467
|
self.patient_payment = to_raw_response_wrapper(
|
|
1328
1468
|
ledger.patient_payment,
|
|
1329
1469
|
)
|
|
1470
|
+
self.post_remittance_accepted = to_raw_response_wrapper(
|
|
1471
|
+
ledger.post_remittance_accepted,
|
|
1472
|
+
)
|
|
1330
1473
|
self.reverse_entry = to_raw_response_wrapper(
|
|
1331
1474
|
ledger.reverse_entry,
|
|
1332
1475
|
)
|
|
@@ -1379,6 +1522,9 @@ class AsyncLedgerResourceWithRawResponse:
|
|
|
1379
1522
|
self.patient_payment = async_to_raw_response_wrapper(
|
|
1380
1523
|
ledger.patient_payment,
|
|
1381
1524
|
)
|
|
1525
|
+
self.post_remittance_accepted = async_to_raw_response_wrapper(
|
|
1526
|
+
ledger.post_remittance_accepted,
|
|
1527
|
+
)
|
|
1382
1528
|
self.reverse_entry = async_to_raw_response_wrapper(
|
|
1383
1529
|
ledger.reverse_entry,
|
|
1384
1530
|
)
|
|
@@ -1431,6 +1577,9 @@ class LedgerResourceWithStreamingResponse:
|
|
|
1431
1577
|
self.patient_payment = to_streamed_response_wrapper(
|
|
1432
1578
|
ledger.patient_payment,
|
|
1433
1579
|
)
|
|
1580
|
+
self.post_remittance_accepted = to_streamed_response_wrapper(
|
|
1581
|
+
ledger.post_remittance_accepted,
|
|
1582
|
+
)
|
|
1434
1583
|
self.reverse_entry = to_streamed_response_wrapper(
|
|
1435
1584
|
ledger.reverse_entry,
|
|
1436
1585
|
)
|
|
@@ -1483,6 +1632,9 @@ class AsyncLedgerResourceWithStreamingResponse:
|
|
|
1483
1632
|
self.patient_payment = async_to_streamed_response_wrapper(
|
|
1484
1633
|
ledger.patient_payment,
|
|
1485
1634
|
)
|
|
1635
|
+
self.post_remittance_accepted = async_to_streamed_response_wrapper(
|
|
1636
|
+
ledger.post_remittance_accepted,
|
|
1637
|
+
)
|
|
1486
1638
|
self.reverse_entry = async_to_streamed_response_wrapper(
|
|
1487
1639
|
ledger.reverse_entry,
|
|
1488
1640
|
)
|
samplehc/resources/v2/v2.py
CHANGED
|
@@ -2,14 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from .events import (
|
|
6
|
-
EventsResource,
|
|
7
|
-
AsyncEventsResource,
|
|
8
|
-
EventsResourceWithRawResponse,
|
|
9
|
-
AsyncEventsResourceWithRawResponse,
|
|
10
|
-
EventsResourceWithStreamingResponse,
|
|
11
|
-
AsyncEventsResourceWithStreamingResponse,
|
|
12
|
-
)
|
|
13
5
|
from .hie.hie import (
|
|
14
6
|
HieResource,
|
|
15
7
|
AsyncHieResource,
|
|
@@ -68,6 +60,14 @@ from .communication import (
|
|
|
68
60
|
CommunicationResourceWithStreamingResponse,
|
|
69
61
|
AsyncCommunicationResourceWithStreamingResponse,
|
|
70
62
|
)
|
|
63
|
+
from .events.events import (
|
|
64
|
+
EventsResource,
|
|
65
|
+
AsyncEventsResource,
|
|
66
|
+
EventsResourceWithRawResponse,
|
|
67
|
+
AsyncEventsResourceWithRawResponse,
|
|
68
|
+
EventsResourceWithStreamingResponse,
|
|
69
|
+
AsyncEventsResourceWithStreamingResponse,
|
|
70
|
+
)
|
|
71
71
|
from .ledger.ledger import (
|
|
72
72
|
LedgerResource,
|
|
73
73
|
AsyncLedgerResource,
|
samplehc/types/v2/__init__.py
CHANGED
|
@@ -92,6 +92,9 @@ from .document_transform_json_to_html_params import (
|
|
|
92
92
|
from .ledger_institution_adjustment_response import (
|
|
93
93
|
LedgerInstitutionAdjustmentResponse as LedgerInstitutionAdjustmentResponse,
|
|
94
94
|
)
|
|
95
|
+
from .ledger_post_remittance_accepted_params import (
|
|
96
|
+
LedgerPostRemittanceAcceptedParams as LedgerPostRemittanceAcceptedParams,
|
|
97
|
+
)
|
|
95
98
|
from .policy_retrieve_presigned_url_response import (
|
|
96
99
|
PolicyRetrievePresignedURLResponse as PolicyRetrievePresignedURLResponse,
|
|
97
100
|
)
|
|
@@ -101,6 +104,9 @@ from .clearinghouse_check_eligibility_response import (
|
|
|
101
104
|
from .document_transform_json_to_html_response import (
|
|
102
105
|
DocumentTransformJsonToHTMLResponse as DocumentTransformJsonToHTMLResponse,
|
|
103
106
|
)
|
|
107
|
+
from .ledger_post_remittance_accepted_response import (
|
|
108
|
+
LedgerPostRemittanceAcceptedResponse as LedgerPostRemittanceAcceptedResponse,
|
|
109
|
+
)
|
|
104
110
|
from .workflow_run_resume_when_complete_params import (
|
|
105
111
|
WorkflowRunResumeWhenCompleteParams as WorkflowRunResumeWhenCompleteParams,
|
|
106
112
|
)
|
|
@@ -134,8 +134,6 @@ class ClaimSubmitParams(TypedDict, total=False):
|
|
|
134
134
|
|
|
135
135
|
claim_information: Required[Annotated[ClaimInformation, PropertyInfo(alias="claimInformation")]]
|
|
136
136
|
|
|
137
|
-
idempotency_key: Required[Annotated[str, PropertyInfo(alias="idempotencyKey")]]
|
|
138
|
-
|
|
139
137
|
is_testing: Required[Annotated[bool, PropertyInfo(alias="isTesting")]]
|
|
140
138
|
|
|
141
139
|
receiver: Required[Receiver]
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from ....._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["AdtSubscribeParams", "Address", "Contact", "PersonalIdentifier"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AdtSubscribeParams(TypedDict, total=False):
|
|
14
|
+
address: Required[Iterable[Address]]
|
|
15
|
+
"""
|
|
16
|
+
An array of Address objects, representing the Patient's current and/or previous
|
|
17
|
+
addresses. May be empty.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
dob: Required[str]
|
|
21
|
+
"""The Patient's date of birth (DOB), formatted `YYYY-MM-DD` as per ISO 8601."""
|
|
22
|
+
|
|
23
|
+
external_id: Required[Annotated[str, PropertyInfo(alias="externalId")]]
|
|
24
|
+
"""An external Patient ID that you store and can use to reference this Patient."""
|
|
25
|
+
|
|
26
|
+
first_name: Required[Annotated[str, PropertyInfo(alias="firstName")]]
|
|
27
|
+
"""The Patient's first name(s)."""
|
|
28
|
+
|
|
29
|
+
gender_at_birth: Required[Annotated[Literal["M", "F", "O", "U"], PropertyInfo(alias="genderAtBirth")]]
|
|
30
|
+
"""The Patient's gender at birth, can be one of `M` or `F` or `O` or `U`.
|
|
31
|
+
|
|
32
|
+
Use `O` (other) when the patient's gender is known but it is not `M` or `F`, i.e
|
|
33
|
+
intersex or hermaphroditic. Use `U` (unknown) when the patient's gender is not
|
|
34
|
+
known.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
last_name: Required[Annotated[str, PropertyInfo(alias="lastName")]]
|
|
38
|
+
"""The Patient's last name(s)."""
|
|
39
|
+
|
|
40
|
+
contact: Iterable[Contact]
|
|
41
|
+
"""
|
|
42
|
+
An array of Contact objects, representing the Patient's current and/or previous
|
|
43
|
+
contact information. May be empty.
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
personal_identifiers: Annotated[Iterable[PersonalIdentifier], PropertyInfo(alias="personalIdentifiers")]
|
|
47
|
+
"""An array of the Patient's personal IDs, such as a driver's license or SSN.
|
|
48
|
+
|
|
49
|
+
May be empty.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class Address(TypedDict, total=False):
|
|
54
|
+
address_line1: Required[Annotated[str, PropertyInfo(alias="addressLine1")]]
|
|
55
|
+
"""The address."""
|
|
56
|
+
|
|
57
|
+
city: Required[str]
|
|
58
|
+
"""The city."""
|
|
59
|
+
|
|
60
|
+
state: Required[str]
|
|
61
|
+
"""The 2 letter state acronym, for example: `CA`."""
|
|
62
|
+
|
|
63
|
+
zip: Required[str]
|
|
64
|
+
"""5 digit zip code."""
|
|
65
|
+
|
|
66
|
+
address_line2: Annotated[str, PropertyInfo(alias="addressLine2")]
|
|
67
|
+
"""The address details, for example: `#4451`."""
|
|
68
|
+
|
|
69
|
+
country: str
|
|
70
|
+
"""If specified, must be `USA`; otherwise will default to `USA`."""
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class Contact(TypedDict, total=False):
|
|
74
|
+
email: str
|
|
75
|
+
"""The Patient's email address."""
|
|
76
|
+
|
|
77
|
+
phone: str
|
|
78
|
+
"""The Patient's 10 digit phone number, formatted `1234567899`."""
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class PersonalIdentifier(TypedDict, total=False):
|
|
82
|
+
type: Required[Literal["driversLicense", "ssn"]]
|
|
83
|
+
"""The ID type - currently `driversLicense` or `ssn` is supported."""
|
|
84
|
+
|
|
85
|
+
value: Required[str]
|
|
86
|
+
"""The ID number. For type `ssn`, should be 9 digits."""
|
|
87
|
+
|
|
88
|
+
state: str
|
|
89
|
+
"""The 2 letter state acronym where this ID was issued, for example: `CA`.
|
|
90
|
+
|
|
91
|
+
Only required for type `driversLicense`.
|
|
92
|
+
"""
|
|
@@ -0,0 +1,37 @@
|
|
|
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__ = ["LedgerPostRemittanceAcceptedParams"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class LedgerPostRemittanceAcceptedParams(TypedDict, total=False):
|
|
15
|
+
adjustment_usd_cents: Required[Annotated[float, PropertyInfo(alias="adjustmentUsdCents")]]
|
|
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 remittance."""
|
|
20
|
+
|
|
21
|
+
ik: Required[str]
|
|
22
|
+
"""Idempotency key for the remittance."""
|
|
23
|
+
|
|
24
|
+
insurance_id: Required[Annotated[str, PropertyInfo(alias="insuranceId")]]
|
|
25
|
+
"""Identifier of the insurance for the remittance."""
|
|
26
|
+
|
|
27
|
+
order_id: Required[Annotated[str, PropertyInfo(alias="orderId")]]
|
|
28
|
+
"""Order ID associated with the remittance."""
|
|
29
|
+
|
|
30
|
+
patient_id: Required[Annotated[str, PropertyInfo(alias="patientId")]]
|
|
31
|
+
"""Identifier of the patient for the remittance."""
|
|
32
|
+
|
|
33
|
+
patient_responsibility_usd_cents: Required[Annotated[float, PropertyInfo(alias="patientResponsibilityUsdCents")]]
|
|
34
|
+
"""Patient responsibility amount in cents."""
|
|
35
|
+
|
|
36
|
+
posted_at: Annotated[Union[str, datetime], PropertyInfo(alias="postedAt", format="iso8601")]
|
|
37
|
+
"""Optional ISO 8601 date-time to post the entry."""
|
|
@@ -0,0 +1,12 @@
|
|
|
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__ = ["LedgerPostRemittanceAcceptedResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class LedgerPostRemittanceAcceptedResponse(BaseModel):
|
|
11
|
+
ledger_entry_id: str = FieldInfo(alias="ledgerEntryId")
|
|
12
|
+
"""The unique identifier of the successfully created ledger entry."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: samplehc
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.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=hnvUz3j8Wlrpj1S3L_C8uFWZi2DaKJb14YbSTFsoFks,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
|
|
@@ -32,15 +32,14 @@ samplehc/resources/v2/async_results.py,sha256=ZGJZKd0kmAzhhXuIT16X0f87-UvUPp7TOv
|
|
|
32
32
|
samplehc/resources/v2/browser_agents.py,sha256=61FESBo--lMjtvYu2Ld63ocjjdXe71bwVbxVgRnp_rw,6869
|
|
33
33
|
samplehc/resources/v2/communication.py,sha256=tdRHQWa3ClbQneGFP2iHQ4jeFAguiSxFCWu_SI_ELqU,21240
|
|
34
34
|
samplehc/resources/v2/database.py,sha256=ZsVOtU-a9c4RmUp1D_4LCrHR0VEowlnUL1tOjzL18rA,7956
|
|
35
|
-
samplehc/resources/v2/events.py,sha256=zqLt8y2p-H1pXREevjxF5rUVBtP95cZeygUK9RLvoGE,6682
|
|
36
35
|
samplehc/resources/v2/policies.py,sha256=tejnAQ3K27_FBbLfDEufX7Z0ZIYx12F8AG_UrEpqJsY,25211
|
|
37
|
-
samplehc/resources/v2/v2.py,sha256=
|
|
36
|
+
samplehc/resources/v2/v2.py,sha256=Vc8q5agcclQpTkTS1sNgbAJRb6EnilZBYhyhc06dnL4,19959
|
|
38
37
|
samplehc/resources/v2/workflows.py,sha256=oZ0_vqeHvs02mos0DUPg63LDTMo_i_azz6rLodCTKQ8,14266
|
|
39
38
|
samplehc/resources/v2/browser_automation/__init__.py,sha256=a7mi3Gg12Vk6CCsm3Q50nsrwLzXK_sVk_iV6ORlqqJY,1172
|
|
40
39
|
samplehc/resources/v2/browser_automation/availity.py,sha256=3ApIlx_si_I4Kqe4NQ68gZ-z68BCpvj858L73BMEbiA,9545
|
|
41
40
|
samplehc/resources/v2/browser_automation/browser_automation.py,sha256=jiBEq2DdaD6pEaWG2X2SvxNJSug-zaQ8GInPnYALcvQ,4071
|
|
42
41
|
samplehc/resources/v2/clearinghouse/__init__.py,sha256=q2mqlV5eEa0qmHkoQUSDMsZ5zxunWN5Eo6boQaNs49Q,1530
|
|
43
|
-
samplehc/resources/v2/clearinghouse/claim.py,sha256=
|
|
42
|
+
samplehc/resources/v2/clearinghouse/claim.py,sha256=wH5GIkGOHgKIO9rj7L7g3uskN6V0wlhO3XK_qiIqC9w,16522
|
|
44
43
|
samplehc/resources/v2/clearinghouse/clearinghouse.py,sha256=pYGjyJo1hnczykfjM7yMIvqW56ZhKTNVbJIY9CdpSDo,27221
|
|
45
44
|
samplehc/resources/v2/clearinghouse/payers.py,sha256=snsp1vc2o54Hi_MZgUh_9fhR3gnC-mVxXWlMoxl6kJk,8620
|
|
46
45
|
samplehc/resources/v2/documents/__init__.py,sha256=9Hje-AZc-uRh1mgxCDKcRtLRxIdSOB3P7QJVGKCGAc0,2509
|
|
@@ -49,6 +48,11 @@ samplehc/resources/v2/documents/formats.py,sha256=41o04NRVECHsCSQhATpKh9BPn-vlpz
|
|
|
49
48
|
samplehc/resources/v2/documents/legacy.py,sha256=_3CYS1az2cp3BxOmPOgMAlqGH76_McAojwoUqnuEG4w,10793
|
|
50
49
|
samplehc/resources/v2/documents/pdf_template.py,sha256=z7BPMYIK0xSnhehV5vWla8bn5ehPF98MLyoSbwmVGco,6442
|
|
51
50
|
samplehc/resources/v2/documents/templates.py,sha256=YBh5E3JcpQ1X_iCTFfrFcOltlUZvSCUr7KTH8jJQ-xc,17101
|
|
51
|
+
samplehc/resources/v2/events/__init__.py,sha256=ixFQlRmV1rvJ97LNri-u0phPNm0LfNiMxomm_675ZE8,963
|
|
52
|
+
samplehc/resources/v2/events/events.py,sha256=LO8XsJ9dIcHtycGfgxGlaMQRmsWm2uNzUjUSRrLxgJM,7676
|
|
53
|
+
samplehc/resources/v2/events/hie/__init__.py,sha256=HxdTnAT7VrZI0pRArGw3mvcymxje5Fs2yCR7pyBlV68,924
|
|
54
|
+
samplehc/resources/v2/events/hie/adt.py,sha256=nymKqFCRH8yZOBmJz7qa7xXa6VDhNLEAMeDXJXQH-qM,9576
|
|
55
|
+
samplehc/resources/v2/events/hie/hie.py,sha256=XVRm9KU7qO-XYuUhO_XxTB2JVj3-jFYpmUVtKdpnDvM,3408
|
|
52
56
|
samplehc/resources/v2/hie/__init__.py,sha256=-j4lJKDacYHe_clPoh02daaFAXBSpU07xaWejo1UqyM,1002
|
|
53
57
|
samplehc/resources/v2/hie/documents.py,sha256=uDF0pVXLku8qJXy4gcju_EemlxXtN7Rhpyfz74xXWyc,15396
|
|
54
58
|
samplehc/resources/v2/hie/hie.py,sha256=3z2xmxvEpM8Q4U5tugzH1g3-BDiQNCZ9Rv334Xw_ZzY,3580
|
|
@@ -69,7 +73,7 @@ samplehc/resources/v2/integrations/kno2/kno2.py,sha256=xc__0U-pQMavJNUN2t8EIZtkg
|
|
|
69
73
|
samplehc/resources/v2/integrations/kno2/messages.py,sha256=BNiQTcX78SP8zC96QTwP-8IvhVBxQvFUUsjdE8xalaI,10347
|
|
70
74
|
samplehc/resources/v2/ledger/__init__.py,sha256=lylw2bYKFhukq8MTffRi-jqKqYwRHLlsB65ZKl6sUHk,2495
|
|
71
75
|
samplehc/resources/v2/ledger/insurance.py,sha256=QumeJ53gptKhHEvBaOHcvWLex7K2bY9MQobf2_ThBCQ,5621
|
|
72
|
-
samplehc/resources/v2/ledger/ledger.py,sha256=
|
|
76
|
+
samplehc/resources/v2/ledger/ledger.py,sha256=Fn6sWqUzhfMya7HhBsL3ldlgPx_TAw3_e8hDMtlcs-s,61878
|
|
73
77
|
samplehc/resources/v2/ledger/orders.py,sha256=DncKFJsQx7nm42lzb0aug995zZnmRGCjfRz2vnLzYjc,10480
|
|
74
78
|
samplehc/resources/v2/ledger/patients.py,sha256=WQiOtXRRJHebEtQg3F5Iz5tI73IYNuP1whDU2RPpHnE,5555
|
|
75
79
|
samplehc/resources/v2/ledger/institutions/__init__.py,sha256=ixR0ALO-m-bg9hapMc7lO_OYyZD517vYbu9rcsaTJtw,1080
|
|
@@ -87,7 +91,7 @@ samplehc/types/v1_query_audit_logs_response.py,sha256=CiFZBhg0Q_c1ydzvNK0MkZLgmP
|
|
|
87
91
|
samplehc/types/v1_sql_execute_params.py,sha256=mC_HUkRzC_d4Ve0XkRMR3VrpZHRqY6RQzaAe-hOdgEA,728
|
|
88
92
|
samplehc/types/v1_sql_execute_response.py,sha256=Fo8npustnKfbqpw8a8FSqYSOwaakmZ4siPC1LRVbpWg,683
|
|
89
93
|
samplehc/types/v1/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
90
|
-
samplehc/types/v2/__init__.py,sha256=
|
|
94
|
+
samplehc/types/v2/__init__.py,sha256=LGKWVB0Puo-CJI-X7spSxKu_rUm-26p99e-ZnzKjRyo,9266
|
|
91
95
|
samplehc/types/v2/async_result_retrieve_response.py,sha256=hDRnUnMvLJav6RzGqFH7OsZ2fPrTXOaTqlGbWzUhWVU,504
|
|
92
96
|
samplehc/types/v2/async_result_sleep_params.py,sha256=vdhEdUP6vA9Y44waJBU2p_PEC-rzWBOr4RkE1F2eTHs,729
|
|
93
97
|
samplehc/types/v2/async_result_sleep_response.py,sha256=nAUL4IVyG9RjVZtNyMnn_sp1mcwatJCEBjBCDf6bDtM,366
|
|
@@ -148,6 +152,8 @@ samplehc/types/v2/ledger_patient_adjustment_params.py,sha256=cffxor2MNYbmMtMEt1T
|
|
|
148
152
|
samplehc/types/v2/ledger_patient_adjustment_response.py,sha256=OJvMn75PFzpTsGcObXOcq3HFB1KalGCLQ4m6VrwfTAM,394
|
|
149
153
|
samplehc/types/v2/ledger_patient_payment_params.py,sha256=UOJ1VLQYlSE7t3_6V8NCSudHEpilhNDbiY_iRb__kCw,909
|
|
150
154
|
samplehc/types/v2/ledger_patient_payment_response.py,sha256=vkn7bi9ICvcPOsu6r0A5okwPI8tHpZH2qBUEryJlB0M,388
|
|
155
|
+
samplehc/types/v2/ledger_post_remittance_accepted_params.py,sha256=e1hAzeOm2Gb0hcE30l62aHlYEJNTsRXGM0iBxJ35TgA,1470
|
|
156
|
+
samplehc/types/v2/ledger_post_remittance_accepted_response.py,sha256=TRErXY-MzFJfdW0g8Jps4eGTT8gzyvRydFm29ggEUpY,404
|
|
151
157
|
samplehc/types/v2/ledger_reverse_entry_params.py,sha256=QDDe48kdjt8FjsHXCQAgCazk5Ap9MLEuRKF0WEYGP3Q,337
|
|
152
158
|
samplehc/types/v2/ledger_reverse_entry_response.py,sha256=dYswBaYUHJkvK1KaTssicCIxz7Ve_rBYjpu0WPvSS0g,368
|
|
153
159
|
samplehc/types/v2/policy_list_companies_params.py,sha256=1cAH6iiVYHmawgEZIcgtqBgJ1OvZueY3qsXeXj18SIw,438
|
|
@@ -179,7 +185,7 @@ samplehc/types/v2/browser_automation/__init__.py,sha256=CCz_Y-fN-C5G-ZvnLdkoE5gN
|
|
|
179
185
|
samplehc/types/v2/browser_automation/availity_submit_appeal_params.py,sha256=xPpXHjO-5JG4_a5e1RVb9mJQzTt_J_WvypW0nzNq76A,1985
|
|
180
186
|
samplehc/types/v2/browser_automation/availity_submit_appeal_response.py,sha256=rUKHMayj-Edo78E4hbZMXgXl8u7AxFTvVy0Dbyrc6sY,384
|
|
181
187
|
samplehc/types/v2/clearinghouse/__init__.py,sha256=1OM8agjZ4fezuxrcCqugZWDzk_ELJ1eORWXYIcI2Cew,545
|
|
182
|
-
samplehc/types/v2/clearinghouse/claim_submit_params.py,sha256=
|
|
188
|
+
samplehc/types/v2/clearinghouse/claim_submit_params.py,sha256=4CGf004MuDYJhSD3KVsQVVZcruUKx9y7852i7B5M8G4,92614
|
|
183
189
|
samplehc/types/v2/clearinghouse/claim_submit_response.py,sha256=slh7pXvvTUerZLvvSZwbzZMM_kV2GCkMZ16MSb6D2D8,585
|
|
184
190
|
samplehc/types/v2/clearinghouse/payer_list_response.py,sha256=WjyYm7gAQXAuMjI4fGD08rqoDsSgdupXXxQW5-9L33I,529
|
|
185
191
|
samplehc/types/v2/clearinghouse/payer_retrieve_search_params.py,sha256=1opEzMaoOSnQV3HFkf4J88yAxwm5YCNvvX5M78_7bJs,362
|
|
@@ -196,6 +202,9 @@ samplehc/types/v2/documents/template_generate_document_async_params.py,sha256=5a
|
|
|
196
202
|
samplehc/types/v2/documents/template_generate_document_async_response.py,sha256=xFivOxAB8jahS6vKcr-3TGR4IhF0INDH37nivTVoHSk,402
|
|
197
203
|
samplehc/types/v2/documents/template_render_document_params.py,sha256=kEmhC3acpJ9uTOF-AZL4BGAGwi-10Rps1fbFVWj8Z4w,571
|
|
198
204
|
samplehc/types/v2/documents/template_render_document_response.py,sha256=sUZYTl_AX3PN9H4B4Xs50tO6eFsj1rXOQuYLZgyt2Fc,319
|
|
205
|
+
samplehc/types/v2/events/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
206
|
+
samplehc/types/v2/events/hie/__init__.py,sha256=peMOjMj0eadLKyqBEUvRPTGBa8mryZt_4joWLZjIsJY,198
|
|
207
|
+
samplehc/types/v2/events/hie/adt_subscribe_params.py,sha256=_U0YPKsg5VW2rgTzSaPWlczPaBOQrEc4nJujPhkA5K8,2956
|
|
199
208
|
samplehc/types/v2/hie/__init__.py,sha256=eT5VvujnS-QJKStL44Loj_u_XtFggofT0Jc4PrzK798,366
|
|
200
209
|
samplehc/types/v2/hie/document_query_params.py,sha256=a0o8USrHhSaKoW7Yc5KwLHXQmNhrm0NRez2w6TdIWPM,2957
|
|
201
210
|
samplehc/types/v2/hie/document_query_response.py,sha256=scLiQ-nSkRW8vbAg-QiPgkQRLnBIfmjLKqauoNs0cZQ,442
|
|
@@ -244,7 +253,7 @@ samplehc/types/v2/tasks/state_update_params.py,sha256=qSLE4Ic5PJlkvcFbTu-KlfH6qg
|
|
|
244
253
|
samplehc/types/v2/tasks/state_update_response.py,sha256=ZLnR_rl9yasOnaxQvcM3fiaI_H16pDjBve1GUUleul4,214
|
|
245
254
|
samplehc/types/v2/workflow_runs/__init__.py,sha256=Nmrudr30JDOaGyeMcc_dqaqqs_9kTdebHD7W0vHHfdE,208
|
|
246
255
|
samplehc/types/v2/workflow_runs/step_get_output_response.py,sha256=XhRGcpEmxu4TBgpF8r63u5-ruEUDWuXr0ahv1CD9gis,333
|
|
247
|
-
samplehc-0.
|
|
248
|
-
samplehc-0.
|
|
249
|
-
samplehc-0.
|
|
250
|
-
samplehc-0.
|
|
256
|
+
samplehc-0.7.0.dist-info/METADATA,sha256=rny8-Sf8K7KJ-mdqvqSwLa8kiQitDdTTqYfQWyiitHo,14284
|
|
257
|
+
samplehc-0.7.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
258
|
+
samplehc-0.7.0.dist-info/licenses/LICENSE,sha256=nrJkK4JSAQb1p7FJcTysujPJoAZtrnXxwsLkwHz0-J8,11347
|
|
259
|
+
samplehc-0.7.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|