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,224 +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, Query, Headers, NotGiven, 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.clearinghouse import payer_search_params
19
- from ....types.v2.clearinghouse.payer_list_response import PayerListResponse
20
- from ....types.v2.clearinghouse.payer_search_response import PayerSearchResponse
21
-
22
- __all__ = ["PayersResource", "AsyncPayersResource"]
23
-
24
-
25
- class PayersResource(SyncAPIResource):
26
- @cached_property
27
- def with_raw_response(self) -> PayersResourceWithRawResponse:
28
- """
29
- This property can be used as a prefix for any HTTP method call to return
30
- the raw response object instead of the parsed content.
31
-
32
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
33
- """
34
- return PayersResourceWithRawResponse(self)
35
-
36
- @cached_property
37
- def with_streaming_response(self) -> PayersResourceWithStreamingResponse:
38
- """
39
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
40
-
41
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
42
- """
43
- return PayersResourceWithStreamingResponse(self)
44
-
45
- def list(
46
- self,
47
- *,
48
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
49
- # The extra values given here take precedence over values defined on the client or passed to this method.
50
- extra_headers: Headers | None = None,
51
- extra_query: Query | None = None,
52
- extra_body: Body | None = None,
53
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
54
- ) -> PayerListResponse:
55
- """Lists all payers available for eligibility checks."""
56
- return self._get(
57
- "/api/v2/clearinghouse/payers",
58
- options=make_request_options(
59
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
60
- ),
61
- cast_to=PayerListResponse,
62
- )
63
-
64
- def search(
65
- self,
66
- *,
67
- query: str,
68
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
69
- # The extra values given here take precedence over values defined on the client or passed to this method.
70
- extra_headers: Headers | None = None,
71
- extra_query: Query | None = None,
72
- extra_body: Body | None = None,
73
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
74
- ) -> PayerSearchResponse:
75
- """
76
- Searches for payers based on the provided search criteria.
77
-
78
- Args:
79
- query: The search query (e.g. name, ID, etc.) for the payer.
80
-
81
- extra_headers: Send extra headers
82
-
83
- extra_query: Add additional query parameters to the request
84
-
85
- extra_body: Add additional JSON properties to the request
86
-
87
- timeout: Override the client-level default timeout for this request, in seconds
88
- """
89
- return self._get(
90
- "/api/v2/clearinghouse/payers/search",
91
- options=make_request_options(
92
- extra_headers=extra_headers,
93
- extra_query=extra_query,
94
- extra_body=extra_body,
95
- timeout=timeout,
96
- query=maybe_transform({"query": query}, payer_search_params.PayerSearchParams),
97
- ),
98
- cast_to=PayerSearchResponse,
99
- )
100
-
101
-
102
- class AsyncPayersResource(AsyncAPIResource):
103
- @cached_property
104
- def with_raw_response(self) -> AsyncPayersResourceWithRawResponse:
105
- """
106
- This property can be used as a prefix for any HTTP method call to return
107
- the raw response object instead of the parsed content.
108
-
109
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
110
- """
111
- return AsyncPayersResourceWithRawResponse(self)
112
-
113
- @cached_property
114
- def with_streaming_response(self) -> AsyncPayersResourceWithStreamingResponse:
115
- """
116
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
117
-
118
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
119
- """
120
- return AsyncPayersResourceWithStreamingResponse(self)
121
-
122
- async def list(
123
- self,
124
- *,
125
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
126
- # The extra values given here take precedence over values defined on the client or passed to this method.
127
- extra_headers: Headers | None = None,
128
- extra_query: Query | None = None,
129
- extra_body: Body | None = None,
130
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
131
- ) -> PayerListResponse:
132
- """Lists all payers available for eligibility checks."""
133
- return await self._get(
134
- "/api/v2/clearinghouse/payers",
135
- options=make_request_options(
136
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
137
- ),
138
- cast_to=PayerListResponse,
139
- )
140
-
141
- async def search(
142
- self,
143
- *,
144
- query: str,
145
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
146
- # The extra values given here take precedence over values defined on the client or passed to this method.
147
- extra_headers: Headers | None = None,
148
- extra_query: Query | None = None,
149
- extra_body: Body | None = None,
150
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
151
- ) -> PayerSearchResponse:
152
- """
153
- Searches for payers based on the provided search criteria.
154
-
155
- Args:
156
- query: The search query (e.g. name, ID, etc.) for the payer.
157
-
158
- extra_headers: Send extra headers
159
-
160
- extra_query: Add additional query parameters to the request
161
-
162
- extra_body: Add additional JSON properties to the request
163
-
164
- timeout: Override the client-level default timeout for this request, in seconds
165
- """
166
- return await self._get(
167
- "/api/v2/clearinghouse/payers/search",
168
- options=make_request_options(
169
- extra_headers=extra_headers,
170
- extra_query=extra_query,
171
- extra_body=extra_body,
172
- timeout=timeout,
173
- query=await async_maybe_transform({"query": query}, payer_search_params.PayerSearchParams),
174
- ),
175
- cast_to=PayerSearchResponse,
176
- )
177
-
178
-
179
- class PayersResourceWithRawResponse:
180
- def __init__(self, payers: PayersResource) -> None:
181
- self._payers = payers
182
-
183
- self.list = to_raw_response_wrapper(
184
- payers.list,
185
- )
186
- self.search = to_raw_response_wrapper(
187
- payers.search,
188
- )
189
-
190
-
191
- class AsyncPayersResourceWithRawResponse:
192
- def __init__(self, payers: AsyncPayersResource) -> None:
193
- self._payers = payers
194
-
195
- self.list = async_to_raw_response_wrapper(
196
- payers.list,
197
- )
198
- self.search = async_to_raw_response_wrapper(
199
- payers.search,
200
- )
201
-
202
-
203
- class PayersResourceWithStreamingResponse:
204
- def __init__(self, payers: PayersResource) -> None:
205
- self._payers = payers
206
-
207
- self.list = to_streamed_response_wrapper(
208
- payers.list,
209
- )
210
- self.search = to_streamed_response_wrapper(
211
- payers.search,
212
- )
213
-
214
-
215
- class AsyncPayersResourceWithStreamingResponse:
216
- def __init__(self, payers: AsyncPayersResource) -> None:
217
- self._payers = payers
218
-
219
- self.list = async_to_streamed_response_wrapper(
220
- payers.list,
221
- )
222
- self.search = async_to_streamed_response_wrapper(
223
- payers.search,
224
- )
@@ -1,165 +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, Query, Headers, NotGiven, not_given
8
- from ...._compat import cached_property
9
- from ...._resource import SyncAPIResource, AsyncAPIResource
10
- from ...._response import (
11
- to_raw_response_wrapper,
12
- to_streamed_response_wrapper,
13
- async_to_raw_response_wrapper,
14
- async_to_streamed_response_wrapper,
15
- )
16
- from ...._base_client import make_request_options
17
- from ....types.v2.documents.pdf_template_retrieve_metadata_response import PdfTemplateRetrieveMetadataResponse
18
-
19
- __all__ = ["PdfTemplateResource", "AsyncPdfTemplateResource"]
20
-
21
-
22
- class PdfTemplateResource(SyncAPIResource):
23
- @cached_property
24
- def with_raw_response(self) -> PdfTemplateResourceWithRawResponse:
25
- """
26
- This property can be used as a prefix for any HTTP method call to return
27
- the raw response object instead of the parsed content.
28
-
29
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
30
- """
31
- return PdfTemplateResourceWithRawResponse(self)
32
-
33
- @cached_property
34
- def with_streaming_response(self) -> PdfTemplateResourceWithStreamingResponse:
35
- """
36
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37
-
38
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
39
- """
40
- return PdfTemplateResourceWithStreamingResponse(self)
41
-
42
- def retrieve_metadata(
43
- self,
44
- slug: str,
45
- *,
46
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
47
- # The extra values given here take precedence over values defined on the client or passed to this method.
48
- extra_headers: Headers | None = None,
49
- extra_query: Query | None = None,
50
- extra_body: Body | None = None,
51
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
52
- ) -> PdfTemplateRetrieveMetadataResponse:
53
- """
54
- Retrieves document metadata for a PDF template by slug, including a presigned
55
- URL for direct access.
56
-
57
- Args:
58
- extra_headers: Send extra headers
59
-
60
- extra_query: Add additional query parameters to the request
61
-
62
- extra_body: Add additional JSON properties to the request
63
-
64
- timeout: Override the client-level default timeout for this request, in seconds
65
- """
66
- if not slug:
67
- raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
68
- return self._get(
69
- f"/api/v2/documents/pdf-template/{slug}/metadata",
70
- options=make_request_options(
71
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
72
- ),
73
- cast_to=PdfTemplateRetrieveMetadataResponse,
74
- )
75
-
76
-
77
- class AsyncPdfTemplateResource(AsyncAPIResource):
78
- @cached_property
79
- def with_raw_response(self) -> AsyncPdfTemplateResourceWithRawResponse:
80
- """
81
- This property can be used as a prefix for any HTTP method call to return
82
- the raw response object instead of the parsed content.
83
-
84
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
85
- """
86
- return AsyncPdfTemplateResourceWithRawResponse(self)
87
-
88
- @cached_property
89
- def with_streaming_response(self) -> AsyncPdfTemplateResourceWithStreamingResponse:
90
- """
91
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
92
-
93
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
94
- """
95
- return AsyncPdfTemplateResourceWithStreamingResponse(self)
96
-
97
- async def retrieve_metadata(
98
- self,
99
- slug: str,
100
- *,
101
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
102
- # The extra values given here take precedence over values defined on the client or passed to this method.
103
- extra_headers: Headers | None = None,
104
- extra_query: Query | None = None,
105
- extra_body: Body | None = None,
106
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
107
- ) -> PdfTemplateRetrieveMetadataResponse:
108
- """
109
- Retrieves document metadata for a PDF template by slug, including a presigned
110
- URL for direct access.
111
-
112
- Args:
113
- extra_headers: Send extra headers
114
-
115
- extra_query: Add additional query parameters to the request
116
-
117
- extra_body: Add additional JSON properties to the request
118
-
119
- timeout: Override the client-level default timeout for this request, in seconds
120
- """
121
- if not slug:
122
- raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
123
- return await self._get(
124
- f"/api/v2/documents/pdf-template/{slug}/metadata",
125
- options=make_request_options(
126
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
127
- ),
128
- cast_to=PdfTemplateRetrieveMetadataResponse,
129
- )
130
-
131
-
132
- class PdfTemplateResourceWithRawResponse:
133
- def __init__(self, pdf_template: PdfTemplateResource) -> None:
134
- self._pdf_template = pdf_template
135
-
136
- self.retrieve_metadata = to_raw_response_wrapper(
137
- pdf_template.retrieve_metadata,
138
- )
139
-
140
-
141
- class AsyncPdfTemplateResourceWithRawResponse:
142
- def __init__(self, pdf_template: AsyncPdfTemplateResource) -> None:
143
- self._pdf_template = pdf_template
144
-
145
- self.retrieve_metadata = async_to_raw_response_wrapper(
146
- pdf_template.retrieve_metadata,
147
- )
148
-
149
-
150
- class PdfTemplateResourceWithStreamingResponse:
151
- def __init__(self, pdf_template: PdfTemplateResource) -> None:
152
- self._pdf_template = pdf_template
153
-
154
- self.retrieve_metadata = to_streamed_response_wrapper(
155
- pdf_template.retrieve_metadata,
156
- )
157
-
158
-
159
- class AsyncPdfTemplateResourceWithStreamingResponse:
160
- def __init__(self, pdf_template: AsyncPdfTemplateResource) -> None:
161
- self._pdf_template = pdf_template
162
-
163
- self.retrieve_metadata = async_to_streamed_response_wrapper(
164
- pdf_template.retrieve_metadata,
165
- )
@@ -1,47 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from .adt import (
4
- AdtResource,
5
- AsyncAdtResource,
6
- AdtResourceWithRawResponse,
7
- AsyncAdtResourceWithRawResponse,
8
- AdtResourceWithStreamingResponse,
9
- AsyncAdtResourceWithStreamingResponse,
10
- )
11
- from .hie import (
12
- HieResource,
13
- AsyncHieResource,
14
- HieResourceWithRawResponse,
15
- AsyncHieResourceWithRawResponse,
16
- HieResourceWithStreamingResponse,
17
- AsyncHieResourceWithStreamingResponse,
18
- )
19
- from .documents import (
20
- DocumentsResource,
21
- AsyncDocumentsResource,
22
- DocumentsResourceWithRawResponse,
23
- AsyncDocumentsResourceWithRawResponse,
24
- DocumentsResourceWithStreamingResponse,
25
- AsyncDocumentsResourceWithStreamingResponse,
26
- )
27
-
28
- __all__ = [
29
- "DocumentsResource",
30
- "AsyncDocumentsResource",
31
- "DocumentsResourceWithRawResponse",
32
- "AsyncDocumentsResourceWithRawResponse",
33
- "DocumentsResourceWithStreamingResponse",
34
- "AsyncDocumentsResourceWithStreamingResponse",
35
- "AdtResource",
36
- "AsyncAdtResource",
37
- "AdtResourceWithRawResponse",
38
- "AsyncAdtResourceWithRawResponse",
39
- "AdtResourceWithStreamingResponse",
40
- "AsyncAdtResourceWithStreamingResponse",
41
- "HieResource",
42
- "AsyncHieResource",
43
- "HieResourceWithRawResponse",
44
- "AsyncHieResourceWithRawResponse",
45
- "HieResourceWithStreamingResponse",
46
- "AsyncHieResourceWithStreamingResponse",
47
- ]
@@ -1,249 +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, 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.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] | Omit = omit,
56
- personal_identifiers: Iterable[adt_subscribe_params.PersonalIdentifier] | Omit = omit,
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] | Omit = omit,
151
- personal_identifiers: Iterable[adt_subscribe_params.PersonalIdentifier] | Omit = omit,
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
- )