rxfoundry.clients.swifty-api 0.0.593__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 (61) hide show
  1. rxfoundry/clients/swifty_api/models/virtual_pharmacy.py +3 -1
  2. {rxfoundry_clients_swifty_api-0.0.593.dist-info → rxfoundry_clients_swifty_api-1.0.0.dist-info}/METADATA +1 -1
  3. rxfoundry_clients_swifty_api-1.0.0.dist-info/RECORD +61 -0
  4. rxfoundry/clients/p2rx_api/__init__.py +0 -79
  5. rxfoundry/clients/p2rx_api/api/__init__.py +0 -17
  6. rxfoundry/clients/p2rx_api/api/async_api.py +0 -862
  7. rxfoundry/clients/p2rx_api/api/code_api.py +0 -337
  8. rxfoundry/clients/p2rx_api/api/fax_api.py +0 -632
  9. rxfoundry/clients/p2rx_api/api/medication_api.py +0 -666
  10. rxfoundry/clients/p2rx_api/api/patient_api.py +0 -981
  11. rxfoundry/clients/p2rx_api/api/pharmacist_api.py +0 -615
  12. rxfoundry/clients/p2rx_api/api/pharmacy_api.py +0 -684
  13. rxfoundry/clients/p2rx_api/api/prescriber_api.py +0 -615
  14. rxfoundry/clients/p2rx_api/api/prescription_api.py +0 -1864
  15. rxfoundry/clients/p2rx_api/api/token_api.py +0 -314
  16. rxfoundry/clients/p2rx_api/api/user_api.py +0 -306
  17. rxfoundry/clients/p2rx_api/api/version_api.py +0 -282
  18. rxfoundry/clients/p2rx_api/api/virtual_pharmacy_api.py +0 -284
  19. rxfoundry/clients/p2rx_api/api_client.py +0 -798
  20. rxfoundry/clients/p2rx_api/api_response.py +0 -21
  21. rxfoundry/clients/p2rx_api/configuration.py +0 -583
  22. rxfoundry/clients/p2rx_api/exceptions.py +0 -217
  23. rxfoundry/clients/p2rx_api/models/__init__.py +0 -50
  24. rxfoundry/clients/p2rx_api/models/address.py +0 -106
  25. rxfoundry/clients/p2rx_api/models/asynchronous_response.py +0 -90
  26. rxfoundry/clients/p2rx_api/models/code.py +0 -92
  27. rxfoundry/clients/p2rx_api/models/code_qualifier_code.py +0 -96
  28. rxfoundry/clients/p2rx_api/models/error_message.py +0 -90
  29. rxfoundry/clients/p2rx_api/models/fax.py +0 -141
  30. rxfoundry/clients/p2rx_api/models/medication.py +0 -137
  31. rxfoundry/clients/p2rx_api/models/medication_program_pricing.py +0 -99
  32. rxfoundry/clients/p2rx_api/models/medication_variant.py +0 -96
  33. rxfoundry/clients/p2rx_api/models/patient.py +0 -128
  34. rxfoundry/clients/p2rx_api/models/patient_activity_notification.py +0 -114
  35. rxfoundry/clients/p2rx_api/models/patient_external_identifier.py +0 -94
  36. rxfoundry/clients/p2rx_api/models/pharmacist.py +0 -104
  37. rxfoundry/clients/p2rx_api/models/pharmacy.py +0 -156
  38. rxfoundry/clients/p2rx_api/models/pharmacy_chain.py +0 -100
  39. rxfoundry/clients/p2rx_api/models/pharmacy_other_identifier.py +0 -98
  40. rxfoundry/clients/p2rx_api/models/pharmacy_program_pricing.py +0 -103
  41. rxfoundry/clients/p2rx_api/models/prescriber.py +0 -106
  42. rxfoundry/clients/p2rx_api/models/prescription.py +0 -278
  43. rxfoundry/clients/p2rx_api/models/prescription_change_request.py +0 -123
  44. rxfoundry/clients/p2rx_api/models/prescription_issue.py +0 -120
  45. rxfoundry/clients/p2rx_api/models/prescription_patch.py +0 -113
  46. rxfoundry/clients/p2rx_api/models/prescription_task.py +0 -130
  47. rxfoundry/clients/p2rx_api/models/prescription_task_status.py +0 -95
  48. rxfoundry/clients/p2rx_api/models/prescription_transfer_request.py +0 -93
  49. rxfoundry/clients/p2rx_api/models/prescription_verification.py +0 -107
  50. rxfoundry/clients/p2rx_api/models/pricing_program.py +0 -90
  51. rxfoundry/clients/p2rx_api/models/surescripts_message.py +0 -111
  52. rxfoundry/clients/p2rx_api/models/token.py +0 -92
  53. rxfoundry/clients/p2rx_api/models/user.py +0 -98
  54. rxfoundry/clients/p2rx_api/models/version.py +0 -88
  55. rxfoundry/clients/p2rx_api/models/virtual_pharmacy.py +0 -96
  56. rxfoundry/clients/p2rx_api/models/workflow_request.py +0 -90
  57. rxfoundry/clients/p2rx_api/py.typed +0 -0
  58. rxfoundry/clients/p2rx_api/rest.py +0 -259
  59. rxfoundry_clients_swifty_api-0.0.593.dist-info/RECORD +0 -116
  60. {rxfoundry_clients_swifty_api-0.0.593.dist-info → rxfoundry_clients_swifty_api-1.0.0.dist-info}/WHEEL +0 -0
  61. {rxfoundry_clients_swifty_api-0.0.593.dist-info → rxfoundry_clients_swifty_api-1.0.0.dist-info}/top_level.txt +0 -0
