rxfoundry.clients.swifty-oauth-api 0.0.620__py3-none-any.whl → 1.0.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 (116) hide show
  1. {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/METADATA +1 -1
  2. rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info/RECORD +19 -0
  3. rxfoundry/clients/p2rx_api/__init__.py +0 -79
  4. rxfoundry/clients/p2rx_api/api/__init__.py +0 -17
  5. rxfoundry/clients/p2rx_api/api/async_api.py +0 -862
  6. rxfoundry/clients/p2rx_api/api/code_api.py +0 -337
  7. rxfoundry/clients/p2rx_api/api/fax_api.py +0 -632
  8. rxfoundry/clients/p2rx_api/api/medication_api.py +0 -666
  9. rxfoundry/clients/p2rx_api/api/patient_api.py +0 -981
  10. rxfoundry/clients/p2rx_api/api/pharmacist_api.py +0 -615
  11. rxfoundry/clients/p2rx_api/api/pharmacy_api.py +0 -684
  12. rxfoundry/clients/p2rx_api/api/prescriber_api.py +0 -615
  13. rxfoundry/clients/p2rx_api/api/prescription_api.py +0 -1864
  14. rxfoundry/clients/p2rx_api/api/token_api.py +0 -314
  15. rxfoundry/clients/p2rx_api/api/user_api.py +0 -306
  16. rxfoundry/clients/p2rx_api/api/version_api.py +0 -282
  17. rxfoundry/clients/p2rx_api/api/virtual_pharmacy_api.py +0 -284
  18. rxfoundry/clients/p2rx_api/api_client.py +0 -798
  19. rxfoundry/clients/p2rx_api/api_response.py +0 -21
  20. rxfoundry/clients/p2rx_api/configuration.py +0 -583
  21. rxfoundry/clients/p2rx_api/exceptions.py +0 -217
  22. rxfoundry/clients/p2rx_api/models/__init__.py +0 -50
  23. rxfoundry/clients/p2rx_api/models/address.py +0 -106
  24. rxfoundry/clients/p2rx_api/models/asynchronous_response.py +0 -90
  25. rxfoundry/clients/p2rx_api/models/code.py +0 -92
  26. rxfoundry/clients/p2rx_api/models/code_qualifier_code.py +0 -96
  27. rxfoundry/clients/p2rx_api/models/error_message.py +0 -90
  28. rxfoundry/clients/p2rx_api/models/fax.py +0 -141
  29. rxfoundry/clients/p2rx_api/models/medication.py +0 -137
  30. rxfoundry/clients/p2rx_api/models/medication_program_pricing.py +0 -99
  31. rxfoundry/clients/p2rx_api/models/medication_variant.py +0 -96
  32. rxfoundry/clients/p2rx_api/models/patient.py +0 -128
  33. rxfoundry/clients/p2rx_api/models/patient_activity_notification.py +0 -114
  34. rxfoundry/clients/p2rx_api/models/patient_external_identifier.py +0 -94
  35. rxfoundry/clients/p2rx_api/models/pharmacist.py +0 -104
  36. rxfoundry/clients/p2rx_api/models/pharmacy.py +0 -156
  37. rxfoundry/clients/p2rx_api/models/pharmacy_chain.py +0 -100
  38. rxfoundry/clients/p2rx_api/models/pharmacy_other_identifier.py +0 -98
  39. rxfoundry/clients/p2rx_api/models/pharmacy_program_pricing.py +0 -103
  40. rxfoundry/clients/p2rx_api/models/prescriber.py +0 -106
  41. rxfoundry/clients/p2rx_api/models/prescription.py +0 -278
  42. rxfoundry/clients/p2rx_api/models/prescription_change_request.py +0 -123
  43. rxfoundry/clients/p2rx_api/models/prescription_issue.py +0 -120
  44. rxfoundry/clients/p2rx_api/models/prescription_patch.py +0 -113
  45. rxfoundry/clients/p2rx_api/models/prescription_task.py +0 -130
  46. rxfoundry/clients/p2rx_api/models/prescription_task_status.py +0 -95
  47. rxfoundry/clients/p2rx_api/models/prescription_transfer_request.py +0 -93
  48. rxfoundry/clients/p2rx_api/models/prescription_verification.py +0 -107
  49. rxfoundry/clients/p2rx_api/models/pricing_program.py +0 -90
  50. rxfoundry/clients/p2rx_api/models/surescripts_message.py +0 -111
  51. rxfoundry/clients/p2rx_api/models/token.py +0 -92
  52. rxfoundry/clients/p2rx_api/models/user.py +0 -98
  53. rxfoundry/clients/p2rx_api/models/version.py +0 -88
  54. rxfoundry/clients/p2rx_api/models/virtual_pharmacy.py +0 -96
  55. rxfoundry/clients/p2rx_api/models/workflow_request.py +0 -90
  56. rxfoundry/clients/p2rx_api/py.typed +0 -0
  57. rxfoundry/clients/p2rx_api/rest.py +0 -259
  58. rxfoundry/clients/swifty_api/__init__.py +0 -79
  59. rxfoundry/clients/swifty_api/api/__init__.py +0 -17
  60. rxfoundry/clients/swifty_api/api/async_api.py +0 -862
  61. rxfoundry/clients/swifty_api/api/code_api.py +0 -337
  62. rxfoundry/clients/swifty_api/api/fax_api.py +0 -632
  63. rxfoundry/clients/swifty_api/api/medication_api.py +0 -666
  64. rxfoundry/clients/swifty_api/api/patient_api.py +0 -981
  65. rxfoundry/clients/swifty_api/api/pharmacist_api.py +0 -615
  66. rxfoundry/clients/swifty_api/api/pharmacy_api.py +0 -684
  67. rxfoundry/clients/swifty_api/api/prescriber_api.py +0 -615
  68. rxfoundry/clients/swifty_api/api/prescription_api.py +0 -1864
  69. rxfoundry/clients/swifty_api/api/token_api.py +0 -314
  70. rxfoundry/clients/swifty_api/api/user_api.py +0 -306
  71. rxfoundry/clients/swifty_api/api/version_api.py +0 -282
  72. rxfoundry/clients/swifty_api/api/virtual_pharmacy_api.py +0 -284
  73. rxfoundry/clients/swifty_api/api_client.py +0 -798
  74. rxfoundry/clients/swifty_api/api_response.py +0 -21
  75. rxfoundry/clients/swifty_api/configuration.py +0 -583
  76. rxfoundry/clients/swifty_api/exceptions.py +0 -217
  77. rxfoundry/clients/swifty_api/models/__init__.py +0 -50
  78. rxfoundry/clients/swifty_api/models/address.py +0 -106
  79. rxfoundry/clients/swifty_api/models/asynchronous_response.py +0 -90
  80. rxfoundry/clients/swifty_api/models/code.py +0 -92
  81. rxfoundry/clients/swifty_api/models/code_qualifier_code.py +0 -96
  82. rxfoundry/clients/swifty_api/models/error_message.py +0 -90
  83. rxfoundry/clients/swifty_api/models/fax.py +0 -141
  84. rxfoundry/clients/swifty_api/models/medication.py +0 -137
  85. rxfoundry/clients/swifty_api/models/medication_program_pricing.py +0 -99
  86. rxfoundry/clients/swifty_api/models/medication_variant.py +0 -96
  87. rxfoundry/clients/swifty_api/models/patient.py +0 -128
  88. rxfoundry/clients/swifty_api/models/patient_activity_notification.py +0 -114
  89. rxfoundry/clients/swifty_api/models/patient_external_identifier.py +0 -94
  90. rxfoundry/clients/swifty_api/models/pharmacist.py +0 -104
  91. rxfoundry/clients/swifty_api/models/pharmacy.py +0 -156
  92. rxfoundry/clients/swifty_api/models/pharmacy_chain.py +0 -100
  93. rxfoundry/clients/swifty_api/models/pharmacy_other_identifier.py +0 -98
  94. rxfoundry/clients/swifty_api/models/pharmacy_program_pricing.py +0 -103
  95. rxfoundry/clients/swifty_api/models/prescriber.py +0 -106
  96. rxfoundry/clients/swifty_api/models/prescription.py +0 -278
  97. rxfoundry/clients/swifty_api/models/prescription_change_request.py +0 -123
  98. rxfoundry/clients/swifty_api/models/prescription_issue.py +0 -120
  99. rxfoundry/clients/swifty_api/models/prescription_patch.py +0 -113
  100. rxfoundry/clients/swifty_api/models/prescription_task.py +0 -130
  101. rxfoundry/clients/swifty_api/models/prescription_task_status.py +0 -95
  102. rxfoundry/clients/swifty_api/models/prescription_transfer_request.py +0 -93
  103. rxfoundry/clients/swifty_api/models/prescription_verification.py +0 -107
  104. rxfoundry/clients/swifty_api/models/pricing_program.py +0 -90
  105. rxfoundry/clients/swifty_api/models/surescripts_message.py +0 -111
  106. rxfoundry/clients/swifty_api/models/token.py +0 -92
  107. rxfoundry/clients/swifty_api/models/user.py +0 -98
  108. rxfoundry/clients/swifty_api/models/version.py +0 -88
  109. rxfoundry/clients/swifty_api/models/virtual_pharmacy.py +0 -98
  110. rxfoundry/clients/swifty_api/models/workflow_request.py +0 -90
  111. rxfoundry/clients/swifty_api/py.typed +0 -0
  112. rxfoundry/clients/swifty_api/rest.py +0 -259
  113. rxfoundry/clients/swifty_oauth_api/models/token_post_request.py +0 -94
  114. rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info/RECORD +0 -130
  115. {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/WHEEL +0 -0
  116. {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/top_level.txt +0 -0
@@ -1,615 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- SwiftyRX API
5
-
6
- API for the SwiftyRX Backend
7
-
8
- The version of the OpenAPI document: 0.1.DEV-0
9
- Contact: paul.tindall@rxfoundry.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
11
-
12
- Do not edit the class manually.
13
- """ # noqa: E501
14
-
15
- import warnings
16
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
- from typing import Any, Dict, List, Optional, Tuple, Union
18
- from typing_extensions import Annotated
19
-
20
- from pydantic import Field, StrictBool, StrictInt, StrictStr
21
- from typing import List, Optional
22
- from typing_extensions import Annotated
23
- from rxfoundry.clients.swifty_api.models.prescriber import Prescriber
24
-
25
- from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
26
- from rxfoundry.clients.swifty_api.api_response import ApiResponse
27
- from rxfoundry.clients.swifty_api.rest import RESTResponseType
28
-
29
-
30
- class PrescriberApi:
31
- """NOTE: This class is auto generated by OpenAPI Generator
32
- Ref: https://openapi-generator.tech
33
-
34
- Do not edit the class manually.
35
- """
36
-
37
- def __init__(self, api_client=None) -> None:
38
- if api_client is None:
39
- api_client = ApiClient.get_default()
40
- self.api_client = api_client
41
-
42
-
43
- @validate_call
44
- def get_prescriber(
45
- self,
46
- prescriber_id: Annotated[StrictStr, Field(description="Prescriber UUID or NPI")],
47
- _request_timeout: Union[
48
- None,
49
- Annotated[StrictFloat, Field(gt=0)],
50
- Tuple[
51
- Annotated[StrictFloat, Field(gt=0)],
52
- Annotated[StrictFloat, Field(gt=0)]
53
- ]
54
- ] = None,
55
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
56
- _content_type: Optional[StrictStr] = None,
57
- _headers: Optional[Dict[StrictStr, Any]] = None,
58
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
59
- ) -> Prescriber:
60
- """Get a prescriber by UUID or NPI
61
-
62
-
63
- :param prescriber_id: Prescriber UUID or NPI (required)
64
- :type prescriber_id: str
65
- :param _request_timeout: timeout setting for this request. If one
66
- number provided, it will be total request
67
- timeout. It can also be a pair (tuple) of
68
- (connection, read) timeouts.
69
- :type _request_timeout: int, tuple(int, int), optional
70
- :param _request_auth: set to override the auth_settings for an a single
71
- request; this effectively ignores the
72
- authentication in the spec for a single request.
73
- :type _request_auth: dict, optional
74
- :param _content_type: force content-type for the request.
75
- :type _content_type: str, Optional
76
- :param _headers: set to override the headers for a single
77
- request; this effectively ignores the headers
78
- in the spec for a single request.
79
- :type _headers: dict, optional
80
- :param _host_index: set to override the host_index for a single
81
- request; this effectively ignores the host_index
82
- in the spec for a single request.
83
- :type _host_index: int, optional
84
- :return: Returns the result object.
85
- """ # noqa: E501
86
-
87
- _param = self._get_prescriber_serialize(
88
- prescriber_id=prescriber_id,
89
- _request_auth=_request_auth,
90
- _content_type=_content_type,
91
- _headers=_headers,
92
- _host_index=_host_index
93
- )
94
-
95
- _response_types_map: Dict[str, Optional[str]] = {
96
- '200': "Prescriber",
97
- '404': None,
98
- }
99
- response_data = self.api_client.call_api(
100
- *_param,
101
- _request_timeout=_request_timeout
102
- )
103
- response_data.read()
104
- return self.api_client.response_deserialize(
105
- response_data=response_data,
106
- response_types_map=_response_types_map,
107
- ).data
108
-
109
-
110
- @validate_call
111
- def get_prescriber_with_http_info(
112
- self,
113
- prescriber_id: Annotated[StrictStr, Field(description="Prescriber UUID or NPI")],
114
- _request_timeout: Union[
115
- None,
116
- Annotated[StrictFloat, Field(gt=0)],
117
- Tuple[
118
- Annotated[StrictFloat, Field(gt=0)],
119
- Annotated[StrictFloat, Field(gt=0)]
120
- ]
121
- ] = None,
122
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
123
- _content_type: Optional[StrictStr] = None,
124
- _headers: Optional[Dict[StrictStr, Any]] = None,
125
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
126
- ) -> ApiResponse[Prescriber]:
127
- """Get a prescriber by UUID or NPI
128
-
129
-
130
- :param prescriber_id: Prescriber UUID or NPI (required)
131
- :type prescriber_id: str
132
- :param _request_timeout: timeout setting for this request. If one
133
- number provided, it will be total request
134
- timeout. It can also be a pair (tuple) of
135
- (connection, read) timeouts.
136
- :type _request_timeout: int, tuple(int, int), optional
137
- :param _request_auth: set to override the auth_settings for an a single
138
- request; this effectively ignores the
139
- authentication in the spec for a single request.
140
- :type _request_auth: dict, optional
141
- :param _content_type: force content-type for the request.
142
- :type _content_type: str, Optional
143
- :param _headers: set to override the headers for a single
144
- request; this effectively ignores the headers
145
- in the spec for a single request.
146
- :type _headers: dict, optional
147
- :param _host_index: set to override the host_index for a single
148
- request; this effectively ignores the host_index
149
- in the spec for a single request.
150
- :type _host_index: int, optional
151
- :return: Returns the result object.
152
- """ # noqa: E501
153
-
154
- _param = self._get_prescriber_serialize(
155
- prescriber_id=prescriber_id,
156
- _request_auth=_request_auth,
157
- _content_type=_content_type,
158
- _headers=_headers,
159
- _host_index=_host_index
160
- )
161
-
162
- _response_types_map: Dict[str, Optional[str]] = {
163
- '200': "Prescriber",
164
- '404': None,
165
- }
166
- response_data = self.api_client.call_api(
167
- *_param,
168
- _request_timeout=_request_timeout
169
- )
170
- response_data.read()
171
- return self.api_client.response_deserialize(
172
- response_data=response_data,
173
- response_types_map=_response_types_map,
174
- )
175
-
176
-
177
- @validate_call
178
- def get_prescriber_without_preload_content(
179
- self,
180
- prescriber_id: Annotated[StrictStr, Field(description="Prescriber UUID or NPI")],
181
- _request_timeout: Union[
182
- None,
183
- Annotated[StrictFloat, Field(gt=0)],
184
- Tuple[
185
- Annotated[StrictFloat, Field(gt=0)],
186
- Annotated[StrictFloat, Field(gt=0)]
187
- ]
188
- ] = None,
189
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
190
- _content_type: Optional[StrictStr] = None,
191
- _headers: Optional[Dict[StrictStr, Any]] = None,
192
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
193
- ) -> RESTResponseType:
194
- """Get a prescriber by UUID or NPI
195
-
196
-
197
- :param prescriber_id: Prescriber UUID or NPI (required)
198
- :type prescriber_id: str
199
- :param _request_timeout: timeout setting for this request. If one
200
- number provided, it will be total request
201
- timeout. It can also be a pair (tuple) of
202
- (connection, read) timeouts.
203
- :type _request_timeout: int, tuple(int, int), optional
204
- :param _request_auth: set to override the auth_settings for an a single
205
- request; this effectively ignores the
206
- authentication in the spec for a single request.
207
- :type _request_auth: dict, optional
208
- :param _content_type: force content-type for the request.
209
- :type _content_type: str, Optional
210
- :param _headers: set to override the headers for a single
211
- request; this effectively ignores the headers
212
- in the spec for a single request.
213
- :type _headers: dict, optional
214
- :param _host_index: set to override the host_index for a single
215
- request; this effectively ignores the host_index
216
- in the spec for a single request.
217
- :type _host_index: int, optional
218
- :return: Returns the result object.
219
- """ # noqa: E501
220
-
221
- _param = self._get_prescriber_serialize(
222
- prescriber_id=prescriber_id,
223
- _request_auth=_request_auth,
224
- _content_type=_content_type,
225
- _headers=_headers,
226
- _host_index=_host_index
227
- )
228
-
229
- _response_types_map: Dict[str, Optional[str]] = {
230
- '200': "Prescriber",
231
- '404': None,
232
- }
233
- response_data = self.api_client.call_api(
234
- *_param,
235
- _request_timeout=_request_timeout
236
- )
237
- return response_data.response
238
-
239
-
240
- def _get_prescriber_serialize(
241
- self,
242
- prescriber_id,
243
- _request_auth,
244
- _content_type,
245
- _headers,
246
- _host_index,
247
- ) -> RequestSerialized:
248
-
249
- _host = None
250
-
251
- _collection_formats: Dict[str, str] = {
252
- }
253
-
254
- _path_params: Dict[str, str] = {}
255
- _query_params: List[Tuple[str, str]] = []
256
- _header_params: Dict[str, Optional[str]] = _headers or {}
257
- _form_params: List[Tuple[str, str]] = []
258
- _files: Dict[
259
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
260
- ] = {}
261
- _body_params: Optional[bytes] = None
262
-
263
- # process the path parameters
264
- if prescriber_id is not None:
265
- _path_params['prescriber_id'] = prescriber_id
266
- # process the query parameters
267
- # process the header parameters
268
- # process the form parameters
269
- # process the body parameter
270
-
271
-
272
- # set the HTTP header `Accept`
273
- if 'Accept' not in _header_params:
274
- _header_params['Accept'] = self.api_client.select_header_accept(
275
- [
276
- 'application/json'
277
- ]
278
- )
279
-
280
-
281
- # authentication setting
282
- _auth_settings: List[str] = [
283
- 'opaque_token'
284
- ]
285
-
286
- return self.api_client.param_serialize(
287
- method='GET',
288
- resource_path='/swifty/1/prescribers/{prescriber_id}',
289
- path_params=_path_params,
290
- query_params=_query_params,
291
- header_params=_header_params,
292
- body=_body_params,
293
- post_params=_form_params,
294
- files=_files,
295
- auth_settings=_auth_settings,
296
- collection_formats=_collection_formats,
297
- _host=_host,
298
- _request_auth=_request_auth
299
- )
300
-
301
-
302
-
303
-
304
- @validate_call
305
- def get_prescribers(
306
- self,
307
- q: Annotated[Optional[StrictStr], Field(description="Filter medications by query")] = None,
308
- page: Optional[StrictInt] = None,
309
- results_per_page: Optional[StrictInt] = None,
310
- deep: Optional[StrictBool] = None,
311
- _request_timeout: Union[
312
- None,
313
- Annotated[StrictFloat, Field(gt=0)],
314
- Tuple[
315
- Annotated[StrictFloat, Field(gt=0)],
316
- Annotated[StrictFloat, Field(gt=0)]
317
- ]
318
- ] = None,
319
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
320
- _content_type: Optional[StrictStr] = None,
321
- _headers: Optional[Dict[StrictStr, Any]] = None,
322
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
323
- ) -> List[Prescriber]:
324
- """Get all prescribers
325
-
326
-
327
- :param q: Filter medications by query
328
- :type q: str
329
- :param page:
330
- :type page: int
331
- :param results_per_page:
332
- :type results_per_page: int
333
- :param deep:
334
- :type deep: bool
335
- :param _request_timeout: timeout setting for this request. If one
336
- number provided, it will be total request
337
- timeout. It can also be a pair (tuple) of
338
- (connection, read) timeouts.
339
- :type _request_timeout: int, tuple(int, int), optional
340
- :param _request_auth: set to override the auth_settings for an a single
341
- request; this effectively ignores the
342
- authentication in the spec for a single request.
343
- :type _request_auth: dict, optional
344
- :param _content_type: force content-type for the request.
345
- :type _content_type: str, Optional
346
- :param _headers: set to override the headers for a single
347
- request; this effectively ignores the headers
348
- in the spec for a single request.
349
- :type _headers: dict, optional
350
- :param _host_index: set to override the host_index for a single
351
- request; this effectively ignores the host_index
352
- in the spec for a single request.
353
- :type _host_index: int, optional
354
- :return: Returns the result object.
355
- """ # noqa: E501
356
-
357
- _param = self._get_prescribers_serialize(
358
- q=q,
359
- page=page,
360
- results_per_page=results_per_page,
361
- deep=deep,
362
- _request_auth=_request_auth,
363
- _content_type=_content_type,
364
- _headers=_headers,
365
- _host_index=_host_index
366
- )
367
-
368
- _response_types_map: Dict[str, Optional[str]] = {
369
- '200': "List[Prescriber]",
370
- '404': None,
371
- }
372
- response_data = self.api_client.call_api(
373
- *_param,
374
- _request_timeout=_request_timeout
375
- )
376
- response_data.read()
377
- return self.api_client.response_deserialize(
378
- response_data=response_data,
379
- response_types_map=_response_types_map,
380
- ).data
381
-
382
-
383
- @validate_call
384
- def get_prescribers_with_http_info(
385
- self,
386
- q: Annotated[Optional[StrictStr], Field(description="Filter medications by query")] = None,
387
- page: Optional[StrictInt] = None,
388
- results_per_page: Optional[StrictInt] = None,
389
- deep: Optional[StrictBool] = None,
390
- _request_timeout: Union[
391
- None,
392
- Annotated[StrictFloat, Field(gt=0)],
393
- Tuple[
394
- Annotated[StrictFloat, Field(gt=0)],
395
- Annotated[StrictFloat, Field(gt=0)]
396
- ]
397
- ] = None,
398
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
399
- _content_type: Optional[StrictStr] = None,
400
- _headers: Optional[Dict[StrictStr, Any]] = None,
401
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
402
- ) -> ApiResponse[List[Prescriber]]:
403
- """Get all prescribers
404
-
405
-
406
- :param q: Filter medications by query
407
- :type q: str
408
- :param page:
409
- :type page: int
410
- :param results_per_page:
411
- :type results_per_page: int
412
- :param deep:
413
- :type deep: bool
414
- :param _request_timeout: timeout setting for this request. If one
415
- number provided, it will be total request
416
- timeout. It can also be a pair (tuple) of
417
- (connection, read) timeouts.
418
- :type _request_timeout: int, tuple(int, int), optional
419
- :param _request_auth: set to override the auth_settings for an a single
420
- request; this effectively ignores the
421
- authentication in the spec for a single request.
422
- :type _request_auth: dict, optional
423
- :param _content_type: force content-type for the request.
424
- :type _content_type: str, Optional
425
- :param _headers: set to override the headers for a single
426
- request; this effectively ignores the headers
427
- in the spec for a single request.
428
- :type _headers: dict, optional
429
- :param _host_index: set to override the host_index for a single
430
- request; this effectively ignores the host_index
431
- in the spec for a single request.
432
- :type _host_index: int, optional
433
- :return: Returns the result object.
434
- """ # noqa: E501
435
-
436
- _param = self._get_prescribers_serialize(
437
- q=q,
438
- page=page,
439
- results_per_page=results_per_page,
440
- deep=deep,
441
- _request_auth=_request_auth,
442
- _content_type=_content_type,
443
- _headers=_headers,
444
- _host_index=_host_index
445
- )
446
-
447
- _response_types_map: Dict[str, Optional[str]] = {
448
- '200': "List[Prescriber]",
449
- '404': None,
450
- }
451
- response_data = self.api_client.call_api(
452
- *_param,
453
- _request_timeout=_request_timeout
454
- )
455
- response_data.read()
456
- return self.api_client.response_deserialize(
457
- response_data=response_data,
458
- response_types_map=_response_types_map,
459
- )
460
-
461
-
462
- @validate_call
463
- def get_prescribers_without_preload_content(
464
- self,
465
- q: Annotated[Optional[StrictStr], Field(description="Filter medications by query")] = None,
466
- page: Optional[StrictInt] = None,
467
- results_per_page: Optional[StrictInt] = None,
468
- deep: Optional[StrictBool] = None,
469
- _request_timeout: Union[
470
- None,
471
- Annotated[StrictFloat, Field(gt=0)],
472
- Tuple[
473
- Annotated[StrictFloat, Field(gt=0)],
474
- Annotated[StrictFloat, Field(gt=0)]
475
- ]
476
- ] = None,
477
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
478
- _content_type: Optional[StrictStr] = None,
479
- _headers: Optional[Dict[StrictStr, Any]] = None,
480
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
481
- ) -> RESTResponseType:
482
- """Get all prescribers
483
-
484
-
485
- :param q: Filter medications by query
486
- :type q: str
487
- :param page:
488
- :type page: int
489
- :param results_per_page:
490
- :type results_per_page: int
491
- :param deep:
492
- :type deep: bool
493
- :param _request_timeout: timeout setting for this request. If one
494
- number provided, it will be total request
495
- timeout. It can also be a pair (tuple) of
496
- (connection, read) timeouts.
497
- :type _request_timeout: int, tuple(int, int), optional
498
- :param _request_auth: set to override the auth_settings for an a single
499
- request; this effectively ignores the
500
- authentication in the spec for a single request.
501
- :type _request_auth: dict, optional
502
- :param _content_type: force content-type for the request.
503
- :type _content_type: str, Optional
504
- :param _headers: set to override the headers for a single
505
- request; this effectively ignores the headers
506
- in the spec for a single request.
507
- :type _headers: dict, optional
508
- :param _host_index: set to override the host_index for a single
509
- request; this effectively ignores the host_index
510
- in the spec for a single request.
511
- :type _host_index: int, optional
512
- :return: Returns the result object.
513
- """ # noqa: E501
514
-
515
- _param = self._get_prescribers_serialize(
516
- q=q,
517
- page=page,
518
- results_per_page=results_per_page,
519
- deep=deep,
520
- _request_auth=_request_auth,
521
- _content_type=_content_type,
522
- _headers=_headers,
523
- _host_index=_host_index
524
- )
525
-
526
- _response_types_map: Dict[str, Optional[str]] = {
527
- '200': "List[Prescriber]",
528
- '404': None,
529
- }
530
- response_data = self.api_client.call_api(
531
- *_param,
532
- _request_timeout=_request_timeout
533
- )
534
- return response_data.response
535
-
536
-
537
- def _get_prescribers_serialize(
538
- self,
539
- q,
540
- page,
541
- results_per_page,
542
- deep,
543
- _request_auth,
544
- _content_type,
545
- _headers,
546
- _host_index,
547
- ) -> RequestSerialized:
548
-
549
- _host = None
550
-
551
- _collection_formats: Dict[str, str] = {
552
- }
553
-
554
- _path_params: Dict[str, str] = {}
555
- _query_params: List[Tuple[str, str]] = []
556
- _header_params: Dict[str, Optional[str]] = _headers or {}
557
- _form_params: List[Tuple[str, str]] = []
558
- _files: Dict[
559
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
560
- ] = {}
561
- _body_params: Optional[bytes] = None
562
-
563
- # process the path parameters
564
- # process the query parameters
565
- if q is not None:
566
-
567
- _query_params.append(('q', q))
568
-
569
- if page is not None:
570
-
571
- _query_params.append(('page', page))
572
-
573
- if results_per_page is not None:
574
-
575
- _query_params.append(('results_per_page', results_per_page))
576
-
577
- if deep is not None:
578
-
579
- _query_params.append(('deep', deep))
580
-
581
- # process the header parameters
582
- # process the form parameters
583
- # process the body parameter
584
-
585
-
586
- # set the HTTP header `Accept`
587
- if 'Accept' not in _header_params:
588
- _header_params['Accept'] = self.api_client.select_header_accept(
589
- [
590
- 'application/json'
591
- ]
592
- )
593
-
594
-
595
- # authentication setting
596
- _auth_settings: List[str] = [
597
- 'opaque_token'
598
- ]
599
-
600
- return self.api_client.param_serialize(
601
- method='GET',
602
- resource_path='/swifty/1/prescribers',
603
- path_params=_path_params,
604
- query_params=_query_params,
605
- header_params=_header_params,
606
- body=_body_params,
607
- post_params=_form_params,
608
- files=_files,
609
- auth_settings=_auth_settings,
610
- collection_formats=_collection_formats,
611
- _host=_host,
612
- _request_auth=_request_auth
613
- )
614
-
615
-