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