samplehc 0.17.0__py3-none-any.whl → 0.19.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 (154) hide show
  1. samplehc/_base_client.py +5 -2
  2. samplehc/_client.py +1 -38
  3. samplehc/_compat.py +3 -3
  4. samplehc/_utils/_json.py +35 -0
  5. samplehc/_version.py +1 -1
  6. samplehc/resources/__init__.py +0 -14
  7. samplehc/resources/v2/__init__.py +0 -98
  8. samplehc/resources/v2/async_results.py +0 -79
  9. samplehc/resources/v2/documents/__init__.py +0 -14
  10. samplehc/resources/v2/documents/documents.py +44 -196
  11. samplehc/resources/v2/v2.py +0 -224
  12. samplehc/types/__init__.py +0 -5
  13. samplehc/types/v2/__init__.py +0 -53
  14. samplehc/types/v2/document_extract_params.py +20 -1
  15. samplehc/types/v2/documents/__init__.py +0 -3
  16. {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/METADATA +22 -27
  17. samplehc-0.19.0.dist-info/RECORD +93 -0
  18. samplehc/resources/v1/__init__.py +0 -19
  19. samplehc/resources/v1/v1.py +0 -298
  20. samplehc/resources/v2/clearinghouse/__init__.py +0 -47
  21. samplehc/resources/v2/clearinghouse/claim.py +0 -407
  22. samplehc/resources/v2/clearinghouse/clearinghouse.py +0 -844
  23. samplehc/resources/v2/clearinghouse/payers.py +0 -224
  24. samplehc/resources/v2/documents/pdf_template.py +0 -165
  25. samplehc/resources/v2/hie/__init__.py +0 -47
  26. samplehc/resources/v2/hie/adt.py +0 -249
  27. samplehc/resources/v2/hie/documents.py +0 -390
  28. samplehc/resources/v2/hie/hie.py +0 -134
  29. samplehc/resources/v2/integrations/__init__.py +0 -131
  30. samplehc/resources/v2/integrations/bank/__init__.py +0 -33
  31. samplehc/resources/v2/integrations/bank/bank.py +0 -102
  32. samplehc/resources/v2/integrations/bank/transactions.py +0 -185
  33. samplehc/resources/v2/integrations/careviso.py +0 -372
  34. samplehc/resources/v2/integrations/glidian/__init__.py +0 -33
  35. samplehc/resources/v2/integrations/glidian/glidian.py +0 -425
  36. samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +0 -33
  37. samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +0 -276
  38. samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +0 -527
  39. samplehc/resources/v2/integrations/integrations.py +0 -326
  40. samplehc/resources/v2/integrations/kno2/__init__.py +0 -33
  41. samplehc/resources/v2/integrations/kno2/kno2.py +0 -102
  42. samplehc/resources/v2/integrations/kno2/messages.py +0 -260
  43. samplehc/resources/v2/integrations/salesforce.py +0 -277
  44. samplehc/resources/v2/integrations/snowflake.py +0 -173
  45. samplehc/resources/v2/integrations/wellsky/__init__.py +0 -33
  46. samplehc/resources/v2/integrations/wellsky/patients.py +0 -324
  47. samplehc/resources/v2/integrations/wellsky/wellsky.py +0 -102
  48. samplehc/resources/v2/integrations/xcures.py +0 -197
  49. samplehc/resources/v2/policies.py +0 -655
  50. samplehc/resources/v2/tasks/__init__.py +0 -33
  51. samplehc/resources/v2/tasks/state.py +0 -266
  52. samplehc/resources/v2/tasks/tasks.py +0 -754
  53. samplehc/resources/v2/workflow_runs/__init__.py +0 -33
  54. samplehc/resources/v2/workflow_runs/step.py +0 -169
  55. samplehc/resources/v2/workflow_runs/workflow_runs.py +0 -479
  56. samplehc/resources/v2/workflows.py +0 -377
  57. samplehc/types/v1/__init__.py +0 -3
  58. samplehc/types/v1_query_audit_logs_params.py +0 -12
  59. samplehc/types/v1_query_audit_logs_response.py +0 -16
  60. samplehc/types/v1_sql_execute_params.py +0 -27
  61. samplehc/types/v1_sql_execute_response.py +0 -27
  62. samplehc/types/v2/async_result_retrieve_response.py +0 -18
  63. samplehc/types/v2/clearinghouse/__init__.py +0 -9
  64. samplehc/types/v2/clearinghouse/claim_submit_params.py +0 -2693
  65. samplehc/types/v2/clearinghouse/claim_submit_response.py +0 -23
  66. samplehc/types/v2/clearinghouse/payer_list_response.py +0 -27
  67. samplehc/types/v2/clearinghouse/payer_search_params.py +0 -12
  68. samplehc/types/v2/clearinghouse/payer_search_response.py +0 -33
  69. samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +0 -3129
  70. samplehc/types/v2/clearinghouse_check_claim_status_params.py +0 -41
  71. samplehc/types/v2/clearinghouse_check_eligibility_params.py +0 -36
  72. samplehc/types/v2/clearinghouse_check_eligibility_response.py +0 -15
  73. samplehc/types/v2/clearinghouse_coordination_of_benefits_params.py +0 -35
  74. samplehc/types/v2/clearinghouse_run_discovery_params.py +0 -59
  75. samplehc/types/v2/clearinghouse_run_discovery_response.py +0 -13
  76. samplehc/types/v2/document_unzip_async_response.py +0 -12
  77. samplehc/types/v2/document_unzip_response.py +0 -20
  78. samplehc/types/v2/documents/pdf_template_retrieve_metadata_response.py +0 -17
  79. samplehc/types/v2/hie/__init__.py +0 -8
  80. samplehc/types/v2/hie/adt_subscribe_params.py +0 -92
  81. samplehc/types/v2/hie/document_query_params.py +0 -92
  82. samplehc/types/v2/hie/document_query_response.py +0 -16
  83. samplehc/types/v2/hie/document_upload_params.py +0 -54
  84. samplehc/types/v2/integrations/__init__.py +0 -23
  85. samplehc/types/v2/integrations/bank/__init__.py +0 -6
  86. samplehc/types/v2/integrations/bank/transaction_sync_params.py +0 -15
  87. samplehc/types/v2/integrations/bank/transaction_sync_response.py +0 -26
  88. samplehc/types/v2/integrations/careviso_get_payers_response.py +0 -19
  89. samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +0 -90
  90. samplehc/types/v2/integrations/glidian/__init__.py +0 -20
  91. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +0 -32
  92. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +0 -24
  93. samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +0 -13
  94. samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +0 -16
  95. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +0 -20
  96. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +0 -16
  97. samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +0 -7
  98. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +0 -42
  99. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +0 -23
  100. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +0 -19
  101. samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +0 -17
  102. samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +0 -31
  103. samplehc/types/v2/integrations/glidian_list_payers_params.py +0 -11
  104. samplehc/types/v2/integrations/glidian_list_payers_response.py +0 -17
  105. samplehc/types/v2/integrations/glidian_list_services_params.py +0 -13
  106. samplehc/types/v2/integrations/glidian_list_services_response.py +0 -19
  107. samplehc/types/v2/integrations/kno2/__init__.py +0 -6
  108. samplehc/types/v2/integrations/kno2/message_get_attachment_response.py +0 -15
  109. samplehc/types/v2/integrations/kno2/message_retrieve_response.py +0 -13
  110. samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +0 -22
  111. samplehc/types/v2/integrations/salesforce_run_soql_query_params.py +0 -11
  112. samplehc/types/v2/integrations/snowflake_query_params.py +0 -12
  113. samplehc/types/v2/integrations/snowflake_query_response.py +0 -8
  114. samplehc/types/v2/integrations/wellsky/__init__.py +0 -6
  115. samplehc/types/v2/integrations/wellsky/patient_add_params.py +0 -13
  116. samplehc/types/v2/integrations/wellsky/patient_search_params.py +0 -32
  117. samplehc/types/v2/integrations/xcure_make_request_params.py +0 -18
  118. samplehc/types/v2/ledger/__init__.py +0 -3
  119. samplehc/types/v2/policy_list_companies_params.py +0 -18
  120. samplehc/types/v2/policy_list_companies_response.py +0 -24
  121. samplehc/types/v2/policy_list_params.py +0 -47
  122. samplehc/types/v2/policy_list_plans_params.py +0 -18
  123. samplehc/types/v2/policy_list_plans_response.py +0 -30
  124. samplehc/types/v2/policy_list_response.py +0 -67
  125. samplehc/types/v2/policy_retrieve_presigned_url_response.py +0 -17
  126. samplehc/types/v2/policy_retrieve_text_response.py +0 -12
  127. samplehc/types/v2/task_cancel_response.py +0 -12
  128. samplehc/types/v2/task_complete_params.py +0 -12
  129. samplehc/types/v2/task_complete_response.py +0 -16
  130. samplehc/types/v2/task_get_suspended_payload_response.py +0 -8
  131. samplehc/types/v2/task_retrieve_response.py +0 -22
  132. samplehc/types/v2/task_retry_response.py +0 -10
  133. samplehc/types/v2/task_update_column_params.py +0 -19
  134. samplehc/types/v2/task_update_column_response.py +0 -9
  135. samplehc/types/v2/task_update_screen_time_params.py +0 -14
  136. samplehc/types/v2/task_update_screen_time_response.py +0 -8
  137. samplehc/types/v2/tasks/__init__.py +0 -7
  138. samplehc/types/v2/tasks/state_get_response.py +0 -8
  139. samplehc/types/v2/tasks/state_update_params.py +0 -13
  140. samplehc/types/v2/tasks/state_update_response.py +0 -9
  141. samplehc/types/v2/workflow_deploy_response.py +0 -12
  142. samplehc/types/v2/workflow_query_params.py +0 -12
  143. samplehc/types/v2/workflow_query_response.py +0 -8
  144. samplehc/types/v2/workflow_run_get_start_data_response.py +0 -14
  145. samplehc/types/v2/workflow_run_resume_when_complete_params.py +0 -14
  146. samplehc/types/v2/workflow_run_resume_when_complete_response.py +0 -12
  147. samplehc/types/v2/workflow_run_retrieve_response.py +0 -16
  148. samplehc/types/v2/workflow_runs/__init__.py +0 -5
  149. samplehc/types/v2/workflow_runs/step_get_output_response.py +0 -14
  150. samplehc/types/v2/workflow_start_params.py +0 -25
  151. samplehc/types/v2/workflow_start_response.py +0 -25
  152. samplehc-0.17.0.dist-info/RECORD +0 -226
  153. {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/WHEEL +0 -0
  154. {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,173 +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.integrations import snowflake_query_params
19
- from ....types.v2.integrations.snowflake_query_response import SnowflakeQueryResponse
20
-
21
- __all__ = ["SnowflakeResource", "AsyncSnowflakeResource"]
22
-
23
-
24
- class SnowflakeResource(SyncAPIResource):
25
- @cached_property
26
- def with_raw_response(self) -> SnowflakeResourceWithRawResponse:
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 SnowflakeResourceWithRawResponse(self)
34
-
35
- @cached_property
36
- def with_streaming_response(self) -> SnowflakeResourceWithStreamingResponse:
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 SnowflakeResourceWithStreamingResponse(self)
43
-
44
- def query(
45
- self,
46
- slug: str,
47
- *,
48
- query: str,
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
- ) -> SnowflakeQueryResponse:
56
- """
57
- Execute a query against a configured Snowflake instance.
58
-
59
- Args:
60
- query: The SQL query to execute.
61
-
62
- extra_headers: Send extra headers
63
-
64
- extra_query: Add additional query parameters to the request
65
-
66
- extra_body: Add additional JSON properties to the request
67
-
68
- timeout: Override the client-level default timeout for this request, in seconds
69
- """
70
- if not slug:
71
- raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
72
- return self._post(
73
- f"/api/v2/integrations/snowflake/{slug}/query",
74
- body=maybe_transform({"query": query}, snowflake_query_params.SnowflakeQueryParams),
75
- options=make_request_options(
76
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
77
- ),
78
- cast_to=SnowflakeQueryResponse,
79
- )
80
-
81
-
82
- class AsyncSnowflakeResource(AsyncAPIResource):
83
- @cached_property
84
- def with_raw_response(self) -> AsyncSnowflakeResourceWithRawResponse:
85
- """
86
- This property can be used as a prefix for any HTTP method call to return
87
- the raw response object instead of the parsed content.
88
-
89
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
90
- """
91
- return AsyncSnowflakeResourceWithRawResponse(self)
92
-
93
- @cached_property
94
- def with_streaming_response(self) -> AsyncSnowflakeResourceWithStreamingResponse:
95
- """
96
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
97
-
98
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
99
- """
100
- return AsyncSnowflakeResourceWithStreamingResponse(self)
101
-
102
- async def query(
103
- self,
104
- slug: str,
105
- *,
106
- query: str,
107
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
108
- # The extra values given here take precedence over values defined on the client or passed to this method.
109
- extra_headers: Headers | None = None,
110
- extra_query: Query | None = None,
111
- extra_body: Body | None = None,
112
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
113
- ) -> SnowflakeQueryResponse:
114
- """
115
- Execute a query against a configured Snowflake instance.
116
-
117
- Args:
118
- query: The SQL query to execute.
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 await self._post(
131
- f"/api/v2/integrations/snowflake/{slug}/query",
132
- body=await async_maybe_transform({"query": query}, snowflake_query_params.SnowflakeQueryParams),
133
- options=make_request_options(
134
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
135
- ),
136
- cast_to=SnowflakeQueryResponse,
137
- )
138
-
139
-
140
- class SnowflakeResourceWithRawResponse:
141
- def __init__(self, snowflake: SnowflakeResource) -> None:
142
- self._snowflake = snowflake
143
-
144
- self.query = to_raw_response_wrapper(
145
- snowflake.query,
146
- )
147
-
148
-
149
- class AsyncSnowflakeResourceWithRawResponse:
150
- def __init__(self, snowflake: AsyncSnowflakeResource) -> None:
151
- self._snowflake = snowflake
152
-
153
- self.query = async_to_raw_response_wrapper(
154
- snowflake.query,
155
- )
156
-
157
-
158
- class SnowflakeResourceWithStreamingResponse:
159
- def __init__(self, snowflake: SnowflakeResource) -> None:
160
- self._snowflake = snowflake
161
-
162
- self.query = to_streamed_response_wrapper(
163
- snowflake.query,
164
- )
165
-
166
-
167
- class AsyncSnowflakeResourceWithStreamingResponse:
168
- def __init__(self, snowflake: AsyncSnowflakeResource) -> None:
169
- self._snowflake = snowflake
170
-
171
- self.query = async_to_streamed_response_wrapper(
172
- snowflake.query,
173
- )
@@ -1,33 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from .wellsky import (
4
- WellskyResource,
5
- AsyncWellskyResource,
6
- WellskyResourceWithRawResponse,
7
- AsyncWellskyResourceWithRawResponse,
8
- WellskyResourceWithStreamingResponse,
9
- AsyncWellskyResourceWithStreamingResponse,
10
- )
11
- from .patients import (
12
- PatientsResource,
13
- AsyncPatientsResource,
14
- PatientsResourceWithRawResponse,
15
- AsyncPatientsResourceWithRawResponse,
16
- PatientsResourceWithStreamingResponse,
17
- AsyncPatientsResourceWithStreamingResponse,
18
- )
19
-
20
- __all__ = [
21
- "PatientsResource",
22
- "AsyncPatientsResource",
23
- "PatientsResourceWithRawResponse",
24
- "AsyncPatientsResourceWithRawResponse",
25
- "PatientsResourceWithStreamingResponse",
26
- "AsyncPatientsResourceWithStreamingResponse",
27
- "WellskyResource",
28
- "AsyncWellskyResource",
29
- "WellskyResourceWithRawResponse",
30
- "AsyncWellskyResourceWithRawResponse",
31
- "WellskyResourceWithStreamingResponse",
32
- "AsyncWellskyResourceWithStreamingResponse",
33
- ]
@@ -1,324 +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 Dict
6
-
7
- import httpx
8
-
9
- from ....._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
10
- from ....._utils import maybe_transform, async_maybe_transform
11
- from ....._compat import cached_property
12
- from ....._resource import SyncAPIResource, AsyncAPIResource
13
- from ....._response import (
14
- to_raw_response_wrapper,
15
- to_streamed_response_wrapper,
16
- async_to_raw_response_wrapper,
17
- async_to_streamed_response_wrapper,
18
- )
19
- from ....._base_client import make_request_options
20
- from .....types.v2.integrations.wellsky import patient_add_params, patient_search_params
21
-
22
- __all__ = ["PatientsResource", "AsyncPatientsResource"]
23
-
24
-
25
- class PatientsResource(SyncAPIResource):
26
- @cached_property
27
- def with_raw_response(self) -> PatientsResourceWithRawResponse:
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 PatientsResourceWithRawResponse(self)
35
-
36
- @cached_property
37
- def with_streaming_response(self) -> PatientsResourceWithStreamingResponse:
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 PatientsResourceWithStreamingResponse(self)
44
-
45
- def add(
46
- self,
47
- slug: str,
48
- *,
49
- data: Dict[str, object],
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
- ) -> object:
57
- """
58
- Add a patient to WellSky.
59
-
60
- Args:
61
- data: The data to add the patient to WellSky.
62
-
63
- extra_headers: Send extra headers
64
-
65
- extra_query: Add additional query parameters to the request
66
-
67
- extra_body: Add additional JSON properties to the request
68
-
69
- timeout: Override the client-level default timeout for this request, in seconds
70
- """
71
- if not slug:
72
- raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
73
- return self._post(
74
- f"/api/v2/integrations/wellsky/{slug}/patients",
75
- body=maybe_transform({"data": data}, patient_add_params.PatientAddParams),
76
- options=make_request_options(
77
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
78
- ),
79
- cast_to=object,
80
- )
81
-
82
- def search(
83
- self,
84
- slug: str,
85
- *,
86
- reqdelete: str | Omit = omit,
87
- reqdispin: str | Omit = omit,
88
- reqlvl6_in: str | Omit = omit,
89
- reqnamein: str | Omit = omit,
90
- reqnonprosp: str | Omit = omit,
91
- reqprosp: str | Omit = omit,
92
- reqsortin: str | Omit = omit,
93
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
94
- # The extra values given here take precedence over values defined on the client or passed to this method.
95
- extra_headers: Headers | None = None,
96
- extra_query: Query | None = None,
97
- extra_body: Body | None = None,
98
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
99
- ) -> object:
100
- """
101
- Search for patients in WellSky.
102
-
103
- Args:
104
- reqdelete: Delete flag (Y/N)
105
-
106
- reqdispin: Disposition filter
107
-
108
- reqlvl6_in: Facility ID
109
-
110
- reqnamein: Patient name to search
111
-
112
- reqnonprosp: Non-prospect flag (Y/N)
113
-
114
- reqprosp: Prospect flag (Y/N)
115
-
116
- reqsortin: Sort field
117
-
118
- extra_headers: Send extra headers
119
-
120
- extra_query: Add additional query parameters to the request
121
-
122
- extra_body: Add additional JSON properties to the request
123
-
124
- timeout: Override the client-level default timeout for this request, in seconds
125
- """
126
- if not slug:
127
- raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
128
- return self._get(
129
- f"/api/v2/integrations/wellsky/{slug}/patients",
130
- options=make_request_options(
131
- extra_headers=extra_headers,
132
- extra_query=extra_query,
133
- extra_body=extra_body,
134
- timeout=timeout,
135
- query=maybe_transform(
136
- {
137
- "reqdelete": reqdelete,
138
- "reqdispin": reqdispin,
139
- "reqlvl6_in": reqlvl6_in,
140
- "reqnamein": reqnamein,
141
- "reqnonprosp": reqnonprosp,
142
- "reqprosp": reqprosp,
143
- "reqsortin": reqsortin,
144
- },
145
- patient_search_params.PatientSearchParams,
146
- ),
147
- ),
148
- cast_to=object,
149
- )
150
-
151
-
152
- class AsyncPatientsResource(AsyncAPIResource):
153
- @cached_property
154
- def with_raw_response(self) -> AsyncPatientsResourceWithRawResponse:
155
- """
156
- This property can be used as a prefix for any HTTP method call to return
157
- the raw response object instead of the parsed content.
158
-
159
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
160
- """
161
- return AsyncPatientsResourceWithRawResponse(self)
162
-
163
- @cached_property
164
- def with_streaming_response(self) -> AsyncPatientsResourceWithStreamingResponse:
165
- """
166
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
167
-
168
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
169
- """
170
- return AsyncPatientsResourceWithStreamingResponse(self)
171
-
172
- async def add(
173
- self,
174
- slug: str,
175
- *,
176
- data: Dict[str, object],
177
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
178
- # The extra values given here take precedence over values defined on the client or passed to this method.
179
- extra_headers: Headers | None = None,
180
- extra_query: Query | None = None,
181
- extra_body: Body | None = None,
182
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
183
- ) -> object:
184
- """
185
- Add a patient to WellSky.
186
-
187
- Args:
188
- data: The data to add the patient to WellSky.
189
-
190
- extra_headers: Send extra headers
191
-
192
- extra_query: Add additional query parameters to the request
193
-
194
- extra_body: Add additional JSON properties to the request
195
-
196
- timeout: Override the client-level default timeout for this request, in seconds
197
- """
198
- if not slug:
199
- raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
200
- return await self._post(
201
- f"/api/v2/integrations/wellsky/{slug}/patients",
202
- body=await async_maybe_transform({"data": data}, patient_add_params.PatientAddParams),
203
- options=make_request_options(
204
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
205
- ),
206
- cast_to=object,
207
- )
208
-
209
- async def search(
210
- self,
211
- slug: str,
212
- *,
213
- reqdelete: str | Omit = omit,
214
- reqdispin: str | Omit = omit,
215
- reqlvl6_in: str | Omit = omit,
216
- reqnamein: str | Omit = omit,
217
- reqnonprosp: str | Omit = omit,
218
- reqprosp: str | Omit = omit,
219
- reqsortin: str | Omit = omit,
220
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
221
- # The extra values given here take precedence over values defined on the client or passed to this method.
222
- extra_headers: Headers | None = None,
223
- extra_query: Query | None = None,
224
- extra_body: Body | None = None,
225
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
226
- ) -> object:
227
- """
228
- Search for patients in WellSky.
229
-
230
- Args:
231
- reqdelete: Delete flag (Y/N)
232
-
233
- reqdispin: Disposition filter
234
-
235
- reqlvl6_in: Facility ID
236
-
237
- reqnamein: Patient name to search
238
-
239
- reqnonprosp: Non-prospect flag (Y/N)
240
-
241
- reqprosp: Prospect flag (Y/N)
242
-
243
- reqsortin: Sort field
244
-
245
- extra_headers: Send extra headers
246
-
247
- extra_query: Add additional query parameters to the request
248
-
249
- extra_body: Add additional JSON properties to the request
250
-
251
- timeout: Override the client-level default timeout for this request, in seconds
252
- """
253
- if not slug:
254
- raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
255
- return await self._get(
256
- f"/api/v2/integrations/wellsky/{slug}/patients",
257
- options=make_request_options(
258
- extra_headers=extra_headers,
259
- extra_query=extra_query,
260
- extra_body=extra_body,
261
- timeout=timeout,
262
- query=await async_maybe_transform(
263
- {
264
- "reqdelete": reqdelete,
265
- "reqdispin": reqdispin,
266
- "reqlvl6_in": reqlvl6_in,
267
- "reqnamein": reqnamein,
268
- "reqnonprosp": reqnonprosp,
269
- "reqprosp": reqprosp,
270
- "reqsortin": reqsortin,
271
- },
272
- patient_search_params.PatientSearchParams,
273
- ),
274
- ),
275
- cast_to=object,
276
- )
277
-
278
-
279
- class PatientsResourceWithRawResponse:
280
- def __init__(self, patients: PatientsResource) -> None:
281
- self._patients = patients
282
-
283
- self.add = to_raw_response_wrapper(
284
- patients.add,
285
- )
286
- self.search = to_raw_response_wrapper(
287
- patients.search,
288
- )
289
-
290
-
291
- class AsyncPatientsResourceWithRawResponse:
292
- def __init__(self, patients: AsyncPatientsResource) -> None:
293
- self._patients = patients
294
-
295
- self.add = async_to_raw_response_wrapper(
296
- patients.add,
297
- )
298
- self.search = async_to_raw_response_wrapper(
299
- patients.search,
300
- )
301
-
302
-
303
- class PatientsResourceWithStreamingResponse:
304
- def __init__(self, patients: PatientsResource) -> None:
305
- self._patients = patients
306
-
307
- self.add = to_streamed_response_wrapper(
308
- patients.add,
309
- )
310
- self.search = to_streamed_response_wrapper(
311
- patients.search,
312
- )
313
-
314
-
315
- class AsyncPatientsResourceWithStreamingResponse:
316
- def __init__(self, patients: AsyncPatientsResource) -> None:
317
- self._patients = patients
318
-
319
- self.add = async_to_streamed_response_wrapper(
320
- patients.add,
321
- )
322
- self.search = async_to_streamed_response_wrapper(
323
- patients.search,
324
- )
@@ -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 .patients import (
6
- PatientsResource,
7
- AsyncPatientsResource,
8
- PatientsResourceWithRawResponse,
9
- AsyncPatientsResourceWithRawResponse,
10
- PatientsResourceWithStreamingResponse,
11
- AsyncPatientsResourceWithStreamingResponse,
12
- )
13
- from ....._compat import cached_property
14
- from ....._resource import SyncAPIResource, AsyncAPIResource
15
-
16
- __all__ = ["WellskyResource", "AsyncWellskyResource"]
17
-
18
-
19
- class WellskyResource(SyncAPIResource):
20
- @cached_property
21
- def patients(self) -> PatientsResource:
22
- return PatientsResource(self._client)
23
-
24
- @cached_property
25
- def with_raw_response(self) -> WellskyResourceWithRawResponse:
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 WellskyResourceWithRawResponse(self)
33
-
34
- @cached_property
35
- def with_streaming_response(self) -> WellskyResourceWithStreamingResponse:
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 WellskyResourceWithStreamingResponse(self)
42
-
43
-
44
- class AsyncWellskyResource(AsyncAPIResource):
45
- @cached_property
46
- def patients(self) -> AsyncPatientsResource:
47
- return AsyncPatientsResource(self._client)
48
-
49
- @cached_property
50
- def with_raw_response(self) -> AsyncWellskyResourceWithRawResponse:
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 AsyncWellskyResourceWithRawResponse(self)
58
-
59
- @cached_property
60
- def with_streaming_response(self) -> AsyncWellskyResourceWithStreamingResponse:
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 AsyncWellskyResourceWithStreamingResponse(self)
67
-
68
-
69
- class WellskyResourceWithRawResponse:
70
- def __init__(self, wellsky: WellskyResource) -> None:
71
- self._wellsky = wellsky
72
-
73
- @cached_property
74
- def patients(self) -> PatientsResourceWithRawResponse:
75
- return PatientsResourceWithRawResponse(self._wellsky.patients)
76
-
77
-
78
- class AsyncWellskyResourceWithRawResponse:
79
- def __init__(self, wellsky: AsyncWellskyResource) -> None:
80
- self._wellsky = wellsky
81
-
82
- @cached_property
83
- def patients(self) -> AsyncPatientsResourceWithRawResponse:
84
- return AsyncPatientsResourceWithRawResponse(self._wellsky.patients)
85
-
86
-
87
- class WellskyResourceWithStreamingResponse:
88
- def __init__(self, wellsky: WellskyResource) -> None:
89
- self._wellsky = wellsky
90
-
91
- @cached_property
92
- def patients(self) -> PatientsResourceWithStreamingResponse:
93
- return PatientsResourceWithStreamingResponse(self._wellsky.patients)
94
-
95
-
96
- class AsyncWellskyResourceWithStreamingResponse:
97
- def __init__(self, wellsky: AsyncWellskyResource) -> None:
98
- self._wellsky = wellsky
99
-
100
- @cached_property
101
- def patients(self) -> AsyncPatientsResourceWithStreamingResponse:
102
- return AsyncPatientsResourceWithStreamingResponse(self._wellsky.patients)