rxfoundry.clients.swifty-api 0.0.652__py3-none-any.whl → 0.1.1009__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 (75) hide show
  1. rxfoundry/clients/swifty_api/__init__.py +38 -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 +1429 -49
  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 +35 -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/create_patient_request.py +98 -0
  21. rxfoundry/clients/swifty_api/models/formulary.py +96 -0
  22. rxfoundry/clients/swifty_api/models/insurance.py +96 -0
  23. rxfoundry/clients/swifty_api/models/medication_instruction.py +92 -0
  24. rxfoundry/clients/swifty_api/models/medication_ref.py +100 -0
  25. rxfoundry/clients/swifty_api/models/patient.py +88 -3
  26. rxfoundry/clients/swifty_api/models/patient_activity_data.py +169 -0
  27. rxfoundry/clients/swifty_api/models/patient_activity_message.py +112 -0
  28. rxfoundry/clients/swifty_api/models/patient_activity_notification.py +9 -17
  29. rxfoundry/clients/swifty_api/models/patient_activity_notification_activity_data.py +39 -8
  30. rxfoundry/clients/swifty_api/models/patient_address_activity_notification.py +105 -0
  31. rxfoundry/clients/swifty_api/models/patient_address_data.py +26 -10
  32. rxfoundry/clients/swifty_api/models/patient_allergy.py +92 -0
  33. rxfoundry/clients/swifty_api/models/patient_condition.py +92 -0
  34. rxfoundry/clients/swifty_api/models/patient_data.py +13 -2
  35. rxfoundry/clients/swifty_api/models/patient_external_identifier.py +6 -5
  36. rxfoundry/clients/swifty_api/models/patient_health_profile_data.py +127 -0
  37. rxfoundry/clients/swifty_api/models/patient_insurance.py +106 -0
  38. rxfoundry/clients/swifty_api/models/patient_insurance_data.py +105 -0
  39. rxfoundry/clients/swifty_api/models/patient_medication.py +92 -0
  40. rxfoundry/clients/swifty_api/models/patient_name.py +99 -0
  41. rxfoundry/clients/swifty_api/models/patient_name_data.py +108 -0
  42. rxfoundry/clients/swifty_api/models/patient_phone_number.py +89 -0
  43. rxfoundry/clients/swifty_api/models/patient_phone_number_data.py +98 -0
  44. rxfoundry/clients/swifty_api/models/patient_task.py +115 -0
  45. rxfoundry/clients/swifty_api/models/patient_task_status.py +105 -0
  46. rxfoundry/clients/swifty_api/models/patient_task_type.py +45 -0
  47. rxfoundry/clients/swifty_api/models/prescription.py +35 -30
  48. rxfoundry/clients/swifty_api/models/prescription_change_request.py +24 -36
  49. rxfoundry/clients/swifty_api/models/prescription_change_request_and_response.py +145 -0
  50. rxfoundry/clients/swifty_api/models/prescription_change_request_response.py +134 -0
  51. rxfoundry/clients/swifty_api/models/prescription_data.py +126 -0
  52. rxfoundry/clients/swifty_api/models/prescription_message.py +100 -0
  53. rxfoundry/clients/swifty_api/models/prescription_message_task.py +109 -0
  54. rxfoundry/clients/swifty_api/models/prescription_message_task_status.py +99 -0
  55. rxfoundry/clients/swifty_api/models/prescription_message_task_type.py +43 -0
  56. rxfoundry/clients/swifty_api/models/prescription_message_type.py +53 -0
  57. rxfoundry/clients/swifty_api/models/prescription_patch.py +6 -2
  58. rxfoundry/clients/swifty_api/models/prescription_status_type.py +40 -0
  59. rxfoundry/clients/swifty_api/models/prescription_task.py +14 -12
  60. rxfoundry/clients/swifty_api/models/prescription_task_status.py +6 -2
  61. rxfoundry/clients/swifty_api/models/prescription_task_type.py +42 -0
  62. rxfoundry/clients/swifty_api/models/prescription_transfer_request_and_response.py +145 -0
  63. rxfoundry/clients/swifty_api/models/prescription_transfer_request_response.py +128 -0
  64. rxfoundry/clients/swifty_api/models/status_type.py +92 -0
  65. rxfoundry/clients/swifty_api/models/workflow.py +108 -0
  66. rxfoundry/clients/swifty_api/models/workflow_sub_task.py +96 -0
  67. rxfoundry/clients/swifty_api/models/workflow_sub_task_sub_task.py +155 -0
  68. rxfoundry/clients/swifty_api/models/workflow_task.py +111 -0
  69. rxfoundry/clients/swifty_api/models/workflow_task_task.py +155 -0
  70. rxfoundry/clients/swifty_api/models/workflow_type.py +55 -0
  71. {rxfoundry_clients_swifty_api-0.0.652.dist-info → rxfoundry_clients_swifty_api-0.1.1009.dist-info}/METADATA +1 -1
  72. rxfoundry_clients_swifty_api-0.1.1009.dist-info/RECORD +110 -0
  73. {rxfoundry_clients_swifty_api-0.0.652.dist-info → rxfoundry_clients_swifty_api-0.1.1009.dist-info}/WHEEL +1 -1
  74. rxfoundry_clients_swifty_api-0.0.652.dist-info/RECORD +0 -64
  75. {rxfoundry_clients_swifty_api-0.0.652.dist-info → rxfoundry_clients_swifty_api-0.1.1009.dist-info}/top_level.txt +0 -0
@@ -17,10 +17,15 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
17
  from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
- from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
20
+ from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator
21
21
  from typing import List, Optional, Union
22
22
  from typing_extensions import Annotated
23
+ from rxfoundry.clients.swifty_api.models.create_patient_request import CreatePatientRequest
24
+ from rxfoundry.clients.swifty_api.models.insurance import Insurance
23
25
  from rxfoundry.clients.swifty_api.models.patient import Patient
26
+ from rxfoundry.clients.swifty_api.models.patient_allergy import PatientAllergy
27
+ from rxfoundry.clients.swifty_api.models.patient_condition import PatientCondition
28
+ from rxfoundry.clients.swifty_api.models.patient_medication import PatientMedication
24
29
  from rxfoundry.clients.swifty_api.models.pharmacy import Pharmacy
25
30
 
26
31
  from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
@@ -41,8 +46,1161 @@ class PatientApi:
41
46
  self.api_client = api_client
42
47
 
43
48
 
