rxfoundry.clients.swifty-api 0.1.1006__py3-none-any.whl → 0.1.1007__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/api/patient_api.py +18 -1
- rxfoundry/clients/swifty_api/models/create_patient_request.py +2 -14
- {rxfoundry_clients_swifty_api-0.1.1006.dist-info → rxfoundry_clients_swifty_api-0.1.1007.dist-info}/METADATA +1 -1
- {rxfoundry_clients_swifty_api-0.1.1006.dist-info → rxfoundry_clients_swifty_api-0.1.1007.dist-info}/RECORD +6 -6
- {rxfoundry_clients_swifty_api-0.1.1006.dist-info → rxfoundry_clients_swifty_api-0.1.1007.dist-info}/WHEEL +0 -0
- {rxfoundry_clients_swifty_api-0.1.1006.dist-info → rxfoundry_clients_swifty_api-0.1.1007.dist-info}/top_level.txt +0 -0
|
@@ -17,7 +17,7 @@ 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, StrictFloat, StrictInt, StrictStr, field_validator
|
|
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
23
|
from rxfoundry.clients.swifty_api.models.create_patient_request import CreatePatientRequest
|
|
@@ -2000,6 +2000,7 @@ class PatientApi:
|
|
|
2000
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,
|
|
2001
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,
|
|
2002
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,
|
|
2003
|
+
is_registered: Annotated[Optional[StrictBool], Field(description="Filter patients by registration status. Defaults to true.")] = None,
|
|
2003
2004
|
page: Annotated[Optional[StrictInt], Field(description="Page number to return. Defaults to 1.")] = None,
|
|
2004
2005
|
results_per_page: Annotated[Optional[StrictInt], Field(description="Number of results to return per page. Defaults to 10.")] = None,
|
|
2005
2006
|
expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
|
|
@@ -2025,6 +2026,8 @@ class PatientApi:
|
|
|
2025
2026
|
:type external_id: str
|
|
2026
2027
|
:param uuid_list: A list of uuid strings to filter by. Only used if q and external_id are not set.
|
|
2027
2028
|
:type uuid_list: List[str]
|
|
2029
|
+
:param is_registered: Filter patients by registration status. Defaults to true.
|
|
2030
|
+
:type is_registered: bool
|
|
2028
2031
|
:param page: Page number to return. Defaults to 1.
|
|
2029
2032
|
:type page: int
|
|
2030
2033
|
:param results_per_page: Number of results to return per page. Defaults to 10.
|
|
@@ -2057,6 +2060,7 @@ class PatientApi:
|
|
|
2057
2060
|
q=q,
|
|
2058
2061
|
external_id=external_id,
|
|
2059
2062
|
uuid_list=uuid_list,
|
|
2063
|
+
is_registered=is_registered,
|
|
2060
2064
|
page=page,
|
|
2061
2065
|
results_per_page=results_per_page,
|
|
2062
2066
|
expand=expand,
|
|
@@ -2087,6 +2091,7 @@ class PatientApi:
|
|
|
2087
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,
|
|
2088
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,
|
|
2089
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,
|
|
2094
|
+
is_registered: Annotated[Optional[StrictBool], Field(description="Filter patients by registration status. Defaults to true.")] = None,
|
|
2090
2095
|
page: Annotated[Optional[StrictInt], Field(description="Page number to return. Defaults to 1.")] = None,
|
|
2091
2096
|
results_per_page: Annotated[Optional[StrictInt], Field(description="Number of results to return per page. Defaults to 10.")] = None,
|
|
2092
2097
|
expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
|
|
@@ -2112,6 +2117,8 @@ class PatientApi:
|
|
|
2112
2117
|
:type external_id: str
|
|
2113
2118
|
:param uuid_list: A list of uuid strings to filter by. Only used if q and external_id are not set.
|
|
2114
2119
|
:type uuid_list: List[str]
|
|
2120
|
+
:param is_registered: Filter patients by registration status. Defaults to true.
|
|
2121
|
+
:type is_registered: bool
|
|
2115
2122
|
:param page: Page number to return. Defaults to 1.
|
|
2116
2123
|
:type page: int
|
|
2117
2124
|
:param results_per_page: Number of results to return per page. Defaults to 10.
|
|
@@ -2144,6 +2151,7 @@ class PatientApi:
|
|
|
2144
2151
|
q=q,
|
|
2145
2152
|
external_id=external_id,
|
|
2146
2153
|
uuid_list=uuid_list,
|
|
2154
|
+
is_registered=is_registered,
|
|
2147
2155
|
page=page,
|
|
2148
2156
|
results_per_page=results_per_page,
|
|
2149
2157
|
expand=expand,
|
|
@@ -2174,6 +2182,7 @@ class PatientApi:
|
|
|
2174
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,
|
|
2175
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,
|
|
2176
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,
|
|
2185
|
+
is_registered: Annotated[Optional[StrictBool], Field(description="Filter patients by registration status. Defaults to true.")] = None,
|
|
2177
2186
|
page: Annotated[Optional[StrictInt], Field(description="Page number to return. Defaults to 1.")] = None,
|
|
2178
2187
|
results_per_page: Annotated[Optional[StrictInt], Field(description="Number of results to return per page. Defaults to 10.")] = None,
|
|
2179
2188
|
expand: Annotated[Optional[List[StrictStr]], Field(description="The list of contained objects to return as well. Defaults to none.")] = None,
|
|
@@ -2199,6 +2208,8 @@ class PatientApi:
|
|
|
2199
2208
|
:type external_id: str
|
|
2200
2209
|
:param uuid_list: A list of uuid strings to filter by. Only used if q and external_id are not set.
|
|
2201
2210
|
:type uuid_list: List[str]
|
|
2211
|
+
:param is_registered: Filter patients by registration status. Defaults to true.
|
|
2212
|
+
:type is_registered: bool
|
|
2202
2213
|
:param page: Page number to return. Defaults to 1.
|
|
2203
2214
|
:type page: int
|
|
2204
2215
|
:param results_per_page: Number of results to return per page. Defaults to 10.
|
|
@@ -2231,6 +2242,7 @@ class PatientApi:
|
|
|
2231
2242
|
q=q,
|
|
2232
2243
|
external_id=external_id,
|
|
2233
2244
|
uuid_list=uuid_list,
|
|
2245
|
+
is_registered=is_registered,
|
|
2234
2246
|
page=page,
|
|
2235
2247
|
results_per_page=results_per_page,
|
|
2236
2248
|
expand=expand,
|
|
@@ -2256,6 +2268,7 @@ class PatientApi:
|
|
|
2256
2268
|
q,
|
|
2257
2269
|
external_id,
|
|
2258
2270
|
uuid_list,
|
|
2271
|
+
is_registered,
|
|
2259
2272
|
page,
|
|
2260
2273
|
results_per_page,
|
|
2261
2274
|
expand,
|
|
@@ -2295,6 +2308,10 @@ class PatientApi:
|
|
|
2295
2308
|
|
|
2296
2309
|
_query_params.append(('uuid_list', uuid_list))
|
|
2297
2310
|
|
|
2311
|
+
if is_registered is not None:
|
|
2312
|
+
|
|
2313
|
+
_query_params.append(('is_registered', is_registered))
|
|
2314
|
+
|
|
2298
2315
|
if page is not None:
|
|
2299
2316
|
|
|
2300
2317
|
_query_params.append(('page', page))
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from pydantic import BaseModel, ConfigDict
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from rxfoundry.clients.swifty_api.models.patient_address_data import PatientAddressData
|
|
24
24
|
from rxfoundry.clients.swifty_api.models.patient_data import PatientData
|
|
@@ -29,20 +29,9 @@ class CreatePatientRequest(BaseModel):
|
|
|
29
29
|
"""
|
|
30
30
|
Request wrapper for creating a patient
|
|
31
31
|
""" # noqa: E501
|
|
32
|
-
object_type: Optional[StrictStr] = Field(default=None, description="The discriminator used to determine the type of the object. This is required for the discriminator to work correctly.")
|
|
33
32
|
patient: PatientData
|
|
34
33
|
address: Optional[PatientAddressData] = None
|
|
35
|
-
__properties: ClassVar[List[str]] = ["
|
|
36
|
-
|
|
37
|
-
@field_validator('object_type')
|
|
38
|
-
def object_type_validate_enum(cls, value):
|
|
39
|
-
"""Validates the enum"""
|
|
40
|
-
if value is None:
|
|
41
|
-
return value
|
|
42
|
-
|
|
43
|
-
if value not in set(['create_patient_request']):
|
|
44
|
-
raise ValueError("must be one of enum values ('create_patient_request')")
|
|
45
|
-
return value
|
|
34
|
+
__properties: ClassVar[List[str]] = ["patient", "address"]
|
|
46
35
|
|
|
47
36
|
model_config = ConfigDict(
|
|
48
37
|
populate_by_name=True,
|
|
@@ -101,7 +90,6 @@ class CreatePatientRequest(BaseModel):
|
|
|
101
90
|
return cls.model_validate(obj)
|
|
102
91
|
|
|
103
92
|
_obj = cls.model_validate({
|
|
104
|
-
"object_type": obj.get("object_type"),
|
|
105
93
|
"patient": PatientData.from_dict(obj["patient"]) if obj.get("patient") is not None else None,
|
|
106
94
|
"address": PatientAddressData.from_dict(obj["address"]) if obj.get("address") is not None else None
|
|
107
95
|
})
|
|
@@ -13,7 +13,7 @@ rxfoundry/clients/swifty_api/api/code_api.py,sha256=CySSR7Lw05rZzYkzToyrRyt5APcO
|
|
|
13
13
|
rxfoundry/clients/swifty_api/api/default_api.py,sha256=kweJa5YpKgugk8niuZrczW3YQ245myNShaJ6gwAUI5M,12251
|
|
14
14
|
rxfoundry/clients/swifty_api/api/fax_api.py,sha256=p7Uy_YJJ2VI7LA1O0LU6cxSY4CpGuYdFpV9qBdN3Z-M,23514
|
|
15
15
|
rxfoundry/clients/swifty_api/api/medication_api.py,sha256=uDcAvJ4scGVBxanGYjbXarpZ7esHRmcvhEMobSvA73g,49547
|
|
16
|
-
rxfoundry/clients/swifty_api/api/patient_api.py,sha256
|
|
16
|
+
rxfoundry/clients/swifty_api/api/patient_api.py,sha256=ShJk70-hROrSeAAn4hJ6lAzxP5C-popkWot9tVQek54,93844
|
|
17
17
|
rxfoundry/clients/swifty_api/api/pharmacist_api.py,sha256=6oEqrrIEmBB0i2iDIQKsjJr7fuGiY0J-H_NWIjp1Qvc,24931
|
|
18
18
|
rxfoundry/clients/swifty_api/api/pharmacy_api.py,sha256=t86xd58lZMZE1x74XKW8C3fwk2UZhFn5ZpJUQ9kR8e8,30623
|
|
19
19
|
rxfoundry/clients/swifty_api/api/prescriber_api.py,sha256=HeEZCXVJot9e6yprgkfCGjkZWdubbBIWaP86ekB7pXI,25033
|
|
@@ -32,7 +32,7 @@ rxfoundry/clients/swifty_api/models/asynchronous_response.py,sha256=_7eSH5B0Oqbs
|
|
|
32
32
|
rxfoundry/clients/swifty_api/models/code.py,sha256=RgwBS2bwB8z9IPNQg7AAJA09rChX0tik3sx9g0AQovk,2623
|
|
33
33
|
rxfoundry/clients/swifty_api/models/code_qualifier_code.py,sha256=dHIUHnEDIMHWcmmOAQ4BlaeNPT8kftNp_c1iR4n7xnQ,2996
|
|
34
34
|
rxfoundry/clients/swifty_api/models/code_type.py,sha256=hKYsEbE7KdD5uSw6LOjm6draFvQi3P5M8JGr5QDKXTc,2659
|
|
35
|
-
rxfoundry/clients/swifty_api/models/create_patient_request.py,sha256=
|
|
35
|
+
rxfoundry/clients/swifty_api/models/create_patient_request.py,sha256=6KsC4YBNxP_3Fu5ILphigQzcAoM2DnxKb6ee0vr9y2E,3226
|
|
36
36
|
rxfoundry/clients/swifty_api/models/error_message.py,sha256=WgL6GkqLt5-lN3mkfAbumWWLwCUPSB7Us4OHIKBVKhY,2605
|
|
37
37
|
rxfoundry/clients/swifty_api/models/fax.py,sha256=XsfykGOhCPFcK6ojjv93wbOJOGU7dm8A2-AXPPN5-d8,5781
|
|
38
38
|
rxfoundry/clients/swifty_api/models/formulary.py,sha256=K4e27ZQ4HlBq1-SDF7ohwlr8RNfsQ8vqOe8XAFnH-WM,3130
|
|
@@ -104,7 +104,7 @@ rxfoundry/clients/swifty_api/models/workflow_sub_task_sub_task.py,sha256=0xp-FNZ
|
|
|
104
104
|
rxfoundry/clients/swifty_api/models/workflow_task.py,sha256=sEZfS5hgaepJ725yWqOGPMJucc85LaB2Vnmln3K800U,3594
|
|
105
105
|
rxfoundry/clients/swifty_api/models/workflow_task_task.py,sha256=bdU1NmMhlbBIP_Mz9l_-W1uYj7eiZ2G82dKEOttiq_U,6304
|
|
106
106
|
rxfoundry/clients/swifty_api/models/workflow_type.py,sha256=RuVz5rEqKktxWbzz7JkPc-Evw86YTh21EX4mgH8IjG4,1596
|
|
107
|
-
rxfoundry_clients_swifty_api-0.1.
|
|
108
|
-
rxfoundry_clients_swifty_api-0.1.
|
|
109
|
-
rxfoundry_clients_swifty_api-0.1.
|
|
110
|
-
rxfoundry_clients_swifty_api-0.1.
|
|
107
|
+
rxfoundry_clients_swifty_api-0.1.1007.dist-info/METADATA,sha256=iLLgtI6e75GJZ4463IE0gWAeeo0WybW68RjfRNqTuX4,595
|
|
108
|
+
rxfoundry_clients_swifty_api-0.1.1007.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
109
|
+
rxfoundry_clients_swifty_api-0.1.1007.dist-info/top_level.txt,sha256=x7AlWW4imWljpZ91S0V0Pq8YFe0UFn8rBgeIQhJ5q5A,10
|
|
110
|
+
rxfoundry_clients_swifty_api-0.1.1007.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|