samplehc 0.5.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.
Files changed (55) hide show
  1. samplehc/_version.py +1 -1
  2. samplehc/resources/v2/__init__.py +14 -0
  3. samplehc/resources/v2/browser_agents.py +177 -0
  4. samplehc/resources/v2/clearinghouse/claim.py +20 -36
  5. samplehc/resources/v2/communication.py +8 -0
  6. samplehc/resources/v2/database.py +19 -9
  7. samplehc/resources/v2/events/__init__.py +33 -0
  8. samplehc/resources/v2/{events.py → events/events.py} +42 -10
  9. samplehc/resources/v2/events/hie/__init__.py +33 -0
  10. samplehc/resources/v2/events/hie/adt.py +249 -0
  11. samplehc/resources/v2/events/hie/hie.py +102 -0
  12. samplehc/resources/v2/integrations/__init__.py +14 -0
  13. samplehc/resources/v2/integrations/glidian/__init__.py +33 -0
  14. samplehc/resources/v2/integrations/glidian/glidian.py +425 -0
  15. samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +33 -0
  16. samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +276 -0
  17. samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +527 -0
  18. samplehc/resources/v2/integrations/integrations.py +32 -0
  19. samplehc/resources/v2/ledger/ledger.py +152 -0
  20. samplehc/resources/v2/v2.py +40 -8
  21. samplehc/types/v2/__init__.py +8 -0
  22. samplehc/types/v2/browser_agent_invoke_params.py +13 -0
  23. samplehc/types/v2/browser_agent_invoke_response.py +12 -0
  24. samplehc/types/v2/clearinghouse/claim_submit_params.py +1214 -884
  25. samplehc/types/v2/clearinghouse/claim_submit_response.py +10 -1
  26. samplehc/types/v2/communication_send_email_params.py +3 -0
  27. samplehc/types/v2/database_execute_sql_params.py +5 -3
  28. samplehc/types/v2/event_emit_params.py +1 -1
  29. samplehc/types/v2/events/__init__.py +3 -0
  30. samplehc/types/v2/events/hie/__init__.py +5 -0
  31. samplehc/types/v2/events/hie/adt_subscribe_params.py +92 -0
  32. samplehc/types/v2/integrations/__init__.py +10 -0
  33. samplehc/types/v2/integrations/glidian/__init__.py +20 -0
  34. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +32 -0
  35. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +22 -0
  36. samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +11 -0
  37. samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +14 -0
  38. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +20 -0
  39. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +14 -0
  40. samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +7 -0
  41. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +40 -0
  42. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +22 -0
  43. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +17 -0
  44. samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +17 -0
  45. samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +31 -0
  46. samplehc/types/v2/integrations/glidian_list_payers_params.py +11 -0
  47. samplehc/types/v2/integrations/glidian_list_payers_response.py +17 -0
  48. samplehc/types/v2/integrations/glidian_list_services_params.py +13 -0
  49. samplehc/types/v2/integrations/glidian_list_services_response.py +19 -0
  50. samplehc/types/v2/ledger_post_remittance_accepted_params.py +37 -0
  51. samplehc/types/v2/ledger_post_remittance_accepted_response.py +12 -0
  52. {samplehc-0.5.0.dist-info → samplehc-0.7.0.dist-info}/METADATA +1 -1
  53. {samplehc-0.5.0.dist-info → samplehc-0.7.0.dist-info}/RECORD +55 -21
  54. {samplehc-0.5.0.dist-info → samplehc-0.7.0.dist-info}/WHEEL +0 -0
  55. {samplehc-0.5.0.dist-info → samplehc-0.7.0.dist-info}/licenses/LICENSE +0 -0
@@ -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
  )
@@ -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,
@@ -76,6 +76,14 @@ from .ledger.ledger import (
76
76
  LedgerResourceWithStreamingResponse,
77
77
  AsyncLedgerResourceWithStreamingResponse,
78
78
  )