49
+ @validate_call
50
+ def create_patient(
51
+ self,
52
+ create_patient_request: CreatePatientRequest,
53
+ _request_timeout: Union[
54
+ None,
55
+ Annotated[StrictFloat, Field(gt=0)],
56
+ Tuple[
57
+ Annotated[StrictFloat, Field(gt=0)],
58
+ Annotated[StrictFloat, Field(gt=0)]
59
+ ]
60
+ ] = None,
61
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
62
+ _content_type: Optional[StrictStr] = None,
63
+ _headers: Optional[Dict[StrictStr, Any]] = None,
64
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
65
+ ) -> Patient:
66
+ """Create a patient
67
+
68
+
69
+ :param create_patient_request: (required)
70
+ :type create_patient_request: CreatePatientRequest
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_patient_serialize(
94
+ create_patient_request=create_patient_request,
95
+ _request_auth=_request_auth,
96
+ _content_type=_content_type,
97
+ _headers=_headers,
98
+ _host_index=_host_index
99
+ )
100
+
101
+ _response_types_map: Dict[str, Optional[str]] = {
102
+ '200': "Patient",
103
+ }
104
+ response_data = self.api_client.call_api(
105
+ *_param,
106
+ _request_timeout=_request_timeout
107
+ )
108
+ response_data.read()
109
+ return self.api_client.response_deserialize(
110
+ response_data=response_data,
111
+ response_types_map=_response_types_map,
112
+ ).data
113
+
114
+
115
+ @validate_call
116
+ def create_patient_with_http_info(
117
+ self,
118
+ create_patient_request: CreatePatientRequest,
119
+ _request_timeout: Union[
120
+ None,
121
+ Annotated[StrictFloat, Field(gt=0)],
122
+ Tuple[
123
+ Annotated[StrictFloat, Field(gt=0)],
124
+ Annotated[StrictFloat, Field(gt=0)]
125
+ ]
126
+ ] = None,
127
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
128
+ _content_type: Optional[StrictStr] = None,
129
+ _headers: Optional[Dict[StrictStr, Any]] = None,
130
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
131
+ ) -> ApiResponse[Patient]:
132
+ """Create a patient
133
+
134
+
135
+ :param create_patient_request: (required)
136
+ :type create_patient_request: CreatePatientRequest
137
+ :param _request_timeout: timeout setting for this request. If one
138
+ number provided, it will be total request
139
+ timeout. It can also be a pair (tuple) of
140
+ (connection, read) timeouts.
141
+ :type _request_timeout: int, tuple(int, int), optional
142
+ :param _request_auth: set to override the auth_settings for an a single
143
+ request; this effectively ignores the
144
+ authentication in the spec for a single request.
145
+ :type _request_auth: dict, optional
146
+ :param _content_type: force content-type for the request.
147
+ :type _content_type: str, Optional
148
+ :param _headers: set to override the headers for a single
149
+ request; this effectively ignores the headers
150
+ in the spec for a single request.
151
+ :type _headers: dict, optional
152
+ :param _host_index: set to override the host_index for a single
153
+ request; this effectively ignores the host_index
154
+ in the spec for a single request.
155
+ :type _host_index: int, optional
156
+ :return: Returns the result object.
157
+ """ # noqa: E501
158
+
159
+ _param = self._create_patient_serialize(
160
+ create_patient_request=create_patient_request,
161
+ _request_auth=_request_auth,
162
+ _content_type=_content_type,
163
+ _headers=_headers,
164
+ _host_index=_host_index
165
+ )
166
+
167
+ _response_types_map: Dict[str, Optional[str]] = {
168
+ '200': "Patient",
169
+ }
170
+ response_data = self.api_client.call_api(
171
+ *_param,
172
+ _request_timeout=_request_timeout
173
+ )
174
+ response_data.read()
175
+ return self.api_client.response_deserialize(
176
+ response_data=response_data,
177
+ response_types_map=_response_types_map,
178
+ )
179
+
180
+
181
+ @validate_call
182
+ def create_patient_without_preload_content(
183
+ self,
184
+ create_patient_request: CreatePatientRequest,
185
+ _request_timeout: Union[
186
+ None,
187
+ Annotated[StrictFloat, Field(gt=0)],
188
+ Tuple[
189
+ Annotated[StrictFloat, Field(gt=0)],
190
+ Annotated[StrictFloat, Field(gt=0)]
191
+ ]
192
+ ] = None,
193
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
194
+ _content_type: Optional[StrictStr] = None,
195
+ _headers: Optional[Dict[StrictStr, Any]] = None,
196
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
197
+ ) -> RESTResponseType:
198
+ """Create a patient
199
+
200
+
201
+ :param create_patient_request: (required)
202
+ :type create_patient_request: CreatePatientRequest
203
+ :param _request_timeout: timeout setting for this request. If one
204
+ number provided, it will be total request
205
+ timeout. It can also be a pair (tuple) of
206
+ (connection, read) timeouts.
207
+ :type _request_timeout: int, tuple(int, int), optional
208
+ :param _request_auth: set to override the auth_settings for an a single
209
+ request; this effectively ignores the
210
+ authentication in the spec for a single request.
211
+ :type _request_auth: dict, optional
212
+ :param _content_type: force content-type for the request.
213
+ :type _content_type: str, Optional
214
+ :param _headers: set to override the headers for a single
215
+ request; this effectively ignores the headers
216
+ in the spec for a single request.
217
+ :type _headers: dict, optional
218
+ :param _host_index: set to override the host_index for a single
219
+ request; this effectively ignores the host_index
220
+ in the spec for a single request.
221
+ :type _host_index: int, optional
222
+ :return: Returns the result object.
223
+ """ # noqa: E501
224
+
225
+ _param = self._create_patient_serialize(
226
+ create_patient_request=create_patient_request,
227
+ _request_auth=_request_auth,
228
+ _content_type=_content_type,
229
+ _headers=_headers,
230
+ _host_index=_host_index
231
+ )
232
+
233
+ _response_types_map: Dict[str, Optional[str]] = {
234
+ '200': "Patient",
235
+ }
236
+ response_data = self.api_client.call_api(
237
+ *_param,
238
+ _request_timeout=_request_timeout
239
+ )
240
+ return response_data.response
241
+
242
+
243
+ def _create_patient_serialize(
244
+ self,
245
+ create_patient_request,
246
+ _request_auth,
247
+ _content_type,
248
+ _headers,
249
+ _host_index,
250
+ ) -> RequestSerialized:
251
+
252
+ _host = None
253
+
254
+ _collection_formats: Dict[str, str] = {
255
+ }
256
+
257
+ _path_params: Dict[str, str] = {}
258
+ _query_params: List[Tuple[str, str]] = []
259
+ _header_params: Dict[str, Optional[str]] = _headers or {}
260
+ _form_params: List[Tuple[str, str]] = []
261
+ _files: Dict[
262
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
263
+ ] = {}
264
+ _body_params: Optional[bytes] = None
265
+
266
+ # process the path parameters
267
+ # process the query parameters
268
+ # process the header parameters
269
+ # process the form parameters
270
+ # process the body parameter
271
+ if create_patient_request is not None:
272
+ _body_params = create_patient_request
273
+
274
+
275
+ # set the HTTP header `Accept`
276
+ if 'Accept' not in _header_params:
277
+ _header_params['Accept'] = self.api_client.select_header_accept(
278
+ [
279
+ 'application/json'
280
+ ]
281
+ )
282
+
283
+ # set the HTTP header `Content-Type`
284
+ if _content_type:
285
+ _header_params['Content-Type'] = _content_type
286
+ else:
287
+ _default_content_type = (
288
+ self.api_client.select_header_content_type(
289
+ [
290
+ 'application/json'
291
+ ]
292
+ )
293
+ )
294
+ if _default_content_type is not None:
295
+ _header_params['Content-Type'] = _default_content_type
296
+
297
+ # authentication setting
298
+ _auth_settings: List[str] = [
299
+ 'opaque_token'
300
+ ]
301
+
302
+ return self.api_client.param_serialize(
303
+ method='POST',
304
+ resource_path='/swifty/1/patients',
305
+ path_params=_path_params,
306
+ query_params=_query_params,
307
+ header_params=_header_params,
308
+ body=_body_params,
309
+ post_params=_form_params,
310
+ files=_files,
311
+ auth_settings=_auth_settings,
312
+ collection_formats=_collection_formats,
313
+ _host=_host,
314
+ _request_auth=_request_auth
315
+ )
316
+
317
+
318
+
319
+
44
320
  @validate_call
45
321
  def get_patient(
322
+ self,
323
+ patient_uuid: StrictStr,
324
+ expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
325
+ _request_timeout: Union[
326
+ None,
327
+ Annotated[StrictFloat, Field(gt=0)],
328
+ Tuple[
329
+ Annotated[StrictFloat, Field(gt=0)],
330
+ Annotated[StrictFloat, Field(gt=0)]
331
+ ]
332
+ ] = None,
333
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
334
+ _content_type: Optional[StrictStr] = None,
335
+ _headers: Optional[Dict[StrictStr, Any]] = None,
336
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
337
+ ) -> Patient:
338
+ """Get patient by uuid
339
+
340
+
341
+ :param patient_uuid: (required)
342
+ :type patient_uuid: str
343
+ :param expand: The list of contained objects to return as well. Defaults to none.
344
+ :type expand: List[str]
345
+ :param _request_timeout: timeout setting for this request. If one
346
+ number provided, it will be total request
347
+ timeout. It can also be a pair (tuple) of
348
+ (connection, read) timeouts.
349
+ :type _request_timeout: int, tuple(int, int), optional
350
+ :param _request_auth: set to override the auth_settings for an a single
351
+ request; this effectively ignores the
352
+ authentication in the spec for a single request.
353
+ :type _request_auth: dict, optional
354
+ :param _content_type: force content-type for the request.
355
+ :type _content_type: str, Optional
356
+ :param _headers: set to override the headers for a single
357
+ request; this effectively ignores the headers
358
+ in the spec for a single request.
359
+ :type _headers: dict, optional
360
+ :param _host_index: set to override the host_index for a single
361
+ request; this effectively ignores the host_index
362
+ in the spec for a single request.
363
+ :type _host_index: int, optional
364
+ :return: Returns the result object.
365
+ """ # noqa: E501
366
+
367
+ _param = self._get_patient_serialize(
368
+ patient_uuid=patient_uuid,
369
+ expand=expand,
370
+ _request_auth=_request_auth,
371
+ _content_type=_content_type,
372
+ _headers=_headers,
373
+ _host_index=_host_index
374
+ )
375
+
376
+ _response_types_map: Dict[str, Optional[str]] = {
377
+ '200': "Patient",
378
+ '404': None,
379
+ }
380
+ response_data = self.api_client.call_api(
381
+ *_param,
382
+ _request_timeout=_request_timeout
383
+ )
384
+ response_data.read()
385
+ return self.api_client.response_deserialize(
386
+ response_data=response_data,
387
+ response_types_map=_response_types_map,
388
+ ).data
389
+
390
+
391
+ @validate_call
392
+ def get_patient_with_http_info(
393
+ self,
394
+ patient_uuid: StrictStr,
395
+ expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
396
+ _request_timeout: Union[
397
+ None,
398
+ Annotated[StrictFloat, Field(gt=0)],
399
+ Tuple[
400
+ Annotated[StrictFloat, Field(gt=0)],
401
+ Annotated[StrictFloat, Field(gt=0)]
402
+ ]
403
+ ] = None,
404
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
405
+ _content_type: Optional[StrictStr] = None,
406
+ _headers: Optional[Dict[StrictStr, Any]] = None,
407
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
408
+ ) -> ApiResponse[Patient]:
409
+ """Get patient by uuid
410
+
411
+
412
+ :param patient_uuid: (required)
413
+ :type patient_uuid: str
414
+ :param expand: The list of contained objects to return as well. Defaults to none.
415
+ :type expand: List[str]
416
+ :param _request_timeout: timeout setting for this request. If one
417
+ number provided, it will be total request
418
+ timeout. It can also be a pair (tuple) of
419
+ (connection, read) timeouts.
420
+ :type _request_timeout: int, tuple(int, int), optional
421
+ :param _request_auth: set to override the auth_settings for an a single
422
+ request; this effectively ignores the
423
+ authentication in the spec for a single request.
424
+ :type _request_auth: dict, optional
425
+ :param _content_type: force content-type for the request.
426
+ :type _content_type: str, Optional
427
+ :param _headers: set to override the headers for a single
428
+ request; this effectively ignores the headers
429
+ in the spec for a single request.
430
+ :type _headers: dict, optional
431
+ :param _host_index: set to override the host_index for a single
432
+ request; this effectively ignores the host_index
433
+ in the spec for a single request.
434
+ :type _host_index: int, optional
435
+ :return: Returns the result object.
436
+ """ # noqa: E501
437
+
438
+ _param = self._get_patient_serialize(
439
+ patient_uuid=patient_uuid,
440
+ expand=expand,
441
+ _request_auth=_request_auth,
442
+ _content_type=_content_type,
443
+ _headers=_headers,
444
+ _host_index=_host_index
445
+ )
446
+
447
+ _response_types_map: Dict[str, Optional[str]] = {
448
+ '200': "Patient",
449
+ '404': None,
450
+ }
451
+ response_data = self.api_client.call_api(
452
+ *_param,
453
+ _request_timeout=_request_timeout
454
+ )
455
+ response_data.read()
456
+ return self.api_client.response_deserialize(
457
+ response_data=response_data,
458
+ response_types_map=_response_types_map,
459
+ )
460
+
461
+
462
+ @validate_call
463
+ def get_patient_without_preload_content(
464
+ self,
465
+ patient_uuid: StrictStr,
466
+ expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
467
+ _request_timeout: Union[
468
+ None,
469
+ Annotated[StrictFloat, Field(gt=0)],
470
+ Tuple[
471
+ Annotated[StrictFloat, Field(gt=0)],
472
+ Annotated[StrictFloat, Field(gt=0)]
473
+ ]
474
+ ] = None,
475
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
476
+ _content_type: Optional[StrictStr] = None,
477
+ _headers: Optional[Dict[StrictStr, Any]] = None,
478
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
479
+ ) -> RESTResponseType:
480
+ """Get patient by uuid
481
+
482
+
483
+ :param patient_uuid: (required)
484
+ :type patient_uuid: str
485
+ :param expand: The list of contained objects to return as well. Defaults to none.
486
+ :type expand: List[str]
487
+ :param _request_timeout: timeout setting for this request. If one
488
+ number provided, it will be total request
489
+ timeout. It can also be a pair (tuple) of
490
+ (connection, read) timeouts.
491
+ :type _request_timeout: int, tuple(int, int), optional
492
+ :param _request_auth: set to override the auth_settings for an a single
493
+ request; this effectively ignores the
494
+ authentication in the spec for a single request.
495
+ :type _request_auth: dict, optional
496
+ :param _content_type: force content-type for the request.
497
+ :type _content_type: str, Optional
498
+ :param _headers: set to override the headers for a single
499
+ request; this effectively ignores the headers
500
+ in the spec for a single request.
501
+ :type _headers: dict, optional
502
+ :param _host_index: set to override the host_index for a single
503
+ request; this effectively ignores the host_index
504
+ in the spec for a single request.
505
+ :type _host_index: int, optional
506
+ :return: Returns the result object.
507
+ """ # noqa: E501
508
+
509
+ _param = self._get_patient_serialize(
510
+ patient_uuid=patient_uuid,
511
+ expand=expand,
512
+ _request_auth=_request_auth,
513
+ _content_type=_content_type,
514
+ _headers=_headers,
515
+ _host_index=_host_index
516
+ )
517
+
518
+ _response_types_map: Dict[str, Optional[str]] = {
519
+ '200': "Patient",
520
+ '404': None,
521
+ }
522
+ response_data = self.api_client.call_api(
523
+ *_param,
524
+ _request_timeout=_request_timeout
525
+ )
526
+ return response_data.response
527
+
528
+
529
+ def _get_patient_serialize(
530
+ self,
531
+ patient_uuid,
532
+ expand,
533
+ _request_auth,
534
+ _content_type,
535
+ _headers,
536
+ _host_index,
537
+ ) -> RequestSerialized:
538
+
539
+ _host = None
540
+
541
+ _collection_formats: Dict[str, str] = {
542
+ 'expand': 'csv',
543
+ }
544
+
545
+ _path_params: Dict[str, str] = {}
546
+ _query_params: List[Tuple[str, str]] = []
547
+ _header_params: Dict[str, Optional[str]] = _headers or {}
548
+ _form_params: List[Tuple[str, str]] = []
549
+ _files: Dict[
550
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
551
+ ] = {}
552
+ _body_params: Optional[bytes] = None
553
+
554
+ # process the path parameters
555
+ if patient_uuid is not None:
556
+ _path_params['patient_uuid'] = patient_uuid
557
+ # process the query parameters
558
+ if expand is not None:
559
+
560
+ _query_params.append(('expand', expand))
561
+
562
+ # process the header parameters
563
+ # process the form parameters
564
+ # process the body parameter
565
+
566
+
567
+ # set the HTTP header `Accept`
568
+ if 'Accept' not in _header_params:
569
+ _header_params['Accept'] = self.api_client.select_header_accept(
570
+ [
571
+ 'application/json'
572
+ ]
573
+ )
574
+
575
+
576
+ # authentication setting
577
+ _auth_settings: List[str] = [
578
+ 'opaque_token'
579
+ ]
580
+
581
+ return self.api_client.param_serialize(
582
+ method='GET',
583
+ resource_path='/swifty/1/patients/{patient_uuid}',
584
+ path_params=_path_params,
585
+ query_params=_query_params,
586
+ header_params=_header_params,
587
+ body=_body_params,
588
+ post_params=_form_params,
589
+ files=_files,
590
+ auth_settings=_auth_settings,
591
+ collection_formats=_collection_formats,
592
+ _host=_host,
593
+ _request_auth=_request_auth
594
+ )
595
+
596
+
597
+
598
+
599
+ @validate_call
600
+ def get_patient_allergies(
601
+ self,
602
+ patient_uuid: StrictStr,
603
+ _request_timeout: Union[
604
+ None,
605
+ Annotated[StrictFloat, Field(gt=0)],
606
+ Tuple[
607
+ Annotated[StrictFloat, Field(gt=0)],
608
+ Annotated[StrictFloat, Field(gt=0)]
609
+ ]
610
+ ] = None,
611
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
612
+ _content_type: Optional[StrictStr] = None,
613
+ _headers: Optional[Dict[StrictStr, Any]] = None,
614
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
615
+ ) -> List[PatientAllergy]:
616
+ """Get allergies for a patient
617
+
618
+
619
+ :param patient_uuid: (required)
620
+ :type patient_uuid: str
621
+ :param _request_timeout: timeout setting for this request. If one
622
+ number provided, it will be total request
623
+ timeout. It can also be a pair (tuple) of
624
+ (connection, read) timeouts.
625
+ :type _request_timeout: int, tuple(int, int), optional
626
+ :param _request_auth: set to override the auth_settings for an a single
627
+ request; this effectively ignores the
628
+ authentication in the spec for a single request.
629
+ :type _request_auth: dict, optional
630
+ :param _content_type: force content-type for the request.
631
+ :type _content_type: str, Optional
632
+ :param _headers: set to override the headers for a single
633
+ request; this effectively ignores the headers
634
+ in the spec for a single request.
635
+ :type _headers: dict, optional
636
+ :param _host_index: set to override the host_index for a single
637
+ request; this effectively ignores the host_index
638
+ in the spec for a single request.
639
+ :type _host_index: int, optional
640
+ :return: Returns the result object.
641
+ """ # noqa: E501
642
+
643
+ _param = self._get_patient_allergies_serialize(
644
+ patient_uuid=patient_uuid,
645
+ _request_auth=_request_auth,
646
+ _content_type=_content_type,
647
+ _headers=_headers,
648
+ _host_index=_host_index
649
+ )
650
+
651
+ _response_types_map: Dict[str, Optional[str]] = {
652
+ '200': "List[PatientAllergy]",
653
+ '400': None,
654
+ '401': None,
655
+ '404': None,
656
+ }
657
+ response_data = self.api_client.call_api(
658
+ *_param,
659
+ _request_timeout=_request_timeout
660
+ )
661
+ response_data.read()
662
+ return self.api_client.response_deserialize(
663
+ response_data=response_data,
664
+ response_types_map=_response_types_map,
665
+ ).data
666
+
667
+
668
+ @validate_call
669
+ def get_patient_allergies_with_http_info(
670
+ self,
671
+ patient_uuid: StrictStr,
672
+ _request_timeout: Union[
673
+ None,
674
+ Annotated[StrictFloat, Field(gt=0)],
675
+ Tuple[
676
+ Annotated[StrictFloat, Field(gt=0)],
677
+ Annotated[StrictFloat, Field(gt=0)]
678
+ ]
679
+ ] = None,
680
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
681
+ _content_type: Optional[StrictStr] = None,
682
+ _headers: Optional[Dict[StrictStr, Any]] = None,
683
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
684
+ ) -> ApiResponse[List[PatientAllergy]]:
685
+ """Get allergies for a patient
686
+
687
+
688
+ :param patient_uuid: (required)
689
+ :type patient_uuid: str
690
+ :param _request_timeout: timeout setting for this request. If one
691
+ number provided, it will be total request
692
+ timeout. It can also be a pair (tuple) of
693
+ (connection, read) timeouts.
694
+ :type _request_timeout: int, tuple(int, int), optional
695
+ :param _request_auth: set to override the auth_settings for an a single
696
+ request; this effectively ignores the
697
+ authentication in the spec for a single request.
698
+ :type _request_auth: dict, optional
699
+ :param _content_type: force content-type for the request.
700
+ :type _content_type: str, Optional
701
+ :param _headers: set to override the headers for a single
702
+ request; this effectively ignores the headers
703
+ in the spec for a single request.
704
+ :type _headers: dict, optional
705
+ :param _host_index: set to override the host_index for a single
706
+ request; this effectively ignores the host_index
707
+ in the spec for a single request.
708
+ :type _host_index: int, optional
709
+ :return: Returns the result object.
710
+ """ # noqa: E501
711
+
712
+ _param = self._get_patient_allergies_serialize(
713
+ patient_uuid=patient_uuid,
714
+ _request_auth=_request_auth,
715
+ _content_type=_content_type,
716
+ _headers=_headers,
717
+ _host_index=_host_index
718
+ )
719
+
720
+ _response_types_map: Dict[str, Optional[str]] = {
721
+ '200': "List[PatientAllergy]",
722
+ '400': None,
723
+ '401': None,
724
+ '404': None,
725
+ }
726
+ response_data = self.api_client.call_api(
727
+ *_param,
728
+ _request_timeout=_request_timeout
729
+ )
730
+ response_data.read()
731
+ return self.api_client.response_deserialize(
732
+ response_data=response_data,
733
+ response_types_map=_response_types_map,
734
+ )
735
+
736
+
737
+ @validate_call
738
+ def get_patient_allergies_without_preload_content(
739
+ self,
740
+ patient_uuid: StrictStr,
741
+ _request_timeout: Union[
742
+ None,
743
+ Annotated[StrictFloat, Field(gt=0)],
744
+ Tuple[
745
+ Annotated[StrictFloat, Field(gt=0)],
746
+ Annotated[StrictFloat, Field(gt=0)]
747
+ ]
748
+ ] = None,
749
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
750
+ _content_type: Optional[StrictStr] = None,
751
+ _headers: Optional[Dict[StrictStr, Any]] = None,
752
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
753
+ ) -> RESTResponseType:
754
+ """Get allergies for a patient
755
+
756
+
757
+ :param patient_uuid: (required)
758
+ :type patient_uuid: str
759
+ :param _request_timeout: timeout setting for this request. If one
760
+ number provided, it will be total request
761
+ timeout. It can also be a pair (tuple) of
762
+ (connection, read) timeouts.
763
+ :type _request_timeout: int, tuple(int, int), optional
764
+ :param _request_auth: set to override the auth_settings for an a single
765
+ request; this effectively ignores the
766
+ authentication in the spec for a single request.
767
+ :type _request_auth: dict, optional
768
+ :param _content_type: force content-type for the request.
769
+ :type _content_type: str, Optional
770
+ :param _headers: set to override the headers for a single
771
+ request; this effectively ignores the headers
772
+ in the spec for a single request.
773
+ :type _headers: dict, optional
774
+ :param _host_index: set to override the host_index for a single
775
+ request; this effectively ignores the host_index
776
+ in the spec for a single request.
777
+ :type _host_index: int, optional
778
+ :return: Returns the result object.
779
+ """ # noqa: E501
780
+
781
+ _param = self._get_patient_allergies_serialize(
782
+ patient_uuid=patient_uuid,
783
+ _request_auth=_request_auth,
784
+ _content_type=_content_type,
785
+ _headers=_headers,
786
+ _host_index=_host_index
787
+ )
788
+
789
+ _response_types_map: Dict[str, Optional[str]] = {
790
+ '200': "List[PatientAllergy]",
791
+ '400': None,
792
+ '401': None,
793
+ '404': None,
794
+ }
795
+ response_data = self.api_client.call_api(
796
+ *_param,
797
+ _request_timeout=_request_timeout
798
+ )
799
+ return response_data.response
800
+
801
+
802
+ def _get_patient_allergies_serialize(
803
+ self,
804
+ patient_uuid,
805
+ _request_auth,
806
+ _content_type,
807
+ _headers,
808
+ _host_index,
809
+ ) -> RequestSerialized:
810
+
811
+ _host = None
812
+
813
+ _collection_formats: Dict[str, str] = {
814
+ }
815
+
816
+ _path_params: Dict[str, str] = {}
817
+ _query_params: List[Tuple[str, str]] = []
818
+ _header_params: Dict[str, Optional[str]] = _headers or {}
819
+ _form_params: List[Tuple[str, str]] = []
820
+ _files: Dict[
821
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
822
+ ] = {}
823
+ _body_params: Optional[bytes] = None
824
+
825
+ # process the path parameters
826
+ if patient_uuid is not None:
827
+ _path_params['patient_uuid'] = patient_uuid
828
+ # process the query parameters
829
+ # process the header parameters
830
+ # process the form parameters
831
+ # process the body parameter
832
+
833
+
834
+ # set the HTTP header `Accept`
835
+ if 'Accept' not in _header_params:
836
+ _header_params['Accept'] = self.api_client.select_header_accept(
837
+ [
838
+ 'application/json'
839
+ ]
840
+ )
841
+
842
+
843
+ # authentication setting
844
+ _auth_settings: List[str] = [
845
+ 'opaque_token'
846
+ ]
847
+
848
+ return self.api_client.param_serialize(
849
+ method='GET',
850
+ resource_path='/swifty/1/patients/{patient_uuid}/allergies',
851
+ path_params=_path_params,
852
+ query_params=_query_params,
853
+ header_params=_header_params,
854
+ body=_body_params,
855
+ post_params=_form_params,
856
+ files=_files,
857
+ auth_settings=_auth_settings,
858
+ collection_formats=_collection_formats,
859
+ _host=_host,
860
+ _request_auth=_request_auth
861
+ )
862
+
863
+
864
+
865
+
866
+ @validate_call
867
+ def get_patient_conditions(
868
+ self,
869
+ patient_uuid: StrictStr,
870
+ _request_timeout: Union[
871
+ None,
872
+ Annotated[StrictFloat, Field(gt=0)],
873
+ Tuple[
874
+ Annotated[StrictFloat, Field(gt=0)],
875
+ Annotated[StrictFloat, Field(gt=0)]
876
+ ]
877
+ ] = None,
878
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
879
+ _content_type: Optional[StrictStr] = None,
880
+ _headers: Optional[Dict[StrictStr, Any]] = None,
881
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
882
+ ) -> List[PatientCondition]:
883
+ """Get conditions for a patient
884
+
885
+
886
+ :param patient_uuid: (required)
887
+ :type patient_uuid: str
888
+ :param _request_timeout: timeout setting for this request. If one
889
+ number provided, it will be total request
890
+ timeout. It can also be a pair (tuple) of
891
+ (connection, read) timeouts.
892
+ :type _request_timeout: int, tuple(int, int), optional
893
+ :param _request_auth: set to override the auth_settings for an a single
894
+ request; this effectively ignores the
895
+ authentication in the spec for a single request.
896
+ :type _request_auth: dict, optional
897
+ :param _content_type: force content-type for the request.
898
+ :type _content_type: str, Optional
899
+ :param _headers: set to override the headers for a single
900
+ request; this effectively ignores the headers
901
+ in the spec for a single request.
902
+ :type _headers: dict, optional
903
+ :param _host_index: set to override the host_index for a single
904
+ request; this effectively ignores the host_index
905
+ in the spec for a single request.
906
+ :type _host_index: int, optional
907
+ :return: Returns the result object.
908
+ """ # noqa: E501
909
+
910
+ _param = self._get_patient_conditions_serialize(
911
+ patient_uuid=patient_uuid,
912
+ _request_auth=_request_auth,
913
+ _content_type=_content_type,
914
+ _headers=_headers,
915
+ _host_index=_host_index
916
+ )
917
+
918
+ _response_types_map: Dict[str, Optional[str]] = {
919
+ '200': "List[PatientCondition]",
920
+ '400': None,
921
+ '401': None,
922
+ '404': None,
923
+ }
924
+ response_data = self.api_client.call_api(
925
+ *_param,
926
+ _request_timeout=_request_timeout
927
+ )
928
+ response_data.read()
929
+ return self.api_client.response_deserialize(
930
+ response_data=response_data,
931
+ response_types_map=_response_types_map,
932
+ ).data
933
+
934
+
935
+ @validate_call
936
+ def get_patient_conditions_with_http_info(
937
+ self,
938
+ patient_uuid: StrictStr,
939
+ _request_timeout: Union[
940
+ None,
941
+ Annotated[StrictFloat, Field(gt=0)],
942
+ Tuple[
943
+ Annotated[StrictFloat, Field(gt=0)],
944
+ Annotated[StrictFloat, Field(gt=0)]
945
+ ]
946
+ ] = None,
947
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
948
+ _content_type: Optional[StrictStr] = None,
949
+ _headers: Optional[Dict[StrictStr, Any]] = None,
950
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
951
+ ) -> ApiResponse[List[PatientCondition]]:
952
+ """Get conditions for a patient
953
+
954
+
955
+ :param patient_uuid: (required)
956
+ :type patient_uuid: str
957
+ :param _request_timeout: timeout setting for this request. If one
958
+ number provided, it will be total request
959
+ timeout. It can also be a pair (tuple) of
960
+ (connection, read) timeouts.
961
+ :type _request_timeout: int, tuple(int, int), optional
962
+ :param _request_auth: set to override the auth_settings for an a single
963
+ request; this effectively ignores the
964
+ authentication in the spec for a single request.
965
+ :type _request_auth: dict, optional
966
+ :param _content_type: force content-type for the request.
967
+ :type _content_type: str, Optional
968
+ :param _headers: set to override the headers for a single
969
+ request; this effectively ignores the headers
970
+ in the spec for a single request.
971
+ :type _headers: dict, optional
972
+ :param _host_index: set to override the host_index for a single
973
+ request; this effectively ignores the host_index
974
+ in the spec for a single request.
975
+ :type _host_index: int, optional
976
+ :return: Returns the result object.
977
+ """ # noqa: E501
978
+
979
+ _param = self._get_patient_conditions_serialize(
980
+ patient_uuid=patient_uuid,
981
+ _request_auth=_request_auth,
982
+ _content_type=_content_type,
983
+ _headers=_headers,
984
+ _host_index=_host_index
985
+ )
986
+
987
+ _response_types_map: Dict[str, Optional[str]] = {
988
+ '200': "List[PatientCondition]",
989
+ '400': None,
990
+ '401': None,
991
+ '404': None,
992
+ }
993
+ response_data = self.api_client.call_api(
994
+ *_param,
995
+ _request_timeout=_request_timeout
996
+ )
997
+ response_data.read()
998
+ return self.api_client.response_deserialize(
999
+ response_data=response_data,
1000
+ response_types_map=_response_types_map,
1001
+ )
1002
+
1003
+
1004
+ @validate_call
1005
+ def get_patient_conditions_without_preload_content(
1006
+ self,
1007
+ patient_uuid: StrictStr,
1008
+ _request_timeout: Union[
1009
+ None,
1010
+ Annotated[StrictFloat, Field(gt=0)],
1011
+ Tuple[
1012
+ Annotated[StrictFloat, Field(gt=0)],
1013
+ Annotated[StrictFloat, Field(gt=0)]
1014
+ ]
1015
+ ] = None,
1016
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1017
+ _content_type: Optional[StrictStr] = None,
1018
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1019
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1020
+ ) -> RESTResponseType:
1021
+ """Get conditions for a patient
1022
+
1023
+
1024
+ :param patient_uuid: (required)
1025
+ :type patient_uuid: str
1026
+ :param _request_timeout: timeout setting for this request. If one
1027
+ number provided, it will be total request
1028
+ timeout. It can also be a pair (tuple) of
1029
+ (connection, read) timeouts.
1030
+ :type _request_timeout: int, tuple(int, int), optional
1031
+ :param _request_auth: set to override the auth_settings for an a single
1032
+ request; this effectively ignores the
1033
+ authentication in the spec for a single request.
1034
+ :type _request_auth: dict, optional
1035
+ :param _content_type: force content-type for the request.
1036
+ :type _content_type: str, Optional
1037
+ :param _headers: set to override the headers for a single
1038
+ request; this effectively ignores the headers
1039
+ in the spec for a single request.
1040
+ :type _headers: dict, optional
1041
+ :param _host_index: set to override the host_index for a single
1042
+ request; this effectively ignores the host_index
1043
+ in the spec for a single request.
1044
+ :type _host_index: int, optional
1045
+ :return: Returns the result object.
1046
+ """ # noqa: E501
1047
+
1048
+ _param = self._get_patient_conditions_serialize(
1049
+ patient_uuid=patient_uuid,
1050
+ _request_auth=_request_auth,
1051
+ _content_type=_content_type,
1052
+ _headers=_headers,
1053
+ _host_index=_host_index
1054
+ )
1055
+
1056
+ _response_types_map: Dict[str, Optional[str]] = {
1057
+ '200': "List[PatientCondition]",
1058
+ '400': None,
1059
+ '401': None,
1060
+ '404': None,
1061
+ }
1062
+ response_data = self.api_client.call_api(
1063
+ *_param,
1064
+ _request_timeout=_request_timeout
1065
+ )
1066
+ return response_data.response
1067
+
1068
+
1069
+ def _get_patient_conditions_serialize(
1070
+ self,
1071
+ patient_uuid,
1072
+ _request_auth,
1073
+ _content_type,
1074
+ _headers,
1075
+ _host_index,
1076
+ ) -> RequestSerialized:
1077
+
1078
+ _host = None
1079
+
1080
+ _collection_formats: Dict[str, str] = {
1081
+ }
1082
+
1083
+ _path_params: Dict[str, str] = {}
1084
+ _query_params: List[Tuple[str, str]] = []
1085
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1086
+ _form_params: List[Tuple[str, str]] = []
1087
+ _files: Dict[
1088
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1089
+ ] = {}
1090
+ _body_params: Optional[bytes] = None
1091
+
1092
+ # process the path parameters
1093
+ if patient_uuid is not None:
1094
+ _path_params['patient_uuid'] = patient_uuid
1095
+ # process the query parameters
1096
+ # process the header parameters
1097
+ # process the form parameters
1098
+ # process the body parameter
1099
+
1100
+
1101
+ # set the HTTP header `Accept`
1102
+ if 'Accept' not in _header_params:
1103
+ _header_params['Accept'] = self.api_client.select_header_accept(
1104
+ [
1105
+ 'application/json'
1106
+ ]
1107
+ )
1108
+
1109
+
1110
+ # authentication setting
1111
+ _auth_settings: List[str] = [
1112
+ 'opaque_token'
1113
+ ]
1114
+
1115
+ return self.api_client.param_serialize(
1116
+ method='GET',
1117
+ resource_path='/swifty/1/patients/{patient_uuid}/conditions',
1118
+ path_params=_path_params,
1119
+ query_params=_query_params,
1120
+ header_params=_header_params,
1121
+ body=_body_params,
1122
+ post_params=_form_params,
1123
+ files=_files,
1124
+ auth_settings=_auth_settings,
1125
+ collection_formats=_collection_formats,
1126
+ _host=_host,
1127
+ _request_auth=_request_auth
1128
+ )
1129
+
1130
+
1131
+
1132
+
1133
+ @validate_call
1134
+ def get_patient_insurances(
1135
+ self,
1136
+ patient_uuid: StrictStr,
1137
+ _request_timeout: Union[
1138
+ None,
1139
+ Annotated[StrictFloat, Field(gt=0)],
1140
+ Tuple[
1141
+ Annotated[StrictFloat, Field(gt=0)],
1142
+ Annotated[StrictFloat, Field(gt=0)]
1143
+ ]
1144
+ ] = None,
1145
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1146
+ _content_type: Optional[StrictStr] = None,
1147
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1148
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1149
+ ) -> List[Insurance]:
1150
+ """Get insurances for a patient
1151
+
1152
+
1153
+ :param patient_uuid: (required)
1154
+ :type patient_uuid: str
1155
+ :param _request_timeout: timeout setting for this request. If one
1156
+ number provided, it will be total request
1157
+ timeout. It can also be a pair (tuple) of
1158
+ (connection, read) timeouts.
1159
+ :type _request_timeout: int, tuple(int, int), optional
1160
+ :param _request_auth: set to override the auth_settings for an a single
1161
+ request; this effectively ignores the
1162
+ authentication in the spec for a single request.
1163
+ :type _request_auth: dict, optional
1164
+ :param _content_type: force content-type for the request.
1165
+ :type _content_type: str, Optional
1166
+ :param _headers: set to override the headers for a single
1167
+ request; this effectively ignores the headers
1168
+ in the spec for a single request.
1169
+ :type _headers: dict, optional
1170
+ :param _host_index: set to override the host_index for a single
1171
+ request; this effectively ignores the host_index
1172
+ in the spec for a single request.
1173
+ :type _host_index: int, optional
1174
+ :return: Returns the result object.
1175
+ """ # noqa: E501
1176
+
1177
+ _param = self._get_patient_insurances_serialize(
1178
+ patient_uuid=patient_uuid,
1179
+ _request_auth=_request_auth,
1180
+ _content_type=_content_type,
1181
+ _headers=_headers,
1182
+ _host_index=_host_index
1183
+ )
1184
+
1185
+ _response_types_map: Dict[str, Optional[str]] = {
1186
+ '200': "List[Insurance]",
1187
+ '400': None,
1188
+ '401': None,
1189
+ '404': None,
1190
+ }
1191
+ response_data = self.api_client.call_api(
1192
+ *_param,
1193
+ _request_timeout=_request_timeout
1194
+ )
1195
+ response_data.read()
1196
+ return self.api_client.response_deserialize(
1197
+ response_data=response_data,
1198
+ response_types_map=_response_types_map,
1199
+ ).data
1200
+
1201
+
1202
+ @validate_call
1203
+ def get_patient_insurances_with_http_info(
46
1204
  self,
47
1205
  patient_uuid: StrictStr,
48
1206
  _request_timeout: Union[
@@ -57,8 +1215,8 @@ class PatientApi:
57
1215
  _content_type: Optional[StrictStr] = None,
58
1216
  _headers: Optional[Dict[StrictStr, Any]] = None,
59
1217
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
- ) -> Patient:
61
- """Get patient by uuid
1218
+ ) -> ApiResponse[List[Insurance]]:
1219
+ """Get insurances for a patient
62
1220
 
63
1221
 
64
1222
  :param patient_uuid: (required)
@@ -85,7 +1243,7 @@ class PatientApi:
85
1243
  :return: Returns the result object.
86
1244
  """ # noqa: E501
