samplehc 0.17.0__py3-none-any.whl → 0.18.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 (150) hide show
  1. samplehc/_client.py +1 -38
  2. samplehc/_version.py +1 -1
  3. samplehc/resources/__init__.py +0 -14
  4. samplehc/resources/v2/__init__.py +0 -98
  5. samplehc/resources/v2/async_results.py +0 -79
  6. samplehc/resources/v2/documents/__init__.py +0 -14
  7. samplehc/resources/v2/documents/documents.py +0 -194
  8. samplehc/resources/v2/v2.py +0 -224
  9. samplehc/types/__init__.py +0 -5
  10. samplehc/types/v2/__init__.py +0 -53
  11. samplehc/types/v2/documents/__init__.py +0 -3
  12. {samplehc-0.17.0.dist-info → samplehc-0.18.0.dist-info}/METADATA +22 -27
  13. samplehc-0.18.0.dist-info/RECORD +92 -0
  14. samplehc/resources/v1/__init__.py +0 -19
  15. samplehc/resources/v1/v1.py +0 -298
  16. samplehc/resources/v2/clearinghouse/__init__.py +0 -47
  17. samplehc/resources/v2/clearinghouse/claim.py +0 -407
  18. samplehc/resources/v2/clearinghouse/clearinghouse.py +0 -844
  19. samplehc/resources/v2/clearinghouse/payers.py +0 -224
  20. samplehc/resources/v2/documents/pdf_template.py +0 -165
  21. samplehc/resources/v2/hie/__init__.py +0 -47
  22. samplehc/resources/v2/hie/adt.py +0 -249
  23. samplehc/resources/v2/hie/documents.py +0 -390
  24. samplehc/resources/v2/hie/hie.py +0 -134
  25. samplehc/resources/v2/integrations/__init__.py +0 -131
  26. samplehc/resources/v2/integrations/bank/__init__.py +0 -33
  27. samplehc/resources/v2/integrations/bank/bank.py +0 -102
  28. samplehc/resources/v2/integrations/bank/transactions.py +0 -185
  29. samplehc/resources/v2/integrations/careviso.py +0 -372
  30. samplehc/resources/v2/integrations/glidian/__init__.py +0 -33
  31. samplehc/resources/v2/integrations/glidian/glidian.py +0 -425
  32. samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +0 -33
  33. samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +0 -276
  34. samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +0 -527
  35. samplehc/resources/v2/integrations/integrations.py +0 -326
  36. samplehc/resources/v2/integrations/kno2/__init__.py +0 -33
  37. samplehc/resources/v2/integrations/kno2/kno2.py +0 -102
  38. samplehc/resources/v2/integrations/kno2/messages.py +0 -260
  39. samplehc/resources/v2/integrations/salesforce.py +0 -277
  40. samplehc/resources/v2/integrations/snowflake.py +0 -173
  41. samplehc/resources/v2/integrations/wellsky/__init__.py +0 -33
  42. samplehc/resources/v2/integrations/wellsky/patients.py +0 -324
  43. samplehc/resources/v2/integrations/wellsky/wellsky.py +0 -102
  44. samplehc/resources/v2/integrations/xcures.py +0 -197
  45. samplehc/resources/v2/policies.py +0 -655
  46. samplehc/resources/v2/tasks/__init__.py +0 -33
  47. samplehc/resources/v2/tasks/state.py +0 -266
  48. samplehc/resources/v2/tasks/tasks.py +0 -754
  49. samplehc/resources/v2/workflow_runs/__init__.py +0 -33
  50. samplehc/resources/v2/workflow_runs/step.py +0 -169
  51. samplehc/resources/v2/workflow_runs/workflow_runs.py +0 -479
  52. samplehc/resources/v2/workflows.py +0 -377
  53. samplehc/types/v1/__init__.py +0 -3
  54. samplehc/types/v1_query_audit_logs_params.py +0 -12
  55. samplehc/types/v1_query_audit_logs_response.py +0 -16
  56. samplehc/types/v1_sql_execute_params.py +0 -27
  57. samplehc/types/v1_sql_execute_response.py +0 -27
  58. samplehc/types/v2/async_result_retrieve_response.py +0 -18
  59. samplehc/types/v2/clearinghouse/__init__.py +0 -9
  60. samplehc/types/v2/clearinghouse/claim_submit_params.py +0 -2693
  61. samplehc/types/v2/clearinghouse/claim_submit_response.py +0 -23
  62. samplehc/types/v2/clearinghouse/payer_list_response.py +0 -27
  63. samplehc/types/v2/clearinghouse/payer_search_params.py +0 -12
  64. samplehc/types/v2/clearinghouse/payer_search_response.py +0 -33
  65. samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +0 -3129
  66. samplehc/types/v2/clearinghouse_check_claim_status_params.py +0 -41
  67. samplehc/types/v2/clearinghouse_check_eligibility_params.py +0 -36
  68. samplehc/types/v2/clearinghouse_check_eligibility_response.py +0 -15
  69. samplehc/types/v2/clearinghouse_coordination_of_benefits_params.py +0 -35
  70. samplehc/types/v2/clearinghouse_run_discovery_params.py +0 -59
  71. samplehc/types/v2/clearinghouse_run_discovery_response.py +0 -13
  72. samplehc/types/v2/document_unzip_async_response.py +0 -12
  73. samplehc/types/v2/document_unzip_response.py +0 -20
  74. samplehc/types/v2/documents/pdf_template_retrieve_metadata_response.py +0 -17
  75. samplehc/types/v2/hie/__init__.py +0 -8
  76. samplehc/types/v2/hie/adt_subscribe_params.py +0 -92
  77. samplehc/types/v2/hie/document_query_params.py +0 -92
  78. samplehc/types/v2/hie/document_query_response.py +0 -16
  79. samplehc/types/v2/hie/document_upload_params.py +0 -54
  80. samplehc/types/v2/integrations/__init__.py +0 -23
  81. samplehc/types/v2/integrations/bank/__init__.py +0 -6
  82. samplehc/types/v2/integrations/bank/transaction_sync_params.py +0 -15
  83. samplehc/types/v2/integrations/bank/transaction_sync_response.py +0 -26
  84. samplehc/types/v2/integrations/careviso_get_payers_response.py +0 -19
  85. samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +0 -90
  86. samplehc/types/v2/integrations/glidian/__init__.py +0 -20
  87. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +0 -32
  88. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +0 -24
  89. samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +0 -13
  90. samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +0 -16
  91. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +0 -20
  92. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +0 -16
  93. samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +0 -7
  94. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +0 -42
  95. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +0 -23
  96. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +0 -19
  97. samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +0 -17
  98. samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +0 -31
  99. samplehc/types/v2/integrations/glidian_list_payers_params.py +0 -11
  100. samplehc/types/v2/integrations/glidian_list_payers_response.py +0 -17
  101. samplehc/types/v2/integrations/glidian_list_services_params.py +0 -13
  102. samplehc/types/v2/integrations/glidian_list_services_response.py +0 -19
  103. samplehc/types/v2/integrations/kno2/__init__.py +0 -6
  104. samplehc/types/v2/integrations/kno2/message_get_attachment_response.py +0 -15
  105. samplehc/types/v2/integrations/kno2/message_retrieve_response.py +0 -13
  106. samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +0 -22
  107. samplehc/types/v2/integrations/salesforce_run_soql_query_params.py +0 -11
  108. samplehc/types/v2/integrations/snowflake_query_params.py +0 -12
  109. samplehc/types/v2/integrations/snowflake_query_response.py +0 -8
  110. samplehc/types/v2/integrations/wellsky/__init__.py +0 -6
  111. samplehc/types/v2/integrations/wellsky/patient_add_params.py +0 -13
  112. samplehc/types/v2/integrations/wellsky/patient_search_params.py +0 -32
  113. samplehc/types/v2/integrations/xcure_make_request_params.py +0 -18
  114. samplehc/types/v2/ledger/__init__.py +0 -3
  115. samplehc/types/v2/policy_list_companies_params.py +0 -18
  116. samplehc/types/v2/policy_list_companies_response.py +0 -24
  117. samplehc/types/v2/policy_list_params.py +0 -47
  118. samplehc/types/v2/policy_list_plans_params.py +0 -18
  119. samplehc/types/v2/policy_list_plans_response.py +0 -30
  120. samplehc/types/v2/policy_list_response.py +0 -67
  121. samplehc/types/v2/policy_retrieve_presigned_url_response.py +0 -17
  122. samplehc/types/v2/policy_retrieve_text_response.py +0 -12
  123. samplehc/types/v2/task_cancel_response.py +0 -12
  124. samplehc/types/v2/task_complete_params.py +0 -12
  125. samplehc/types/v2/task_complete_response.py +0 -16
  126. samplehc/types/v2/task_get_suspended_payload_response.py +0 -8
  127. samplehc/types/v2/task_retrieve_response.py +0 -22
  128. samplehc/types/v2/task_retry_response.py +0 -10
  129. samplehc/types/v2/task_update_column_params.py +0 -19
  130. samplehc/types/v2/task_update_column_response.py +0 -9
  131. samplehc/types/v2/task_update_screen_time_params.py +0 -14
  132. samplehc/types/v2/task_update_screen_time_response.py +0 -8
  133. samplehc/types/v2/tasks/__init__.py +0 -7
  134. samplehc/types/v2/tasks/state_get_response.py +0 -8
  135. samplehc/types/v2/tasks/state_update_params.py +0 -13
  136. samplehc/types/v2/tasks/state_update_response.py +0 -9
  137. samplehc/types/v2/workflow_deploy_response.py +0 -12
  138. samplehc/types/v2/workflow_query_params.py +0 -12
  139. samplehc/types/v2/workflow_query_response.py +0 -8
  140. samplehc/types/v2/workflow_run_get_start_data_response.py +0 -14
  141. samplehc/types/v2/workflow_run_resume_when_complete_params.py +0 -14
  142. samplehc/types/v2/workflow_run_resume_when_complete_response.py +0 -12
  143. samplehc/types/v2/workflow_run_retrieve_response.py +0 -16
  144. samplehc/types/v2/workflow_runs/__init__.py +0 -5
  145. samplehc/types/v2/workflow_runs/step_get_output_response.py +0 -14
  146. samplehc/types/v2/workflow_start_params.py +0 -25
  147. samplehc/types/v2/workflow_start_response.py +0 -25
  148. samplehc-0.17.0.dist-info/RECORD +0 -226
  149. {samplehc-0.17.0.dist-info → samplehc-0.18.0.dist-info}/WHEEL +0 -0
  150. {samplehc-0.17.0.dist-info → samplehc-0.18.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,102 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- from ....._compat import cached_property
6
- from .transactions import (
7
- TransactionsResource,
8
- AsyncTransactionsResource,
9
- TransactionsResourceWithRawResponse,
10
- AsyncTransactionsResourceWithRawResponse,
11
- TransactionsResourceWithStreamingResponse,
12
- AsyncTransactionsResourceWithStreamingResponse,
13
- )
14
- from ....._resource import SyncAPIResource, AsyncAPIResource
15
-
16
- __all__ = ["BankResource", "AsyncBankResource"]
17
-
18
-
19
- class BankResource(SyncAPIResource):
20
- @cached_property
21
- def transactions(self) -> TransactionsResource:
22
- return TransactionsResource(self._client)
23
-
24
- @cached_property
25
- def with_raw_response(self) -> BankResourceWithRawResponse:
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 BankResourceWithRawResponse(self)
33
-
34
- @cached_property
35
- def with_streaming_response(self) -> BankResourceWithStreamingResponse:
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 BankResourceWithStreamingResponse(self)
42
-
43
-
44
- class AsyncBankResource(AsyncAPIResource):
45
- @cached_property
46
- def transactions(self) -> AsyncTransactionsResource:
47
- return AsyncTransactionsResource(self._client)
48
-
49
- @cached_property
50
- def with_raw_response(self) -> AsyncBankResourceWithRawResponse:
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 AsyncBankResourceWithRawResponse(self)
58
-
59
- @cached_property
60
- def with_streaming_response(self) -> AsyncBankResourceWithStreamingResponse:
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 AsyncBankResourceWithStreamingResponse(self)
67
-
68
-
69
- class BankResourceWithRawResponse:
70
- def __init__(self, bank: BankResource) -> None:
71
- self._bank = bank
72
-
73
- @cached_property
74
- def transactions(self) -> TransactionsResourceWithRawResponse:
75
- return TransactionsResourceWithRawResponse(self._bank.transactions)
76
-
77
-
78
- class AsyncBankResourceWithRawResponse:
79
- def __init__(self, bank: AsyncBankResource) -> None:
80
- self._bank = bank
81
-
82
- @cached_property
83
- def transactions(self) -> AsyncTransactionsResourceWithRawResponse:
84
- return AsyncTransactionsResourceWithRawResponse(self._bank.transactions)
85
-
86
-
87
- class BankResourceWithStreamingResponse:
88
- def __init__(self, bank: BankResource) -> None:
89
- self._bank = bank
90
-
91
- @cached_property
92
- def transactions(self) -> TransactionsResourceWithStreamingResponse:
93
- return TransactionsResourceWithStreamingResponse(self._bank.transactions)
94
-
95
-
96
- class AsyncBankResourceWithStreamingResponse:
97
- def __init__(self, bank: AsyncBankResource) -> None:
98
- self._bank = bank
99
-
100
- @cached_property
101
- def transactions(self) -> AsyncTransactionsResourceWithStreamingResponse:
102
- return AsyncTransactionsResourceWithStreamingResponse(self._bank.transactions)
@@ -1,185 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- import httpx
6
-
7
- from ....._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
8
- from ....._utils import maybe_transform, async_maybe_transform
9
- from ....._compat import cached_property
10
- from ....._resource import SyncAPIResource, AsyncAPIResource
11
- from ....._response import (
12
- to_raw_response_wrapper,
13
- to_streamed_response_wrapper,
14
- async_to_raw_response_wrapper,
15
- async_to_streamed_response_wrapper,
16
- )
17
- from ....._base_client import make_request_options
18
- from .....types.v2.integrations.bank import transaction_sync_params
19
- from .....types.v2.integrations.bank.transaction_sync_response import TransactionSyncResponse
20
-
21
- __all__ = ["TransactionsResource", "AsyncTransactionsResource"]
22
-
23
-
24
- class TransactionsResource(SyncAPIResource):
25
- @cached_property
26
- def with_raw_response(self) -> TransactionsResourceWithRawResponse:
27
- """
28
- This property can be used as a prefix for any HTTP method call to return
29
- the raw response object instead of the parsed content.
30
-
31
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
32
- """
33
- return TransactionsResourceWithRawResponse(self)
34
-
35
- @cached_property
36
- def with_streaming_response(self) -> TransactionsResourceWithStreamingResponse:
37
- """
38
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
39
-
40
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
41
- """
42
- return TransactionsResourceWithStreamingResponse(self)
43
-
44
- def sync(
45
- self,
46
- *,
47
- slug: str,
48
- cursor: str | Omit = omit,
49
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
50
- # The extra values given here take precedence over values defined on the client or passed to this method.
51
- extra_headers: Headers | None = None,
52
- extra_query: Query | None = None,
53
- extra_body: Body | None = None,
54
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
55
- ) -> TransactionSyncResponse:
56
- """
57
- Sync bank transactions
58
-
59
- Args:
60
- slug: The slug of the bank connection.
61
-
62
- cursor: Cursor for pagination of transactions.
63
-
64
- extra_headers: Send extra headers
65
-
66
- extra_query: Add additional query parameters to the request
67
-
68
- extra_body: Add additional JSON properties to the request
69
-
70
- timeout: Override the client-level default timeout for this request, in seconds
71
- """
72
- return self._post(
73
- "/api/v2/integrations/bank/transactions/sync",
74
- body=maybe_transform(
75
- {
76
- "slug": slug,
77
- "cursor": cursor,
78
- },
79
- transaction_sync_params.TransactionSyncParams,
80
- ),
81
- options=make_request_options(
82
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
83
- ),
84
- cast_to=TransactionSyncResponse,
85
- )
86
-
87
-
88
- class AsyncTransactionsResource(AsyncAPIResource):
89
- @cached_property
90
- def with_raw_response(self) -> AsyncTransactionsResourceWithRawResponse:
91
- """
92
- This property can be used as a prefix for any HTTP method call to return
93
- the raw response object instead of the parsed content.
94
-
95
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
96
- """
97
- return AsyncTransactionsResourceWithRawResponse(self)
98
-
99
- @cached_property
100
- def with_streaming_response(self) -> AsyncTransactionsResourceWithStreamingResponse:
101
- """
102
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
103
-
104
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
105
- """
106
- return AsyncTransactionsResourceWithStreamingResponse(self)
107
-
108
- async def sync(
109
- self,
110
- *,
111
- slug: str,
112
- cursor: str | Omit = omit,
113
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
114
- # The extra values given here take precedence over values defined on the client or passed to this method.
115
- extra_headers: Headers | None = None,
116
- extra_query: Query | None = None,
117
- extra_body: Body | None = None,
118
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
119
- ) -> TransactionSyncResponse:
120
- """
121
- Sync bank transactions
122
-
123
- Args:
124
- slug: The slug of the bank connection.
125
-
126
- cursor: Cursor for pagination of transactions.
127
-
128
- extra_headers: Send extra headers
129
-
130
- extra_query: Add additional query parameters to the request
131
-
132
- extra_body: Add additional JSON properties to the request
133
-
134
- timeout: Override the client-level default timeout for this request, in seconds
135
- """
136
- return await self._post(
137
- "/api/v2/integrations/bank/transactions/sync",
138
- body=await async_maybe_transform(
139
- {
140
- "slug": slug,
141
- "cursor": cursor,
142
- },
143
- transaction_sync_params.TransactionSyncParams,
144
- ),
145
- options=make_request_options(
146
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
147
- ),
148
- cast_to=TransactionSyncResponse,
149
- )
150
-
151
-
152
- class TransactionsResourceWithRawResponse:
153
- def __init__(self, transactions: TransactionsResource) -> None:
154
- self._transactions = transactions
155
-
156
- self.sync = to_raw_response_wrapper(
157
- transactions.sync,
158
- )
159
-
160
-
161
- class AsyncTransactionsResourceWithRawResponse:
162
- def __init__(self, transactions: AsyncTransactionsResource) -> None:
163
- self._transactions = transactions
164
-
165
- self.sync = async_to_raw_response_wrapper(
166
- transactions.sync,
167
- )
168
-
169
-
170
- class TransactionsResourceWithStreamingResponse:
171
- def __init__(self, transactions: TransactionsResource) -> None:
172
- self._transactions = transactions
173
-
174
- self.sync = to_streamed_response_wrapper(
175
- transactions.sync,
176
- )
177
-
178
-
179
- class AsyncTransactionsResourceWithStreamingResponse:
180
- def __init__(self, transactions: AsyncTransactionsResource) -> None:
181
- self._transactions = transactions
182
-
183
- self.sync = async_to_streamed_response_wrapper(
184
- transactions.sync,
185
- )
@@ -1,372 +0,0 @@
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 Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
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.integrations import careviso_submit_prior_authorization_params
22
- from ....types.v2.integrations.careviso_get_payers_response import CarevisoGetPayersResponse
23
-
24
- __all__ = ["CarevisoResource", "AsyncCarevisoResource"]
25
-
26
-
27
- class CarevisoResource(SyncAPIResource):
28
- @cached_property
29
- def with_raw_response(self) -> CarevisoResourceWithRawResponse:
30
- """
31
- This property can be used as a prefix for any HTTP method call to return
32
- the raw response object instead of the parsed content.
33
-
34
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
35
- """
36
- return CarevisoResourceWithRawResponse(self)
37
-
38
- @cached_property
39
- def with_streaming_response(self) -> CarevisoResourceWithStreamingResponse:
40
- """
41
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
42
-
43
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
44
- """
45
- return CarevisoResourceWithStreamingResponse(self)
46
-
47
- def get_payers(
48
- self,
49
- *,
50
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
51
- # The extra values given here take precedence over values defined on the client or passed to this method.
52
- extra_headers: Headers | None = None,
53
- extra_query: Query | None = None,
54
- extra_body: Body | None = None,
55
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
56
- ) -> CarevisoGetPayersResponse:
57
- """Get a list of Careviso payers."""
58
- return self._get(
59
- "/api/v2/integrations/careviso/payers",
60
- options=make_request_options(
61
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
62
- ),
63
- cast_to=CarevisoGetPayersResponse,
64
- )
65
-
66
- def submit_prior_authorization(
67
- self,
68
- slug: str,
69
- *,
70
- attachments: Iterable[careviso_submit_prior_authorization_params.Attachment],
71
- case_type: Literal["prior_auth_request", "benefits_investigation"],
72
- cpt_codes: SequenceNotStr[str],
73
- group_id: str,
74
- icd10_codes: SequenceNotStr[str],
75
- insurance_name: str,
76
- lab_order_id: str,
77
- member_id: str,
78
- patient_dob: str,
79
- patient_first_name: str,
80
- patient_id: str,
81
- patient_last_name: str,
82
- patient_phone: str,
83
- provider_fax: str,
84
- provider_first_name: str,
85
- provider_id: str,
86
- provider_last_name: str,
87
- provider_npi: str,
88
- provider_phone: str,
89
- service_date: str,
90
- test_names: SequenceNotStr[str],
91
- accession_date: str | Omit = omit,
92
- collection_date: str | Omit = omit,
93
- collection_type: str | Omit = omit,
94
- insurance_id: str | Omit = omit,
95
- patient_city: str | Omit = omit,
96
- patient_gender: Literal["M", "F", "Non-binary", "Non-specified"] | Omit = omit,
97
- patient_state: str | Omit = omit,
98
- patient_street: str | Omit = omit,
99
- patient_street2: str | Omit = omit,
100
- patient_zip: str | Omit = omit,
101
- test_identifiers: SequenceNotStr[str] | Omit = omit,
102
- test_type: str | Omit = omit,
103
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
104
- # The extra values given here take precedence over values defined on the client or passed to this method.
105
- extra_headers: Headers | None = None,
106
- extra_query: Query | None = None,
107
- extra_body: Body | None = None,
108
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
109
- ) -> object:
110
- """
111
- Submit a prior authorization request to Careviso.
112
-
113
- Args:
114
- service_date: The date of service for the test. Should be in the format YYYY-MM-DD.
115
-
116
- collection_date: The date of collection for the test. Should be in the format YYYY-MM-DD.
117
-
118
- collection_type: The type of collection for the test
119
-
120
- extra_headers: Send extra headers
121
-
122
- extra_query: Add additional query parameters to the request
123
-
124
- extra_body: Add additional JSON properties to the request
125
-
126
- timeout: Override the client-level default timeout for this request, in seconds
127
- """
128
- if not slug:
129
- raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
130
- return self._post(
131
- f"/api/v2/integrations/careviso/{slug}/prior-authorizations",
132
- body=maybe_transform(
133
- {
134
- "attachments": attachments,
135
- "case_type": case_type,
136
- "cpt_codes": cpt_codes,
137
- "group_id": group_id,
138
- "icd10_codes": icd10_codes,
139
- "insurance_name": insurance_name,
140
- "lab_order_id": lab_order_id,
141
- "member_id": member_id,
142
- "patient_dob": patient_dob,
143
- "patient_first_name": patient_first_name,
144
- "patient_id": patient_id,
145
- "patient_last_name": patient_last_name,
146
- "patient_phone": patient_phone,
147
- "provider_fax": provider_fax,
148
- "provider_first_name": provider_first_name,
149
- "provider_id": provider_id,
150
- "provider_last_name": provider_last_name,
151
- "provider_npi": provider_npi,
152
- "provider_phone": provider_phone,
153
- "service_date": service_date,
154
- "test_names": test_names,
155
- "accession_date": accession_date,
156
- "collection_date": collection_date,
157
- "collection_type": collection_type,
158
- "insurance_id": insurance_id,
159
- "patient_city": patient_city,
160
- "patient_gender": patient_gender,
161
- "patient_state": patient_state,
162
- "patient_street": patient_street,
163
- "patient_street2": patient_street2,
164
- "patient_zip": patient_zip,
165
- "test_identifiers": test_identifiers,
166
- "test_type": test_type,
167
- },
168
- careviso_submit_prior_authorization_params.CarevisoSubmitPriorAuthorizationParams,
169
- ),
170
- options=make_request_options(
171
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
172
- ),
173
- cast_to=object,
174
- )
175
-
176
-
177
- class AsyncCarevisoResource(AsyncAPIResource):
178
- @cached_property
179
- def with_raw_response(self) -> AsyncCarevisoResourceWithRawResponse:
180
- """
181
- This property can be used as a prefix for any HTTP method call to return
182
- the raw response object instead of the parsed content.
183
-
184
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
185
- """
186
- return AsyncCarevisoResourceWithRawResponse(self)
187
-
188
- @cached_property
189
- def with_streaming_response(self) -> AsyncCarevisoResourceWithStreamingResponse:
190
- """
191
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
192
-
193
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
194
- """
195
- return AsyncCarevisoResourceWithStreamingResponse(self)
196
-
197
- async def get_payers(
198
- self,
199
- *,
200
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
201
- # The extra values given here take precedence over values defined on the client or passed to this method.
202
- extra_headers: Headers | None = None,
203
- extra_query: Query | None = None,
204
- extra_body: Body | None = None,
205
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
206
- ) -> CarevisoGetPayersResponse:
207
- """Get a list of Careviso payers."""
208
- return await self._get(
209
- "/api/v2/integrations/careviso/payers",
210
- options=make_request_options(
211
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
212
- ),
213
- cast_to=CarevisoGetPayersResponse,
214
- )
215
-
216
- async def submit_prior_authorization(
217
- self,
218
- slug: str,
219
- *,
220
- attachments: Iterable[careviso_submit_prior_authorization_params.Attachment],
221
- case_type: Literal["prior_auth_request", "benefits_investigation"],
222
- cpt_codes: SequenceNotStr[str],
223
- group_id: str,
224
- icd10_codes: SequenceNotStr[str],
225
- insurance_name: str,
226
- lab_order_id: str,
227
- member_id: str,
228
- patient_dob: str,
229
- patient_first_name: str,
230
- patient_id: str,
231
- patient_last_name: str,
232
- patient_phone: str,
233
- provider_fax: str,
234
- provider_first_name: str,
235
- provider_id: str,
236
- provider_last_name: str,
237
- provider_npi: str,
238
- provider_phone: str,
239
- service_date: str,
240
- test_names: SequenceNotStr[str],
241
- accession_date: str | Omit = omit,
242
- collection_date: str | Omit = omit,
243
- collection_type: str | Omit = omit,
244
- insurance_id: str | Omit = omit,
245
- patient_city: str | Omit = omit,
246
- patient_gender: Literal["M", "F", "Non-binary", "Non-specified"] | Omit = omit,
247
- patient_state: str | Omit = omit,
248
- patient_street: str | Omit = omit,
249
- patient_street2: str | Omit = omit,
250
- patient_zip: str | Omit = omit,
251
- test_identifiers: SequenceNotStr[str] | Omit = omit,
252
- test_type: str | Omit = omit,
253
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
254
- # The extra values given here take precedence over values defined on the client or passed to this method.
255
- extra_headers: Headers | None = None,
256
- extra_query: Query | None = None,
257
- extra_body: Body | None = None,
258
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
259
- ) -> object:
260
- """
261
- Submit a prior authorization request to Careviso.
262
-
263
- Args:
264
- service_date: The date of service for the test. Should be in the format YYYY-MM-DD.
265
-
266
- collection_date: The date of collection for the test. Should be in the format YYYY-MM-DD.
267
-
268
- collection_type: The type of collection for the test
269
-
270
- extra_headers: Send extra headers
271
-
272
- extra_query: Add additional query parameters to the request
273
-
274
- extra_body: Add additional JSON properties to the request
275
-
276
- timeout: Override the client-level default timeout for this request, in seconds
277
- """
278
- if not slug:
279
- raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
280
- return await self._post(
281
- f"/api/v2/integrations/careviso/{slug}/prior-authorizations",
282
- body=await async_maybe_transform(
283
- {
284
- "attachments": attachments,
285
- "case_type": case_type,
286
- "cpt_codes": cpt_codes,
287
- "group_id": group_id,
288
- "icd10_codes": icd10_codes,
289
- "insurance_name": insurance_name,
290
- "lab_order_id": lab_order_id,
291
- "member_id": member_id,
292
- "patient_dob": patient_dob,
293
- "patient_first_name": patient_first_name,
294
- "patient_id": patient_id,
295
- "patient_last_name": patient_last_name,
296
- "patient_phone": patient_phone,
297
- "provider_fax": provider_fax,
298
- "provider_first_name": provider_first_name,
299
- "provider_id": provider_id,
300
- "provider_last_name": provider_last_name,
301
- "provider_npi": provider_npi,
302
- "provider_phone": provider_phone,
303
- "service_date": service_date,
304
- "test_names": test_names,
305
- "accession_date": accession_date,
306
- "collection_date": collection_date,
307
- "collection_type": collection_type,
308
- "insurance_id": insurance_id,
309
- "patient_city": patient_city,
310
- "patient_gender": patient_gender,
311
- "patient_state": patient_state,
312
- "patient_street": patient_street,
313
- "patient_street2": patient_street2,
314
- "patient_zip": patient_zip,
315
- "test_identifiers": test_identifiers,
316
- "test_type": test_type,
317
- },
318
- careviso_submit_prior_authorization_params.CarevisoSubmitPriorAuthorizationParams,
319
- ),
320
- options=make_request_options(
321
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
322
- ),
323
- cast_to=object,
324
- )
325
-
326
-
327
- class CarevisoResourceWithRawResponse:
328
- def __init__(self, careviso: CarevisoResource) -> None:
329
- self._careviso = careviso
330
-
331
- self.get_payers = to_raw_response_wrapper(
332
- careviso.get_payers,
333
- )
334
- self.submit_prior_authorization = to_raw_response_wrapper(
335
- careviso.submit_prior_authorization,
336
- )
337
-
338
-
339
- class AsyncCarevisoResourceWithRawResponse:
340
- def __init__(self, careviso: AsyncCarevisoResource) -> None:
341
- self._careviso = careviso
342
-
343
- self.get_payers = async_to_raw_response_wrapper(
344
- careviso.get_payers,
345
- )
346
- self.submit_prior_authorization = async_to_raw_response_wrapper(
347
- careviso.submit_prior_authorization,
348
- )
349
-
350
-
351
- class CarevisoResourceWithStreamingResponse:
352
- def __init__(self, careviso: CarevisoResource) -> None:
353
- self._careviso = careviso
354
-
355
- self.get_payers = to_streamed_response_wrapper(
356
- careviso.get_payers,
357
- )
358
- self.submit_prior_authorization = to_streamed_response_wrapper(
359
- careviso.submit_prior_authorization,
360
- )
361
-
362
-
363
- class AsyncCarevisoResourceWithStreamingResponse:
364
- def __init__(self, careviso: AsyncCarevisoResource) -> None:
365
- self._careviso = careviso
366
-
367
- self.get_payers = async_to_streamed_response_wrapper(
368
- careviso.get_payers,
369
- )
370
- self.submit_prior_authorization = async_to_streamed_response_wrapper(
371
- careviso.submit_prior_authorization,
372
- )
@@ -1,33 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from .glidian import (
4
- GlidianResource,
5
- AsyncGlidianResource,
6
- GlidianResourceWithRawResponse,
7
- AsyncGlidianResourceWithRawResponse,
8
- GlidianResourceWithStreamingResponse,
9
- AsyncGlidianResourceWithStreamingResponse,
10
- )
11
- from .prior_authorizations import (
12
- PriorAuthorizationsResource,
13
- AsyncPriorAuthorizationsResource,
14
- PriorAuthorizationsResourceWithRawResponse,
15
- AsyncPriorAuthorizationsResourceWithRawResponse,
16
- PriorAuthorizationsResourceWithStreamingResponse,
17
- AsyncPriorAuthorizationsResourceWithStreamingResponse,
18
- )
19
-
20
- __all__ = [
21
- "PriorAuthorizationsResource",
22
- "AsyncPriorAuthorizationsResource",
23
- "PriorAuthorizationsResourceWithRawResponse",
24
- "AsyncPriorAuthorizationsResourceWithRawResponse",
25
- "PriorAuthorizationsResourceWithStreamingResponse",
26
- "AsyncPriorAuthorizationsResourceWithStreamingResponse",
27
- "GlidianResource",
28
- "AsyncGlidianResource",
29
- "GlidianResourceWithRawResponse",
30
- "AsyncGlidianResourceWithRawResponse",
31
- "GlidianResourceWithStreamingResponse",
32
- "AsyncGlidianResourceWithStreamingResponse",
33
- ]