samplehc 0.7.0__py3-none-any.whl → 0.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- samplehc/_version.py +1 -1
- samplehc/resources/v2/clearinghouse/clearinghouse.py +187 -4
- samplehc/resources/v2/documents/documents.py +4 -0
- samplehc/resources/v2/events/__init__.py +14 -14
- samplehc/resources/v2/events/events.py +20 -20
- samplehc/resources/v2/events/integrations/__init__.py +33 -0
- samplehc/resources/v2/events/integrations/integrations.py +102 -0
- samplehc/resources/v2/events/integrations/xcures.py +197 -0
- samplehc/resources/v2/hie/__init__.py +14 -0
- samplehc/resources/v2/{events/hie → hie}/adt.py +7 -7
- samplehc/resources/v2/hie/hie.py +32 -0
- samplehc/types/v2/__init__.py +3 -0
- samplehc/types/v2/clearinghouse_check_claim_status_params.py +41 -0
- samplehc/types/v2/clearinghouse_run_discovery_params.py +9 -1
- samplehc/types/v2/document_presigned_upload_url_params.py +2 -0
- samplehc/types/v2/events/{hie → integrations}/__init__.py +1 -1
- samplehc/types/v2/events/integrations/xcure_make_request_params.py +18 -0
- samplehc/types/v2/hie/__init__.py +1 -0
- samplehc/types/v2/{events/hie → hie}/adt_subscribe_params.py +3 -3
- samplehc/types/v2/hie/document_query_params.py +2 -2
- {samplehc-0.7.0.dist-info → samplehc-0.9.0.dist-info}/METADATA +1 -1
- {samplehc-0.7.0.dist-info → samplehc-0.9.0.dist-info}/RECORD +24 -21
- samplehc/resources/v2/events/hie/__init__.py +0 -33
- samplehc/resources/v2/events/hie/hie.py +0 -102
- {samplehc-0.7.0.dist-info → samplehc-0.9.0.dist-info}/WHEEL +0 -0
- {samplehc-0.7.0.dist-info → samplehc-0.9.0.dist-info}/licenses/LICENSE +0 -0
samplehc/_version.py
CHANGED
|
@@ -28,6 +28,7 @@ from ...._compat import cached_property
|
|
|
28
28
|
from ....types.v2 import (
|
|
29
29
|
clearinghouse_run_discovery_params,
|
|
30
30
|
clearinghouse_check_eligibility_params,
|
|
31
|
+
clearinghouse_check_claim_status_params,
|
|
31
32
|
clearinghouse_calculate_patient_cost_params,
|
|
32
33
|
clearinghouse_coordination_of_benefits_params,
|
|
33
34
|
)
|
|
@@ -118,6 +119,81 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
118
119
|
cast_to=NoneType,
|
|
119
120
|
)
|
|
120
121
|
|
|
122
|
+
def check_claim_status(
|
|
123
|
+
self,
|
|
124
|
+
*,
|
|
125
|
+
provider_npi: str,
|
|
126
|
+
subscriber_date_of_birth: str,
|
|
127
|
+
subscriber_first_name: str,
|
|
128
|
+
subscriber_last_name: str,
|
|
129
|
+
subscriber_member_id: str,
|
|
130
|
+
trading_partner_service_id: str,
|
|
131
|
+
payer_claim_number: str | NotGiven = NOT_GIVEN,
|
|
132
|
+
provider_name: str | NotGiven = NOT_GIVEN,
|
|
133
|
+
service_from_date: str | NotGiven = NOT_GIVEN,
|
|
134
|
+
service_to_date: str | NotGiven = NOT_GIVEN,
|
|
135
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
136
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
137
|
+
extra_headers: Headers | None = None,
|
|
138
|
+
extra_query: Query | None = None,
|
|
139
|
+
extra_body: Body | None = None,
|
|
140
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
141
|
+
) -> object:
|
|
142
|
+
"""
|
|
143
|
+
Checks the real-time status of a claim using 276/277 transactions.
|
|
144
|
+
|
|
145
|
+
Args:
|
|
146
|
+
provider_npi: The provider's NPI number
|
|
147
|
+
|
|
148
|
+
subscriber_date_of_birth: The subscriber's date of birth (YYYY-MM-DD format)
|
|
149
|
+
|
|
150
|
+
subscriber_first_name: The subscriber's first name
|
|
151
|
+
|
|
152
|
+
subscriber_last_name: The subscriber's last name
|
|
153
|
+
|
|
154
|
+
subscriber_member_id: The subscriber's member ID
|
|
155
|
+
|
|
156
|
+
trading_partner_service_id: The Payer ID in our clearinghouse
|
|
157
|
+
|
|
158
|
+
payer_claim_number: The payer claim number (ICN) to check status for
|
|
159
|
+
|
|
160
|
+
provider_name: The provider's organization name
|
|
161
|
+
|
|
162
|
+
service_from_date: The beginning date of service (YYYY-MM-DD format)
|
|
163
|
+
|
|
164
|
+
service_to_date: The ending date of service (YYYY-MM-DD format)
|
|
165
|
+
|
|
166
|
+
extra_headers: Send extra headers
|
|
167
|
+
|
|
168
|
+
extra_query: Add additional query parameters to the request
|
|
169
|
+
|
|
170
|
+
extra_body: Add additional JSON properties to the request
|
|
171
|
+
|
|
172
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
173
|
+
"""
|
|
174
|
+
return self._post(
|
|
175
|
+
"/api/v2/clearinghouse/claim-status",
|
|
176
|
+
body=maybe_transform(
|
|
177
|
+
{
|
|
178
|
+
"provider_npi": provider_npi,
|
|
179
|
+
"subscriber_date_of_birth": subscriber_date_of_birth,
|
|
180
|
+
"subscriber_first_name": subscriber_first_name,
|
|
181
|
+
"subscriber_last_name": subscriber_last_name,
|
|
182
|
+
"subscriber_member_id": subscriber_member_id,
|
|
183
|
+
"trading_partner_service_id": trading_partner_service_id,
|
|
184
|
+
"payer_claim_number": payer_claim_number,
|
|
185
|
+
"provider_name": provider_name,
|
|
186
|
+
"service_from_date": service_from_date,
|
|
187
|
+
"service_to_date": service_to_date,
|
|
188
|
+
},
|
|
189
|
+
clearinghouse_check_claim_status_params.ClearinghouseCheckClaimStatusParams,
|
|
190
|
+
),
|
|
191
|
+
options=make_request_options(
|
|
192
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
193
|
+
),
|
|
194
|
+
cast_to=object,
|
|
195
|
+
)
|
|
196
|
+
|
|
121
197
|
def check_eligibility(
|
|
122
198
|
self,
|
|
123
199
|
*,
|
|
@@ -251,7 +327,10 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
251
327
|
*,
|
|
252
328
|
person: clearinghouse_run_discovery_params.Person,
|
|
253
329
|
account_number: str | NotGiven = NOT_GIVEN,
|
|
330
|
+
check_credit: bool | NotGiven = NOT_GIVEN,
|
|
331
|
+
check_demographics: bool | NotGiven = NOT_GIVEN,
|
|
254
332
|
date_of_service: str | NotGiven = NOT_GIVEN,
|
|
333
|
+
run_business_rules: bool | NotGiven = NOT_GIVEN,
|
|
255
334
|
service_code: str | NotGiven = NOT_GIVEN,
|
|
256
335
|
idempotency_key: str | NotGiven = NOT_GIVEN,
|
|
257
336
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -266,12 +345,16 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
266
345
|
Front Runner integration.
|
|
267
346
|
|
|
268
347
|
Args:
|
|
269
|
-
person: Patient demographic information
|
|
270
|
-
|
|
271
348
|
account_number: Account number
|
|
272
349
|
|
|
350
|
+
check_credit: Whether to check credit
|
|
351
|
+
|
|
352
|
+
check_demographics: Whether to check demographics
|
|
353
|
+
|
|
273
354
|
date_of_service: Date of service (YYYY-MM-DD)
|
|
274
355
|
|
|
356
|
+
run_business_rules: Whether to run business rules
|
|
357
|
+
|
|
275
358
|
service_code: Service code
|
|
276
359
|
|
|
277
360
|
extra_headers: Send extra headers
|
|
@@ -289,7 +372,10 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
289
372
|
{
|
|
290
373
|
"person": person,
|
|
291
374
|
"account_number": account_number,
|
|
375
|
+
"check_credit": check_credit,
|
|
376
|
+
"check_demographics": check_demographics,
|
|
292
377
|
"date_of_service": date_of_service,
|
|
378
|
+
"run_business_rules": run_business_rules,
|
|
293
379
|
"service_code": service_code,
|
|
294
380
|
},
|
|
295
381
|
clearinghouse_run_discovery_params.ClearinghouseRunDiscoveryParams,
|
|
@@ -374,6 +460,81 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
374
460
|
cast_to=NoneType,
|
|
375
461
|
)
|
|
376
462
|
|
|
463
|
+
async def check_claim_status(
|
|
464
|
+
self,
|
|
465
|
+
*,
|
|
466
|
+
provider_npi: str,
|
|
467
|
+
subscriber_date_of_birth: str,
|
|
468
|
+
subscriber_first_name: str,
|
|
469
|
+
subscriber_last_name: str,
|
|
470
|
+
subscriber_member_id: str,
|
|
471
|
+
trading_partner_service_id: str,
|
|
472
|
+
payer_claim_number: str | NotGiven = NOT_GIVEN,
|
|
473
|
+
provider_name: str | NotGiven = NOT_GIVEN,
|
|
474
|
+
service_from_date: str | NotGiven = NOT_GIVEN,
|
|
475
|
+
service_to_date: str | NotGiven = NOT_GIVEN,
|
|
476
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
477
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
478
|
+
extra_headers: Headers | None = None,
|
|
479
|
+
extra_query: Query | None = None,
|
|
480
|
+
extra_body: Body | None = None,
|
|
481
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
482
|
+
) -> object:
|
|
483
|
+
"""
|
|
484
|
+
Checks the real-time status of a claim using 276/277 transactions.
|
|
485
|
+
|
|
486
|
+
Args:
|
|
487
|
+
provider_npi: The provider's NPI number
|
|
488
|
+
|
|
489
|
+
subscriber_date_of_birth: The subscriber's date of birth (YYYY-MM-DD format)
|
|
490
|
+
|
|
491
|
+
subscriber_first_name: The subscriber's first name
|
|
492
|
+
|
|
493
|
+
subscriber_last_name: The subscriber's last name
|
|
494
|
+
|
|
495
|
+
subscriber_member_id: The subscriber's member ID
|
|
496
|
+
|
|
497
|
+
trading_partner_service_id: The Payer ID in our clearinghouse
|
|
498
|
+
|
|
499
|
+
payer_claim_number: The payer claim number (ICN) to check status for
|
|
500
|
+
|
|
501
|
+
provider_name: The provider's organization name
|
|
502
|
+
|
|
503
|
+
service_from_date: The beginning date of service (YYYY-MM-DD format)
|
|
504
|
+
|
|
505
|
+
service_to_date: The ending date of service (YYYY-MM-DD format)
|
|
506
|
+
|
|
507
|
+
extra_headers: Send extra headers
|
|
508
|
+
|
|
509
|
+
extra_query: Add additional query parameters to the request
|
|
510
|
+
|
|
511
|
+
extra_body: Add additional JSON properties to the request
|
|
512
|
+
|
|
513
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
514
|
+
"""
|
|
515
|
+
return await self._post(
|
|
516
|
+
"/api/v2/clearinghouse/claim-status",
|
|
517
|
+
body=await async_maybe_transform(
|
|
518
|
+
{
|
|
519
|
+
"provider_npi": provider_npi,
|
|
520
|
+
"subscriber_date_of_birth": subscriber_date_of_birth,
|
|
521
|
+
"subscriber_first_name": subscriber_first_name,
|
|
522
|
+
"subscriber_last_name": subscriber_last_name,
|
|
523
|
+
"subscriber_member_id": subscriber_member_id,
|
|
524
|
+
"trading_partner_service_id": trading_partner_service_id,
|
|
525
|
+
"payer_claim_number": payer_claim_number,
|
|
526
|
+
"provider_name": provider_name,
|
|
527
|
+
"service_from_date": service_from_date,
|
|
528
|
+
"service_to_date": service_to_date,
|
|
529
|
+
},
|
|
530
|
+
clearinghouse_check_claim_status_params.ClearinghouseCheckClaimStatusParams,
|
|
531
|
+
),
|
|
532
|
+
options=make_request_options(
|
|
533
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
534
|
+
),
|
|
535
|
+
cast_to=object,
|
|
536
|
+
)
|
|
537
|
+
|
|
377
538
|
async def check_eligibility(
|
|
378
539
|
self,
|
|
379
540
|
*,
|
|
@@ -507,7 +668,10 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
507
668
|
*,
|
|
508
669
|
person: clearinghouse_run_discovery_params.Person,
|
|
509
670
|
account_number: str | NotGiven = NOT_GIVEN,
|
|
671
|
+
check_credit: bool | NotGiven = NOT_GIVEN,
|
|
672
|
+
check_demographics: bool | NotGiven = NOT_GIVEN,
|
|
510
673
|
date_of_service: str | NotGiven = NOT_GIVEN,
|
|
674
|
+
run_business_rules: bool | NotGiven = NOT_GIVEN,
|
|
511
675
|
service_code: str | NotGiven = NOT_GIVEN,
|
|
512
676
|
idempotency_key: str | NotGiven = NOT_GIVEN,
|
|
513
677
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -522,12 +686,16 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
522
686
|
Front Runner integration.
|
|
523
687
|
|
|
524
688
|
Args:
|
|
525
|
-
person: Patient demographic information
|
|
526
|
-
|
|
527
689
|
account_number: Account number
|
|
528
690
|
|
|
691
|
+
check_credit: Whether to check credit
|
|
692
|
+
|
|
693
|
+
check_demographics: Whether to check demographics
|
|
694
|
+
|
|
529
695
|
date_of_service: Date of service (YYYY-MM-DD)
|
|
530
696
|
|
|
697
|
+
run_business_rules: Whether to run business rules
|
|
698
|
+
|
|
531
699
|
service_code: Service code
|
|
532
700
|
|
|
533
701
|
extra_headers: Send extra headers
|
|
@@ -545,7 +713,10 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
545
713
|
{
|
|
546
714
|
"person": person,
|
|
547
715
|
"account_number": account_number,
|
|
716
|
+
"check_credit": check_credit,
|
|
717
|
+
"check_demographics": check_demographics,
|
|
548
718
|
"date_of_service": date_of_service,
|
|
719
|
+
"run_business_rules": run_business_rules,
|
|
549
720
|
"service_code": service_code,
|
|
550
721
|
},
|
|
551
722
|
clearinghouse_run_discovery_params.ClearinghouseRunDiscoveryParams,
|
|
@@ -564,6 +735,9 @@ class ClearinghouseResourceWithRawResponse:
|
|
|
564
735
|
self.calculate_patient_cost = to_raw_response_wrapper(
|
|
565
736
|
clearinghouse.calculate_patient_cost,
|
|
566
737
|
)
|
|
738
|
+
self.check_claim_status = to_raw_response_wrapper(
|
|
739
|
+
clearinghouse.check_claim_status,
|
|
740
|
+
)
|
|
567
741
|
self.check_eligibility = to_raw_response_wrapper(
|
|
568
742
|
clearinghouse.check_eligibility,
|
|
569
743
|
)
|
|
@@ -590,6 +764,9 @@ class AsyncClearinghouseResourceWithRawResponse:
|
|
|
590
764
|
self.calculate_patient_cost = async_to_raw_response_wrapper(
|
|
591
765
|
clearinghouse.calculate_patient_cost,
|
|
592
766
|
)
|
|
767
|
+
self.check_claim_status = async_to_raw_response_wrapper(
|
|
768
|
+
clearinghouse.check_claim_status,
|
|
769
|
+
)
|
|
593
770
|
self.check_eligibility = async_to_raw_response_wrapper(
|
|
594
771
|
clearinghouse.check_eligibility,
|
|
595
772
|
)
|
|
@@ -616,6 +793,9 @@ class ClearinghouseResourceWithStreamingResponse:
|
|
|
616
793
|
self.calculate_patient_cost = to_streamed_response_wrapper(
|
|
617
794
|
clearinghouse.calculate_patient_cost,
|
|
618
795
|
)
|
|
796
|
+
self.check_claim_status = to_streamed_response_wrapper(
|
|
797
|
+
clearinghouse.check_claim_status,
|
|
798
|
+
)
|
|
619
799
|
self.check_eligibility = to_streamed_response_wrapper(
|
|
620
800
|
clearinghouse.check_eligibility,
|
|
621
801
|
)
|
|
@@ -642,6 +822,9 @@ class AsyncClearinghouseResourceWithStreamingResponse:
|
|
|
642
822
|
self.calculate_patient_cost = async_to_streamed_response_wrapper(
|
|
643
823
|
clearinghouse.calculate_patient_cost,
|
|
644
824
|
)
|
|
825
|
+
self.check_claim_status = async_to_streamed_response_wrapper(
|
|
826
|
+
clearinghouse.check_claim_status,
|
|
827
|
+
)
|
|
645
828
|
self.check_eligibility = async_to_streamed_response_wrapper(
|
|
646
829
|
clearinghouse.check_eligibility,
|
|
647
830
|
)
|
|
@@ -407,6 +407,8 @@ class DocumentsResource(SyncAPIResource):
|
|
|
407
407
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
408
408
|
"text/html",
|
|
409
409
|
"application/json",
|
|
410
|
+
"application/fhir+json",
|
|
411
|
+
"application/fhir+jsonl",
|
|
410
412
|
],
|
|
411
413
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
412
414
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -994,6 +996,8 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
994
996
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
995
997
|
"text/html",
|
|
996
998
|
"application/json",
|
|
999
|
+
"application/fhir+json",
|
|
1000
|
+
"application/fhir+jsonl",
|
|
997
1001
|
],
|
|
998
1002
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
999
1003
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from .hie import (
|
|
4
|
-
HieResource,
|
|
5
|
-
AsyncHieResource,
|
|
6
|
-
HieResourceWithRawResponse,
|
|
7
|
-
AsyncHieResourceWithRawResponse,
|
|
8
|
-
HieResourceWithStreamingResponse,
|
|
9
|
-
AsyncHieResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
3
|
from .events import (
|
|
12
4
|
EventsResource,
|
|
13
5
|
AsyncEventsResource,
|
|
@@ -16,14 +8,22 @@ from .events import (
|
|
|
16
8
|
EventsResourceWithStreamingResponse,
|
|
17
9
|
AsyncEventsResourceWithStreamingResponse,
|
|
18
10
|
)
|
|
11
|
+
from .integrations import (
|
|
12
|
+
IntegrationsResource,
|
|
13
|
+
AsyncIntegrationsResource,
|
|
14
|
+
IntegrationsResourceWithRawResponse,
|
|
15
|
+
AsyncIntegrationsResourceWithRawResponse,
|
|
16
|
+
IntegrationsResourceWithStreamingResponse,
|
|
17
|
+
AsyncIntegrationsResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
19
|
|
|
20
20
|
__all__ = [
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
21
|
+
"IntegrationsResource",
|
|
22
|
+
"AsyncIntegrationsResource",
|
|
23
|
+
"IntegrationsResourceWithRawResponse",
|
|
24
|
+
"AsyncIntegrationsResourceWithRawResponse",
|
|
25
|
+
"IntegrationsResourceWithStreamingResponse",
|
|
26
|
+
"AsyncIntegrationsResourceWithStreamingResponse",
|
|
27
27
|
"EventsResource",
|
|
28
28
|
"AsyncEventsResource",
|
|
29
29
|
"EventsResourceWithRawResponse",
|
|
@@ -4,14 +4,6 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from .hie.hie import (
|
|
8
|
-
HieResource,
|
|
9
|
-
AsyncHieResource,
|
|
10
|
-
HieResourceWithRawResponse,
|
|
11
|
-
AsyncHieResourceWithRawResponse,
|
|
12
|
-
HieResourceWithStreamingResponse,
|
|
13
|
-
AsyncHieResourceWithStreamingResponse,
|
|
14
|
-
)
|
|
15
7
|
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
16
8
|
from ...._utils import maybe_transform, strip_not_given, async_maybe_transform
|
|
17
9
|
from ...._compat import cached_property
|
|
@@ -24,6 +16,14 @@ from ...._response import (
|
|
|
24
16
|
async_to_streamed_response_wrapper,
|
|
25
17
|
)
|
|
26
18
|
from ...._base_client import make_request_options
|
|
19
|
+
from .integrations.integrations import (
|
|
20
|
+
IntegrationsResource,
|
|
21
|
+
AsyncIntegrationsResource,
|
|
22
|
+
IntegrationsResourceWithRawResponse,
|
|
23
|
+
AsyncIntegrationsResourceWithRawResponse,
|
|
24
|
+
IntegrationsResourceWithStreamingResponse,
|
|
25
|
+
AsyncIntegrationsResourceWithStreamingResponse,
|
|
26
|
+
)
|
|
27
27
|
from ....types.v2.event_emit_response import EventEmitResponse
|
|
28
28
|
|
|
29
29
|
__all__ = ["EventsResource", "AsyncEventsResource"]
|
|
@@ -31,8 +31,8 @@ __all__ = ["EventsResource", "AsyncEventsResource"]
|
|
|
31
31
|
|
|
32
32
|
class EventsResource(SyncAPIResource):
|
|
33
33
|
@cached_property
|
|
34
|
-
def
|
|
35
|
-
return
|
|
34
|
+
def integrations(self) -> IntegrationsResource:
|
|
35
|
+
return IntegrationsResource(self._client)
|
|
36
36
|
|
|
37
37
|
@cached_property
|
|
38
38
|
def with_raw_response(self) -> EventsResourceWithRawResponse:
|
|
@@ -101,8 +101,8 @@ class EventsResource(SyncAPIResource):
|
|
|
101
101
|
|
|
102
102
|
class AsyncEventsResource(AsyncAPIResource):
|
|
103
103
|
@cached_property
|
|
104
|
-
def
|
|
105
|
-
return
|
|
104
|
+
def integrations(self) -> AsyncIntegrationsResource:
|
|
105
|
+
return AsyncIntegrationsResource(self._client)
|
|
106
106
|
|
|
107
107
|
@cached_property
|
|
108
108
|
def with_raw_response(self) -> AsyncEventsResourceWithRawResponse:
|
|
@@ -178,8 +178,8 @@ class EventsResourceWithRawResponse:
|
|
|
178
178
|
)
|
|
179
179
|
|
|
180
180
|
@cached_property
|
|
181
|
-
def
|
|
182
|
-
return
|
|
181
|
+
def integrations(self) -> IntegrationsResourceWithRawResponse:
|
|
182
|
+
return IntegrationsResourceWithRawResponse(self._events.integrations)
|
|
183
183
|
|
|
184
184
|
|
|
185
185
|
class AsyncEventsResourceWithRawResponse:
|
|
@@ -191,8 +191,8 @@ class AsyncEventsResourceWithRawResponse:
|
|
|
191
191
|
)
|
|
192
192
|
|
|
193
193
|
@cached_property
|
|
194
|
-
def
|
|
195
|
-
return
|
|
194
|
+
def integrations(self) -> AsyncIntegrationsResourceWithRawResponse:
|
|
195
|
+
return AsyncIntegrationsResourceWithRawResponse(self._events.integrations)
|
|
196
196
|
|
|
197
197
|
|
|
198
198
|
class EventsResourceWithStreamingResponse:
|
|
@@ -204,8 +204,8 @@ class EventsResourceWithStreamingResponse:
|
|
|
204
204
|
)
|
|
205
205
|
|
|
206
206
|
@cached_property
|
|
207
|
-
def
|
|
208
|
-
return
|
|
207
|
+
def integrations(self) -> IntegrationsResourceWithStreamingResponse:
|
|
208
|
+
return IntegrationsResourceWithStreamingResponse(self._events.integrations)
|
|
209
209
|
|
|
210
210
|
|
|
211
211
|
class AsyncEventsResourceWithStreamingResponse:
|
|
@@ -217,5 +217,5 @@ class AsyncEventsResourceWithStreamingResponse:
|
|
|
217
217
|
)
|
|
218
218
|
|
|
219
219
|
@cached_property
|
|
220
|
-
def
|
|
221
|
-
return
|
|
220
|
+
def integrations(self) -> AsyncIntegrationsResourceWithStreamingResponse:
|
|
221
|
+
return AsyncIntegrationsResourceWithStreamingResponse(self._events.integrations)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .xcures import (
|
|
4
|
+
XcuresResource,
|
|
5
|
+
AsyncXcuresResource,
|
|
6
|
+
XcuresResourceWithRawResponse,
|
|
7
|
+
AsyncXcuresResourceWithRawResponse,
|
|
8
|
+
XcuresResourceWithStreamingResponse,
|
|
9
|
+
AsyncXcuresResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .integrations import (
|
|
12
|
+
IntegrationsResource,
|
|
13
|
+
AsyncIntegrationsResource,
|
|
14
|
+
IntegrationsResourceWithRawResponse,
|
|
15
|
+
AsyncIntegrationsResourceWithRawResponse,
|
|
16
|
+
IntegrationsResourceWithStreamingResponse,
|
|
17
|
+
AsyncIntegrationsResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"XcuresResource",
|
|
22
|
+
"AsyncXcuresResource",
|
|
23
|
+
"XcuresResourceWithRawResponse",
|
|
24
|
+
"AsyncXcuresResourceWithRawResponse",
|
|
25
|
+
"XcuresResourceWithStreamingResponse",
|
|
26
|
+
"AsyncXcuresResourceWithStreamingResponse",
|
|
27
|
+
"IntegrationsResource",
|
|
28
|
+
"AsyncIntegrationsResource",
|
|
29
|
+
"IntegrationsResourceWithRawResponse",
|
|
30
|
+
"AsyncIntegrationsResourceWithRawResponse",
|
|
31
|
+
"IntegrationsResourceWithStreamingResponse",
|
|
32
|
+
"AsyncIntegrationsResourceWithStreamingResponse",
|
|
33
|
+
]
|
|
@@ -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 .xcures import (
|
|
6
|
+
XcuresResource,
|
|
7
|
+
AsyncXcuresResource,
|
|
8
|
+
XcuresResourceWithRawResponse,
|
|
9
|
+
AsyncXcuresResourceWithRawResponse,
|
|
10
|
+
XcuresResourceWithStreamingResponse,
|
|
11
|
+
AsyncXcuresResourceWithStreamingResponse,
|
|
12
|
+
)
|
|
13
|
+
from ....._compat import cached_property
|
|
14
|
+
from ....._resource import SyncAPIResource, AsyncAPIResource
|
|
15
|
+
|
|
16
|
+
__all__ = ["IntegrationsResource", "AsyncIntegrationsResource"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class IntegrationsResource(SyncAPIResource):
|
|
20
|
+
@cached_property
|
|
21
|
+
def xcures(self) -> XcuresResource:
|
|
22
|
+
return XcuresResource(self._client)
|
|
23
|
+
|
|
24
|
+
@cached_property
|
|
25
|
+
def with_raw_response(self) -> IntegrationsResourceWithRawResponse:
|
|
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 IntegrationsResourceWithRawResponse(self)
|
|
33
|
+
|
|
34
|
+
@cached_property
|
|
35
|
+
def with_streaming_response(self) -> IntegrationsResourceWithStreamingResponse:
|
|
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 IntegrationsResourceWithStreamingResponse(self)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class AsyncIntegrationsResource(AsyncAPIResource):
|
|
45
|
+
@cached_property
|
|
46
|
+
def xcures(self) -> AsyncXcuresResource:
|
|
47
|
+
return AsyncXcuresResource(self._client)
|
|
48
|
+
|
|
49
|
+
@cached_property
|
|
50
|
+
def with_raw_response(self) -> AsyncIntegrationsResourceWithRawResponse:
|
|
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 AsyncIntegrationsResourceWithRawResponse(self)
|
|
58
|
+
|
|
59
|
+
@cached_property
|
|
60
|
+
def with_streaming_response(self) -> AsyncIntegrationsResourceWithStreamingResponse:
|
|
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 AsyncIntegrationsResourceWithStreamingResponse(self)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class IntegrationsResourceWithRawResponse:
|
|
70
|
+
def __init__(self, integrations: IntegrationsResource) -> None:
|
|
71
|
+
self._integrations = integrations
|
|
72
|
+
|
|
73
|
+
@cached_property
|
|
74
|
+
def xcures(self) -> XcuresResourceWithRawResponse:
|
|
75
|
+
return XcuresResourceWithRawResponse(self._integrations.xcures)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class AsyncIntegrationsResourceWithRawResponse:
|
|
79
|
+
def __init__(self, integrations: AsyncIntegrationsResource) -> None:
|
|
80
|
+
self._integrations = integrations
|
|
81
|
+
|
|
82
|
+
@cached_property
|
|
83
|
+
def xcures(self) -> AsyncXcuresResourceWithRawResponse:
|
|
84
|
+
return AsyncXcuresResourceWithRawResponse(self._integrations.xcures)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class IntegrationsResourceWithStreamingResponse:
|
|
88
|
+
def __init__(self, integrations: IntegrationsResource) -> None:
|
|
89
|
+
self._integrations = integrations
|
|
90
|
+
|
|
91
|
+
@cached_property
|
|
92
|
+
def xcures(self) -> XcuresResourceWithStreamingResponse:
|
|
93
|
+
return XcuresResourceWithStreamingResponse(self._integrations.xcures)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
class AsyncIntegrationsResourceWithStreamingResponse:
|
|
97
|
+
def __init__(self, integrations: AsyncIntegrationsResource) -> None:
|
|
98
|
+
self._integrations = integrations
|
|
99
|
+
|
|
100
|
+
@cached_property
|
|
101
|
+
def xcures(self) -> AsyncXcuresResourceWithStreamingResponse:
|
|
102
|
+
return AsyncXcuresResourceWithStreamingResponse(self._integrations.xcures)
|