87
1245
 
88
- _param = self._get_patient_serialize(
1246
+ _param = self._get_patient_insurances_serialize(
89
1247
  patient_uuid=patient_uuid,
90
1248
  _request_auth=_request_auth,
91
1249
  _content_type=_content_type,
@@ -94,7 +1252,207 @@ class PatientApi:
94
1252
  )
95
1253
 
96
1254
  _response_types_map: Dict[str, Optional[str]] = {
97
- '200': "Patient",
1255
+ '200': "List[Insurance]",
1256
+ '400': None,
1257
+ '401': None,
1258
+ '404': None,
1259
+ }
1260
+ response_data = self.api_client.call_api(
1261
+ *_param,
1262
+ _request_timeout=_request_timeout
1263
+ )
1264
+ response_data.read()
1265
+ return self.api_client.response_deserialize(
1266
+ response_data=response_data,
1267
+ response_types_map=_response_types_map,
1268
+ )
1269
+
1270
+
1271
+ @validate_call
1272
+ def get_patient_insurances_without_preload_content(
1273
+ self,
1274
+ patient_uuid: StrictStr,
1275
+ _request_timeout: Union[
1276
+ None,
1277
+ Annotated[StrictFloat, Field(gt=0)],
1278
+ Tuple[
1279
+ Annotated[StrictFloat, Field(gt=0)],
1280
+ Annotated[StrictFloat, Field(gt=0)]
1281
+ ]
1282
+ ] = None,
1283
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1284
+ _content_type: Optional[StrictStr] = None,
1285
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1286
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1287
+ ) -> RESTResponseType:
1288
+ """Get insurances for a patient
1289
+
1290
+
1291
+ :param patient_uuid: (required)
1292
+ :type patient_uuid: str
1293
+ :param _request_timeout: timeout setting for this request. If one
1294
+ number provided, it will be total request
1295
+ timeout. It can also be a pair (tuple) of
1296
+ (connection, read) timeouts.
1297
+ :type _request_timeout: int, tuple(int, int), optional
1298
+ :param _request_auth: set to override the auth_settings for an a single
1299
+ request; this effectively ignores the
1300
+ authentication in the spec for a single request.
1301
+ :type _request_auth: dict, optional
1302
+ :param _content_type: force content-type for the request.
1303
+ :type _content_type: str, Optional
1304
+ :param _headers: set to override the headers for a single
1305
+ request; this effectively ignores the headers
1306
+ in the spec for a single request.
1307
+ :type _headers: dict, optional
1308
+ :param _host_index: set to override the host_index for a single
1309
+ request; this effectively ignores the host_index
1310
+ in the spec for a single request.
1311
+ :type _host_index: int, optional
1312
+ :return: Returns the result object.
1313
+ """ # noqa: E501
1314
+
1315
+ _param = self._get_patient_insurances_serialize(
1316
+ patient_uuid=patient_uuid,
1317
+ _request_auth=_request_auth,
1318
+ _content_type=_content_type,
1319
+ _headers=_headers,
1320
+ _host_index=_host_index
1321
+ )
1322
+
1323
+ _response_types_map: Dict[str, Optional[str]] = {
1324
+ '200': "List[Insurance]",
1325
+ '400': None,
1326
+ '401': None,
1327
+ '404': None,
1328
+ }
1329
+ response_data = self.api_client.call_api(
1330
+ *_param,
1331
+ _request_timeout=_request_timeout
1332
+ )
1333
+ return response_data.response
1334
+
1335
+
1336
+ def _get_patient_insurances_serialize(
1337
+ self,
1338
+ patient_uuid,
1339
+ _request_auth,
1340
+ _content_type,
1341
+ _headers,
1342
+ _host_index,
1343
+ ) -> RequestSerialized:
1344
+
1345
+ _host = None
1346
+
1347
+ _collection_formats: Dict[str, str] = {
1348
+ }
1349
+
1350
+ _path_params: Dict[str, str] = {}
1351
+ _query_params: List[Tuple[str, str]] = []
1352
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1353
+ _form_params: List[Tuple[str, str]] = []
1354
+ _files: Dict[
1355
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1356
+ ] = {}
1357
+ _body_params: Optional[bytes] = None
1358
+
1359
+ # process the path parameters
1360
+ if patient_uuid is not None:
1361
+ _path_params['patient_uuid'] = patient_uuid
1362
+ # process the query parameters
1363
+ # process the header parameters
1364
+ # process the form parameters
1365
+ # process the body parameter
1366
+
1367
+
1368
+ # set the HTTP header `Accept`
1369
+ if 'Accept' not in _header_params:
1370
+ _header_params['Accept'] = self.api_client.select_header_accept(
1371
+ [
1372
+ 'application/json'
1373
+ ]
1374
+ )
1375
+
1376
+
1377
+ # authentication setting
1378
+ _auth_settings: List[str] = [
1379
+ 'opaque_token'
1380
+ ]
1381
+
1382
+ return self.api_client.param_serialize(
1383
+ method='GET',
1384
+ resource_path='/swifty/1/patients/{patient_uuid}/insurances',
1385
+ path_params=_path_params,
1386
+ query_params=_query_params,
1387
+ header_params=_header_params,
1388
+ body=_body_params,
1389
+ post_params=_form_params,
1390
+ files=_files,
1391
+ auth_settings=_auth_settings,
1392
+ collection_formats=_collection_formats,
1393
+ _host=_host,
1394
+ _request_auth=_request_auth
1395
+ )
1396
+
1397
+
1398
+
1399
+
1400
+ @validate_call
1401
+ def get_patient_medications(
1402
+ self,
1403
+ patient_uuid: StrictStr,
1404
+ _request_timeout: Union[
1405
+ None,
1406
+ Annotated[StrictFloat, Field(gt=0)],
1407
+ Tuple[
1408
+ Annotated[StrictFloat, Field(gt=0)],
1409
+ Annotated[StrictFloat, Field(gt=0)]
1410
+ ]
1411
+ ] = None,
1412
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1413
+ _content_type: Optional[StrictStr] = None,
1414
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1415
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1416
+ ) -> List[PatientMedication]:
1417
+ """Get medications for a patient
1418
+
1419
+
1420
+ :param patient_uuid: (required)
1421
+ :type patient_uuid: str
1422
+ :param _request_timeout: timeout setting for this request. If one
1423
+ number provided, it will be total request
1424
+ timeout. It can also be a pair (tuple) of
1425
+ (connection, read) timeouts.
1426
+ :type _request_timeout: int, tuple(int, int), optional
1427
+ :param _request_auth: set to override the auth_settings for an a single
1428
+ request; this effectively ignores the
1429
+ authentication in the spec for a single request.
1430
+ :type _request_auth: dict, optional
1431
+ :param _content_type: force content-type for the request.
1432
+ :type _content_type: str, Optional
1433
+ :param _headers: set to override the headers for a single
1434
+ request; this effectively ignores the headers
1435
+ in the spec for a single request.
1436
+ :type _headers: dict, optional
1437
+ :param _host_index: set to override the host_index for a single
1438
+ request; this effectively ignores the host_index
1439
+ in the spec for a single request.
1440
+ :type _host_index: int, optional
1441
+ :return: Returns the result object.
1442
+ """ # noqa: E501
1443
+
1444
+ _param = self._get_patient_medications_serialize(
1445
+ patient_uuid=patient_uuid,
1446
+ _request_auth=_request_auth,
1447
+ _content_type=_content_type,
1448
+ _headers=_headers,
1449
+ _host_index=_host_index
1450
+ )
1451
+
1452
+ _response_types_map: Dict[str, Optional[str]] = {
1453
+ '200': "List[PatientMedication]",
1454
+ '400': None,
1455
+ '401': None,
98
1456
  '404': None,
99
1457
  }
100
1458
  response_data = self.api_client.call_api(
@@ -109,7 +1467,7 @@ class PatientApi:
109
1467
 
110
1468
 
111
1469
  @validate_call
112
- def get_patient_with_http_info(
1470
+ def get_patient_medications_with_http_info(
113
1471
  self,
114
1472
  patient_uuid: StrictStr,
115
1473
  _request_timeout: Union[
@@ -124,8 +1482,8 @@ class PatientApi:
124
1482
  _content_type: Optional[StrictStr] = None,
125
1483
  _headers: Optional[Dict[StrictStr, Any]] = None,
126
1484
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
127
- ) -> ApiResponse[Patient]:
128
- """Get patient by uuid
1485
+ ) -> ApiResponse[List[PatientMedication]]:
1486
+ """Get medications for a patient
129
1487
 
130
1488
 
131
1489
  :param patient_uuid: (required)
@@ -152,7 +1510,7 @@ class PatientApi:
152
1510
  :return: Returns the result object.
153
1511
  """ # noqa: E501
154
1512
 
155
- _param = self._get_patient_serialize(
1513
+ _param = self._get_patient_medications_serialize(
156
1514
  patient_uuid=patient_uuid,
157
1515
  _request_auth=_request_auth,
158
1516
  _content_type=_content_type,
@@ -161,7 +1519,9 @@ class PatientApi:
161
1519
  )
162
1520
 
163
1521
  _response_types_map: Dict[str, Optional[str]] = {
164
- '200': "Patient",
1522
+ '200': "List[PatientMedication]",
1523
+ '400': None,
1524
+ '401': None,
165
1525
  '404': None,
166
1526
  }
167
1527
  response_data = self.api_client.call_api(
@@ -176,7 +1536,7 @@ class PatientApi:
176
1536
 
177
1537
 
178
1538
  @validate_call
179
- def get_patient_without_preload_content(
1539
+ def get_patient_medications_without_preload_content(
180
1540
  self,
181
1541
  patient_uuid: StrictStr,
182
1542
  _request_timeout: Union[
@@ -192,7 +1552,7 @@ class PatientApi:
192
1552
  _headers: Optional[Dict[StrictStr, Any]] = None,
193
1553
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
194
1554
  ) -> RESTResponseType:
195
- """Get patient by uuid
1555
+ """Get medications for a patient
196
1556
 
197
1557
 
198
1558
  :param patient_uuid: (required)
@@ -219,7 +1579,7 @@ class PatientApi:
219
1579
  :return: Returns the result object.
220
1580
  """ # noqa: E501
221
1581
 
222
- _param = self._get_patient_serialize(
1582
+ _param = self._get_patient_medications_serialize(
223
1583
  patient_uuid=patient_uuid,
224
1584
  _request_auth=_request_auth,
225
1585
  _content_type=_content_type,
@@ -228,7 +1588,9 @@ class PatientApi:
228
1588
  )
229
1589
 
230
1590
  _response_types_map: Dict[str, Optional[str]] = {
231
- '200': "Patient",
1591
+ '200': "List[PatientMedication]",
1592
+ '400': None,
1593
+ '401': None,
232
1594
  '404': None,
233
1595
  }
234
1596
  response_data = self.api_client.call_api(
@@ -238,7 +1600,7 @@ class PatientApi:
238
1600
  return response_data.response
239
1601
 
240
1602
 
241
- def _get_patient_serialize(
1603
+ def _get_patient_medications_serialize(
242
1604
  self,
243
1605
  patient_uuid,
244
1606
  _request_auth,
@@ -286,7 +1648,7 @@ class PatientApi:
286
1648
 
287
1649
  return self.api_client.param_serialize(
288
1650
  method='GET',
289
- resource_path='/swifty/1/patients/{patient_uuid}',
1651
+ resource_path='/swifty/1/patients/{patient_uuid}/medications',
290
1652
  path_params=_path_params,
291
1653
  query_params=_query_params,
292
1654
  header_params=_header_params,
@@ -635,12 +1997,13 @@ class PatientApi:
635
1997
  @validate_call
636
1998
  def get_patients(
637
1999
  self,
638
- q: Annotated[Optional[StrictStr], Field(description="Filter patients by query. This takes precedence if set over remaining filters.")] = None,
2000
+ q: Annotated[Optional[StrictStr], Field(description="Filter patients by query. This takes precedence if set over remaining filters. Searches on first name, last name, date of birth (yyyy-mm-dd), home address and phone numbers in (555) 555-5555 format.")] = None,
639
2001
  external_id: Annotated[Optional[StrictStr], Field(description="An external id to find the patient by. Format is {slug}:{external_id}. This takes precedence if set over remaining filters, but not used if q is set.")] = None,
640
2002
  uuid_list: Annotated[Optional[List[StrictStr]], Field(description="A list of uuid strings to filter by. Only used if q and external_id are not set.")] = None,
641
- page: Optional[StrictInt] = None,
642
- results_per_page: Optional[StrictInt] = None,
643
- deep: Optional[StrictBool] = None,
2003
+ is_registered: Annotated[Optional[StrictBool], Field(description="Filter patients by registration status. Defaults to true.")] = None,
2004
+ page: Annotated[Optional[StrictInt], Field(description="Page number to return. Defaults to 1.")] = None,
2005
+ results_per_page: Annotated[Optional[StrictInt], Field(description="Number of results to return per page. Defaults to 10.")] = None,
2006
+ expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
644
2007
  _request_timeout: Union[
645
2008
  None,
646
2009
  Annotated[StrictFloat, Field(gt=0)],
@@ -657,18 +2020,20 @@ class PatientApi:
657
2020
  """Get all patients
658
2021
 
659
2022
 
660
- :param q: Filter patients by query. This takes precedence if set over remaining filters.
2023
+ :param q: Filter patients by query. This takes precedence if set over remaining filters. Searches on first name, last name, date of birth (yyyy-mm-dd), home address and phone numbers in (555) 555-5555 format.
661
2024
  :type q: str
662
2025
  :param external_id: An external id to find the patient by. Format is {slug}:{external_id}. This takes precedence if set over remaining filters, but not used if q is set.
663
2026
  :type external_id: str
664
2027
  :param uuid_list: A list of uuid strings to filter by. Only used if q and external_id are not set.
665
2028
  :type uuid_list: List[str]
666
- :param page:
2029
+ :param is_registered: Filter patients by registration status. Defaults to true.
2030
+ :type is_registered: bool
2031
+ :param page: Page number to return. Defaults to 1.
667
2032
  :type page: int
668
- :param results_per_page:
2033
+ :param results_per_page: Number of results to return per page. Defaults to 10.
669
2034
  :type results_per_page: int
670
- :param deep:
671
- :type deep: bool
2035
+ :param expand: The list of contained objects to return as well. Defaults to none.
2036
+ :type expand: List[str]
672
2037
  :param _request_timeout: timeout setting for this request. If one
673
2038
  number provided, it will be total request
674
2039
  timeout. It can also be a pair (tuple) of
@@ -695,9 +2060,10 @@ class PatientApi:
695
2060
  q=q,
696
2061
  external_id=external_id,
697
2062
  uuid_list=uuid_list,
2063
+ is_registered=is_registered,
698
2064
  page=page,
699
2065
  results_per_page=results_per_page,
700
- deep=deep,
2066
+ expand=expand,
701
2067
  _request_auth=_request_auth,
702
2068
  _content_type=_content_type,
703
2069
  _headers=_headers,
@@ -722,12 +2088,13 @@ class PatientApi:
722
2088
  @validate_call
723
2089
  def get_patients_with_http_info(
724
2090
  self,
725
- q: Annotated[Optional[StrictStr], Field(description="Filter patients by query. This takes precedence if set over remaining filters.")] = None,
2091
+ q: Annotated[Optional[StrictStr], Field(description="Filter patients by query. This takes precedence if set over remaining filters. Searches on first name, last name, date of birth (yyyy-mm-dd), home address and phone numbers in (555) 555-5555 format.")] = None,
726
2092
  external_id: Annotated[Optional[StrictStr], Field(description="An external id to find the patient by. Format is {slug}:{external_id}. This takes precedence if set over remaining filters, but not used if q is set.")] = None,
727
2093
  uuid_list: Annotated[Optional[List[StrictStr]], Field(description="A list of uuid strings to filter by. Only used if q and external_id are not set.")] = None,
728
- page: Optional[StrictInt] = None,
729
- results_per_page: Optional[StrictInt] = None,
730
- deep: Optional[StrictBool] = None,
2094
+ is_registered: Annotated[Optional[StrictBool], Field(description="Filter patients by registration status. Defaults to true.")] = None,
2095
+ page: Annotated[Optional[StrictInt], Field(description="Page number to return. Defaults to 1.")] = None,
2096
+ results_per_page: Annotated[Optional[StrictInt], Field(description="Number of results to return per page. Defaults to 10.")] = None,
2097
+ expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
731
2098
  _request_timeout: Union[
732
2099
  None,
733
2100
  Annotated[StrictFloat, Field(gt=0)],
@@ -744,18 +2111,20 @@ class PatientApi:
744
2111
  """Get all patients
745
2112
 
746
2113
 
747
- :param q: Filter patients by query. This takes precedence if set over remaining filters.
2114
+ :param q: Filter patients by query. This takes precedence if set over remaining filters. Searches on first name, last name, date of birth (yyyy-mm-dd), home address and phone numbers in (555) 555-5555 format.
748
2115
  :type q: str
749
2116
  :param external_id: An external id to find the patient by. Format is {slug}:{external_id}. This takes precedence if set over remaining filters, but not used if q is set.
750
2117
  :type external_id: str
751
2118
  :param uuid_list: A list of uuid strings to filter by. Only used if q and external_id are not set.
752
2119
  :type uuid_list: List[str]
753
- :param page:
2120
+ :param is_registered: Filter patients by registration status. Defaults to true.
2121
+ :type is_registered: bool
2122
+ :param page: Page number to return. Defaults to 1.
754
2123
  :type page: int
755
- :param results_per_page:
2124
+ :param results_per_page: Number of results to return per page. Defaults to 10.
756
2125
  :type results_per_page: int
757
- :param deep:
758
- :type deep: bool
2126
+ :param expand: The list of contained objects to return as well. Defaults to none.
2127
+ :type expand: List[str]
759
2128
  :param _request_timeout: timeout setting for this request. If one
760
2129
  number provided, it will be total request
761
2130
  timeout. It can also be a pair (tuple) of
@@ -782,9 +2151,10 @@ class PatientApi:
782
2151
  q=q,
783
2152
  external_id=external_id,
784
2153
  uuid_list=uuid_list,
2154
+ is_registered=is_registered,
785
2155
  page=page,
786
2156
  results_per_page=results_per_page,
787
- deep=deep,
2157
+ expand=expand,
788
2158
  _request_auth=_request_auth,
789
2159
  _content_type=_content_type,
790
2160
  _headers=_headers,
@@ -809,12 +2179,13 @@ class PatientApi:
809
2179
  @validate_call
810
2180
  def get_patients_without_preload_content(
811
2181
  self,
812
- q: Annotated[Optional[StrictStr], Field(description="Filter patients by query. This takes precedence if set over remaining filters.")] = None,
2182
+ q: Annotated[Optional[StrictStr], Field(description="Filter patients by query. This takes precedence if set over remaining filters. Searches on first name, last name, date of birth (yyyy-mm-dd), home address and phone numbers in (555) 555-5555 format.")] = None,
813
2183
  external_id: Annotated[Optional[StrictStr], Field(description="An external id to find the patient by. Format is {slug}:{external_id}. This takes precedence if set over remaining filters, but not used if q is set.")] = None,
814
2184
  uuid_list: Annotated[Optional[List[StrictStr]], Field(description="A list of uuid strings to filter by. Only used if q and external_id are not set.")] = None,
815
- page: Optional[StrictInt] = None,
816
- results_per_page: Optional[StrictInt] = None,
817
- deep: Optional[StrictBool] = None,
2185
+ is_registered: Annotated[Optional[StrictBool], Field(description="Filter patients by registration status. Defaults to true.")] = None,
2186
+ page: Annotated[Optional[StrictInt], Field(description="Page number to return. Defaults to 1.")] = None,
2187
+ results_per_page: Annotated[Optional[StrictInt], Field(description="Number of results to return per page. Defaults to 10.")] = None,
2188
+ expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
818
2189
  _request_timeout: Union[
819
2190
  None,
820
2191
  Annotated[StrictFloat, Field(gt=0)],
@@ -831,18 +2202,20 @@ class PatientApi:
831
2202
  """Get all patients
832
2203
 
833
2204
 
834
- :param q: Filter patients by query. This takes precedence if set over remaining filters.
2205
+ :param q: Filter patients by query. This takes precedence if set over remaining filters. Searches on first name, last name, date of birth (yyyy-mm-dd), home address and phone numbers in (555) 555-5555 format.
835
2206
  :type q: str
836
2207
  :param external_id: An external id to find the patient by. Format is {slug}:{external_id}. This takes precedence if set over remaining filters, but not used if q is set.
837
2208
  :type external_id: str
838
2209
  :param uuid_list: A list of uuid strings to filter by. Only used if q and external_id are not set.
839
2210
  :type uuid_list: List[str]
840
- :param page:
2211
+ :param is_registered: Filter patients by registration status. Defaults to true.
2212
+ :type is_registered: bool
2213
+ :param page: Page number to return. Defaults to 1.
841
2214
  :type page: int
842
- :param results_per_page:
2215
+ :param results_per_page: Number of results to return per page. Defaults to 10.
843
2216
  :type results_per_page: int
844
- :param deep:
845
- :type deep: bool
2217
+ :param expand: The list of contained objects to return as well. Defaults to none.
2218
+ :type expand: List[str]
846
2219
  :param _request_timeout: timeout setting for this request. If one
847
2220
  number provided, it will be total request
848
2221
  timeout. It can also be a pair (tuple) of
@@ -869,9 +2242,10 @@ class PatientApi:
869
2242
  q=q,
870
2243
  external_id=external_id,
871
2244
  uuid_list=uuid_list,
2245
+ is_registered=is_registered,
872
2246
  page=page,
873
2247
  results_per_page=results_per_page,
874
- deep=deep,
2248
+ expand=expand,
875
2249
  _request_auth=_request_auth,
876
2250
  _content_type=_content_type,
877
2251
  _headers=_headers,
@@ -894,9 +2268,10 @@ class PatientApi:
894
2268
  q,
895
2269
  external_id,
896
2270
  uuid_list,
2271
+ is_registered,
897
2272
  page,
898
2273
  results_per_page,
899
- deep,
2274
+ expand,
900
2275
  _request_auth,
901
2276
  _content_type,
902
2277
  _headers,
@@ -907,6 +2282,7 @@ class PatientApi:
907
2282
 
908
2283
  _collection_formats: Dict[str, str] = {
909
2284
  'uuid_list': 'csv',
2285
+ 'expand': 'csv',
910
2286
  }
911
2287
 
912
2288
  _path_params: Dict[str, str] = {}
@@ -932,6 +2308,10 @@ class PatientApi:
932
2308
 
933
2309
  _query_params.append(('uuid_list', uuid_list))
934
2310
 
2311
+ if is_registered is not None:
2312
+
2313
+ _query_params.append(('is_registered', is_registered))
2314
+
935
2315
  if page is not None:
936
2316
 
937
2317
  _query_params.append(('page', page))
@@ -940,9 +2320,9 @@ class PatientApi:
940
2320
 
941
2321
  _query_params.append(('results_per_page', results_per_page))
942
2322
 
943
- if deep is not None:
2323
+ if expand is not None:
944
2324
 
945
- _query_params.append(('deep', deep))
2325
+ _query_params.append(('expand', expand))
946
2326
 
947
2327
  # process the header parameters
948
2328
  # process the form parameters