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