@@ -1,1864 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- P2RX API
5
-
6
- API for the P2RX 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, field_validator
21
- from typing import List, Optional
22
- from typing_extensions import Annotated
23
- from rxfoundry.clients.swifty_api.models.prescription import Prescription
24
- from rxfoundry.clients.swifty_api.models.prescription_change_request import PrescriptionChangeRequest
25
- from rxfoundry.clients.swifty_api.models.prescription_patch import PrescriptionPatch
26
- from rxfoundry.clients.swifty_api.models.prescription_verification import PrescriptionVerification
27
-
28
- from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
29
- from rxfoundry.clients.swifty_api.api_response import ApiResponse
30
- from rxfoundry.clients.swifty_api.rest import RESTResponseType
31
-
32
-
33
- class PrescriptionApi:
34
- """NOTE: This class is auto generated by OpenAPI Generator
35
- Ref: https://openapi-generator.tech
36
-
37
- Do not edit the class manually.
38
- """
39
-
40
- def __init__(self, api_client=None) -> None:
41
- if api_client is None:
42
- api_client = ApiClient.get_default()
43
- self.api_client = api_client
44
-
45
-
46
- @validate_call
47
- def create_pharmacist_verification(
48
- self,
49
- prescription_id: StrictStr,
50
- prescription_verification: PrescriptionVerification,
51
- _request_timeout: Union[
52
- None,
53
- Annotated[StrictFloat, Field(gt=0)],
54
- Tuple[
55
- Annotated[StrictFloat, Field(gt=0)],
56
- Annotated[StrictFloat, Field(gt=0)]
57
- ]
58
- ] = None,
59
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
60
- _content_type: Optional[StrictStr] = None,
61
- _headers: Optional[Dict[StrictStr, Any]] = None,
62
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
63
- ) -> Prescription:
64
- """Create a new prescription verification setting
65
-
66
-
67
- :param prescription_id: (required)
68
- :type prescription_id: str
69
- :param prescription_verification: (required)
70
- :type prescription_verification: PrescriptionVerification
71
- :param _request_timeout: timeout setting for this request. If one
72
- number provided, it will be total request
73
- timeout. It can also be a pair (tuple) of
74
- (connection, read) timeouts.
75
- :type _request_timeout: int, tuple(int, int), optional
76
- :param _request_auth: set to override the auth_settings for an a single
77
- request; this effectively ignores the
78
- authentication in the spec for a single request.
79
- :type _request_auth: dict, optional
80
- :param _content_type: force content-type for the request.
81
- :type _content_type: str, Optional
82
- :param _headers: set to override the headers for a single
83
- request; this effectively ignores the headers
84
- in the spec for a single request.
85
- :type _headers: dict, optional
86
- :param _host_index: set to override the host_index for a single
87
- request; this effectively ignores the host_index
88
- in the spec for a single request.
89
- :type _host_index: int, optional
90
- :return: Returns the result object.
91
- """ # noqa: E501
92
-
93
- _param = self._create_pharmacist_verification_serialize(
94
- prescription_id=prescription_id,
95
- prescription_verification=prescription_verification,
96
- _request_auth=_request_auth,
97
- _content_type=_content_type,
98
- _headers=_headers,
99
- _host_index=_host_index
100
- )
101
-
102
- _response_types_map: Dict[str, Optional[str]] = {
103
- '201': "Prescription",
104
- '400': None,
105
- '404': None,
106
- '409': None,
107
- }
108
- response_data = self.api_client.call_api(
109
- *_param,
110
- _request_timeout=_request_timeout
111
- )
112
- response_data.read()
113
- return self.api_client.response_deserialize(
114
- response_data=response_data,
115
- response_types_map=_response_types_map,
116
- ).data
117
-
118
-
119
- @validate_call
120
- def create_pharmacist_verification_with_http_info(
121
- self,
122
- prescription_id: StrictStr,
123
- prescription_verification: PrescriptionVerification,
124
- _request_timeout: Union[
125
- None,
126
- Annotated[StrictFloat, Field(gt=0)],
127
- Tuple[
128
- Annotated[StrictFloat, Field(gt=0)],
129
- Annotated[StrictFloat, Field(gt=0)]
130
- ]
131
- ] = None,
132
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
133
- _content_type: Optional[StrictStr] = None,
134
- _headers: Optional[Dict[StrictStr, Any]] = None,
135
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
136
- ) -> ApiResponse[Prescription]:
137
- """Create a new prescription verification setting
138
-
139
-
140
- :param prescription_id: (required)
141
- :type prescription_id: str
142
- :param prescription_verification: (required)
143
- :type prescription_verification: PrescriptionVerification
144
- :param _request_timeout: timeout setting for this request. If one
145
- number provided, it will be total request
146
- timeout. It can also be a pair (tuple) of
147
- (connection, read) timeouts.
148
- :type _request_timeout: int, tuple(int, int), optional
149
- :param _request_auth: set to override the auth_settings for an a single
150
- request; this effectively ignores the
151
- authentication in the spec for a single request.
152
- :type _request_auth: dict, optional
153
- :param _content_type: force content-type for the request.
154
- :type _content_type: str, Optional
155
- :param _headers: set to override the headers for a single
156
- request; this effectively ignores the headers
157
- in the spec for a single request.
158
- :type _headers: dict, optional
159
- :param _host_index: set to override the host_index for a single
160
- request; this effectively ignores the host_index
161
- in the spec for a single request.
162
- :type _host_index: int, optional
163
- :return: Returns the result object.
164
- """ # noqa: E501
165
-
166
- _param = self._create_pharmacist_verification_serialize(
167
- prescription_id=prescription_id,
168
- prescription_verification=prescription_verification,
169
- _request_auth=_request_auth,
170
- _content_type=_content_type,
171
- _headers=_headers,
172
- _host_index=_host_index
173
- )
174
-
175
- _response_types_map: Dict[str, Optional[str]] = {
176
- '201': "Prescription",
177
- '400': None,
178
- '404': None,
179
- '409': None,
180
- }
181
- response_data = self.api_client.call_api(
182
- *_param,
183
- _request_timeout=_request_timeout
184
- )
185
- response_data.read()
186
- return self.api_client.response_deserialize(
187
- response_data=response_data,
188
- response_types_map=_response_types_map,
189
- )
190
-
191
-
192
- @validate_call
193
- def create_pharmacist_verification_without_preload_content(
194
- self,
195
- prescription_id: StrictStr,
196
- prescription_verification: PrescriptionVerification,
197
- _request_timeout: Union[
198
- None,
199
- Annotated[StrictFloat, Field(gt=0)],
200
- Tuple[
201
- Annotated[StrictFloat, Field(gt=0)],
202
- Annotated[StrictFloat, Field(gt=0)]
203
- ]
204
- ] = None,
205
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
206
- _content_type: Optional[StrictStr] = None,
207
- _headers: Optional[Dict[StrictStr, Any]] = None,
208
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
209
- ) -> RESTResponseType:
210
- """Create a new prescription verification setting
211
-
212
-
213
- :param prescription_id: (required)
214
- :type prescription_id: str
215
- :param prescription_verification: (required)
216
- :type prescription_verification: PrescriptionVerification
217
- :param _request_timeout: timeout setting for this request. If one
218
- number provided, it will be total request
219
- timeout. It can also be a pair (tuple) of
220
- (connection, read) timeouts.
221
- :type _request_timeout: int, tuple(int, int), optional
222
- :param _request_auth: set to override the auth_settings for an a single
223
- request; this effectively ignores the
224
- authentication in the spec for a single request.
225
- :type _request_auth: dict, optional
226
- :param _content_type: force content-type for the request.
227
- :type _content_type: str, Optional
228
- :param _headers: set to override the headers for a single
229
- request; this effectively ignores the headers
230
- in the spec for a single request.
231
- :type _headers: dict, optional
232
- :param _host_index: set to override the host_index for a single
233
- request; this effectively ignores the host_index
234
- in the spec for a single request.
235
- :type _host_index: int, optional
236
- :return: Returns the result object.
237
- """ # noqa: E501
238
-
239
- _param = self._create_pharmacist_verification_serialize(
240
- prescription_id=prescription_id,
241
- prescription_verification=prescription_verification,
242
- _request_auth=_request_auth,
243
- _content_type=_content_type,
244
- _headers=_headers,
245
- _host_index=_host_index
246
- )
247
-
248
- _response_types_map: Dict[str, Optional[str]] = {
249
- '201': "Prescription",
250
- '400': None,
251
- '404': None,
252
- '409': None,
253
- }
254
- response_data = self.api_client.call_api(
255
- *_param,
256
- _request_timeout=_request_timeout
257
- )
258
- return response_data.response
259
-
260
-
261
- def _create_pharmacist_verification_serialize(
262
- self,
263
- prescription_id,
264
- prescription_verification,
265
- _request_auth,
266
- _content_type,
267
- _headers,
268
- _host_index,
269
- ) -> RequestSerialized:
270
-
271
- _host = None
272
-
273
- _collection_formats: Dict[str, str] = {
274
- }
275
-
276
- _path_params: Dict[str, str] = {}
277
- _query_params: List[Tuple[str, str]] = []
278
- _header_params: Dict[str, Optional[str]] = _headers or {}
279
- _form_params: List[Tuple[str, str]] = []
280
- _files: Dict[
281
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
282
- ] = {}
283
- _body_params: Optional[bytes] = None
284
-
285
- # process the path parameters
286
- if prescription_id is not None:
287
- _path_params['prescription_id'] = prescription_id
288
- # process the query parameters
289
- # process the header parameters
290
- # process the form parameters
291
- # process the body parameter
292
- if prescription_verification is not None:
293
- _body_params = prescription_verification
294
-
295
-
296
- # set the HTTP header `Accept`
297
- if 'Accept' not in _header_params:
298
- _header_params['Accept'] = self.api_client.select_header_accept(
299
- [
300
- 'application/json'
301
- ]
302
- )
303
-
304
- # set the HTTP header `Content-Type`
305
- if _content_type:
306
- _header_params['Content-Type'] = _content_type
307
- else:
308
- _default_content_type = (
309
- self.api_client.select_header_content_type(
310
- [
311
- 'application/json'
312
- ]
313
- )
314
- )
315
- if _default_content_type is not None:
316
- _header_params['Content-Type'] = _default_content_type
317
-
318
- # authentication setting
319
- _auth_settings: List[str] = [
320
- 'opaque_token'
321
- ]
322
-
323
- return self.api_client.param_serialize(
324
- method='POST',
325
- resource_path='/p2rx/1/prescriptions/{prescription_id}/pv',
326
- path_params=_path_params,
327
- query_params=_query_params,
328
- header_params=_header_params,
329
- body=_body_params,
330
- post_params=_form_params,
331
- files=_files,
332
- auth_settings=_auth_settings,
333
- collection_formats=_collection_formats,
334
- _host=_host,
335
- _request_auth=_request_auth
336
- )
337
-
338
-
339
-
340
-
341
- @validate_call
342
- def create_prescription_change_request(
343
- self,
344
- prescription_id: StrictStr,
345
- prescription_change_request: Optional[PrescriptionChangeRequest] = None,
346
- _request_timeout: Union[
347
- None,
348
- Annotated[StrictFloat, Field(gt=0)],
349
- Tuple[
350
- Annotated[StrictFloat, Field(gt=0)],
351
- Annotated[StrictFloat, Field(gt=0)]
352
- ]
353
- ] = None,
354
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
355
- _content_type: Optional[StrictStr] = None,
356
- _headers: Optional[Dict[StrictStr, Any]] = None,
357
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
358
- ) -> List[PrescriptionChangeRequest]:
359
- """Create a new prescription change request
360
-
361
-
362
- :param prescription_id: (required)
363
- :type prescription_id: str
364
- :param prescription_change_request:
365
- :type prescription_change_request: PrescriptionChangeRequest
366
- :param _request_timeout: timeout setting for this request. If one
367
- number provided, it will be total request
368
- timeout. It can also be a pair (tuple) of
369
- (connection, read) timeouts.
370
- :type _request_timeout: int, tuple(int, int), optional
371
- :param _request_auth: set to override the auth_settings for an a single
372
- request; this effectively ignores the
373
- authentication in the spec for a single request.
374
- :type _request_auth: dict, optional
375
- :param _content_type: force content-type for the request.
376
- :type _content_type: str, Optional
377
- :param _headers: set to override the headers for a single
378
- request; this effectively ignores the headers
379
- in the spec for a single request.
380
- :type _headers: dict, optional
381
- :param _host_index: set to override the host_index for a single
382
- request; this effectively ignores the host_index
383
- in the spec for a single request.
384
- :type _host_index: int, optional
385
- :return: Returns the result object.
386
- """ # noqa: E501
387
-
388
- _param = self._create_prescription_change_request_serialize(
389
- prescription_id=prescription_id,
390
- prescription_change_request=prescription_change_request,
391
- _request_auth=_request_auth,
392
- _content_type=_content_type,
393
- _headers=_headers,
394
- _host_index=_host_index
395
- )
396
-
397
- _response_types_map: Dict[str, Optional[str]] = {
398
- '201': "List[PrescriptionChangeRequest]",
399
- '400': None,
400
- '404': None,
401
- '409': None,
402
- }
403
- response_data = self.api_client.call_api(
404
- *_param,
405
- _request_timeout=_request_timeout
406
- )
407
- response_data.read()
408
- return self.api_client.response_deserialize(
409
- response_data=response_data,
410
- response_types_map=_response_types_map,
411
- ).data
412
-
413
-
414
- @validate_call
415
- def create_prescription_change_request_with_http_info(
416
- self,
417
- prescription_id: StrictStr,
418
- prescription_change_request: Optional[PrescriptionChangeRequest] = None,
419
- _request_timeout: Union[
420
- None,
421
- Annotated[StrictFloat, Field(gt=0)],
422
- Tuple[
423
- Annotated[StrictFloat, Field(gt=0)],
424
- Annotated[StrictFloat, Field(gt=0)]
425
- ]
426
- ] = None,
427
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
428
- _content_type: Optional[StrictStr] = None,
429
- _headers: Optional[Dict[StrictStr, Any]] = None,
430
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
431
- ) -> ApiResponse[List[PrescriptionChangeRequest]]:
432
- """Create a new prescription change request
433
-
434
-
435
- :param prescription_id: (required)
436
- :type prescription_id: str
437
- :param prescription_change_request:
438
- :type prescription_change_request: PrescriptionChangeRequest
439
- :param _request_timeout: timeout setting for this request. If one
440
- number provided, it will be total request
441
- timeout. It can also be a pair (tuple) of
442
- (connection, read) timeouts.
443
- :type _request_timeout: int, tuple(int, int), optional
444
- :param _request_auth: set to override the auth_settings for an a single
445
- request; this effectively ignores the
446
- authentication in the spec for a single request.
447
- :type _request_auth: dict, optional
448
- :param _content_type: force content-type for the request.
449
- :type _content_type: str, Optional
450
- :param _headers: set to override the headers for a single
451
- request; this effectively ignores the headers
452
- in the spec for a single request.
453
- :type _headers: dict, optional
454
- :param _host_index: set to override the host_index for a single
455
- request; this effectively ignores the host_index
456
- in the spec for a single request.
457
- :type _host_index: int, optional
458
- :return: Returns the result object.
459
- """ # noqa: E501
460
-
461
- _param = self._create_prescription_change_request_serialize(
462
- prescription_id=prescription_id,
463
- prescription_change_request=prescription_change_request,
464
- _request_auth=_request_auth,
465
- _content_type=_content_type,
466
- _headers=_headers,
467
- _host_index=_host_index
468
- )
469
-
470
- _response_types_map: Dict[str, Optional[str]] = {
471
- '201': "List[PrescriptionChangeRequest]",
472
- '400': None,
473
- '404': None,
474
- '409': None,
475
- }
476
- response_data = self.api_client.call_api(
477
- *_param,
478
- _request_timeout=_request_timeout
479
- )
480
- response_data.read()
481
- return self.api_client.response_deserialize(
482
- response_data=response_data,
483
- response_types_map=_response_types_map,
484
- )
485
-
486
-
487
- @validate_call
488
- def create_prescription_change_request_without_preload_content(
489
- self,
490
- prescription_id: StrictStr,
491
- prescription_change_request: Optional[PrescriptionChangeRequest] = None,
492
- _request_timeout: Union[
493
- None,
494
- Annotated[StrictFloat, Field(gt=0)],
495
- Tuple[
496
- Annotated[StrictFloat, Field(gt=0)],
497
- Annotated[StrictFloat, Field(gt=0)]
498
- ]
499
- ] = None,
500
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
501
- _content_type: Optional[StrictStr] = None,
502
- _headers: Optional[Dict[StrictStr, Any]] = None,
503
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
504
- ) -> RESTResponseType:
505
- """Create a new prescription change request
506
-
507
-
508
- :param prescription_id: (required)
509
- :type prescription_id: str
510
- :param prescription_change_request:
511
- :type prescription_change_request: PrescriptionChangeRequest
512
- :param _request_timeout: timeout setting for this request. If one
513
- number provided, it will be total request
514
- timeout. It can also be a pair (tuple) of
515
- (connection, read) timeouts.
516
- :type _request_timeout: int, tuple(int, int), optional
517
- :param _request_auth: set to override the auth_settings for an a single
518
- request; this effectively ignores the
519
- authentication in the spec for a single request.
520
- :type _request_auth: dict, optional
521
- :param _content_type: force content-type for the request.
522
- :type _content_type: str, Optional
523
- :param _headers: set to override the headers for a single
524
- request; this effectively ignores the headers
525
- in the spec for a single request.
526
- :type _headers: dict, optional
527
- :param _host_index: set to override the host_index for a single
528
- request; this effectively ignores the host_index
529
- in the spec for a single request.
530
- :type _host_index: int, optional
531
- :return: Returns the result object.
532
- """ # noqa: E501
533
-
534
- _param = self._create_prescription_change_request_serialize(
535
- prescription_id=prescription_id,
536
- prescription_change_request=prescription_change_request,
537
- _request_auth=_request_auth,
538
- _content_type=_content_type,
539
- _headers=_headers,
540
- _host_index=_host_index
541
- )
542
-
543
- _response_types_map: Dict[str, Optional[str]] = {
544
- '201': "List[PrescriptionChangeRequest]",
545
- '400': None,
546
- '404': None,
547
- '409': None,
548
- }
549
- response_data = self.api_client.call_api(
550
- *_param,
551
- _request_timeout=_request_timeout
552
- )
553
- return response_data.response
554
-
555
-
556
- def _create_prescription_change_request_serialize(
557
- self,
558
- prescription_id,
559
- prescription_change_request,
560
- _request_auth,
561
- _content_type,
562
- _headers,
563
- _host_index,
564
- ) -> RequestSerialized:
565
-
566
- _host = None
567
-
568
- _collection_formats: Dict[str, str] = {
569
- }
570
-
571
- _path_params: Dict[str, str] = {}
572
- _query_params: List[Tuple[str, str]] = []
573
- _header_params: Dict[str, Optional[str]] = _headers or {}
574
- _form_params: List[Tuple[str, str]] = []
575
- _files: Dict[
576
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
577
- ] = {}
578
- _body_params: Optional[bytes] = None
579
-
580
- # process the path parameters
581
- if prescription_id is not None:
582
- _path_params['prescription_id'] = prescription_id
583
- # process the query parameters
584
- # process the header parameters
585
- # process the form parameters
586
- # process the body parameter
587
- if prescription_change_request is not None:
588
- _body_params = prescription_change_request
589
-
590
-
591
- # set the HTTP header `Accept`
592
- if 'Accept' not in _header_params:
593
- _header_params['Accept'] = self.api_client.select_header_accept(
594
- [
595
- 'application/json'
596
- ]
597
- )
598
-
599
- # set the HTTP header `Content-Type`
600
- if _content_type:
601
- _header_params['Content-Type'] = _content_type
602
- else:
603
- _default_content_type = (
604
- self.api_client.select_header_content_type(
605
- [
606
- 'application/json'
607
- ]
608
- )
609
- )
610
- if _default_content_type is not None:
611
- _header_params['Content-Type'] = _default_content_type
612
-
613
- # authentication setting
614
- _auth_settings: List[str] = [
615
- 'opaque_token'
616
- ]
617
-
618
- return self.api_client.param_serialize(
619
- method='POST',
620
- resource_path='/p2rx/1/prescriptions/{prescription_id}/change_requests',
621
- path_params=_path_params,
622
- query_params=_query_params,
623
- header_params=_header_params,
624
- body=_body_params,
625
- post_params=_form_params,
626
- files=_files,
627
- auth_settings=_auth_settings,
628
- collection_formats=_collection_formats,
629
- _host=_host,
630
- _request_auth=_request_auth
631
- )
632
-
633
-
634
-
635
-
636
- @validate_call
637
- def get_prescription(
638
- self,
639
- prescription_id: StrictStr,
640
- deep: Optional[StrictBool] = None,
641
- _request_timeout: Union[
642
- None,
643
- Annotated[StrictFloat, Field(gt=0)],
644
- Tuple[
645
- Annotated[StrictFloat, Field(gt=0)],
646
- Annotated[StrictFloat, Field(gt=0)]
647
- ]
648
- ] = None,
649
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
650
- _content_type: Optional[StrictStr] = None,
651
- _headers: Optional[Dict[StrictStr, Any]] = None,
652
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
653
- ) -> Prescription:
654
- """Get a prescription by UUID or RxNumber
655
-
656
-
657
- :param prescription_id: (required)
658
- :type prescription_id: str
659
- :param deep:
660
- :type deep: bool
661
- :param _request_timeout: timeout setting for this request. If one
662
- number provided, it will be total request
663
- timeout. It can also be a pair (tuple) of
664
- (connection, read) timeouts.
665
- :type _request_timeout: int, tuple(int, int), optional
666
- :param _request_auth: set to override the auth_settings for an a single
667
- request; this effectively ignores the
668
- authentication in the spec for a single request.
669
- :type _request_auth: dict, optional
670
- :param _content_type: force content-type for the request.
671
- :type _content_type: str, Optional
672
- :param _headers: set to override the headers for a single
673
- request; this effectively ignores the headers
674
- in the spec for a single request.
675
- :type _headers: dict, optional
676
- :param _host_index: set to override the host_index for a single
677
- request; this effectively ignores the host_index
678
- in the spec for a single request.
679
- :type _host_index: int, optional
680
- :return: Returns the result object.
681
- """ # noqa: E501
682
-
683
- _param = self._get_prescription_serialize(
684
- prescription_id=prescription_id,
685
- deep=deep,
686
- _request_auth=_request_auth,
687
- _content_type=_content_type,
688
- _headers=_headers,
689
- _host_index=_host_index
690
- )
691
-
692
- _response_types_map: Dict[str, Optional[str]] = {
693
- '200': "Prescription",
694
- '404': None,
695
- }
696
- response_data = self.api_client.call_api(
697
- *_param,
698
- _request_timeout=_request_timeout
699
- )
700
- response_data.read()
701
- return self.api_client.response_deserialize(
702
- response_data=response_data,
703
- response_types_map=_response_types_map,
704
- ).data
705
-
706
-
707
- @validate_call
708
- def get_prescription_with_http_info(
709
- self,
710
- prescription_id: StrictStr,
711
- deep: Optional[StrictBool] = None,
712
- _request_timeout: Union[
713
- None,
714
- Annotated[StrictFloat, Field(gt=0)],
715
- Tuple[
716
- Annotated[StrictFloat, Field(gt=0)],
717
- Annotated[StrictFloat, Field(gt=0)]
718
- ]
719
- ] = None,
720
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
721
- _content_type: Optional[StrictStr] = None,
722
- _headers: Optional[Dict[StrictStr, Any]] = None,
723
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
724
- ) -> ApiResponse[Prescription]:
725
- """Get a prescription by UUID or RxNumber
726
-
727
-
728
- :param prescription_id: (required)
729
- :type prescription_id: str
730
- :param deep:
731
- :type deep: bool
732
- :param _request_timeout: timeout setting for this request. If one
733
- number provided, it will be total request
734
- timeout. It can also be a pair (tuple) of
735
- (connection, read) timeouts.
736
- :type _request_timeout: int, tuple(int, int), optional
737
- :param _request_auth: set to override the auth_settings for an a single
738
- request; this effectively ignores the
739
- authentication in the spec for a single request.
740
- :type _request_auth: dict, optional
741
- :param _content_type: force content-type for the request.
742
- :type _content_type: str, Optional
743
- :param _headers: set to override the headers for a single
744
- request; this effectively ignores the headers
745
- in the spec for a single request.
746
- :type _headers: dict, optional
747
- :param _host_index: set to override the host_index for a single
748
- request; this effectively ignores the host_index
749
- in the spec for a single request.
750
- :type _host_index: int, optional
751
- :return: Returns the result object.
752
- """ # noqa: E501
753
-
754
- _param = self._get_prescription_serialize(
755
- prescription_id=prescription_id,
756
- deep=deep,
757
- _request_auth=_request_auth,
758
- _content_type=_content_type,
759
- _headers=_headers,
760
- _host_index=_host_index
761
- )
762
-
763
- _response_types_map: Dict[str, Optional[str]] = {
764
- '200': "Prescription",
765
- '404': None,
766
- }
767
- response_data = self.api_client.call_api(
768
- *_param,
769
- _request_timeout=_request_timeout
770
- )
771
- response_data.read()
772
- return self.api_client.response_deserialize(
773
- response_data=response_data,
774
- response_types_map=_response_types_map,
775
- )
776
-
777
-
778
- @validate_call
779
- def get_prescription_without_preload_content(
780
- self,
781
- prescription_id: StrictStr,
782
- deep: Optional[StrictBool] = None,
783
- _request_timeout: Union[
784
- None,
785
- Annotated[StrictFloat, Field(gt=0)],
786
- Tuple[
787
- Annotated[StrictFloat, Field(gt=0)],
788
- Annotated[StrictFloat, Field(gt=0)]
789
- ]
790
- ] = None,
791
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
792
- _content_type: Optional[StrictStr] = None,
793
- _headers: Optional[Dict[StrictStr, Any]] = None,
794
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
795
- ) -> RESTResponseType:
796
- """Get a prescription by UUID or RxNumber
797
-
798
-
799
- :param prescription_id: (required)
800
- :type prescription_id: str
801
- :param deep:
802
- :type deep: bool
803
- :param _request_timeout: timeout setting for this request. If one
804
- number provided, it will be total request
805
- timeout. It can also be a pair (tuple) of
806
- (connection, read) timeouts.
807
- :type _request_timeout: int, tuple(int, int), optional
808
- :param _request_auth: set to override the auth_settings for an a single
809
- request; this effectively ignores the
810
- authentication in the spec for a single request.
811
- :type _request_auth: dict, optional
812
- :param _content_type: force content-type for the request.
813
- :type _content_type: str, Optional
814
- :param _headers: set to override the headers for a single
815
- request; this effectively ignores the headers
816
- in the spec for a single request.
817
- :type _headers: dict, optional
818
- :param _host_index: set to override the host_index for a single
819
- request; this effectively ignores the host_index
820
- in the spec for a single request.
821
- :type _host_index: int, optional
822
- :return: Returns the result object.
823
- """ # noqa: E501
824
-
825
- _param = self._get_prescription_serialize(
826
- prescription_id=prescription_id,
827
- deep=deep,
828
- _request_auth=_request_auth,
829
- _content_type=_content_type,
830
- _headers=_headers,
831
- _host_index=_host_index
832
- )
833
-
834
- _response_types_map: Dict[str, Optional[str]] = {
835
- '200': "Prescription",
836
- '404': None,
837
- }
838
- response_data = self.api_client.call_api(
839
- *_param,
840
- _request_timeout=_request_timeout
841
- )
842
- return response_data.response
843
-
844
-
845
- def _get_prescription_serialize(
846
- self,
847
- prescription_id,
848
- deep,
849
- _request_auth,
850
- _content_type,
851
- _headers,
852
- _host_index,
853
- ) -> RequestSerialized:
854
-
855
- _host = None
856
-
857
- _collection_formats: Dict[str, str] = {
858
- }
859
-
860
- _path_params: Dict[str, str] = {}
861
- _query_params: List[Tuple[str, str]] = []
862
- _header_params: Dict[str, Optional[str]] = _headers or {}
863
- _form_params: List[Tuple[str, str]] = []
864
- _files: Dict[
865
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
866
- ] = {}
867
- _body_params: Optional[bytes] = None
868
-
869
- # process the path parameters
870
- if prescription_id is not None:
871
- _path_params['prescription_id'] = prescription_id
872
- # process the query parameters
873
- if deep is not None:
874
-
875
- _query_params.append(('deep', deep))
876
-
877
- # process the header parameters
878
- # process the form parameters
879
- # process the body parameter
880
-
881
-
882
- # set the HTTP header `Accept`
883
- if 'Accept' not in _header_params:
884
- _header_params['Accept'] = self.api_client.select_header_accept(
885
- [
886
- 'application/json'
887
- ]
888
- )
889
-
890
-
891
- # authentication setting
892
- _auth_settings: List[str] = [
893
- 'opaque_token'
894
- ]
895
-
896
- return self.api_client.param_serialize(
897
- method='GET',
898
- resource_path='/p2rx/1/prescriptions/{prescription_id}',
899
- path_params=_path_params,
900
- query_params=_query_params,
901
- header_params=_header_params,
902
- body=_body_params,
903
- post_params=_form_params,
904
- files=_files,
905
- auth_settings=_auth_settings,
906
- collection_formats=_collection_formats,
907
- _host=_host,
908
- _request_auth=_request_auth
909
- )
910
-
911
-
912
-
913
-
914
- @validate_call
915
- def get_prescription_change_requests(
916
- self,
917
- prescription_id: StrictStr,
918
- _request_timeout: Union[
919
- None,
920
- Annotated[StrictFloat, Field(gt=0)],
921
- Tuple[
922
- Annotated[StrictFloat, Field(gt=0)],
923
- Annotated[StrictFloat, Field(gt=0)]
924
- ]
925
- ] = None,
926
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
927
- _content_type: Optional[StrictStr] = None,
928
- _headers: Optional[Dict[StrictStr, Any]] = None,
929
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
930
- ) -> List[PrescriptionChangeRequest]:
931
- """Get a list of prescription change requests
932
-
933
-
934
- :param prescription_id: (required)
935
- :type prescription_id: str
936
- :param _request_timeout: timeout setting for this request. If one
937
- number provided, it will be total request
938
- timeout. It can also be a pair (tuple) of
939
- (connection, read) timeouts.
940
- :type _request_timeout: int, tuple(int, int), optional
941
- :param _request_auth: set to override the auth_settings for an a single
942
- request; this effectively ignores the
943
- authentication in the spec for a single request.
944
- :type _request_auth: dict, optional
945
- :param _content_type: force content-type for the request.
946
- :type _content_type: str, Optional
947
- :param _headers: set to override the headers for a single
948
- request; this effectively ignores the headers
949
- in the spec for a single request.
950
- :type _headers: dict, optional
951
- :param _host_index: set to override the host_index for a single
952
- request; this effectively ignores the host_index
953
- in the spec for a single request.
954
- :type _host_index: int, optional
955
- :return: Returns the result object.
956
- """ # noqa: E501
957
-
958
- _param = self._get_prescription_change_requests_serialize(
959
- prescription_id=prescription_id,
960
- _request_auth=_request_auth,
961
- _content_type=_content_type,
962
- _headers=_headers,
963
- _host_index=_host_index
964
- )
965
-
966
- _response_types_map: Dict[str, Optional[str]] = {
967
- '200': "List[PrescriptionChangeRequest]",
968
- '404': None,
969
- }
970
- response_data = self.api_client.call_api(
971
- *_param,
972
- _request_timeout=_request_timeout
973
- )
974
- response_data.read()
975
- return self.api_client.response_deserialize(
976
- response_data=response_data,
977
- response_types_map=_response_types_map,
978
- ).data
979
-
980
-
981
- @validate_call
982
- def get_prescription_change_requests_with_http_info(
983
- self,
984
- prescription_id: StrictStr,
985
- _request_timeout: Union[
986
- None,
987
- Annotated[StrictFloat, Field(gt=0)],
988
- Tuple[
989
- Annotated[StrictFloat, Field(gt=0)],
990
- Annotated[StrictFloat, Field(gt=0)]
991
- ]
992
- ] = None,
993
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
994
- _content_type: Optional[StrictStr] = None,
995
- _headers: Optional[Dict[StrictStr, Any]] = None,
996
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
997
- ) -> ApiResponse[List[PrescriptionChangeRequest]]:
998
- """Get a list of prescription change requests
999
-
1000
-
1001
- :param prescription_id: (required)
1002
- :type prescription_id: str
1003
- :param _request_timeout: timeout setting for this request. If one
1004
- number provided, it will be total request
1005
- timeout. It can also be a pair (tuple) of
1006
- (connection, read) timeouts.
1007
- :type _request_timeout: int, tuple(int, int), optional
1008
- :param _request_auth: set to override the auth_settings for an a single
1009
- request; this effectively ignores the
1010
- authentication in the spec for a single request.
1011
- :type _request_auth: dict, optional
1012
- :param _content_type: force content-type for the request.
1013
- :type _content_type: str, Optional
1014
- :param _headers: set to override the headers for a single
1015
- request; this effectively ignores the headers
1016
- in the spec for a single request.
1017
- :type _headers: dict, optional
1018
- :param _host_index: set to override the host_index for a single
1019
- request; this effectively ignores the host_index
1020
- in the spec for a single request.
1021
- :type _host_index: int, optional
1022
- :return: Returns the result object.
1023
- """ # noqa: E501
1024
-
1025
- _param = self._get_prescription_change_requests_serialize(
1026
- prescription_id=prescription_id,
1027
- _request_auth=_request_auth,
1028
- _content_type=_content_type,
1029
- _headers=_headers,
1030
- _host_index=_host_index
1031
- )
1032
-
1033
- _response_types_map: Dict[str, Optional[str]] = {
1034
- '200': "List[PrescriptionChangeRequest]",
1035
- '404': None,
1036
- }
1037
- response_data = self.api_client.call_api(
1038
- *_param,
1039
- _request_timeout=_request_timeout
1040
- )
1041
- response_data.read()
1042
- return self.api_client.response_deserialize(
1043
- response_data=response_data,
1044
- response_types_map=_response_types_map,
1045
- )
1046
-
1047
-
1048
- @validate_call
1049
- def get_prescription_change_requests_without_preload_content(
1050
- self,
1051
- prescription_id: StrictStr,
1052
- _request_timeout: Union[
1053
- None,
1054
- Annotated[StrictFloat, Field(gt=0)],
1055
- Tuple[
1056
- Annotated[StrictFloat, Field(gt=0)],
1057
- Annotated[StrictFloat, Field(gt=0)]
1058
- ]
1059
- ] = None,
1060
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1061
- _content_type: Optional[StrictStr] = None,
1062
- _headers: Optional[Dict[StrictStr, Any]] = None,
1063
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1064
- ) -> RESTResponseType:
1065
- """Get a list of prescription change requests
1066
-
1067
-
1068
- :param prescription_id: (required)
1069
- :type prescription_id: str
1070
- :param _request_timeout: timeout setting for this request. If one
1071
- number provided, it will be total request
1072
- timeout. It can also be a pair (tuple) of
1073
- (connection, read) timeouts.
1074
- :type _request_timeout: int, tuple(int, int), optional
1075
- :param _request_auth: set to override the auth_settings for an a single
1076
- request; this effectively ignores the
1077
- authentication in the spec for a single request.
1078
- :type _request_auth: dict, optional
1079
- :param _content_type: force content-type for the request.
1080
- :type _content_type: str, Optional
1081
- :param _headers: set to override the headers for a single
1082
- request; this effectively ignores the headers
1083
- in the spec for a single request.
1084
- :type _headers: dict, optional
1085
- :param _host_index: set to override the host_index for a single
1086
- request; this effectively ignores the host_index
1087
- in the spec for a single request.
1088
- :type _host_index: int, optional
1089
- :return: Returns the result object.
1090
- """ # noqa: E501
1091
-
1092
- _param = self._get_prescription_change_requests_serialize(
1093
- prescription_id=prescription_id,
1094
- _request_auth=_request_auth,
1095
- _content_type=_content_type,
1096
- _headers=_headers,
1097
- _host_index=_host_index
1098
- )
1099
-
1100
- _response_types_map: Dict[str, Optional[str]] = {
1101
- '200': "List[PrescriptionChangeRequest]",
1102
- '404': None,
1103
- }
1104
- response_data = self.api_client.call_api(
1105
- *_param,
1106
- _request_timeout=_request_timeout
1107
- )
1108
- return response_data.response
1109
-
1110
-
1111
- def _get_prescription_change_requests_serialize(
1112
- self,
1113
- prescription_id,
1114
- _request_auth,
1115
- _content_type,
1116
- _headers,
1117
- _host_index,
1118
- ) -> RequestSerialized:
1119
-
1120
- _host = None
1121
-
1122
- _collection_formats: Dict[str, str] = {
1123
- }
1124
-
1125
- _path_params: Dict[str, str] = {}
1126
- _query_params: List[Tuple[str, str]] = []
1127
- _header_params: Dict[str, Optional[str]] = _headers or {}
1128
- _form_params: List[Tuple[str, str]] = []
1129
- _files: Dict[
1130
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1131
- ] = {}
1132
- _body_params: Optional[bytes] = None
1133
-
1134
- # process the path parameters
1135
- if prescription_id is not None:
1136
- _path_params['prescription_id'] = prescription_id
1137
- # process the query parameters
1138
- # process the header parameters
1139
- # process the form parameters
1140
- # process the body parameter
1141
-
1142
-
1143
- # set the HTTP header `Accept`
1144
- if 'Accept' not in _header_params:
1145
- _header_params['Accept'] = self.api_client.select_header_accept(
1146
- [
1147
- 'application/json'
1148
- ]
1149
- )
1150
-
1151
-
1152
- # authentication setting
1153
- _auth_settings: List[str] = [
1154
- 'opaque_token'
1155
- ]
1156
-
1157
- return self.api_client.param_serialize(
1158
- method='GET',
1159
- resource_path='/p2rx/1/prescriptions/{prescription_id}/change_requests',
1160
- path_params=_path_params,
1161
- query_params=_query_params,
1162
- header_params=_header_params,
1163
- body=_body_params,
1164
- post_params=_form_params,
1165
- files=_files,
1166
- auth_settings=_auth_settings,
1167
- collection_formats=_collection_formats,
1168
- _host=_host,
1169
- _request_auth=_request_auth
1170
- )
1171
-
1172
-
1173
-
1174
-
1175
- @validate_call
1176
- def get_prescriptions(
1177
- self,
1178
- rx_number: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by RX number")] = None,
1179
- virtual_pharmacy_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by virtual pharmacy UUID")] = None,
1180
- patient_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by patient UUID")] = None,
1181
- prescriber_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by prescriber UUID")] = None,
1182
- medication_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by medication UUID")] = None,
1183
- extra_filter: Optional[List[StrictStr]] = None,
1184
- page: Optional[StrictInt] = None,
1185
- results_per_page: Optional[StrictInt] = None,
1186
- deep: Optional[StrictBool] = None,
1187
- _request_timeout: Union[
1188
- None,
1189
- Annotated[StrictFloat, Field(gt=0)],
1190
- Tuple[
1191
- Annotated[StrictFloat, Field(gt=0)],
1192
- Annotated[StrictFloat, Field(gt=0)]
1193
- ]
1194
- ] = None,
1195
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1196
- _content_type: Optional[StrictStr] = None,
1197
- _headers: Optional[Dict[StrictStr, Any]] = None,
1198
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1199
- ) -> List[Prescription]:
1200
- """Get all prescriptions
1201
-
1202
-
1203
- :param rx_number: Filter prescriptions by RX number
1204
- :type rx_number: str
1205
- :param virtual_pharmacy_uuid: Filter prescriptions by virtual pharmacy UUID
1206
- :type virtual_pharmacy_uuid: str
1207
- :param patient_uuid: Filter prescriptions by patient UUID
1208
- :type patient_uuid: str
1209
- :param prescriber_uuid: Filter prescriptions by prescriber UUID
1210
- :type prescriber_uuid: str
1211
- :param medication_uuid: Filter prescriptions by medication UUID
1212
- :type medication_uuid: str
1213
- :param extra_filter:
1214
- :type extra_filter: List[str]
1215
- :param page:
1216
- :type page: int
1217
- :param results_per_page:
1218
- :type results_per_page: int
1219
- :param deep:
1220
- :type deep: bool
1221
- :param _request_timeout: timeout setting for this request. If one
1222
- number provided, it will be total request
1223
- timeout. It can also be a pair (tuple) of
1224
- (connection, read) timeouts.
1225
- :type _request_timeout: int, tuple(int, int), optional
1226
- :param _request_auth: set to override the auth_settings for an a single
1227
- request; this effectively ignores the
1228
- authentication in the spec for a single request.
1229
- :type _request_auth: dict, optional
1230
- :param _content_type: force content-type for the request.
1231
- :type _content_type: str, Optional
1232
- :param _headers: set to override the headers for a single
1233
- request; this effectively ignores the headers
1234
- in the spec for a single request.
1235
- :type _headers: dict, optional
1236
- :param _host_index: set to override the host_index for a single
1237
- request; this effectively ignores the host_index
1238
- in the spec for a single request.
1239
- :type _host_index: int, optional
1240
- :return: Returns the result object.
1241
- """ # noqa: E501
1242
-
1243
- _param = self._get_prescriptions_serialize(
1244
- rx_number=rx_number,
1245
- virtual_pharmacy_uuid=virtual_pharmacy_uuid,
1246
- patient_uuid=patient_uuid,
1247
- prescriber_uuid=prescriber_uuid,
1248
- medication_uuid=medication_uuid,
1249
- extra_filter=extra_filter,
1250
- page=page,
1251
- results_per_page=results_per_page,
1252
- deep=deep,
1253
- _request_auth=_request_auth,
1254
- _content_type=_content_type,
1255
- _headers=_headers,
1256
- _host_index=_host_index
1257
- )
1258
-
1259
- _response_types_map: Dict[str, Optional[str]] = {
1260
- '200': "List[Prescription]",
1261
- '404': None,
1262
- }
1263
- response_data = self.api_client.call_api(
1264
- *_param,
1265
- _request_timeout=_request_timeout
1266
- )
1267
- response_data.read()
1268
- return self.api_client.response_deserialize(
1269
- response_data=response_data,
1270
- response_types_map=_response_types_map,
1271
- ).data
1272
-
1273
-
1274
- @validate_call
1275
- def get_prescriptions_with_http_info(
1276
- self,
1277
- rx_number: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by RX number")] = None,
1278
- virtual_pharmacy_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by virtual pharmacy UUID")] = None,
1279
- patient_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by patient UUID")] = None,
1280
- prescriber_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by prescriber UUID")] = None,
1281
- medication_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by medication UUID")] = None,
1282
- extra_filter: Optional[List[StrictStr]] = None,
1283
- page: Optional[StrictInt] = None,
1284
- results_per_page: Optional[StrictInt] = None,
1285
- deep: Optional[StrictBool] = None,
1286
- _request_timeout: Union[
1287
- None,
1288
- Annotated[StrictFloat, Field(gt=0)],
1289
- Tuple[
1290
- Annotated[StrictFloat, Field(gt=0)],
1291
- Annotated[StrictFloat, Field(gt=0)]
1292
- ]
1293
- ] = None,
1294
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1295
- _content_type: Optional[StrictStr] = None,
1296
- _headers: Optional[Dict[StrictStr, Any]] = None,
1297
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1298
- ) -> ApiResponse[List[Prescription]]:
1299
- """Get all prescriptions
1300
-
1301
-
1302
- :param rx_number: Filter prescriptions by RX number
1303
- :type rx_number: str
1304
- :param virtual_pharmacy_uuid: Filter prescriptions by virtual pharmacy UUID
1305
- :type virtual_pharmacy_uuid: str
1306
- :param patient_uuid: Filter prescriptions by patient UUID
1307
- :type patient_uuid: str
1308
- :param prescriber_uuid: Filter prescriptions by prescriber UUID
1309
- :type prescriber_uuid: str
1310
- :param medication_uuid: Filter prescriptions by medication UUID
1311
- :type medication_uuid: str
1312
- :param extra_filter:
1313
- :type extra_filter: List[str]
1314
- :param page:
1315
- :type page: int
1316
- :param results_per_page:
1317
- :type results_per_page: int
1318
- :param deep:
1319
- :type deep: bool
1320
- :param _request_timeout: timeout setting for this request. If one
1321
- number provided, it will be total request
1322
- timeout. It can also be a pair (tuple) of
1323
- (connection, read) timeouts.
1324
- :type _request_timeout: int, tuple(int, int), optional
1325
- :param _request_auth: set to override the auth_settings for an a single
1326
- request; this effectively ignores the
1327
- authentication in the spec for a single request.
1328
- :type _request_auth: dict, optional
1329
- :param _content_type: force content-type for the request.
1330
- :type _content_type: str, Optional
1331
- :param _headers: set to override the headers for a single
1332
- request; this effectively ignores the headers
1333
- in the spec for a single request.
1334
- :type _headers: dict, optional
1335
- :param _host_index: set to override the host_index for a single
1336
- request; this effectively ignores the host_index
1337
- in the spec for a single request.
1338
- :type _host_index: int, optional
1339
- :return: Returns the result object.
1340
- """ # noqa: E501
1341
-
1342
- _param = self._get_prescriptions_serialize(
1343
- rx_number=rx_number,
1344
- virtual_pharmacy_uuid=virtual_pharmacy_uuid,
1345
- patient_uuid=patient_uuid,
1346
- prescriber_uuid=prescriber_uuid,
1347
- medication_uuid=medication_uuid,
1348
- extra_filter=extra_filter,
1349
- page=page,
1350
- results_per_page=results_per_page,
1351
- deep=deep,
1352
- _request_auth=_request_auth,
1353
- _content_type=_content_type,
1354
- _headers=_headers,
1355
- _host_index=_host_index
1356
- )
1357
-
1358
- _response_types_map: Dict[str, Optional[str]] = {
1359
- '200': "List[Prescription]",
1360
- '404': None,
1361
- }
1362
- response_data = self.api_client.call_api(
1363
- *_param,
1364
- _request_timeout=_request_timeout
1365
- )
1366
- response_data.read()
1367
- return self.api_client.response_deserialize(
1368
- response_data=response_data,
1369
- response_types_map=_response_types_map,
1370
- )
1371
-
1372
-
1373
- @validate_call
1374
- def get_prescriptions_without_preload_content(
1375
- self,
1376
- rx_number: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by RX number")] = None,
1377
- virtual_pharmacy_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by virtual pharmacy UUID")] = None,
1378
- patient_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by patient UUID")] = None,
1379
- prescriber_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by prescriber UUID")] = None,
1380
- medication_uuid: Annotated[Optional[StrictStr], Field(description="Filter prescriptions by medication UUID")] = None,
1381
- extra_filter: Optional[List[StrictStr]] = None,
1382
- page: Optional[StrictInt] = None,
1383
- results_per_page: Optional[StrictInt] = None,
1384
- deep: Optional[StrictBool] = None,
1385
- _request_timeout: Union[
1386
- None,
1387
- Annotated[StrictFloat, Field(gt=0)],
1388
- Tuple[
1389
- Annotated[StrictFloat, Field(gt=0)],
1390
- Annotated[StrictFloat, Field(gt=0)]
1391
- ]
1392
- ] = None,
1393
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1394
- _content_type: Optional[StrictStr] = None,
1395
- _headers: Optional[Dict[StrictStr, Any]] = None,
1396
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1397
- ) -> RESTResponseType:
1398
- """Get all prescriptions
1399
-
1400
-
1401
- :param rx_number: Filter prescriptions by RX number
1402
- :type rx_number: str
1403
- :param virtual_pharmacy_uuid: Filter prescriptions by virtual pharmacy UUID
1404
- :type virtual_pharmacy_uuid: str
1405
- :param patient_uuid: Filter prescriptions by patient UUID
1406
- :type patient_uuid: str
1407
- :param prescriber_uuid: Filter prescriptions by prescriber UUID
1408
- :type prescriber_uuid: str
1409
- :param medication_uuid: Filter prescriptions by medication UUID
1410
- :type medication_uuid: str
1411
- :param extra_filter:
1412
- :type extra_filter: List[str]
1413
- :param page:
1414
- :type page: int
1415
- :param results_per_page:
1416
- :type results_per_page: int
1417
- :param deep:
1418
- :type deep: bool
1419
- :param _request_timeout: timeout setting for this request. If one
1420
- number provided, it will be total request
1421
- timeout. It can also be a pair (tuple) of
1422
- (connection, read) timeouts.
1423
- :type _request_timeout: int, tuple(int, int), optional
1424
- :param _request_auth: set to override the auth_settings for an a single
1425
- request; this effectively ignores the
1426
- authentication in the spec for a single request.
1427
- :type _request_auth: dict, optional
1428
- :param _content_type: force content-type for the request.
1429
- :type _content_type: str, Optional
1430
- :param _headers: set to override the headers for a single
1431
- request; this effectively ignores the headers
1432
- in the spec for a single request.
1433
- :type _headers: dict, optional
1434
- :param _host_index: set to override the host_index for a single
1435
- request; this effectively ignores the host_index
1436
- in the spec for a single request.
1437
- :type _host_index: int, optional
1438
- :return: Returns the result object.
1439
- """ # noqa: E501
1440
-
1441
- _param = self._get_prescriptions_serialize(
1442
- rx_number=rx_number,
1443
- virtual_pharmacy_uuid=virtual_pharmacy_uuid,
1444
- patient_uuid=patient_uuid,
1445
- prescriber_uuid=prescriber_uuid,
1446
- medication_uuid=medication_uuid,
1447
- extra_filter=extra_filter,
1448
- page=page,
1449
- results_per_page=results_per_page,
1450
- deep=deep,
1451
- _request_auth=_request_auth,
1452
- _content_type=_content_type,
1453
- _headers=_headers,
1454
- _host_index=_host_index
1455
- )
1456
-
1457
- _response_types_map: Dict[str, Optional[str]] = {
1458
- '200': "List[Prescription]",
1459
- '404': None,
1460
- }
1461
- response_data = self.api_client.call_api(
1462
- *_param,
1463
- _request_timeout=_request_timeout
1464
- )
1465
- return response_data.response
1466
-
1467
-
1468
- def _get_prescriptions_serialize(
1469
- self,
1470
- rx_number,
1471
- virtual_pharmacy_uuid,
1472
- patient_uuid,
1473
- prescriber_uuid,
1474
- medication_uuid,
1475
- extra_filter,
1476
- page,
1477
- results_per_page,
1478
- deep,
1479
- _request_auth,
1480
- _content_type,
1481
- _headers,
1482
- _host_index,
1483
- ) -> RequestSerialized:
1484
-
1485
- _host = None
1486
-
1487
- _collection_formats: Dict[str, str] = {
1488
- 'extra_filter': 'csv',
1489
- }
1490
-
1491
- _path_params: Dict[str, str] = {}
1492
- _query_params: List[Tuple[str, str]] = []
1493
- _header_params: Dict[str, Optional[str]] = _headers or {}
1494
- _form_params: List[Tuple[str, str]] = []
1495
- _files: Dict[
1496
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1497
- ] = {}
1498
- _body_params: Optional[bytes] = None
1499
-
1500
- # process the path parameters
1501
- # process the query parameters
1502
- if rx_number is not None:
1503
-
1504
- _query_params.append(('rx_number', rx_number))
1505
-
1506
- if virtual_pharmacy_uuid is not None:
1507
-
1508
- _query_params.append(('virtual_pharmacy_uuid', virtual_pharmacy_uuid))
1509
-
1510
- if patient_uuid is not None:
1511
-
1512
- _query_params.append(('patient_uuid', patient_uuid))
1513
-
1514
- if prescriber_uuid is not None:
1515
-
1516
- _query_params.append(('prescriber_uuid', prescriber_uuid))
1517
-
1518
- if medication_uuid is not None:
1519
-
1520
- _query_params.append(('medication_uuid', medication_uuid))
1521
-
1522
- if extra_filter is not None:
1523
-
1524
- _query_params.append(('extra_filter', extra_filter))
1525
-
1526
- if page is not None:
1527
-
1528
- _query_params.append(('page', page))
1529
-
1530
- if results_per_page is not None:
1531
-
1532
- _query_params.append(('results_per_page', results_per_page))
1533
-
1534
- if deep is not None:
1535
-
1536
- _query_params.append(('deep', deep))
1537
-
1538
- # process the header parameters
1539
- # process the form parameters
1540
- # process the body parameter
1541
-
1542
-
1543
- # set the HTTP header `Accept`
1544
- if 'Accept' not in _header_params:
1545
- _header_params['Accept'] = self.api_client.select_header_accept(
1546
- [
1547
- 'application/json'
1548
- ]
1549
- )
1550
-
1551
-
1552
- # authentication setting
1553
- _auth_settings: List[str] = [
1554
- 'opaque_token'
1555
- ]
1556
-
1557
- return self.api_client.param_serialize(
1558
- method='GET',
1559
- resource_path='/p2rx/1/prescriptions',
1560
- path_params=_path_params,
1561
- query_params=_query_params,
1562
- header_params=_header_params,
1563
- body=_body_params,
1564
- post_params=_form_params,
1565
- files=_files,
1566
- auth_settings=_auth_settings,
1567
- collection_formats=_collection_formats,
1568
- _host=_host,
1569
- _request_auth=_request_auth
1570
- )
1571
-
1572
-
1573
-
1574
-
1575
- @validate_call
1576
- def update_prescription(
1577
- self,
1578
- prescription_id: StrictStr,
1579
- prescription_patch: Optional[PrescriptionPatch] = None,
1580
- _request_timeout: Union[
1581
- None,
1582
- Annotated[StrictFloat, Field(gt=0)],
1583
- Tuple[
1584
- Annotated[StrictFloat, Field(gt=0)],
1585
- Annotated[StrictFloat, Field(gt=0)]
1586
- ]
1587
- ] = None,
1588
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1589
- _content_type: Optional[StrictStr] = None,
1590
- _headers: Optional[Dict[StrictStr, Any]] = None,
1591
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1592
- ) -> Prescription:
1593
- """Update a prescription by UUID or RxNumber. Only \"patchable\" fields can be updated.
1594
-
1595
-
1596
- :param prescription_id: (required)
1597
- :type prescription_id: str
1598
- :param prescription_patch:
1599
- :type prescription_patch: PrescriptionPatch
1600
- :param _request_timeout: timeout setting for this request. If one
1601
- number provided, it will be total request
1602
- timeout. It can also be a pair (tuple) of
1603
- (connection, read) timeouts.
1604
- :type _request_timeout: int, tuple(int, int), optional
1605
- :param _request_auth: set to override the auth_settings for an a single
1606
- request; this effectively ignores the
1607
- authentication in the spec for a single request.
1608
- :type _request_auth: dict, optional
1609
- :param _content_type: force content-type for the request.
1610
- :type _content_type: str, Optional
1611
- :param _headers: set to override the headers for a single
1612
- request; this effectively ignores the headers
1613
- in the spec for a single request.
1614
- :type _headers: dict, optional
1615
- :param _host_index: set to override the host_index for a single
1616
- request; this effectively ignores the host_index
1617
- in the spec for a single request.
1618
- :type _host_index: int, optional
1619
- :return: Returns the result object.
1620
- """ # noqa: E501
1621
-
1622
- _param = self._update_prescription_serialize(
1623
- prescription_id=prescription_id,
1624
- prescription_patch=prescription_patch,
1625
- _request_auth=_request_auth,
1626
- _content_type=_content_type,
1627
- _headers=_headers,
1628
- _host_index=_host_index
1629
- )
1630
-
1631
- _response_types_map: Dict[str, Optional[str]] = {
1632
- '201': "Prescription",
1633
- '404': None,
1634
- '422': "ErrorMessage",
1635
- }
1636
- response_data = self.api_client.call_api(
1637
- *_param,
1638
- _request_timeout=_request_timeout
1639
- )
1640
- response_data.read()
1641
- return self.api_client.response_deserialize(
1642
- response_data=response_data,
1643
- response_types_map=_response_types_map,
1644
- ).data
1645
-
1646
-
1647
- @validate_call
1648
- def update_prescription_with_http_info(
1649
- self,
1650
- prescription_id: StrictStr,
1651
- prescription_patch: Optional[PrescriptionPatch] = None,
1652
- _request_timeout: Union[
1653
- None,
1654
- Annotated[StrictFloat, Field(gt=0)],
1655
- Tuple[
1656
- Annotated[StrictFloat, Field(gt=0)],
1657
- Annotated[StrictFloat, Field(gt=0)]
1658
- ]
1659
- ] = None,
1660
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1661
- _content_type: Optional[StrictStr] = None,
1662
- _headers: Optional[Dict[StrictStr, Any]] = None,
1663
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1664
- ) -> ApiResponse[Prescription]:
1665
- """Update a prescription by UUID or RxNumber. Only \"patchable\" fields can be updated.
1666
-
1667
-
1668
- :param prescription_id: (required)
1669
- :type prescription_id: str
1670
- :param prescription_patch:
1671
- :type prescription_patch: PrescriptionPatch
1672
- :param _request_timeout: timeout setting for this request. If one
1673
- number provided, it will be total request
1674
- timeout. It can also be a pair (tuple) of
1675
- (connection, read) timeouts.
1676
- :type _request_timeout: int, tuple(int, int), optional
1677
- :param _request_auth: set to override the auth_settings for an a single
1678
- request; this effectively ignores the
1679
- authentication in the spec for a single request.
1680
- :type _request_auth: dict, optional
1681
- :param _content_type: force content-type for the request.
1682
- :type _content_type: str, Optional
1683
- :param _headers: set to override the headers for a single
1684
- request; this effectively ignores the headers
1685
- in the spec for a single request.
1686
- :type _headers: dict, optional
1687
- :param _host_index: set to override the host_index for a single
1688
- request; this effectively ignores the host_index
1689
- in the spec for a single request.
1690
- :type _host_index: int, optional
1691
- :return: Returns the result object.
1692
- """ # noqa: E501
1693
-
1694
- _param = self._update_prescription_serialize(
1695
- prescription_id=prescription_id,
1696
- prescription_patch=prescription_patch,
1697
- _request_auth=_request_auth,
1698
- _content_type=_content_type,
1699
- _headers=_headers,
1700
- _host_index=_host_index
1701
- )
1702
-
1703
- _response_types_map: Dict[str, Optional[str]] = {
1704
- '201': "Prescription",
1705
- '404': None,
1706
- '422': "ErrorMessage",
1707
- }
1708
- response_data = self.api_client.call_api(
1709
- *_param,
1710
- _request_timeout=_request_timeout
1711
- )
1712
- response_data.read()
1713
- return self.api_client.response_deserialize(
1714
- response_data=response_data,
1715
- response_types_map=_response_types_map,
1716
- )
1717
-
1718
-
1719
- @validate_call
1720
- def update_prescription_without_preload_content(
1721
- self,
1722
- prescription_id: StrictStr,
1723
- prescription_patch: Optional[PrescriptionPatch] = None,
1724
- _request_timeout: Union[
1725
- None,
1726
- Annotated[StrictFloat, Field(gt=0)],
1727
- Tuple[
1728
- Annotated[StrictFloat, Field(gt=0)],
1729
- Annotated[StrictFloat, Field(gt=0)]
1730
- ]
1731
- ] = None,
1732
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1733
- _content_type: Optional[StrictStr] = None,
1734
- _headers: Optional[Dict[StrictStr, Any]] = None,
1735
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1736
- ) -> RESTResponseType:
1737
- """Update a prescription by UUID or RxNumber. Only \"patchable\" fields can be updated.
1738
-
1739
-
1740
- :param prescription_id: (required)
1741
- :type prescription_id: str
1742
- :param prescription_patch:
1743
- :type prescription_patch: PrescriptionPatch
1744
- :param _request_timeout: timeout setting for this request. If one
1745
- number provided, it will be total request
1746
- timeout. It can also be a pair (tuple) of
1747
- (connection, read) timeouts.
1748
- :type _request_timeout: int, tuple(int, int), optional
1749
- :param _request_auth: set to override the auth_settings for an a single
1750
- request; this effectively ignores the
1751
- authentication in the spec for a single request.
1752
- :type _request_auth: dict, optional
1753
- :param _content_type: force content-type for the request.
1754
- :type _content_type: str, Optional
1755
- :param _headers: set to override the headers for a single
1756
- request; this effectively ignores the headers
1757
- in the spec for a single request.
1758
- :type _headers: dict, optional
1759
- :param _host_index: set to override the host_index for a single
1760
- request; this effectively ignores the host_index
1761
- in the spec for a single request.
1762
- :type _host_index: int, optional
1763
- :return: Returns the result object.
1764
- """ # noqa: E501
1765
-
1766
- _param = self._update_prescription_serialize(
1767
- prescription_id=prescription_id,
1768
- prescription_patch=prescription_patch,
1769
- _request_auth=_request_auth,
1770
- _content_type=_content_type,
1771
- _headers=_headers,
1772
- _host_index=_host_index
1773
- )
1774
-
1775
- _response_types_map: Dict[str, Optional[str]] = {
1776
- '201': "Prescription",
1777
- '404': None,
1778
- '422': "ErrorMessage",
1779
- }
1780
- response_data = self.api_client.call_api(
1781
- *_param,
1782
- _request_timeout=_request_timeout
1783
- )
1784
- return response_data.response
1785
-
1786
-
1787
- def _update_prescription_serialize(
1788
- self,
1789
- prescription_id,
1790
- prescription_patch,
1791
- _request_auth,
1792
- _content_type,
1793
- _headers,
1794
- _host_index,
1795
- ) -> RequestSerialized:
1796
-
1797
- _host = None
1798
-
1799
- _collection_formats: Dict[str, str] = {
1800
- }
1801
-
1802
- _path_params: Dict[str, str] = {}
1803
- _query_params: List[Tuple[str, str]] = []
1804
- _header_params: Dict[str, Optional[str]] = _headers or {}
1805
- _form_params: List[Tuple[str, str]] = []
1806
- _files: Dict[
1807
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1808
- ] = {}
1809
- _body_params: Optional[bytes] = None
1810
-
1811
- # process the path parameters
1812
- if prescription_id is not None:
1813
- _path_params['prescription_id'] = prescription_id
1814
- # process the query parameters
1815
- # process the header parameters
1816
- # process the form parameters
1817
- # process the body parameter
1818
- if prescription_patch is not None:
1819
- _body_params = prescription_patch
1820
-
1821
-
1822
- # set the HTTP header `Accept`
1823
- if 'Accept' not in _header_params:
1824
- _header_params['Accept'] = self.api_client.select_header_accept(
1825
- [
1826
- 'application/json'
1827
- ]
1828
- )
1829
-
1830
- # set the HTTP header `Content-Type`
1831
- if _content_type:
1832
- _header_params['Content-Type'] = _content_type
1833
- else:
1834
- _default_content_type = (
1835
- self.api_client.select_header_content_type(
1836
- [
1837
- 'application/json'
1838
- ]
1839
- )
1840
- )
1841
- if _default_content_type is not None:
1842
- _header_params['Content-Type'] = _default_content_type
1843
-
1844
- # authentication setting
1845
- _auth_settings: List[str] = [
1846
- 'opaque_token'
1847
- ]
1848
-
1849
- return self.api_client.param_serialize(
1850
- method='PATCH',
1851
- resource_path='/p2rx/1/prescriptions/{prescription_id}',
1852
- path_params=_path_params,
1853
- query_params=_query_params,
1854
- header_params=_header_params,
1855
- body=_body_params,
1856
- post_params=_form_params,
1857
- files=_files,
1858
- auth_settings=_auth_settings,
1859
- collection_formats=_collection_formats,
1860
- _host=_host,
1861
- _request_auth=_request_auth
1862
- )
1863
-
1864
-