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.
- rxfoundry/clients/swifty_api/__init__.py +37 -3
- rxfoundry/clients/swifty_api/api/__init__.py +3 -1
- rxfoundry/clients/swifty_api/api/async_api.py +2336 -52
- rxfoundry/clients/swifty_api/api/code_api.py +281 -0
- rxfoundry/clients/swifty_api/api/default_api.py +318 -0
- rxfoundry/clients/swifty_api/api/medication_api.py +647 -51
- rxfoundry/clients/swifty_api/api/patient_api.py +1126 -35
- rxfoundry/clients/swifty_api/api/pharmacist_api.py +24 -24
- rxfoundry/clients/swifty_api/api/pharmacy_api.py +48 -48
- rxfoundry/clients/swifty_api/api/prescriber_api.py +24 -24
- rxfoundry/clients/swifty_api/api/prescription_api.py +934 -130
- rxfoundry/clients/swifty_api/api/task_api.py +1835 -0
- rxfoundry/clients/swifty_api/api/tasks_api.py +374 -0
- rxfoundry/clients/swifty_api/api/validation_api.py +311 -0
- rxfoundry/clients/swifty_api/api/virtual_pharmacy_api.py +262 -0
- rxfoundry/clients/swifty_api/api/workflow_api.py +633 -0
- rxfoundry/clients/swifty_api/models/__init__.py +34 -2
- rxfoundry/clients/swifty_api/models/address.py +11 -10
- rxfoundry/clients/swifty_api/models/code_type.py +92 -0
- rxfoundry/clients/swifty_api/models/formulary.py +96 -0
- rxfoundry/clients/swifty_api/models/insurance.py +96 -0
- rxfoundry/clients/swifty_api/models/medication_instruction.py +92 -0
- rxfoundry/clients/swifty_api/models/medication_ref.py +100 -0
- rxfoundry/clients/swifty_api/models/patient.py +85 -2
- rxfoundry/clients/swifty_api/models/patient_activity_data.py +169 -0
- rxfoundry/clients/swifty_api/models/patient_activity_message.py +112 -0
- rxfoundry/clients/swifty_api/models/patient_activity_notification.py +9 -17
- rxfoundry/clients/swifty_api/models/patient_activity_notification_activity_data.py +39 -8
- rxfoundry/clients/swifty_api/models/patient_address_activity_notification.py +105 -0
- rxfoundry/clients/swifty_api/models/patient_address_data.py +25 -9
- rxfoundry/clients/swifty_api/models/patient_allergy.py +92 -0
- rxfoundry/clients/swifty_api/models/patient_condition.py +92 -0
- rxfoundry/clients/swifty_api/models/patient_data.py +13 -2
- rxfoundry/clients/swifty_api/models/patient_external_identifier.py +6 -5
- rxfoundry/clients/swifty_api/models/patient_health_profile_data.py +127 -0
- rxfoundry/clients/swifty_api/models/patient_insurance.py +106 -0
- rxfoundry/clients/swifty_api/models/patient_insurance_data.py +105 -0
- rxfoundry/clients/swifty_api/models/patient_medication.py +92 -0
- rxfoundry/clients/swifty_api/models/patient_name.py +99 -0
- rxfoundry/clients/swifty_api/models/patient_name_data.py +108 -0
- rxfoundry/clients/swifty_api/models/patient_phone_number.py +89 -0
- rxfoundry/clients/swifty_api/models/patient_phone_number_data.py +98 -0
- rxfoundry/clients/swifty_api/models/patient_task.py +115 -0
- rxfoundry/clients/swifty_api/models/patient_task_status.py +105 -0
- rxfoundry/clients/swifty_api/models/patient_task_type.py +45 -0
- rxfoundry/clients/swifty_api/models/prescription.py +35 -30
- rxfoundry/clients/swifty_api/models/prescription_change_request.py +24 -36
- rxfoundry/clients/swifty_api/models/prescription_change_request_and_response.py +145 -0
- rxfoundry/clients/swifty_api/models/prescription_change_request_response.py +134 -0
- rxfoundry/clients/swifty_api/models/prescription_data.py +126 -0
- rxfoundry/clients/swifty_api/models/prescription_message.py +100 -0
- rxfoundry/clients/swifty_api/models/prescription_message_task.py +109 -0
- rxfoundry/clients/swifty_api/models/prescription_message_task_status.py +99 -0
- rxfoundry/clients/swifty_api/models/prescription_message_task_type.py +43 -0
- rxfoundry/clients/swifty_api/models/prescription_message_type.py +53 -0
- rxfoundry/clients/swifty_api/models/prescription_patch.py +6 -2
- rxfoundry/clients/swifty_api/models/prescription_status_type.py +40 -0
- rxfoundry/clients/swifty_api/models/prescription_task.py +14 -12
- rxfoundry/clients/swifty_api/models/prescription_task_status.py +6 -2
- rxfoundry/clients/swifty_api/models/prescription_task_type.py +42 -0
- rxfoundry/clients/swifty_api/models/prescription_transfer_request_and_response.py +145 -0
- rxfoundry/clients/swifty_api/models/prescription_transfer_request_response.py +128 -0
- rxfoundry/clients/swifty_api/models/status_type.py +92 -0
- rxfoundry/clients/swifty_api/models/workflow.py +108 -0
- rxfoundry/clients/swifty_api/models/workflow_sub_task.py +96 -0
- rxfoundry/clients/swifty_api/models/workflow_sub_task_sub_task.py +155 -0
- rxfoundry/clients/swifty_api/models/workflow_task.py +111 -0
- rxfoundry/clients/swifty_api/models/workflow_task_task.py +155 -0
- rxfoundry/clients/swifty_api/models/workflow_type.py +55 -0
- {rxfoundry_clients_swifty_api-0.0.680.dist-info → rxfoundry_clients_swifty_api-0.1.1005.dist-info}/METADATA +1 -1
- rxfoundry_clients_swifty_api-0.1.1005.dist-info/RECORD +109 -0
- rxfoundry_clients_swifty_api-0.0.680.dist-info/RECORD +0 -64
- {rxfoundry_clients_swifty_api-0.0.680.dist-info → rxfoundry_clients_swifty_api-0.1.1005.dist-info}/WHEEL +0 -0
- {rxfoundry_clients_swifty_api-0.0.680.dist-info → rxfoundry_clients_swifty_api-0.1.1005.dist-info}/top_level.txt +0 -0
|
@@ -17,10 +17,14 @@ 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,
|
|
20
|
+
from pydantic import Field, 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.insurance import Insurance
|
|
23
24
|
from rxfoundry.clients.swifty_api.models.patient import Patient
|
|
25
|
+
from rxfoundry.clients.swifty_api.models.patient_allergy import PatientAllergy
|
|
26
|
+
from rxfoundry.clients.swifty_api.models.patient_condition import PatientCondition
|
|
27
|
+
from rxfoundry.clients.swifty_api.models.patient_medication import PatientMedication
|
|
24
28
|
from rxfoundry.clients.swifty_api.models.pharmacy import Pharmacy
|
|
25
29
|
|
|
26
30
|
from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
|
|
@@ -45,6 +49,7 @@ class PatientApi:
|
|
|
45
49
|
def get_patient(
|
|
46
50
|
self,
|
|
47
51
|
patient_uuid: StrictStr,
|
|
52
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
|
|
48
53
|
_request_timeout: Union[
|
|
49
54
|
None,
|
|
50
55
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -63,6 +68,8 @@ class PatientApi:
|
|
|
63
68
|
|
|
64
69
|
:param patient_uuid: (required)
|
|
65
70
|
:type patient_uuid: str
|
|
71
|
+
:param expand: The list of contained objects to return as well. Defaults to none.
|
|
72
|
+
:type expand: List[str]
|
|
66
73
|
:param _request_timeout: timeout setting for this request. If one
|
|
67
74
|
number provided, it will be total request
|
|
68
75
|
timeout. It can also be a pair (tuple) of
|
|
@@ -87,6 +94,7 @@ class PatientApi:
|
|
|
87
94
|
|
|
88
95
|
_param = self._get_patient_serialize(
|
|
89
96
|
patient_uuid=patient_uuid,
|
|
97
|
+
expand=expand,
|
|
90
98
|
_request_auth=_request_auth,
|
|
91
99
|
_content_type=_content_type,
|
|
92
100
|
_headers=_headers,
|
|
@@ -112,6 +120,7 @@ class PatientApi:
|
|
|
112
120
|
def get_patient_with_http_info(
|
|
113
121
|
self,
|
|
114
122
|
patient_uuid: StrictStr,
|
|
123
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
|
|
115
124
|
_request_timeout: Union[
|
|
116
125
|
None,
|
|
117
126
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -130,6 +139,8 @@ class PatientApi:
|
|
|
130
139
|
|
|
131
140
|
:param patient_uuid: (required)
|
|
132
141
|
:type patient_uuid: str
|
|
142
|
+
:param expand: The list of contained objects to return as well. Defaults to none.
|
|
143
|
+
:type expand: List[str]
|
|
133
144
|
:param _request_timeout: timeout setting for this request. If one
|
|
134
145
|
number provided, it will be total request
|
|
135
146
|
timeout. It can also be a pair (tuple) of
|
|
@@ -154,6 +165,7 @@ class PatientApi:
|
|
|
154
165
|
|
|
155
166
|
_param = self._get_patient_serialize(
|
|
156
167
|
patient_uuid=patient_uuid,
|
|
168
|
+
expand=expand,
|
|
157
169
|
_request_auth=_request_auth,
|
|
158
170
|
_content_type=_content_type,
|
|
159
171
|
_headers=_headers,
|
|
@@ -179,6 +191,7 @@ class PatientApi:
|
|
|
179
191
|
def get_patient_without_preload_content(
|
|
180
192
|
self,
|
|
181
193
|
patient_uuid: StrictStr,
|
|
194
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
|
|
182
195
|
_request_timeout: Union[
|
|
183
196
|
None,
|
|
184
197
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -197,6 +210,8 @@ class PatientApi:
|
|
|
197
210
|
|
|
198
211
|
:param patient_uuid: (required)
|
|
199
212
|
:type patient_uuid: str
|
|
213
|
+
:param expand: The list of contained objects to return as well. Defaults to none.
|
|
214
|
+
:type expand: List[str]
|
|
200
215
|
:param _request_timeout: timeout setting for this request. If one
|
|
201
216
|
number provided, it will be total request
|
|
202
217
|
timeout. It can also be a pair (tuple) of
|
|
@@ -221,6 +236,7 @@ class PatientApi:
|
|
|
221
236
|
|
|
222
237
|
_param = self._get_patient_serialize(
|
|
223
238
|
patient_uuid=patient_uuid,
|
|
239
|
+
expand=expand,
|
|
224
240
|
_request_auth=_request_auth,
|
|
225
241
|
_content_type=_content_type,
|
|
226
242
|
_headers=_headers,
|
|
@@ -239,6 +255,1080 @@ class PatientApi:
|
|
|
239
255
|
|
|
240
256
|
|
|
241
257
|
def _get_patient_serialize(
|
|
258
|
+
self,
|
|
259
|
+
patient_uuid,
|
|
260
|
+
expand,
|
|
261
|
+
_request_auth,
|
|
262
|
+
_content_type,
|
|
263
|
+
_headers,
|
|
264
|
+
_host_index,
|
|
265
|
+
) -> RequestSerialized:
|
|
266
|
+
|
|
267
|
+
_host = None
|
|
268
|
+
|
|
269
|
+
_collection_formats: Dict[str, str] = {
|
|
270
|
+
'expand': 'csv',
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
_path_params: Dict[str, str] = {}
|
|
274
|
+
_query_params: List[Tuple[str, str]] = []
|
|
275
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
276
|
+
_form_params: List[Tuple[str, str]] = []
|
|
277
|
+
_files: Dict[
|
|
278
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
279
|
+
] = {}
|
|
280
|
+
_body_params: Optional[bytes] = None
|
|
281
|
+
|
|
282
|
+
# process the path parameters
|
|
283
|
+
if patient_uuid is not None:
|
|
284
|
+
_path_params['patient_uuid'] = patient_uuid
|
|
285
|
+
# process the query parameters
|
|
286
|
+
if expand is not None:
|
|
287
|
+
|
|
288
|
+
_query_params.append(('expand', expand))
|
|
289
|
+
|
|
290
|
+
# process the header parameters
|
|
291
|
+
# process the form parameters
|
|
292
|
+
# process the body parameter
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
# set the HTTP header `Accept`
|
|
296
|
+
if 'Accept' not in _header_params:
|
|
297
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
298
|
+
[
|
|
299
|
+
'application/json'
|
|
300
|
+
]
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
# authentication setting
|
|
305
|
+
_auth_settings: List[str] = [
|
|
306
|
+
'opaque_token'
|
|
307
|
+
]
|
|
308
|
+
|
|
309
|
+
return self.api_client.param_serialize(
|
|
310
|
+
method='GET',
|
|
311
|
+
resource_path='/swifty/1/patients/{patient_uuid}',
|
|
312
|
+
path_params=_path_params,
|
|
313
|
+
query_params=_query_params,
|
|
314
|
+
header_params=_header_params,
|
|
315
|
+
body=_body_params,
|
|
316
|
+
post_params=_form_params,
|
|
317
|
+
files=_files,
|
|
318
|
+
auth_settings=_auth_settings,
|
|
319
|
+
collection_formats=_collection_formats,
|
|
320
|
+
_host=_host,
|
|
321
|
+
_request_auth=_request_auth
|
|
322
|
+
)
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
@validate_call
|
|
328
|
+
def get_patient_allergies(
|
|
329
|
+
self,
|
|
330
|
+
patient_uuid: StrictStr,
|
|
331
|
+
_request_timeout: Union[
|
|
332
|
+
None,
|
|
333
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
334
|
+
Tuple[
|
|
335
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
336
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
337
|
+
]
|
|
338
|
+
] = None,
|
|
339
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
340
|
+
_content_type: Optional[StrictStr] = None,
|
|
341
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
342
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
343
|
+
) -> List[PatientAllergy]:
|
|
344
|
+
"""Get allergies for a patient
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
:param patient_uuid: (required)
|
|
348
|
+
:type patient_uuid: str
|
|
349
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
350
|
+
number provided, it will be total request
|
|
351
|
+
timeout. It can also be a pair (tuple) of
|
|
352
|
+
(connection, read) timeouts.
|
|
353
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
354
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
355
|
+
request; this effectively ignores the
|
|
356
|
+
authentication in the spec for a single request.
|
|
357
|
+
:type _request_auth: dict, optional
|
|
358
|
+
:param _content_type: force content-type for the request.
|
|
359
|
+
:type _content_type: str, Optional
|
|
360
|
+
:param _headers: set to override the headers for a single
|
|
361
|
+
request; this effectively ignores the headers
|
|
362
|
+
in the spec for a single request.
|
|
363
|
+
:type _headers: dict, optional
|
|
364
|
+
:param _host_index: set to override the host_index for a single
|
|
365
|
+
request; this effectively ignores the host_index
|
|
366
|
+
in the spec for a single request.
|
|
367
|
+
:type _host_index: int, optional
|
|
368
|
+
:return: Returns the result object.
|
|
369
|
+
""" # noqa: E501
|
|
370
|
+
|
|
371
|
+
_param = self._get_patient_allergies_serialize(
|
|
372
|
+
patient_uuid=patient_uuid,
|
|
373
|
+
_request_auth=_request_auth,
|
|
374
|
+
_content_type=_content_type,
|
|
375
|
+
_headers=_headers,
|
|
376
|
+
_host_index=_host_index
|
|
377
|
+
)
|
|
378
|
+
|
|
379
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
380
|
+
'200': "List[PatientAllergy]",
|
|
381
|
+
'400': None,
|
|
382
|
+
'401': None,
|
|
383
|
+
'404': None,
|
|
384
|
+
}
|
|
385
|
+
response_data = self.api_client.call_api(
|
|
386
|
+
*_param,
|
|
387
|
+
_request_timeout=_request_timeout
|
|
388
|
+
)
|
|
389
|
+
response_data.read()
|
|
390
|
+
return self.api_client.response_deserialize(
|
|
391
|
+
response_data=response_data,
|
|
392
|
+
response_types_map=_response_types_map,
|
|
393
|
+
).data
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
@validate_call
|
|
397
|
+
def get_patient_allergies_with_http_info(
|
|
398
|
+
self,
|
|
399
|
+
patient_uuid: StrictStr,
|
|
400
|
+
_request_timeout: Union[
|
|
401
|
+
None,
|
|
402
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
403
|
+
Tuple[
|
|
404
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
405
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
406
|
+
]
|
|
407
|
+
] = None,
|
|
408
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
409
|
+
_content_type: Optional[StrictStr] = None,
|
|
410
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
411
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
412
|
+
) -> ApiResponse[List[PatientAllergy]]:
|
|
413
|
+
"""Get allergies for a patient
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
:param patient_uuid: (required)
|
|
417
|
+
:type patient_uuid: str
|
|
418
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
419
|
+
number provided, it will be total request
|
|
420
|
+
timeout. It can also be a pair (tuple) of
|
|
421
|
+
(connection, read) timeouts.
|
|
422
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
423
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
424
|
+
request; this effectively ignores the
|
|
425
|
+
authentication in the spec for a single request.
|
|
426
|
+
:type _request_auth: dict, optional
|
|
427
|
+
:param _content_type: force content-type for the request.
|
|
428
|
+
:type _content_type: str, Optional
|
|
429
|
+
:param _headers: set to override the headers for a single
|
|
430
|
+
request; this effectively ignores the headers
|
|
431
|
+
in the spec for a single request.
|
|
432
|
+
:type _headers: dict, optional
|
|
433
|
+
:param _host_index: set to override the host_index for a single
|
|
434
|
+
request; this effectively ignores the host_index
|
|
435
|
+
in the spec for a single request.
|
|
436
|
+
:type _host_index: int, optional
|
|
437
|
+
:return: Returns the result object.
|
|
438
|
+
""" # noqa: E501
|
|
439
|
+
|
|
440
|
+
_param = self._get_patient_allergies_serialize(
|
|
441
|
+
patient_uuid=patient_uuid,
|
|
442
|
+
_request_auth=_request_auth,
|
|
443
|
+
_content_type=_content_type,
|
|
444
|
+
_headers=_headers,
|
|
445
|
+
_host_index=_host_index
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
449
|
+
'200': "List[PatientAllergy]",
|
|
450
|
+
'400': None,
|
|
451
|
+
'401': None,
|
|
452
|
+
'404': None,
|
|
453
|
+
}
|
|
454
|
+
response_data = self.api_client.call_api(
|
|
455
|
+
*_param,
|
|
456
|
+
_request_timeout=_request_timeout
|
|
457
|
+
)
|
|
458
|
+
response_data.read()
|
|
459
|
+
return self.api_client.response_deserialize(
|
|
460
|
+
response_data=response_data,
|
|
461
|
+
response_types_map=_response_types_map,
|
|
462
|
+
)
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
@validate_call
|
|
466
|
+
def get_patient_allergies_without_preload_content(
|
|
467
|
+
self,
|
|
468
|
+
patient_uuid: StrictStr,
|
|
469
|
+
_request_timeout: Union[
|
|
470
|
+
None,
|
|
471
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
472
|
+
Tuple[
|
|
473
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
474
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
475
|
+
]
|
|
476
|
+
] = None,
|
|
477
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
478
|
+
_content_type: Optional[StrictStr] = None,
|
|
479
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
480
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
481
|
+
) -> RESTResponseType:
|
|
482
|
+
"""Get allergies for a patient
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
:param patient_uuid: (required)
|
|
486
|
+
:type patient_uuid: 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_allergies_serialize(
|
|
510
|
+
patient_uuid=patient_uuid,
|
|
511
|
+
_request_auth=_request_auth,
|
|
512
|
+
_content_type=_content_type,
|
|
513
|
+
_headers=_headers,
|
|
514
|
+
_host_index=_host_index
|
|
515
|
+
)
|
|
516
|
+
|
|
517
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
518
|
+
'200': "List[PatientAllergy]",
|
|
519
|
+
'400': None,
|
|
520
|
+
'401': None,
|
|
521
|
+
'404': None,
|
|
522
|
+
}
|
|
523
|
+
response_data = self.api_client.call_api(
|
|
524
|
+
*_param,
|
|
525
|
+
_request_timeout=_request_timeout
|
|
526
|
+
)
|
|
527
|
+
return response_data.response
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
def _get_patient_allergies_serialize(
|
|
531
|
+
self,
|
|
532
|
+
patient_uuid,
|
|
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
|
+
}
|
|
543
|
+
|
|
544
|
+
_path_params: Dict[str, str] = {}
|
|
545
|
+
_query_params: List[Tuple[str, str]] = []
|
|
546
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
547
|
+
_form_params: List[Tuple[str, str]] = []
|
|
548
|
+
_files: Dict[
|
|
549
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
550
|
+
] = {}
|
|
551
|
+
_body_params: Optional[bytes] = None
|
|
552
|
+
|
|
553
|
+
# process the path parameters
|
|
554
|
+
if patient_uuid is not None:
|
|
555
|
+
_path_params['patient_uuid'] = patient_uuid
|
|
556
|
+
# process the query parameters
|
|
557
|
+
# process the header parameters
|
|
558
|
+
# process the form parameters
|
|
559
|
+
# process the body parameter
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
# set the HTTP header `Accept`
|
|
563
|
+
if 'Accept' not in _header_params:
|
|
564
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
565
|
+
[
|
|
566
|
+
'application/json'
|
|
567
|
+
]
|
|
568
|
+
)
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
# authentication setting
|
|
572
|
+
_auth_settings: List[str] = [
|
|
573
|
+
'opaque_token'
|
|
574
|
+
]
|
|
575
|
+
|
|
576
|
+
return self.api_client.param_serialize(
|
|
577
|
+
method='GET',
|
|
578
|
+
resource_path='/swifty/1/patients/{patient_uuid}/allergies',
|
|
579
|
+
path_params=_path_params,
|
|
580
|
+
query_params=_query_params,
|
|
581
|
+
header_params=_header_params,
|
|
582
|
+
body=_body_params,
|
|
583
|
+
post_params=_form_params,
|
|
584
|
+
files=_files,
|
|
585
|
+
auth_settings=_auth_settings,
|
|
586
|
+
collection_formats=_collection_formats,
|
|
587
|
+
_host=_host,
|
|
588
|
+
_request_auth=_request_auth
|
|
589
|
+
)
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
@validate_call
|
|
595
|
+
def get_patient_conditions(
|
|
596
|
+
self,
|
|
597
|
+
patient_uuid: StrictStr,
|
|
598
|
+
_request_timeout: Union[
|
|
599
|
+
None,
|
|
600
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
601
|
+
Tuple[
|
|
602
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
603
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
604
|
+
]
|
|
605
|
+
] = None,
|
|
606
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
607
|
+
_content_type: Optional[StrictStr] = None,
|
|
608
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
609
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
610
|
+
) -> List[PatientCondition]:
|
|
611
|
+
"""Get conditions for a patient
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
:param patient_uuid: (required)
|
|
615
|
+
:type patient_uuid: str
|
|
616
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
617
|
+
number provided, it will be total request
|
|
618
|
+
timeout. It can also be a pair (tuple) of
|
|
619
|
+
(connection, read) timeouts.
|
|
620
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
621
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
622
|
+
request; this effectively ignores the
|
|
623
|
+
authentication in the spec for a single request.
|
|
624
|
+
:type _request_auth: dict, optional
|
|
625
|
+
:param _content_type: force content-type for the request.
|
|
626
|
+
:type _content_type: str, Optional
|
|
627
|
+
:param _headers: set to override the headers for a single
|
|
628
|
+
request; this effectively ignores the headers
|
|
629
|
+
in the spec for a single request.
|
|
630
|
+
:type _headers: dict, optional
|
|
631
|
+
:param _host_index: set to override the host_index for a single
|
|
632
|
+
request; this effectively ignores the host_index
|
|
633
|
+
in the spec for a single request.
|
|
634
|
+
:type _host_index: int, optional
|
|
635
|
+
:return: Returns the result object.
|
|
636
|
+
""" # noqa: E501
|
|
637
|
+
|
|
638
|
+
_param = self._get_patient_conditions_serialize(
|
|
639
|
+
patient_uuid=patient_uuid,
|
|
640
|
+
_request_auth=_request_auth,
|
|
641
|
+
_content_type=_content_type,
|
|
642
|
+
_headers=_headers,
|
|
643
|
+
_host_index=_host_index
|
|
644
|
+
)
|
|
645
|
+
|
|
646
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
647
|
+
'200': "List[PatientCondition]",
|
|
648
|
+
'400': None,
|
|
649
|
+
'401': None,
|
|
650
|
+
'404': None,
|
|
651
|
+
}
|
|
652
|
+
response_data = self.api_client.call_api(
|
|
653
|
+
*_param,
|
|
654
|
+
_request_timeout=_request_timeout
|
|
655
|
+
)
|
|
656
|
+
response_data.read()
|
|
657
|
+
return self.api_client.response_deserialize(
|
|
658
|
+
response_data=response_data,
|
|
659
|
+
response_types_map=_response_types_map,
|
|
660
|
+
).data
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
@validate_call
|
|
664
|
+
def get_patient_conditions_with_http_info(
|
|
665
|
+
self,
|
|
666
|
+
patient_uuid: StrictStr,
|
|
667
|
+
_request_timeout: Union[
|
|
668
|
+
None,
|
|
669
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
670
|
+
Tuple[
|
|
671
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
672
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
673
|
+
]
|
|
674
|
+
] = None,
|
|
675
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
676
|
+
_content_type: Optional[StrictStr] = None,
|
|
677
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
678
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
679
|
+
) -> ApiResponse[List[PatientCondition]]:
|
|
680
|
+
"""Get conditions for a patient
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
:param patient_uuid: (required)
|
|
684
|
+
:type patient_uuid: str
|
|
685
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
686
|
+
number provided, it will be total request
|
|
687
|
+
timeout. It can also be a pair (tuple) of
|
|
688
|
+
(connection, read) timeouts.
|
|
689
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
690
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
691
|
+
request; this effectively ignores the
|
|
692
|
+
authentication in the spec for a single request.
|
|
693
|
+
:type _request_auth: dict, optional
|
|
694
|
+
:param _content_type: force content-type for the request.
|
|
695
|
+
:type _content_type: str, Optional
|
|
696
|
+
:param _headers: set to override the headers for a single
|
|
697
|
+
request; this effectively ignores the headers
|
|
698
|
+
in the spec for a single request.
|
|
699
|
+
:type _headers: dict, optional
|
|
700
|
+
:param _host_index: set to override the host_index for a single
|
|
701
|
+
request; this effectively ignores the host_index
|
|
702
|
+
in the spec for a single request.
|
|
703
|
+
:type _host_index: int, optional
|
|
704
|
+
:return: Returns the result object.
|
|
705
|
+
""" # noqa: E501
|
|
706
|
+
|
|
707
|
+
_param = self._get_patient_conditions_serialize(
|
|
708
|
+
patient_uuid=patient_uuid,
|
|
709
|
+
_request_auth=_request_auth,
|
|
710
|
+
_content_type=_content_type,
|
|
711
|
+
_headers=_headers,
|
|
712
|
+
_host_index=_host_index
|
|
713
|
+
)
|
|
714
|
+
|
|
715
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
716
|
+
'200': "List[PatientCondition]",
|
|
717
|
+
'400': None,
|
|
718
|
+
'401': None,
|
|
719
|
+
'404': None,
|
|
720
|
+
}
|
|
721
|
+
response_data = self.api_client.call_api(
|
|
722
|
+
*_param,
|
|
723
|
+
_request_timeout=_request_timeout
|
|
724
|
+
)
|
|
725
|
+
response_data.read()
|
|
726
|
+
return self.api_client.response_deserialize(
|
|
727
|
+
response_data=response_data,
|
|
728
|
+
response_types_map=_response_types_map,
|
|
729
|
+
)
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
@validate_call
|
|
733
|
+
def get_patient_conditions_without_preload_content(
|
|
734
|
+
self,
|
|
735
|
+
patient_uuid: StrictStr,
|
|
736
|
+
_request_timeout: Union[
|
|
737
|
+
None,
|
|
738
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
739
|
+
Tuple[
|
|
740
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
741
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
742
|
+
]
|
|
743
|
+
] = None,
|
|
744
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
745
|
+
_content_type: Optional[StrictStr] = None,
|
|
746
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
747
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
748
|
+
) -> RESTResponseType:
|
|
749
|
+
"""Get conditions for a patient
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
:param patient_uuid: (required)
|
|
753
|
+
:type patient_uuid: str
|
|
754
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
755
|
+
number provided, it will be total request
|
|
756
|
+
timeout. It can also be a pair (tuple) of
|
|
757
|
+
(connection, read) timeouts.
|
|
758
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
759
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
760
|
+
request; this effectively ignores the
|
|
761
|
+
authentication in the spec for a single request.
|
|
762
|
+
:type _request_auth: dict, optional
|
|
763
|
+
:param _content_type: force content-type for the request.
|
|
764
|
+
:type _content_type: str, Optional
|
|
765
|
+
:param _headers: set to override the headers for a single
|
|
766
|
+
request; this effectively ignores the headers
|
|
767
|
+
in the spec for a single request.
|
|
768
|
+
:type _headers: dict, optional
|
|
769
|
+
:param _host_index: set to override the host_index for a single
|
|
770
|
+
request; this effectively ignores the host_index
|
|
771
|
+
in the spec for a single request.
|
|
772
|
+
:type _host_index: int, optional
|
|
773
|
+
:return: Returns the result object.
|
|
774
|
+
""" # noqa: E501
|
|
775
|
+
|
|
776
|
+
_param = self._get_patient_conditions_serialize(
|
|
777
|
+
patient_uuid=patient_uuid,
|
|
778
|
+
_request_auth=_request_auth,
|
|
779
|
+
_content_type=_content_type,
|
|
780
|
+
_headers=_headers,
|
|
781
|
+
_host_index=_host_index
|
|
782
|
+
)
|
|
783
|
+
|
|
784
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
785
|
+
'200': "List[PatientCondition]",
|
|
786
|
+
'400': None,
|
|
787
|
+
'401': None,
|
|
788
|
+
'404': None,
|
|
789
|
+
}
|
|
790
|
+
response_data = self.api_client.call_api(
|
|
791
|
+
*_param,
|
|
792
|
+
_request_timeout=_request_timeout
|
|
793
|
+
)
|
|
794
|
+
return response_data.response
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
def _get_patient_conditions_serialize(
|
|
798
|
+
self,
|
|
799
|
+
patient_uuid,
|
|
800
|
+
_request_auth,
|
|
801
|
+
_content_type,
|
|
802
|
+
_headers,
|
|
803
|
+
_host_index,
|
|
804
|
+
) -> RequestSerialized:
|
|
805
|
+
|
|
806
|
+
_host = None
|
|
807
|
+
|
|
808
|
+
_collection_formats: Dict[str, str] = {
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
_path_params: Dict[str, str] = {}
|
|
812
|
+
_query_params: List[Tuple[str, str]] = []
|
|
813
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
814
|
+
_form_params: List[Tuple[str, str]] = []
|
|
815
|
+
_files: Dict[
|
|
816
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
817
|
+
] = {}
|
|
818
|
+
_body_params: Optional[bytes] = None
|
|
819
|
+
|
|
820
|
+
# process the path parameters
|
|
821
|
+
if patient_uuid is not None:
|
|
822
|
+
_path_params['patient_uuid'] = patient_uuid
|
|
823
|
+
# process the query parameters
|
|
824
|
+
# process the header parameters
|
|
825
|
+
# process the form parameters
|
|
826
|
+
# process the body parameter
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
# set the HTTP header `Accept`
|
|
830
|
+
if 'Accept' not in _header_params:
|
|
831
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
832
|
+
[
|
|
833
|
+
'application/json'
|
|
834
|
+
]
|
|
835
|
+
)
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
# authentication setting
|
|
839
|
+
_auth_settings: List[str] = [
|
|
840
|
+
'opaque_token'
|
|
841
|
+
]
|
|
842
|
+
|
|
843
|
+
return self.api_client.param_serialize(
|
|
844
|
+
method='GET',
|
|
845
|
+
resource_path='/swifty/1/patients/{patient_uuid}/conditions',
|
|
846
|
+
path_params=_path_params,
|
|
847
|
+
query_params=_query_params,
|
|
848
|
+
header_params=_header_params,
|
|
849
|
+
body=_body_params,
|
|
850
|
+
post_params=_form_params,
|
|
851
|
+
files=_files,
|
|
852
|
+
auth_settings=_auth_settings,
|
|
853
|
+
collection_formats=_collection_formats,
|
|
854
|
+
_host=_host,
|
|
855
|
+
_request_auth=_request_auth
|
|
856
|
+
)
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
@validate_call
|
|
862
|
+
def get_patient_insurances(
|
|
863
|
+
self,
|
|
864
|
+
patient_uuid: StrictStr,
|
|
865
|
+
_request_timeout: Union[
|
|
866
|
+
None,
|
|
867
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
868
|
+
Tuple[
|
|
869
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
870
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
871
|
+
]
|
|
872
|
+
] = None,
|
|
873
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
874
|
+
_content_type: Optional[StrictStr] = None,
|
|
875
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
876
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
877
|
+
) -> List[Insurance]:
|
|
878
|
+
"""Get insurances for a patient
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
:param patient_uuid: (required)
|
|
882
|
+
:type patient_uuid: str
|
|
883
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
884
|
+
number provided, it will be total request
|
|
885
|
+
timeout. It can also be a pair (tuple) of
|
|
886
|
+
(connection, read) timeouts.
|
|
887
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
888
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
889
|
+
request; this effectively ignores the
|
|
890
|
+
authentication in the spec for a single request.
|
|
891
|
+
:type _request_auth: dict, optional
|
|
892
|
+
:param _content_type: force content-type for the request.
|
|
893
|
+
:type _content_type: str, Optional
|
|
894
|
+
:param _headers: set to override the headers for a single
|
|
895
|
+
request; this effectively ignores the headers
|
|
896
|
+
in the spec for a single request.
|
|
897
|
+
:type _headers: dict, optional
|
|
898
|
+
:param _host_index: set to override the host_index for a single
|
|
899
|
+
request; this effectively ignores the host_index
|
|
900
|
+
in the spec for a single request.
|
|
901
|
+
:type _host_index: int, optional
|
|
902
|
+
:return: Returns the result object.
|
|
903
|
+
""" # noqa: E501
|
|
904
|
+
|
|
905
|
+
_param = self._get_patient_insurances_serialize(
|
|
906
|
+
patient_uuid=patient_uuid,
|
|
907
|
+
_request_auth=_request_auth,
|
|
908
|
+
_content_type=_content_type,
|
|
909
|
+
_headers=_headers,
|
|
910
|
+
_host_index=_host_index
|
|
911
|
+
)
|
|
912
|
+
|
|
913
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
914
|
+
'200': "List[Insurance]",
|
|
915
|
+
'400': None,
|
|
916
|
+
'401': None,
|
|
917
|
+
'404': None,
|
|
918
|
+
}
|
|
919
|
+
response_data = self.api_client.call_api(
|
|
920
|
+
*_param,
|
|
921
|
+
_request_timeout=_request_timeout
|
|
922
|
+
)
|
|
923
|
+
response_data.read()
|
|
924
|
+
return self.api_client.response_deserialize(
|
|
925
|
+
response_data=response_data,
|
|
926
|
+
response_types_map=_response_types_map,
|
|
927
|
+
).data
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
@validate_call
|
|
931
|
+
def get_patient_insurances_with_http_info(
|
|
932
|
+
self,
|
|
933
|
+
patient_uuid: StrictStr,
|
|
934
|
+
_request_timeout: Union[
|
|
935
|
+
None,
|
|
936
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
937
|
+
Tuple[
|
|
938
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
939
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
940
|
+
]
|
|
941
|
+
] = None,
|
|
942
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
943
|
+
_content_type: Optional[StrictStr] = None,
|
|
944
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
945
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
946
|
+
) -> ApiResponse[List[Insurance]]:
|
|
947
|
+
"""Get insurances for a patient
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
:param patient_uuid: (required)
|
|
951
|
+
:type patient_uuid: str
|
|
952
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
953
|
+
number provided, it will be total request
|
|
954
|
+
timeout. It can also be a pair (tuple) of
|
|
955
|
+
(connection, read) timeouts.
|
|
956
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
957
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
958
|
+
request; this effectively ignores the
|
|
959
|
+
authentication in the spec for a single request.
|
|
960
|
+
:type _request_auth: dict, optional
|
|
961
|
+
:param _content_type: force content-type for the request.
|
|
962
|
+
:type _content_type: str, Optional
|
|
963
|
+
:param _headers: set to override the headers for a single
|
|
964
|
+
request; this effectively ignores the headers
|
|
965
|
+
in the spec for a single request.
|
|
966
|
+
:type _headers: dict, optional
|
|
967
|
+
:param _host_index: set to override the host_index for a single
|
|
968
|
+
request; this effectively ignores the host_index
|
|
969
|
+
in the spec for a single request.
|
|
970
|
+
:type _host_index: int, optional
|
|
971
|
+
:return: Returns the result object.
|
|
972
|
+
""" # noqa: E501
|
|
973
|
+
|
|
974
|
+
_param = self._get_patient_insurances_serialize(
|
|
975
|
+
patient_uuid=patient_uuid,
|
|
976
|
+
_request_auth=_request_auth,
|
|
977
|
+
_content_type=_content_type,
|
|
978
|
+
_headers=_headers,
|
|
979
|
+
_host_index=_host_index
|
|
980
|
+
)
|
|
981
|
+
|
|
982
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
983
|
+
'200': "List[Insurance]",
|
|
984
|
+
'400': None,
|
|
985
|
+
'401': None,
|
|
986
|
+
'404': None,
|
|
987
|
+
}
|
|
988
|
+
response_data = self.api_client.call_api(
|
|
989
|
+
*_param,
|
|
990
|
+
_request_timeout=_request_timeout
|
|
991
|
+
)
|
|
992
|
+
response_data.read()
|
|
993
|
+
return self.api_client.response_deserialize(
|
|
994
|
+
response_data=response_data,
|
|
995
|
+
response_types_map=_response_types_map,
|
|
996
|
+
)
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
@validate_call
|
|
1000
|
+
def get_patient_insurances_without_preload_content(
|
|
1001
|
+
self,
|
|
1002
|
+
patient_uuid: StrictStr,
|
|
1003
|
+
_request_timeout: Union[
|
|
1004
|
+
None,
|
|
1005
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1006
|
+
Tuple[
|
|
1007
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1008
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1009
|
+
]
|
|
1010
|
+
] = None,
|
|
1011
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1012
|
+
_content_type: Optional[StrictStr] = None,
|
|
1013
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1014
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1015
|
+
) -> RESTResponseType:
|
|
1016
|
+
"""Get insurances for a patient
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
:param patient_uuid: (required)
|
|
1020
|
+
:type patient_uuid: str
|
|
1021
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1022
|
+
number provided, it will be total request
|
|
1023
|
+
timeout. It can also be a pair (tuple) of
|
|
1024
|
+
(connection, read) timeouts.
|
|
1025
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1026
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1027
|
+
request; this effectively ignores the
|
|
1028
|
+
authentication in the spec for a single request.
|
|
1029
|
+
:type _request_auth: dict, optional
|
|
1030
|
+
:param _content_type: force content-type for the request.
|
|
1031
|
+
:type _content_type: str, Optional
|
|
1032
|
+
:param _headers: set to override the headers for a single
|
|
1033
|
+
request; this effectively ignores the headers
|
|
1034
|
+
in the spec for a single request.
|
|
1035
|
+
:type _headers: dict, optional
|
|
1036
|
+
:param _host_index: set to override the host_index for a single
|
|
1037
|
+
request; this effectively ignores the host_index
|
|
1038
|
+
in the spec for a single request.
|
|
1039
|
+
:type _host_index: int, optional
|
|
1040
|
+
:return: Returns the result object.
|
|
1041
|
+
""" # noqa: E501
|
|
1042
|
+
|
|
1043
|
+
_param = self._get_patient_insurances_serialize(
|
|
1044
|
+
patient_uuid=patient_uuid,
|
|
1045
|
+
_request_auth=_request_auth,
|
|
1046
|
+
_content_type=_content_type,
|
|
1047
|
+
_headers=_headers,
|
|
1048
|
+
_host_index=_host_index
|
|
1049
|
+
)
|
|
1050
|
+
|
|
1051
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1052
|
+
'200': "List[Insurance]",
|
|
1053
|
+
'400': None,
|
|
1054
|
+
'401': None,
|
|
1055
|
+
'404': None,
|
|
1056
|
+
}
|
|
1057
|
+
response_data = self.api_client.call_api(
|
|
1058
|
+
*_param,
|
|
1059
|
+
_request_timeout=_request_timeout
|
|
1060
|
+
)
|
|
1061
|
+
return response_data.response
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
def _get_patient_insurances_serialize(
|
|
1065
|
+
self,
|
|
1066
|
+
patient_uuid,
|
|
1067
|
+
_request_auth,
|
|
1068
|
+
_content_type,
|
|
1069
|
+
_headers,
|
|
1070
|
+
_host_index,
|
|
1071
|
+
) -> RequestSerialized:
|
|
1072
|
+
|
|
1073
|
+
_host = None
|
|
1074
|
+
|
|
1075
|
+
_collection_formats: Dict[str, str] = {
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
_path_params: Dict[str, str] = {}
|
|
1079
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1080
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1081
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1082
|
+
_files: Dict[
|
|
1083
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1084
|
+
] = {}
|
|
1085
|
+
_body_params: Optional[bytes] = None
|
|
1086
|
+
|
|
1087
|
+
# process the path parameters
|
|
1088
|
+
if patient_uuid is not None:
|
|
1089
|
+
_path_params['patient_uuid'] = patient_uuid
|
|
1090
|
+
# process the query parameters
|
|
1091
|
+
# process the header parameters
|
|
1092
|
+
# process the form parameters
|
|
1093
|
+
# process the body parameter
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
# set the HTTP header `Accept`
|
|
1097
|
+
if 'Accept' not in _header_params:
|
|
1098
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1099
|
+
[
|
|
1100
|
+
'application/json'
|
|
1101
|
+
]
|
|
1102
|
+
)
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
# authentication setting
|
|
1106
|
+
_auth_settings: List[str] = [
|
|
1107
|
+
'opaque_token'
|
|
1108
|
+
]
|
|
1109
|
+
|
|
1110
|
+
return self.api_client.param_serialize(
|
|
1111
|
+
method='GET',
|
|
1112
|
+
resource_path='/swifty/1/patients/{patient_uuid}/insurances',
|
|
1113
|
+
path_params=_path_params,
|
|
1114
|
+
query_params=_query_params,
|
|
1115
|
+
header_params=_header_params,
|
|
1116
|
+
body=_body_params,
|
|
1117
|
+
post_params=_form_params,
|
|
1118
|
+
files=_files,
|
|
1119
|
+
auth_settings=_auth_settings,
|
|
1120
|
+
collection_formats=_collection_formats,
|
|
1121
|
+
_host=_host,
|
|
1122
|
+
_request_auth=_request_auth
|
|
1123
|
+
)
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
@validate_call
|
|
1129
|
+
def get_patient_medications(
|
|
1130
|
+
self,
|
|
1131
|
+
patient_uuid: StrictStr,
|
|
1132
|
+
_request_timeout: Union[
|
|
1133
|
+
None,
|
|
1134
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1135
|
+
Tuple[
|
|
1136
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1137
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1138
|
+
]
|
|
1139
|
+
] = None,
|
|
1140
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1141
|
+
_content_type: Optional[StrictStr] = None,
|
|
1142
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1143
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1144
|
+
) -> List[PatientMedication]:
|
|
1145
|
+
"""Get medications for a patient
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
:param patient_uuid: (required)
|
|
1149
|
+
:type patient_uuid: str
|
|
1150
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1151
|
+
number provided, it will be total request
|
|
1152
|
+
timeout. It can also be a pair (tuple) of
|
|
1153
|
+
(connection, read) timeouts.
|
|
1154
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1155
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1156
|
+
request; this effectively ignores the
|
|
1157
|
+
authentication in the spec for a single request.
|
|
1158
|
+
:type _request_auth: dict, optional
|
|
1159
|
+
:param _content_type: force content-type for the request.
|
|
1160
|
+
:type _content_type: str, Optional
|
|
1161
|
+
:param _headers: set to override the headers for a single
|
|
1162
|
+
request; this effectively ignores the headers
|
|
1163
|
+
in the spec for a single request.
|
|
1164
|
+
:type _headers: dict, optional
|
|
1165
|
+
:param _host_index: set to override the host_index for a single
|
|
1166
|
+
request; this effectively ignores the host_index
|
|
1167
|
+
in the spec for a single request.
|
|
1168
|
+
:type _host_index: int, optional
|
|
1169
|
+
:return: Returns the result object.
|
|
1170
|
+
""" # noqa: E501
|
|
1171
|
+
|
|
1172
|
+
_param = self._get_patient_medications_serialize(
|
|
1173
|
+
patient_uuid=patient_uuid,
|
|
1174
|
+
_request_auth=_request_auth,
|
|
1175
|
+
_content_type=_content_type,
|
|
1176
|
+
_headers=_headers,
|
|
1177
|
+
_host_index=_host_index
|
|
1178
|
+
)
|
|
1179
|
+
|
|
1180
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1181
|
+
'200': "List[PatientMedication]",
|
|
1182
|
+
'400': None,
|
|
1183
|
+
'401': None,
|
|
1184
|
+
'404': None,
|
|
1185
|
+
}
|
|
1186
|
+
response_data = self.api_client.call_api(
|
|
1187
|
+
*_param,
|
|
1188
|
+
_request_timeout=_request_timeout
|
|
1189
|
+
)
|
|
1190
|
+
response_data.read()
|
|
1191
|
+
return self.api_client.response_deserialize(
|
|
1192
|
+
response_data=response_data,
|
|
1193
|
+
response_types_map=_response_types_map,
|
|
1194
|
+
).data
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
@validate_call
|
|
1198
|
+
def get_patient_medications_with_http_info(
|
|
1199
|
+
self,
|
|
1200
|
+
patient_uuid: StrictStr,
|
|
1201
|
+
_request_timeout: Union[
|
|
1202
|
+
None,
|
|
1203
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1204
|
+
Tuple[
|
|
1205
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1206
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1207
|
+
]
|
|
1208
|
+
] = None,
|
|
1209
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1210
|
+
_content_type: Optional[StrictStr] = None,
|
|
1211
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1212
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1213
|
+
) -> ApiResponse[List[PatientMedication]]:
|
|
1214
|
+
"""Get medications for a patient
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
:param patient_uuid: (required)
|
|
1218
|
+
:type patient_uuid: str
|
|
1219
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1220
|
+
number provided, it will be total request
|
|
1221
|
+
timeout. It can also be a pair (tuple) of
|
|
1222
|
+
(connection, read) timeouts.
|
|
1223
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1224
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1225
|
+
request; this effectively ignores the
|
|
1226
|
+
authentication in the spec for a single request.
|
|
1227
|
+
:type _request_auth: dict, optional
|
|
1228
|
+
:param _content_type: force content-type for the request.
|
|
1229
|
+
:type _content_type: str, Optional
|
|
1230
|
+
:param _headers: set to override the headers for a single
|
|
1231
|
+
request; this effectively ignores the headers
|
|
1232
|
+
in the spec for a single request.
|
|
1233
|
+
:type _headers: dict, optional
|
|
1234
|
+
:param _host_index: set to override the host_index for a single
|
|
1235
|
+
request; this effectively ignores the host_index
|
|
1236
|
+
in the spec for a single request.
|
|
1237
|
+
:type _host_index: int, optional
|
|
1238
|
+
:return: Returns the result object.
|
|
1239
|
+
""" # noqa: E501
|
|
1240
|
+
|
|
1241
|
+
_param = self._get_patient_medications_serialize(
|
|
1242
|
+
patient_uuid=patient_uuid,
|
|
1243
|
+
_request_auth=_request_auth,
|
|
1244
|
+
_content_type=_content_type,
|
|
1245
|
+
_headers=_headers,
|
|
1246
|
+
_host_index=_host_index
|
|
1247
|
+
)
|
|
1248
|
+
|
|
1249
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1250
|
+
'200': "List[PatientMedication]",
|
|
1251
|
+
'400': None,
|
|
1252
|
+
'401': None,
|
|
1253
|
+
'404': None,
|
|
1254
|
+
}
|
|
1255
|
+
response_data = self.api_client.call_api(
|
|
1256
|
+
*_param,
|
|
1257
|
+
_request_timeout=_request_timeout
|
|
1258
|
+
)
|
|
1259
|
+
response_data.read()
|
|
1260
|
+
return self.api_client.response_deserialize(
|
|
1261
|
+
response_data=response_data,
|
|
1262
|
+
response_types_map=_response_types_map,
|
|
1263
|
+
)
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
@validate_call
|
|
1267
|
+
def get_patient_medications_without_preload_content(
|
|
1268
|
+
self,
|
|
1269
|
+
patient_uuid: StrictStr,
|
|
1270
|
+
_request_timeout: Union[
|
|
1271
|
+
None,
|
|
1272
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1273
|
+
Tuple[
|
|
1274
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1275
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1276
|
+
]
|
|
1277
|
+
] = None,
|
|
1278
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1279
|
+
_content_type: Optional[StrictStr] = None,
|
|
1280
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1281
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1282
|
+
) -> RESTResponseType:
|
|
1283
|
+
"""Get medications for a patient
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
:param patient_uuid: (required)
|
|
1287
|
+
:type patient_uuid: str
|
|
1288
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1289
|
+
number provided, it will be total request
|
|
1290
|
+
timeout. It can also be a pair (tuple) of
|
|
1291
|
+
(connection, read) timeouts.
|
|
1292
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1293
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1294
|
+
request; this effectively ignores the
|
|
1295
|
+
authentication in the spec for a single request.
|
|
1296
|
+
:type _request_auth: dict, optional
|
|
1297
|
+
:param _content_type: force content-type for the request.
|
|
1298
|
+
:type _content_type: str, Optional
|
|
1299
|
+
:param _headers: set to override the headers for a single
|
|
1300
|
+
request; this effectively ignores the headers
|
|
1301
|
+
in the spec for a single request.
|
|
1302
|
+
:type _headers: dict, optional
|
|
1303
|
+
:param _host_index: set to override the host_index for a single
|
|
1304
|
+
request; this effectively ignores the host_index
|
|
1305
|
+
in the spec for a single request.
|
|
1306
|
+
:type _host_index: int, optional
|
|
1307
|
+
:return: Returns the result object.
|
|
1308
|
+
""" # noqa: E501
|
|
1309
|
+
|
|
1310
|
+
_param = self._get_patient_medications_serialize(
|
|
1311
|
+
patient_uuid=patient_uuid,
|
|
1312
|
+
_request_auth=_request_auth,
|
|
1313
|
+
_content_type=_content_type,
|
|
1314
|
+
_headers=_headers,
|
|
1315
|
+
_host_index=_host_index
|
|
1316
|
+
)
|
|
1317
|
+
|
|
1318
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1319
|
+
'200': "List[PatientMedication]",
|
|
1320
|
+
'400': None,
|
|
1321
|
+
'401': None,
|
|
1322
|
+
'404': None,
|
|
1323
|
+
}
|
|
1324
|
+
response_data = self.api_client.call_api(
|
|
1325
|
+
*_param,
|
|
1326
|
+
_request_timeout=_request_timeout
|
|
1327
|
+
)
|
|
1328
|
+
return response_data.response
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
def _get_patient_medications_serialize(
|
|
242
1332
|
self,
|
|
243
1333
|
patient_uuid,
|
|
244
1334
|
_request_auth,
|
|
@@ -286,7 +1376,7 @@ class PatientApi:
|
|
|
286
1376
|
|
|
287
1377
|
return self.api_client.param_serialize(
|
|
288
1378
|
method='GET',
|
|
289
|
-
resource_path='/swifty/1/patients/{patient_uuid}',
|
|
1379
|
+
resource_path='/swifty/1/patients/{patient_uuid}/medications',
|
|
290
1380
|
path_params=_path_params,
|
|
291
1381
|
query_params=_query_params,
|
|
292
1382
|
header_params=_header_params,
|
|
@@ -635,12 +1725,12 @@ class PatientApi:
|
|
|
635
1725
|
@validate_call
|
|
636
1726
|
def get_patients(
|
|
637
1727
|
self,
|
|
638
|
-
q: Annotated[Optional[StrictStr], Field(description="Filter patients by query. This takes precedence if set over remaining filters.")] = None,
|
|
1728
|
+
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
1729
|
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
1730
|
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
|
-
|
|
1731
|
+
page: Annotated[Optional[StrictInt], Field(description="Page number to return. Defaults to 1.")] = None,
|
|
1732
|
+
results_per_page: Annotated[Optional[StrictInt], Field(description="Number of results to return per page. Defaults to 10.")] = None,
|
|
1733
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
|
|
644
1734
|
_request_timeout: Union[
|
|
645
1735
|
None,
|
|
646
1736
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -657,18 +1747,18 @@ class PatientApi:
|
|
|
657
1747
|
"""Get all patients
|
|
658
1748
|
|
|
659
1749
|
|
|
660
|
-
:param q: Filter patients by query. This takes precedence if set over remaining filters.
|
|
1750
|
+
: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
1751
|
:type q: str
|
|
662
1752
|
: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
1753
|
:type external_id: str
|
|
664
1754
|
:param uuid_list: A list of uuid strings to filter by. Only used if q and external_id are not set.
|
|
665
1755
|
:type uuid_list: List[str]
|
|
666
|
-
:param page:
|
|
1756
|
+
:param page: Page number to return. Defaults to 1.
|
|
667
1757
|
:type page: int
|
|
668
|
-
:param results_per_page:
|
|
1758
|
+
:param results_per_page: Number of results to return per page. Defaults to 10.
|
|
669
1759
|
:type results_per_page: int
|
|
670
|
-
:param
|
|
671
|
-
:type
|
|
1760
|
+
:param expand: The list of contained objects to return as well. Defaults to none.
|
|
1761
|
+
:type expand: List[str]
|
|
672
1762
|
:param _request_timeout: timeout setting for this request. If one
|
|
673
1763
|
number provided, it will be total request
|
|
674
1764
|
timeout. It can also be a pair (tuple) of
|
|
@@ -697,7 +1787,7 @@ class PatientApi:
|
|
|
697
1787
|
uuid_list=uuid_list,
|
|
698
1788
|
page=page,
|
|
699
1789
|
results_per_page=results_per_page,
|
|
700
|
-
|
|
1790
|
+
expand=expand,
|
|
701
1791
|
_request_auth=_request_auth,
|
|
702
1792
|
_content_type=_content_type,
|
|
703
1793
|
_headers=_headers,
|
|
@@ -722,12 +1812,12 @@ class PatientApi:
|
|
|
722
1812
|
@validate_call
|
|
723
1813
|
def get_patients_with_http_info(
|
|
724
1814
|
self,
|
|
725
|
-
q: Annotated[Optional[StrictStr], Field(description="Filter patients by query. This takes precedence if set over remaining filters.")] = None,
|
|
1815
|
+
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
1816
|
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
1817
|
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
|
-
|
|
1818
|
+
page: Annotated[Optional[StrictInt], Field(description="Page number to return. Defaults to 1.")] = None,
|
|
1819
|
+
results_per_page: Annotated[Optional[StrictInt], Field(description="Number of results to return per page. Defaults to 10.")] = None,
|
|
1820
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
|
|
731
1821
|
_request_timeout: Union[
|
|
732
1822
|
None,
|
|
733
1823
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -744,18 +1834,18 @@ class PatientApi:
|
|
|
744
1834
|
"""Get all patients
|
|
745
1835
|
|
|
746
1836
|
|
|
747
|
-
:param q: Filter patients by query. This takes precedence if set over remaining filters.
|
|
1837
|
+
: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
1838
|
:type q: str
|
|
749
1839
|
: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
1840
|
:type external_id: str
|
|
751
1841
|
:param uuid_list: A list of uuid strings to filter by. Only used if q and external_id are not set.
|
|
752
1842
|
:type uuid_list: List[str]
|
|
753
|
-
:param page:
|
|
1843
|
+
:param page: Page number to return. Defaults to 1.
|
|
754
1844
|
:type page: int
|
|
755
|
-
:param results_per_page:
|
|
1845
|
+
:param results_per_page: Number of results to return per page. Defaults to 10.
|
|
756
1846
|
:type results_per_page: int
|
|
757
|
-
:param
|
|
758
|
-
:type
|
|
1847
|
+
:param expand: The list of contained objects to return as well. Defaults to none.
|
|
1848
|
+
:type expand: List[str]
|
|
759
1849
|
:param _request_timeout: timeout setting for this request. If one
|
|
760
1850
|
number provided, it will be total request
|
|
761
1851
|
timeout. It can also be a pair (tuple) of
|
|
@@ -784,7 +1874,7 @@ class PatientApi:
|
|
|
784
1874
|
uuid_list=uuid_list,
|
|
785
1875
|
page=page,
|
|
786
1876
|
results_per_page=results_per_page,
|
|
787
|
-
|
|
1877
|
+
expand=expand,
|
|
788
1878
|
_request_auth=_request_auth,
|
|
789
1879
|
_content_type=_content_type,
|
|
790
1880
|
_headers=_headers,
|
|
@@ -809,12 +1899,12 @@ class PatientApi:
|
|
|
809
1899
|
@validate_call
|
|
810
1900
|
def get_patients_without_preload_content(
|
|
811
1901
|
self,
|
|
812
|
-
q: Annotated[Optional[StrictStr], Field(description="Filter patients by query. This takes precedence if set over remaining filters.")] = None,
|
|
1902
|
+
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
1903
|
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
1904
|
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
|
-
|
|
1905
|
+
page: Annotated[Optional[StrictInt], Field(description="Page number to return. Defaults to 1.")] = None,
|
|
1906
|
+
results_per_page: Annotated[Optional[StrictInt], Field(description="Number of results to return per page. Defaults to 10.")] = None,
|
|
1907
|
+
expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
|
|
818
1908
|
_request_timeout: Union[
|
|
819
1909
|
None,
|
|
820
1910
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -831,18 +1921,18 @@ class PatientApi:
|
|
|
831
1921
|
"""Get all patients
|
|
832
1922
|
|
|
833
1923
|
|
|
834
|
-
:param q: Filter patients by query. This takes precedence if set over remaining filters.
|
|
1924
|
+
: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
1925
|
:type q: str
|
|
836
1926
|
: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
1927
|
:type external_id: str
|
|
838
1928
|
:param uuid_list: A list of uuid strings to filter by. Only used if q and external_id are not set.
|
|
839
1929
|
:type uuid_list: List[str]
|
|
840
|
-
:param page:
|
|
1930
|
+
:param page: Page number to return. Defaults to 1.
|
|
841
1931
|
:type page: int
|
|
842
|
-
:param results_per_page:
|
|
1932
|
+
:param results_per_page: Number of results to return per page. Defaults to 10.
|
|
843
1933
|
:type results_per_page: int
|
|
844
|
-
:param
|
|
845
|
-
:type
|
|
1934
|
+
:param expand: The list of contained objects to return as well. Defaults to none.
|
|
1935
|
+
:type expand: List[str]
|
|
846
1936
|
:param _request_timeout: timeout setting for this request. If one
|
|
847
1937
|
number provided, it will be total request
|
|
848
1938
|
timeout. It can also be a pair (tuple) of
|
|
@@ -871,7 +1961,7 @@ class PatientApi:
|
|
|
871
1961
|
uuid_list=uuid_list,
|
|
872
1962
|
page=page,
|
|
873
1963
|
results_per_page=results_per_page,
|
|
874
|
-
|
|
1964
|
+
expand=expand,
|
|
875
1965
|
_request_auth=_request_auth,
|
|
876
1966
|
_content_type=_content_type,
|
|
877
1967
|
_headers=_headers,
|
|
@@ -896,7 +1986,7 @@ class PatientApi:
|
|
|
896
1986
|
uuid_list,
|
|
897
1987
|
page,
|
|
898
1988
|
results_per_page,
|
|
899
|
-
|
|
1989
|
+
expand,
|
|
900
1990
|
_request_auth,
|
|
901
1991
|
_content_type,
|
|
902
1992
|
_headers,
|
|
@@ -907,6 +1997,7 @@ class PatientApi:
|
|
|
907
1997
|
|
|
908
1998
|
_collection_formats: Dict[str, str] = {
|
|
909
1999
|
'uuid_list': 'csv',
|
|
2000
|
+
'expand': 'csv',
|
|
910
2001
|
}
|
|
911
2002
|
|
|
912
2003
|
_path_params: Dict[str, str] = {}
|
|
@@ -940,9 +2031,9 @@ class PatientApi:
|
|
|
940
2031
|
|
|
941
2032
|
_query_params.append(('results_per_page', results_per_page))
|
|
942
2033
|
|
|
943
|
-
if
|
|
2034
|
+
if expand is not None:
|
|
944
2035
|
|
|
945
|
-
_query_params.append(('
|
|
2036
|
+
_query_params.append(('expand', expand))
|
|
946
2037
|
|
|
947
2038
|
# process the header parameters
|
|
948
2039
|
# process the form parameters
|