79
+ from .browser_agents import (
80
+ BrowserAgentsResource,
81
+ AsyncBrowserAgentsResource,
82
+ BrowserAgentsResourceWithRawResponse,
83
+ AsyncBrowserAgentsResourceWithRawResponse,
84
+ BrowserAgentsResourceWithStreamingResponse,
85
+ AsyncBrowserAgentsResourceWithStreamingResponse,
86
+ )
79
87
  from .documents.documents import (
80
88
  DocumentsResource,
81
89
  AsyncDocumentsResource,
@@ -161,6 +169,10 @@ class V2Resource(SyncAPIResource):
161
169
  def events(self) -> EventsResource:
162
170
  return EventsResource(self._client)
163
171
 
172
+ @cached_property
173
+ def browser_agents(self) -> BrowserAgentsResource:
174
+ return BrowserAgentsResource(self._client)
175
+
164
176
  @cached_property
165
177
  def policies(self) -> PoliciesResource:
166
178
  return PoliciesResource(self._client)
@@ -238,6 +250,10 @@ class AsyncV2Resource(AsyncAPIResource):
238
250
  def events(self) -> AsyncEventsResource:
239
251
  return AsyncEventsResource(self._client)
240
252
 
253
+ @cached_property
254
+ def browser_agents(self) -> AsyncBrowserAgentsResource:
255
+ return AsyncBrowserAgentsResource(self._client)
256
+
241
257
  @cached_property
242
258
  def policies(self) -> AsyncPoliciesResource:
243
259
  return AsyncPoliciesResource(self._client)
@@ -318,6 +334,10 @@ class V2ResourceWithRawResponse:
318
334
  def events(self) -> EventsResourceWithRawResponse:
319
335
  return EventsResourceWithRawResponse(self._v2.events)
320
336
 
337
+ @cached_property
338
+ def browser_agents(self) -> BrowserAgentsResourceWithRawResponse:
339
+ return BrowserAgentsResourceWithRawResponse(self._v2.browser_agents)
340
+
321
341
  @cached_property
322
342
  def policies(self) -> PoliciesResourceWithRawResponse:
323
343
  return PoliciesResourceWithRawResponse(self._v2.policies)
@@ -379,6 +399,10 @@ class AsyncV2ResourceWithRawResponse:
379
399
  def events(self) -> AsyncEventsResourceWithRawResponse:
380
400
  return AsyncEventsResourceWithRawResponse(self._v2.events)
381
401
 
402
+ @cached_property
403
+ def browser_agents(self) -> AsyncBrowserAgentsResourceWithRawResponse:
404
+ return AsyncBrowserAgentsResourceWithRawResponse(self._v2.browser_agents)
405
+
382
406
  @cached_property
383
407
  def policies(self) -> AsyncPoliciesResourceWithRawResponse:
384
408
  return AsyncPoliciesResourceWithRawResponse(self._v2.policies)
@@ -440,6 +464,10 @@ class V2ResourceWithStreamingResponse:
440
464
  def events(self) -> EventsResourceWithStreamingResponse:
441
465
  return EventsResourceWithStreamingResponse(self._v2.events)
442
466
 
467
+ @cached_property
468
+ def browser_agents(self) -> BrowserAgentsResourceWithStreamingResponse:
469
+ return BrowserAgentsResourceWithStreamingResponse(self._v2.browser_agents)
470
+
443
471
  @cached_property
444
472
  def policies(self) -> PoliciesResourceWithStreamingResponse:
445
473
  return PoliciesResourceWithStreamingResponse(self._v2.policies)
@@ -501,6 +529,10 @@ class AsyncV2ResourceWithStreamingResponse:
501
529
  def events(self) -> AsyncEventsResourceWithStreamingResponse:
502
530
  return AsyncEventsResourceWithStreamingResponse(self._v2.events)
503
531
 
532
+ @cached_property
533
+ def browser_agents(self) -> AsyncBrowserAgentsResourceWithStreamingResponse:
534
+ return AsyncBrowserAgentsResourceWithStreamingResponse(self._v2.browser_agents)
535
+
504
536
  @cached_property
505
537
  def policies(self) -> AsyncPoliciesResourceWithStreamingResponse:
506
538
  return AsyncPoliciesResourceWithStreamingResponse(self._v2.policies)
@@ -34,6 +34,7 @@ from .document_classify_response import DocumentClassifyResponse as DocumentClas
34
34
  from .document_retrieve_response import DocumentRetrieveResponse as DocumentRetrieveResponse
35
35
  from .policy_list_plans_response import PolicyListPlansResponse as PolicyListPlansResponse
36
36
  from .async_result_sleep_response import AsyncResultSleepResponse as AsyncResultSleepResponse
37
+ from .browser_agent_invoke_params import BrowserAgentInvokeParams as BrowserAgentInvokeParams
37
38
  from .database_execute_sql_params import DatabaseExecuteSqlParams as DatabaseExecuteSqlParams
38
39
  from .ledger_claim_payment_params import LedgerClaimPaymentParams as LedgerClaimPaymentParams
39
40
  from .ledger_reverse_entry_params import LedgerReverseEntryParams as LedgerReverseEntryParams
@@ -41,6 +42,7 @@ from .document_generate_csv_params import DocumentGenerateCsvParams as DocumentG
41
42
  from .ledger_assign_invoice_params import LedgerAssignInvoiceParams as LedgerAssignInvoiceParams
42
43
  from .ledger_order_writeoff_params import LedgerOrderWriteoffParams as LedgerOrderWriteoffParams
43
44
  from .policy_list_companies_params import PolicyListCompaniesParams as PolicyListCompaniesParams
45
+ from .browser_agent_invoke_response import BrowserAgentInvokeResponse as BrowserAgentInvokeResponse
44
46
  from .communication_send_fax_params import CommunicationSendFaxParams as CommunicationSendFaxParams
45
47
  from .database_execute_sql_response import DatabaseExecuteSqlResponse as DatabaseExecuteSqlResponse
46
48
  from .ledger_claim_payment_response import LedgerClaimPaymentResponse as LedgerClaimPaymentResponse
@@ -90,6 +92,9 @@ from .document_transform_json_to_html_params import (
90
92
  from .ledger_institution_adjustment_response import (
91
93
  LedgerInstitutionAdjustmentResponse as LedgerInstitutionAdjustmentResponse,
92
94
  )
95
+ from .ledger_post_remittance_accepted_params import (
96
+ LedgerPostRemittanceAcceptedParams as LedgerPostRemittanceAcceptedParams,
97
+ )
93
98
  from .policy_retrieve_presigned_url_response import (
94
99
  PolicyRetrievePresignedURLResponse as PolicyRetrievePresignedURLResponse,
95
100
  )
@@ -99,6 +104,9 @@ from .clearinghouse_check_eligibility_response import (
99
104
  from .document_transform_json_to_html_response import (
100
105
  DocumentTransformJsonToHTMLResponse as DocumentTransformJsonToHTMLResponse,
101
106
  )
107
+ from .ledger_post_remittance_accepted_response import (
108
+ LedgerPostRemittanceAcceptedResponse as LedgerPostRemittanceAcceptedResponse,
109
+ )
102
110
  from .workflow_run_resume_when_complete_params import (
103
111
  WorkflowRunResumeWhenCompleteParams as WorkflowRunResumeWhenCompleteParams,
104
112
  )
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+ from typing_extensions import TypedDict
7
+
8
+ __all__ = ["BrowserAgentInvokeParams"]
9
+
10
+
11
+ class BrowserAgentInvokeParams(TypedDict, total=False):
12
+ variables: Dict[str, object]
13
+ """Variables to pass to the browser agent"""
@@ -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__ = ["BrowserAgentInvokeResponse"]
8
+
9
+
10
+ class BrowserAgentInvokeResponse(BaseModel):
11
+ async_result_id: str = FieldInfo(alias="asyncResultId")
12
+ """ID to track the browser agent invocation status"""