samplehc 0.6.0__py3-none-any.whl → 0.8.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/clearinghouse/clearinghouse.py +24 -4
- samplehc/resources/v2/hie/__init__.py +14 -0
- samplehc/resources/v2/hie/adt.py +249 -0
- samplehc/resources/v2/hie/hie.py +32 -0
- samplehc/resources/v2/ledger/ledger.py +152 -0
- samplehc/types/v2/__init__.py +6 -0
- samplehc/types/v2/clearinghouse/claim_submit_params.py +0 -2
- samplehc/types/v2/clearinghouse_run_discovery_params.py +9 -1
- samplehc/types/v2/hie/__init__.py +1 -0
- samplehc/types/v2/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.8.0.dist-info}/METADATA +1 -1
- {samplehc-0.6.0.dist-info → samplehc-0.8.0.dist-info}/RECORD +18 -14
- {samplehc-0.6.0.dist-info → samplehc-0.8.0.dist-info}/WHEEL +0 -0
- {samplehc-0.6.0.dist-info → samplehc-0.8.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,
|
|
@@ -251,7 +251,10 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
251
251
|
*,
|
|
252
252
|
person: clearinghouse_run_discovery_params.Person,
|
|
253
253
|
account_number: str | NotGiven = NOT_GIVEN,
|
|
254
|
+
check_credit: bool | NotGiven = NOT_GIVEN,
|
|
255
|
+
check_demographics: bool | NotGiven = NOT_GIVEN,
|
|
254
256
|
date_of_service: str | NotGiven = NOT_GIVEN,
|
|
257
|
+
run_business_rules: bool | NotGiven = NOT_GIVEN,
|
|
255
258
|
service_code: str | NotGiven = NOT_GIVEN,
|
|
256
259
|
idempotency_key: str | NotGiven = NOT_GIVEN,
|
|
257
260
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -266,12 +269,16 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
266
269
|
Front Runner integration.
|
|
267
270
|
|
|
268
271
|
Args:
|
|
269
|
-
person: Patient demographic information
|
|
270
|
-
|
|
271
272
|
account_number: Account number
|
|
272
273
|
|
|
274
|
+
check_credit: Whether to check credit
|
|
275
|
+
|
|
276
|
+
check_demographics: Whether to check demographics
|
|
277
|
+
|
|
273
278
|
date_of_service: Date of service (YYYY-MM-DD)
|
|
274
279
|
|
|
280
|
+
run_business_rules: Whether to run business rules
|
|
281
|
+
|
|
275
282
|
service_code: Service code
|
|
276
283
|
|
|
277
284
|
extra_headers: Send extra headers
|
|
@@ -289,7 +296,10 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
289
296
|
{
|
|
290
297
|
"person": person,
|
|
291
298
|
"account_number": account_number,
|
|
299
|
+
"check_credit": check_credit,
|
|
300
|
+
"check_demographics": check_demographics,
|
|
292
301
|
"date_of_service": date_of_service,
|
|
302
|
+
"run_business_rules": run_business_rules,
|
|
293
303
|
"service_code": service_code,
|
|
294
304
|
},
|
|
295
305
|
clearinghouse_run_discovery_params.ClearinghouseRunDiscoveryParams,
|
|
@@ -507,7 +517,10 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
507
517
|
*,
|
|
508
518
|
person: clearinghouse_run_discovery_params.Person,
|
|
509
519
|
account_number: str | NotGiven = NOT_GIVEN,
|
|
520
|
+
check_credit: bool | NotGiven = NOT_GIVEN,
|
|
521
|
+
check_demographics: bool | NotGiven = NOT_GIVEN,
|
|
510
522
|
date_of_service: str | NotGiven = NOT_GIVEN,
|
|
523
|
+
run_business_rules: bool | NotGiven = NOT_GIVEN,
|
|
511
524
|
service_code: str | NotGiven = NOT_GIVEN,
|
|
512
525
|
idempotency_key: str | NotGiven = NOT_GIVEN,
|
|
513
526
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -522,12 +535,16 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
522
535
|
Front Runner integration.
|
|
523
536
|
|
|
524
537
|
Args:
|
|
525
|
-
person: Patient demographic information
|
|
526
|
-
|
|
527
538
|
account_number: Account number
|
|
528
539
|
|
|
540
|
+
check_credit: Whether to check credit
|
|
541
|
+
|
|
542
|
+
check_demographics: Whether to check demographics
|
|
543
|
+
|
|
529
544
|
date_of_service: Date of service (YYYY-MM-DD)
|
|
530
545
|
|
|
546
|
+
run_business_rules: Whether to run business rules
|
|
547
|
+
|
|
531
548
|
service_code: Service code
|
|
532
549
|
|
|
533
550
|
extra_headers: Send extra headers
|
|
@@ -545,7 +562,10 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
545
562
|
{
|
|
546
563
|
"person": person,
|
|
547
564
|
"account_number": account_number,
|
|
565
|
+
"check_credit": check_credit,
|
|
566
|
+
"check_demographics": check_demographics,
|
|
548
567
|
"date_of_service": date_of_service,
|
|
568
|
+
"run_business_rules": run_business_rules,
|
|
549
569
|
"service_code": service_code,
|
|
550
570
|
},
|
|
551
571
|
clearinghouse_run_discovery_params.ClearinghouseRunDiscoveryParams,
|
|
@@ -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",
|
|
@@ -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.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
|
+
)
|
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)
|
|
@@ -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/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]
|
|
@@ -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
|
|
|
@@ -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
|
|
@@ -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.8.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=yb8I3jnzGDOvC72dNNYyDSKXQGFB65b3TXu49fbA3sE,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,8 +40,8 @@ samplehc/resources/v2/browser_automation/__init__.py,sha256=a7mi3Gg12Vk6CCsm3Q50
|
|
|
40
40
|
samplehc/resources/v2/browser_automation/availity.py,sha256=3ApIlx_si_I4Kqe4NQ68gZ-z68BCpvj858L73BMEbiA,9545
|
|
41
41
|
samplehc/resources/v2/browser_automation/browser_automation.py,sha256=jiBEq2DdaD6pEaWG2X2SvxNJSug-zaQ8GInPnYALcvQ,4071
|
|
42
42
|
samplehc/resources/v2/clearinghouse/__init__.py,sha256=q2mqlV5eEa0qmHkoQUSDMsZ5zxunWN5Eo6boQaNs49Q,1530
|
|
43
|
-
samplehc/resources/v2/clearinghouse/claim.py,sha256=
|
|
44
|
-
samplehc/resources/v2/clearinghouse/clearinghouse.py,sha256=
|
|
43
|
+
samplehc/resources/v2/clearinghouse/claim.py,sha256=wH5GIkGOHgKIO9rj7L7g3uskN6V0wlhO3XK_qiIqC9w,16522
|
|
44
|
+
samplehc/resources/v2/clearinghouse/clearinghouse.py,sha256=e8E3gGcdOVS9db8S-gDtOtc5NjCFL0ub59y7NRtlrk8,28139
|
|
45
45
|
samplehc/resources/v2/clearinghouse/payers.py,sha256=snsp1vc2o54Hi_MZgUh_9fhR3gnC-mVxXWlMoxl6kJk,8620
|
|
46
46
|
samplehc/resources/v2/documents/__init__.py,sha256=9Hje-AZc-uRh1mgxCDKcRtLRxIdSOB3P7QJVGKCGAc0,2509
|
|
47
47
|
samplehc/resources/v2/documents/documents.py,sha256=f_M4Je29diD1WjL3SM36OA7gKrJSDGNnzyJrm1HRLeg,59304
|
|
@@ -49,9 +49,10 @@ samplehc/resources/v2/documents/formats.py,sha256=41o04NRVECHsCSQhATpKh9BPn-vlpz
|
|
|
49
49
|
samplehc/resources/v2/documents/legacy.py,sha256=_3CYS1az2cp3BxOmPOgMAlqGH76_McAojwoUqnuEG4w,10793
|
|
50
50
|
samplehc/resources/v2/documents/pdf_template.py,sha256=z7BPMYIK0xSnhehV5vWla8bn5ehPF98MLyoSbwmVGco,6442
|
|
51
51
|
samplehc/resources/v2/documents/templates.py,sha256=YBh5E3JcpQ1X_iCTFfrFcOltlUZvSCUr7KTH8jJQ-xc,17101
|
|
52
|
-
samplehc/resources/v2/hie/__init__.py,sha256
|
|
52
|
+
samplehc/resources/v2/hie/__init__.py,sha256=kEs1If5SVR3Inp__6822fiPvynz8MwRIJdYzzwuK0m0,1413
|
|
53
|
+
samplehc/resources/v2/hie/adt.py,sha256=Es3OBX4klkHJRCbqpTz_JjVK5fLB0qFFc7HsBF_Yq1g,9562
|
|
53
54
|
samplehc/resources/v2/hie/documents.py,sha256=uDF0pVXLku8qJXy4gcju_EemlxXtN7Rhpyfz74xXWyc,15396
|
|
54
|
-
samplehc/resources/v2/hie/hie.py,sha256=
|
|
55
|
+
samplehc/resources/v2/hie/hie.py,sha256=bdTM7CeHELmGULZRkOHnnfg-MoKadTnbaY9hDBtNMv4,4550
|
|
55
56
|
samplehc/resources/v2/integrations/__init__.py,sha256=MHYvKmsYfoivv4pJtSUR3o0tR145F6sfv8ph16CL8TU,2906
|
|
56
57
|
samplehc/resources/v2/integrations/careviso.py,sha256=mA1JmwPm0F_pEe6HbprvdemckYFg8qc4G7iemtafjiY,15578
|
|
57
58
|
samplehc/resources/v2/integrations/integrations.py,sha256=I62fQT-hVbixS8_bSXvQ_Glu1Uj9b4UQMyDf6phT0gI,8265
|
|
@@ -69,7 +70,7 @@ samplehc/resources/v2/integrations/kno2/kno2.py,sha256=xc__0U-pQMavJNUN2t8EIZtkg
|
|
|
69
70
|
samplehc/resources/v2/integrations/kno2/messages.py,sha256=BNiQTcX78SP8zC96QTwP-8IvhVBxQvFUUsjdE8xalaI,10347
|
|
70
71
|
samplehc/resources/v2/ledger/__init__.py,sha256=lylw2bYKFhukq8MTffRi-jqKqYwRHLlsB65ZKl6sUHk,2495
|
|
71
72
|
samplehc/resources/v2/ledger/insurance.py,sha256=QumeJ53gptKhHEvBaOHcvWLex7K2bY9MQobf2_ThBCQ,5621
|
|
72
|
-
samplehc/resources/v2/ledger/ledger.py,sha256=
|
|
73
|
+
samplehc/resources/v2/ledger/ledger.py,sha256=Fn6sWqUzhfMya7HhBsL3ldlgPx_TAw3_e8hDMtlcs-s,61878
|
|
73
74
|
samplehc/resources/v2/ledger/orders.py,sha256=DncKFJsQx7nm42lzb0aug995zZnmRGCjfRz2vnLzYjc,10480
|
|
74
75
|
samplehc/resources/v2/ledger/patients.py,sha256=WQiOtXRRJHebEtQg3F5Iz5tI73IYNuP1whDU2RPpHnE,5555
|
|
75
76
|
samplehc/resources/v2/ledger/institutions/__init__.py,sha256=ixR0ALO-m-bg9hapMc7lO_OYyZD517vYbu9rcsaTJtw,1080
|
|
@@ -87,7 +88,7 @@ samplehc/types/v1_query_audit_logs_response.py,sha256=CiFZBhg0Q_c1ydzvNK0MkZLgmP
|
|
|
87
88
|
samplehc/types/v1_sql_execute_params.py,sha256=mC_HUkRzC_d4Ve0XkRMR3VrpZHRqY6RQzaAe-hOdgEA,728
|
|
88
89
|
samplehc/types/v1_sql_execute_response.py,sha256=Fo8npustnKfbqpw8a8FSqYSOwaakmZ4siPC1LRVbpWg,683
|
|
89
90
|
samplehc/types/v1/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
90
|
-
samplehc/types/v2/__init__.py,sha256=
|
|
91
|
+
samplehc/types/v2/__init__.py,sha256=LGKWVB0Puo-CJI-X7spSxKu_rUm-26p99e-ZnzKjRyo,9266
|
|
91
92
|
samplehc/types/v2/async_result_retrieve_response.py,sha256=hDRnUnMvLJav6RzGqFH7OsZ2fPrTXOaTqlGbWzUhWVU,504
|
|
92
93
|
samplehc/types/v2/async_result_sleep_params.py,sha256=vdhEdUP6vA9Y44waJBU2p_PEC-rzWBOr4RkE1F2eTHs,729
|
|
93
94
|
samplehc/types/v2/async_result_sleep_response.py,sha256=nAUL4IVyG9RjVZtNyMnn_sp1mcwatJCEBjBCDf6bDtM,366
|
|
@@ -97,7 +98,7 @@ samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py,sha256=maMspSTt
|
|
|
97
98
|
samplehc/types/v2/clearinghouse_check_eligibility_params.py,sha256=403fR7fuCUNla_YfBx0hQD3_ykBBsPAbsp8el-o8mWo,1465
|
|
98
99
|
samplehc/types/v2/clearinghouse_check_eligibility_response.py,sha256=YFLinf3tqd55F5LS5HarQp9KO3R-qLdf7v1WmPkAaJo,301
|
|
99
100
|
samplehc/types/v2/clearinghouse_coordination_of_benefits_params.py,sha256=09vrP_Ded8wANL1jBXVBXH7fOXMqYV8ndQclUH4QaMg,1496
|
|
100
|
-
samplehc/types/v2/clearinghouse_run_discovery_params.py,sha256=
|
|
101
|
+
samplehc/types/v2/clearinghouse_run_discovery_params.py,sha256=JiXY5K6qy70xzuQYhWsgo9eLRGs_N1RI5rIs3FRThWg,1779
|
|
101
102
|
samplehc/types/v2/clearinghouse_run_discovery_response.py,sha256=nwWK_9tJKcdOb8-IrnmjqmlMrkJfOrdcfw6BocGfN_I,288
|
|
102
103
|
samplehc/types/v2/communication_send_email_params.py,sha256=thNaWdxK4JwOk4JQ0zvb3rab9AlOfkDbaweP_7vXsIg,1638
|
|
103
104
|
samplehc/types/v2/communication_send_fax_params.py,sha256=iVnTNnpH31avBEK86gFT8Y9MjduB693NQhQJCN6c3f4,1552
|
|
@@ -148,6 +149,8 @@ samplehc/types/v2/ledger_patient_adjustment_params.py,sha256=cffxor2MNYbmMtMEt1T
|
|
|
148
149
|
samplehc/types/v2/ledger_patient_adjustment_response.py,sha256=OJvMn75PFzpTsGcObXOcq3HFB1KalGCLQ4m6VrwfTAM,394
|
|
149
150
|
samplehc/types/v2/ledger_patient_payment_params.py,sha256=UOJ1VLQYlSE7t3_6V8NCSudHEpilhNDbiY_iRb__kCw,909
|
|
150
151
|
samplehc/types/v2/ledger_patient_payment_response.py,sha256=vkn7bi9ICvcPOsu6r0A5okwPI8tHpZH2qBUEryJlB0M,388
|
|
152
|
+
samplehc/types/v2/ledger_post_remittance_accepted_params.py,sha256=e1hAzeOm2Gb0hcE30l62aHlYEJNTsRXGM0iBxJ35TgA,1470
|
|
153
|
+
samplehc/types/v2/ledger_post_remittance_accepted_response.py,sha256=TRErXY-MzFJfdW0g8Jps4eGTT8gzyvRydFm29ggEUpY,404
|
|
151
154
|
samplehc/types/v2/ledger_reverse_entry_params.py,sha256=QDDe48kdjt8FjsHXCQAgCazk5Ap9MLEuRKF0WEYGP3Q,337
|
|
152
155
|
samplehc/types/v2/ledger_reverse_entry_response.py,sha256=dYswBaYUHJkvK1KaTssicCIxz7Ve_rBYjpu0WPvSS0g,368
|
|
153
156
|
samplehc/types/v2/policy_list_companies_params.py,sha256=1cAH6iiVYHmawgEZIcgtqBgJ1OvZueY3qsXeXj18SIw,438
|
|
@@ -179,7 +182,7 @@ samplehc/types/v2/browser_automation/__init__.py,sha256=CCz_Y-fN-C5G-ZvnLdkoE5gN
|
|
|
179
182
|
samplehc/types/v2/browser_automation/availity_submit_appeal_params.py,sha256=xPpXHjO-5JG4_a5e1RVb9mJQzTt_J_WvypW0nzNq76A,1985
|
|
180
183
|
samplehc/types/v2/browser_automation/availity_submit_appeal_response.py,sha256=rUKHMayj-Edo78E4hbZMXgXl8u7AxFTvVy0Dbyrc6sY,384
|
|
181
184
|
samplehc/types/v2/clearinghouse/__init__.py,sha256=1OM8agjZ4fezuxrcCqugZWDzk_ELJ1eORWXYIcI2Cew,545
|
|
182
|
-
samplehc/types/v2/clearinghouse/claim_submit_params.py,sha256=
|
|
185
|
+
samplehc/types/v2/clearinghouse/claim_submit_params.py,sha256=4CGf004MuDYJhSD3KVsQVVZcruUKx9y7852i7B5M8G4,92614
|
|
183
186
|
samplehc/types/v2/clearinghouse/claim_submit_response.py,sha256=slh7pXvvTUerZLvvSZwbzZMM_kV2GCkMZ16MSb6D2D8,585
|
|
184
187
|
samplehc/types/v2/clearinghouse/payer_list_response.py,sha256=WjyYm7gAQXAuMjI4fGD08rqoDsSgdupXXxQW5-9L33I,529
|
|
185
188
|
samplehc/types/v2/clearinghouse/payer_retrieve_search_params.py,sha256=1opEzMaoOSnQV3HFkf4J88yAxwm5YCNvvX5M78_7bJs,362
|
|
@@ -196,7 +199,8 @@ samplehc/types/v2/documents/template_generate_document_async_params.py,sha256=5a
|
|
|
196
199
|
samplehc/types/v2/documents/template_generate_document_async_response.py,sha256=xFivOxAB8jahS6vKcr-3TGR4IhF0INDH37nivTVoHSk,402
|
|
197
200
|
samplehc/types/v2/documents/template_render_document_params.py,sha256=kEmhC3acpJ9uTOF-AZL4BGAGwi-10Rps1fbFVWj8Z4w,571
|
|
198
201
|
samplehc/types/v2/documents/template_render_document_response.py,sha256=sUZYTl_AX3PN9H4B4Xs50tO6eFsj1rXOQuYLZgyt2Fc,319
|
|
199
|
-
samplehc/types/v2/hie/__init__.py,sha256=
|
|
202
|
+
samplehc/types/v2/hie/__init__.py,sha256=xRIS1W4FJDJeqAukGxx2ZWzJBpWx_95Ckx5zl2UEunM,441
|
|
203
|
+
samplehc/types/v2/hie/adt_subscribe_params.py,sha256=0gjI4JxtsRBD5ktli9d6O5k_TNM-Wj3p1IFYZB1TTDw,2955
|
|
200
204
|
samplehc/types/v2/hie/document_query_params.py,sha256=a0o8USrHhSaKoW7Yc5KwLHXQmNhrm0NRez2w6TdIWPM,2957
|
|
201
205
|
samplehc/types/v2/hie/document_query_response.py,sha256=scLiQ-nSkRW8vbAg-QiPgkQRLnBIfmjLKqauoNs0cZQ,442
|
|
202
206
|
samplehc/types/v2/hie/document_upload_params.py,sha256=y7Bu6fD5YyZDCGpxN2z5wBmJuENlPSfl_mmSUqN7V9k,1836
|
|
@@ -244,7 +248,7 @@ samplehc/types/v2/tasks/state_update_params.py,sha256=qSLE4Ic5PJlkvcFbTu-KlfH6qg
|
|
|
244
248
|
samplehc/types/v2/tasks/state_update_response.py,sha256=ZLnR_rl9yasOnaxQvcM3fiaI_H16pDjBve1GUUleul4,214
|
|
245
249
|
samplehc/types/v2/workflow_runs/__init__.py,sha256=Nmrudr30JDOaGyeMcc_dqaqqs_9kTdebHD7W0vHHfdE,208
|
|
246
250
|
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.
|
|
251
|
+
samplehc-0.8.0.dist-info/METADATA,sha256=lRrbCkj-gZO5nOlbu1pPIHesU9lMEg7RVanfdQDPL5k,14284
|
|
252
|
+
samplehc-0.8.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
253
|
+
samplehc-0.8.0.dist-info/licenses/LICENSE,sha256=nrJkK4JSAQb1p7FJcTysujPJoAZtrnXxwsLkwHz0-J8,11347
|
|
254
|
+
samplehc-0.8.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|