rxfoundry.clients.swifty-oauth-api 0.0.620__py3-none-any.whl → 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/METADATA +1 -1
  2. rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info/RECORD +19 -0
  3. rxfoundry/clients/p2rx_api/__init__.py +0 -79
  4. rxfoundry/clients/p2rx_api/api/__init__.py +0 -17
  5. rxfoundry/clients/p2rx_api/api/async_api.py +0 -862
  6. rxfoundry/clients/p2rx_api/api/code_api.py +0 -337
  7. rxfoundry/clients/p2rx_api/api/fax_api.py +0 -632
  8. rxfoundry/clients/p2rx_api/api/medication_api.py +0 -666
  9. rxfoundry/clients/p2rx_api/api/patient_api.py +0 -981
  10. rxfoundry/clients/p2rx_api/api/pharmacist_api.py +0 -615
  11. rxfoundry/clients/p2rx_api/api/pharmacy_api.py +0 -684
  12. rxfoundry/clients/p2rx_api/api/prescriber_api.py +0 -615
  13. rxfoundry/clients/p2rx_api/api/prescription_api.py +0 -1864
  14. rxfoundry/clients/p2rx_api/api/token_api.py +0 -314
  15. rxfoundry/clients/p2rx_api/api/user_api.py +0 -306
  16. rxfoundry/clients/p2rx_api/api/version_api.py +0 -282
  17. rxfoundry/clients/p2rx_api/api/virtual_pharmacy_api.py +0 -284
  18. rxfoundry/clients/p2rx_api/api_client.py +0 -798
  19. rxfoundry/clients/p2rx_api/api_response.py +0 -21
  20. rxfoundry/clients/p2rx_api/configuration.py +0 -583
  21. rxfoundry/clients/p2rx_api/exceptions.py +0 -217
  22. rxfoundry/clients/p2rx_api/models/__init__.py +0 -50
  23. rxfoundry/clients/p2rx_api/models/address.py +0 -106
  24. rxfoundry/clients/p2rx_api/models/asynchronous_response.py +0 -90
  25. rxfoundry/clients/p2rx_api/models/code.py +0 -92
  26. rxfoundry/clients/p2rx_api/models/code_qualifier_code.py +0 -96
  27. rxfoundry/clients/p2rx_api/models/error_message.py +0 -90
  28. rxfoundry/clients/p2rx_api/models/fax.py +0 -141
  29. rxfoundry/clients/p2rx_api/models/medication.py +0 -137
  30. rxfoundry/clients/p2rx_api/models/medication_program_pricing.py +0 -99
  31. rxfoundry/clients/p2rx_api/models/medication_variant.py +0 -96
  32. rxfoundry/clients/p2rx_api/models/patient.py +0 -128
  33. rxfoundry/clients/p2rx_api/models/patient_activity_notification.py +0 -114
  34. rxfoundry/clients/p2rx_api/models/patient_external_identifier.py +0 -94
  35. rxfoundry/clients/p2rx_api/models/pharmacist.py +0 -104
  36. rxfoundry/clients/p2rx_api/models/pharmacy.py +0 -156
  37. rxfoundry/clients/p2rx_api/models/pharmacy_chain.py +0 -100
  38. rxfoundry/clients/p2rx_api/models/pharmacy_other_identifier.py +0 -98
  39. rxfoundry/clients/p2rx_api/models/pharmacy_program_pricing.py +0 -103
  40. rxfoundry/clients/p2rx_api/models/prescriber.py +0 -106
  41. rxfoundry/clients/p2rx_api/models/prescription.py +0 -278
  42. rxfoundry/clients/p2rx_api/models/prescription_change_request.py +0 -123
  43. rxfoundry/clients/p2rx_api/models/prescription_issue.py +0 -120
  44. rxfoundry/clients/p2rx_api/models/prescription_patch.py +0 -113
  45. rxfoundry/clients/p2rx_api/models/prescription_task.py +0 -130
  46. rxfoundry/clients/p2rx_api/models/prescription_task_status.py +0 -95
  47. rxfoundry/clients/p2rx_api/models/prescription_transfer_request.py +0 -93
  48. rxfoundry/clients/p2rx_api/models/prescription_verification.py +0 -107
  49. rxfoundry/clients/p2rx_api/models/pricing_program.py +0 -90
  50. rxfoundry/clients/p2rx_api/models/surescripts_message.py +0 -111
  51. rxfoundry/clients/p2rx_api/models/token.py +0 -92
  52. rxfoundry/clients/p2rx_api/models/user.py +0 -98
  53. rxfoundry/clients/p2rx_api/models/version.py +0 -88
  54. rxfoundry/clients/p2rx_api/models/virtual_pharmacy.py +0 -96
  55. rxfoundry/clients/p2rx_api/models/workflow_request.py +0 -90
  56. rxfoundry/clients/p2rx_api/py.typed +0 -0
  57. rxfoundry/clients/p2rx_api/rest.py +0 -259
  58. rxfoundry/clients/swifty_api/__init__.py +0 -79
  59. rxfoundry/clients/swifty_api/api/__init__.py +0 -17
  60. rxfoundry/clients/swifty_api/api/async_api.py +0 -862
  61. rxfoundry/clients/swifty_api/api/code_api.py +0 -337
  62. rxfoundry/clients/swifty_api/api/fax_api.py +0 -632
  63. rxfoundry/clients/swifty_api/api/medication_api.py +0 -666
  64. rxfoundry/clients/swifty_api/api/patient_api.py +0 -981
  65. rxfoundry/clients/swifty_api/api/pharmacist_api.py +0 -615
  66. rxfoundry/clients/swifty_api/api/pharmacy_api.py +0 -684
  67. rxfoundry/clients/swifty_api/api/prescriber_api.py +0 -615
  68. rxfoundry/clients/swifty_api/api/prescription_api.py +0 -1864
  69. rxfoundry/clients/swifty_api/api/token_api.py +0 -314
  70. rxfoundry/clients/swifty_api/api/user_api.py +0 -306
  71. rxfoundry/clients/swifty_api/api/version_api.py +0 -282
  72. rxfoundry/clients/swifty_api/api/virtual_pharmacy_api.py +0 -284
  73. rxfoundry/clients/swifty_api/api_client.py +0 -798
  74. rxfoundry/clients/swifty_api/api_response.py +0 -21
  75. rxfoundry/clients/swifty_api/configuration.py +0 -583
  76. rxfoundry/clients/swifty_api/exceptions.py +0 -217
  77. rxfoundry/clients/swifty_api/models/__init__.py +0 -50
  78. rxfoundry/clients/swifty_api/models/address.py +0 -106
  79. rxfoundry/clients/swifty_api/models/asynchronous_response.py +0 -90
  80. rxfoundry/clients/swifty_api/models/code.py +0 -92
  81. rxfoundry/clients/swifty_api/models/code_qualifier_code.py +0 -96
  82. rxfoundry/clients/swifty_api/models/error_message.py +0 -90
  83. rxfoundry/clients/swifty_api/models/fax.py +0 -141
  84. rxfoundry/clients/swifty_api/models/medication.py +0 -137
  85. rxfoundry/clients/swifty_api/models/medication_program_pricing.py +0 -99
  86. rxfoundry/clients/swifty_api/models/medication_variant.py +0 -96
  87. rxfoundry/clients/swifty_api/models/patient.py +0 -128
  88. rxfoundry/clients/swifty_api/models/patient_activity_notification.py +0 -114
  89. rxfoundry/clients/swifty_api/models/patient_external_identifier.py +0 -94
  90. rxfoundry/clients/swifty_api/models/pharmacist.py +0 -104
  91. rxfoundry/clients/swifty_api/models/pharmacy.py +0 -156
  92. rxfoundry/clients/swifty_api/models/pharmacy_chain.py +0 -100
  93. rxfoundry/clients/swifty_api/models/pharmacy_other_identifier.py +0 -98
  94. rxfoundry/clients/swifty_api/models/pharmacy_program_pricing.py +0 -103
  95. rxfoundry/clients/swifty_api/models/prescriber.py +0 -106
  96. rxfoundry/clients/swifty_api/models/prescription.py +0 -278
  97. rxfoundry/clients/swifty_api/models/prescription_change_request.py +0 -123
  98. rxfoundry/clients/swifty_api/models/prescription_issue.py +0 -120
  99. rxfoundry/clients/swifty_api/models/prescription_patch.py +0 -113
  100. rxfoundry/clients/swifty_api/models/prescription_task.py +0 -130
  101. rxfoundry/clients/swifty_api/models/prescription_task_status.py +0 -95
  102. rxfoundry/clients/swifty_api/models/prescription_transfer_request.py +0 -93
  103. rxfoundry/clients/swifty_api/models/prescription_verification.py +0 -107
  104. rxfoundry/clients/swifty_api/models/pricing_program.py +0 -90
  105. rxfoundry/clients/swifty_api/models/surescripts_message.py +0 -111
  106. rxfoundry/clients/swifty_api/models/token.py +0 -92
  107. rxfoundry/clients/swifty_api/models/user.py +0 -98
  108. rxfoundry/clients/swifty_api/models/version.py +0 -88
  109. rxfoundry/clients/swifty_api/models/virtual_pharmacy.py +0 -98
  110. rxfoundry/clients/swifty_api/models/workflow_request.py +0 -90
  111. rxfoundry/clients/swifty_api/py.typed +0 -0
  112. rxfoundry/clients/swifty_api/rest.py +0 -259
  113. rxfoundry/clients/swifty_oauth_api/models/token_post_request.py +0 -94
  114. rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info/RECORD +0 -130
  115. {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/WHEEL +0 -0
  116. {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/top_level.txt +0 -0
@@ -1,120 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- SwiftyRX API
5
-
6
- API for the SwiftyRX Backend
7
-
8
- The version of the OpenAPI document: 0.1.DEV-0
9
- Contact: paul.tindall@rxfoundry.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
11
-
12
- Do not edit the class manually.
13
- """ # noqa: E501
14
-
15
-
16
- from __future__ import annotations
17
- import pprint
18
- import re # noqa: F401
19
- import json
20
-
21
- from datetime import datetime
22
- from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
23
- from typing import Any, ClassVar, Dict, List, Optional
24
- from rxfoundry.clients.swifty_api.models.user import User
25
- from typing import Optional, Set
26
- from typing_extensions import Self
27
-
28
- class PrescriptionIssue(BaseModel):
29
- """
30
- PrescriptionIssue
31
- """ # noqa: E501
32
- issues: Optional[List[StrictStr]] = None
33
- issue_date: Optional[datetime] = None
34
- issue_identified_by: Optional[StrictStr] = None
35
- issue_identified_by_user: Optional[User] = None
36
- issue_closed_on: Optional[datetime] = None
37
- issue_close_type: Optional[StrictStr] = None
38
- issue_closed_by: Optional[StrictStr] = None
39
- issue_closed_by_user: Optional[User] = None
40
- __properties: ClassVar[List[str]] = ["issues", "issue_date", "issue_identified_by", "issue_identified_by_user", "issue_closed_on", "issue_close_type", "issue_closed_by", "issue_closed_by_user"]
41
-
42
- @field_validator('issue_close_type')
43
- def issue_close_type_validate_enum(cls, value):
44
- """Validates the enum"""
45
- if value is None:
46
- return value
47
-
48
- if value not in set(['RxCancelled', 'RxUpdated', 'RxRechecked', 'Ignored']):
49
- raise ValueError("must be one of enum values ('RxCancelled', 'RxUpdated', 'RxRechecked', 'Ignored')")
50
- return value
51
-
52
- model_config = ConfigDict(
53
- populate_by_name=True,
54
- validate_assignment=True,
55
- protected_namespaces=(),
56
- )
57
-
58
-
59
- def to_str(self) -> str:
60
- """Returns the string representation of the model using alias"""
61
- return pprint.pformat(self.model_dump(by_alias=True))
62
-
63
- def to_json(self) -> str:
64
- """Returns the JSON representation of the model using alias"""
65
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
66
- return json.dumps(self.to_dict())
67
-
68
- @classmethod
69
- def from_json(cls, json_str: str) -> Optional[Self]:
70
- """Create an instance of PrescriptionIssue from a JSON string"""
71
- return cls.from_dict(json.loads(json_str))
72
-
73
- def to_dict(self) -> Dict[str, Any]:
74
- """Return the dictionary representation of the model using alias.
75
-
76
- This has the following differences from calling pydantic's
77
- `self.model_dump(by_alias=True)`:
78
-
79
- * `None` is only added to the output dict for nullable fields that
80
- were set at model initialization. Other fields with value `None`
81
- are ignored.
82
- """
83
- excluded_fields: Set[str] = set([
84
- ])
85
-
86
- _dict = self.model_dump(
87
- by_alias=True,
88
- exclude=excluded_fields,
89
- exclude_none=True,
90
- )
91
- # override the default output from pydantic by calling `to_dict()` of issue_identified_by_user
92
- if self.issue_identified_by_user:
93
- _dict['issue_identified_by_user'] = self.issue_identified_by_user.to_dict()
94
- # override the default output from pydantic by calling `to_dict()` of issue_closed_by_user
95
- if self.issue_closed_by_user:
96
- _dict['issue_closed_by_user'] = self.issue_closed_by_user.to_dict()
97
- return _dict
98
-
99
- @classmethod
100
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
101
- """Create an instance of PrescriptionIssue from a dict"""
102
- if obj is None:
103
- return None
104
-
105
- if not isinstance(obj, dict):
106
- return cls.model_validate(obj)
107
-
108
- _obj = cls.model_validate({
109
- "issues": obj.get("issues"),
110
- "issue_date": obj.get("issue_date"),
111
- "issue_identified_by": obj.get("issue_identified_by"),
112
- "issue_identified_by_user": User.from_dict(obj["issue_identified_by_user"]) if obj.get("issue_identified_by_user") is not None else None,
113
- "issue_closed_on": obj.get("issue_closed_on"),
114
- "issue_close_type": obj.get("issue_close_type"),
115
- "issue_closed_by": obj.get("issue_closed_by"),
116
- "issue_closed_by_user": User.from_dict(obj["issue_closed_by_user"]) if obj.get("issue_closed_by_user") is not None else None
117
- })
118
- return _obj
119
-
120
-
@@ -1,113 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- SwiftyRX API
5
-
6
- API for the SwiftyRX Backend
7
-
8
- The version of the OpenAPI document: 0.1.DEV-0
9
- Contact: paul.tindall@rxfoundry.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
11
-
12
- Do not edit the class manually.
13
- """ # noqa: E501
14
-
15
-
16
- from __future__ import annotations
17
- import pprint
18
- import re # noqa: F401
19
- import json
20
-
21
- from datetime import datetime
22
- from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt, StrictStr
23
- from typing import Any, ClassVar, Dict, List, Optional, Union
24
- from rxfoundry.clients.swifty_api.models.user import User
25
- from typing import Optional, Set
26
- from typing_extensions import Self
27
-
28
- class PrescriptionPatch(BaseModel):
29
- """
30
- PrescriptionPatch
31
- """ # noqa: E501
32
- sig_text: Optional[StrictStr] = None
33
- days_supply: Optional[StrictInt] = None
34
- quantity_value: Optional[Union[StrictFloat, StrictInt]] = None
35
- number_of_fills: Optional[StrictInt] = None
36
- original_sig_text: Optional[StrictStr] = None
37
- original_days_supply: Optional[StrictInt] = None
38
- original_quantity_value: Optional[Union[StrictFloat, StrictInt]] = None
39
- original_number_of_fills: Optional[StrictInt] = None
40
- patched_on: Optional[datetime] = None
41
- ignore_open_issues: Optional[StrictBool] = None
42
- patched_by: Optional[User] = None
43
- __properties: ClassVar[List[str]] = ["sig_text", "days_supply", "quantity_value", "number_of_fills", "original_sig_text", "original_days_supply", "original_quantity_value", "original_number_of_fills", "patched_on", "ignore_open_issues", "patched_by"]
44
-
45
- model_config = ConfigDict(
46
- populate_by_name=True,
47
- validate_assignment=True,
48
- protected_namespaces=(),
49
- )
50
-
51
-
52
- def to_str(self) -> str:
53
- """Returns the string representation of the model using alias"""
54
- return pprint.pformat(self.model_dump(by_alias=True))
55
-
56
- def to_json(self) -> str:
57
- """Returns the JSON representation of the model using alias"""
58
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
59
- return json.dumps(self.to_dict())
60
-
61
- @classmethod
62
- def from_json(cls, json_str: str) -> Optional[Self]:
63
- """Create an instance of PrescriptionPatch from a JSON string"""
64
- return cls.from_dict(json.loads(json_str))
65
-
66
- def to_dict(self) -> Dict[str, Any]:
67
- """Return the dictionary representation of the model using alias.
68
-
69
- This has the following differences from calling pydantic's
70
- `self.model_dump(by_alias=True)`:
71
-
72
- * `None` is only added to the output dict for nullable fields that
73
- were set at model initialization. Other fields with value `None`
74
- are ignored.
75
- """
76
- excluded_fields: Set[str] = set([
77
- ])
78
-
79
- _dict = self.model_dump(
80
- by_alias=True,
81
- exclude=excluded_fields,
82
- exclude_none=True,
83
- )
84
- # override the default output from pydantic by calling `to_dict()` of patched_by
85
- if self.patched_by:
86
- _dict['patched_by'] = self.patched_by.to_dict()
87
- return _dict
88
-
89
- @classmethod
90
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
91
- """Create an instance of PrescriptionPatch from a dict"""
92
- if obj is None:
93
- return None
94
-
95
- if not isinstance(obj, dict):
96
- return cls.model_validate(obj)
97
-
98
- _obj = cls.model_validate({
99
- "sig_text": obj.get("sig_text"),
100
- "days_supply": obj.get("days_supply"),
101
- "quantity_value": obj.get("quantity_value"),
102
- "number_of_fills": obj.get("number_of_fills"),
103
- "original_sig_text": obj.get("original_sig_text"),
104
- "original_days_supply": obj.get("original_days_supply"),
105
- "original_quantity_value": obj.get("original_quantity_value"),
106
- "original_number_of_fills": obj.get("original_number_of_fills"),
107
- "patched_on": obj.get("patched_on"),
108
- "ignore_open_issues": obj.get("ignore_open_issues"),
109
- "patched_by": User.from_dict(obj["patched_by"]) if obj.get("patched_by") is not None else None
110
- })
111
- return _obj
112
-
113
-
@@ -1,130 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- SwiftyRX API
5
-
6
- API for the SwiftyRX Backend
7
-
8
- The version of the OpenAPI document: 0.1.DEV-0
9
- Contact: paul.tindall@rxfoundry.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
11
-
12
- Do not edit the class manually.
13
- """ # noqa: E501
14
-
15
-
16
- from __future__ import annotations
17
- import pprint
18
- import re # noqa: F401
19
- import json
20
-
21
- from datetime import datetime
22
- from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr, field_validator
23
- from typing import Any, ClassVar, Dict, List, Optional
24
- from rxfoundry.clients.swifty_api.models.pharmacy import Pharmacy
25
- from rxfoundry.clients.swifty_api.models.prescription_task_status import PrescriptionTaskStatus
26
- from typing import Optional, Set
27
- from typing_extensions import Self
28
-
29
- class PrescriptionTask(BaseModel):
30
- """
31
- PrescriptionTask
32
- """ # noqa: E501
33
- uuid: Optional[StrictStr] = None
34
- created_on: Optional[datetime] = None
35
- task_type: Optional[StrictStr] = None
36
- manual_review_required: Optional[StrictBool] = None
37
- is_completed: Optional[StrictBool] = None
38
- from_pharmacy: Optional[Pharmacy] = None
39
- to_pharmacy: Optional[Pharmacy] = None
40
- transfer_type: Optional[StrictStr] = None
41
- statuses: Optional[List[PrescriptionTaskStatus]] = None
42
- __properties: ClassVar[List[str]] = ["uuid", "created_on", "task_type", "manual_review_required", "is_completed", "from_pharmacy", "to_pharmacy", "transfer_type", "statuses"]
43
-
44
- @field_validator('transfer_type')
45
- def transfer_type_validate_enum(cls, value):
46
- """Validates the enum"""
47
- if value is None:
48
- return value
49
-
50
- if value not in set(['API', 'RX_TRANSFER', 'MANUAL']):
51
- raise ValueError("must be one of enum values ('API', 'RX_TRANSFER', 'MANUAL')")
52
- return value
53
-
54
- model_config = ConfigDict(
55
- populate_by_name=True,
56
- validate_assignment=True,
57
- protected_namespaces=(),
58
- )
59
-
60
-
61
- def to_str(self) -> str:
62
- """Returns the string representation of the model using alias"""
63
- return pprint.pformat(self.model_dump(by_alias=True))
64
-
65
- def to_json(self) -> str:
66
- """Returns the JSON representation of the model using alias"""
67
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
68
- return json.dumps(self.to_dict())
69
-
70
- @classmethod
71
- def from_json(cls, json_str: str) -> Optional[Self]:
72
- """Create an instance of PrescriptionTask from a JSON string"""
73
- return cls.from_dict(json.loads(json_str))
74
-
75
- def to_dict(self) -> Dict[str, Any]:
76
- """Return the dictionary representation of the model using alias.
77
-
78
- This has the following differences from calling pydantic's
79
- `self.model_dump(by_alias=True)`:
80
-
81
- * `None` is only added to the output dict for nullable fields that
82
- were set at model initialization. Other fields with value `None`
83
- are ignored.
84
- """
85
- excluded_fields: Set[str] = set([
86
- ])
87
-
88
- _dict = self.model_dump(
89
- by_alias=True,
90
- exclude=excluded_fields,
91
- exclude_none=True,
92
- )
93
- # override the default output from pydantic by calling `to_dict()` of from_pharmacy
94
- if self.from_pharmacy:
95
- _dict['from_pharmacy'] = self.from_pharmacy.to_dict()
96
- # override the default output from pydantic by calling `to_dict()` of to_pharmacy
97
- if self.to_pharmacy:
98
- _dict['to_pharmacy'] = self.to_pharmacy.to_dict()
99
- # override the default output from pydantic by calling `to_dict()` of each item in statuses (list)
100
- _items = []
101
- if self.statuses:
102
- for _item_statuses in self.statuses:
103
- if _item_statuses:
104
- _items.append(_item_statuses.to_dict())
105
- _dict['statuses'] = _items
106
- return _dict
107
-
108
- @classmethod
109
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
110
- """Create an instance of PrescriptionTask from a dict"""
111
- if obj is None:
112
- return None
113
-
114
- if not isinstance(obj, dict):
115
- return cls.model_validate(obj)
116
-
117
- _obj = cls.model_validate({
118
- "uuid": obj.get("uuid"),
119
- "created_on": obj.get("created_on"),
120
- "task_type": obj.get("task_type"),
121
- "manual_review_required": obj.get("manual_review_required"),
122
- "is_completed": obj.get("is_completed"),
123
- "from_pharmacy": Pharmacy.from_dict(obj["from_pharmacy"]) if obj.get("from_pharmacy") is not None else None,
124
- "to_pharmacy": Pharmacy.from_dict(obj["to_pharmacy"]) if obj.get("to_pharmacy") is not None else None,
125
- "transfer_type": obj.get("transfer_type"),
126
- "statuses": [PrescriptionTaskStatus.from_dict(_item) for _item in obj["statuses"]] if obj.get("statuses") is not None else None
127
- })
128
- return _obj
129
-
130
-
@@ -1,95 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- SwiftyRX API
5
-
6
- API for the SwiftyRX Backend
7
-
8
- The version of the OpenAPI document: 0.1.DEV-0
9
- Contact: paul.tindall@rxfoundry.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
11
-
12
- Do not edit the class manually.
13
- """ # noqa: E501
14
-
15
-
16
- from __future__ import annotations
17
- import pprint
18
- import re # noqa: F401
19
- import json
20
-
21
- from datetime import datetime
22
- from pydantic import BaseModel, ConfigDict, StrictStr
23
- from typing import Any, ClassVar, Dict, List, Optional
24
- from typing import Optional, Set
25
- from typing_extensions import Self
26
-
27
- class PrescriptionTaskStatus(BaseModel):
28
- """
29
- PrescriptionTaskStatus
30
- """ # noqa: E501
31
- uuid: Optional[StrictStr] = None
32
- status_type: Optional[StrictStr] = None
33
- status_date_time: Optional[datetime] = None
34
- status_info: Optional[Dict[str, Any]] = None
35
- __properties: ClassVar[List[str]] = ["uuid", "status_type", "status_date_time", "status_info"]
36
-
37
- model_config = ConfigDict(
38
- populate_by_name=True,
39
- validate_assignment=True,
40
- protected_namespaces=(),
41
- )
42
-
43
-
44
- def to_str(self) -> str:
45
- """Returns the string representation of the model using alias"""
46
- return pprint.pformat(self.model_dump(by_alias=True))
47
-
48
- def to_json(self) -> str:
49
- """Returns the JSON representation of the model using alias"""
50
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
51
- return json.dumps(self.to_dict())
52
-
53
- @classmethod
54
- def from_json(cls, json_str: str) -> Optional[Self]:
55
- """Create an instance of PrescriptionTaskStatus from a JSON string"""
56
- return cls.from_dict(json.loads(json_str))
57
-
58
- def to_dict(self) -> Dict[str, Any]:
59
- """Return the dictionary representation of the model using alias.
60
-
61
- This has the following differences from calling pydantic's
62
- `self.model_dump(by_alias=True)`:
63
-
64
- * `None` is only added to the output dict for nullable fields that
65
- were set at model initialization. Other fields with value `None`
66
- are ignored.
67
- """
68
- excluded_fields: Set[str] = set([
69
- ])
70
-
71
- _dict = self.model_dump(
72
- by_alias=True,
73
- exclude=excluded_fields,
74
- exclude_none=True,
75
- )
76
- return _dict
77
-
78
- @classmethod
79
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
- """Create an instance of PrescriptionTaskStatus from a dict"""
81
- if obj is None:
82
- return None
83
-
84
- if not isinstance(obj, dict):
85
- return cls.model_validate(obj)
86
-
87
- _obj = cls.model_validate({
88
- "uuid": obj.get("uuid"),
89
- "status_type": obj.get("status_type"),
90
- "status_date_time": obj.get("status_date_time"),
91
- "status_info": obj.get("status_info")
92
- })
93
- return _obj
94
-
95
-
@@ -1,93 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- SwiftyRX API
5
-
6
- API for the SwiftyRX Backend
7
-
8
- The version of the OpenAPI document: 0.1.DEV-0
9
- Contact: paul.tindall@rxfoundry.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
11
-
12
- Do not edit the class manually.
13
- """ # noqa: E501
14
-
15
-
16
- from __future__ import annotations
17
- import pprint
18
- import re # noqa: F401
19
- import json
20
-
21
- from datetime import datetime
22
- from pydantic import BaseModel, ConfigDict, StrictStr
23
- from typing import Any, ClassVar, Dict, List, Optional
24
- from typing import Optional, Set
25
- from typing_extensions import Self
26
-
27
- class PrescriptionTransferRequest(BaseModel):
28
- """
29
- PrescriptionTransferRequest
30
- """ # noqa: E501
31
- prescription_number: Optional[StrictStr] = None
32
- to_pharmacy_npi: Optional[StrictStr] = None
33
- requested_on: Optional[datetime] = None
34
- __properties: ClassVar[List[str]] = ["prescription_number", "to_pharmacy_npi", "requested_on"]
35
-
36
- model_config = ConfigDict(
37
- populate_by_name=True,
38
- validate_assignment=True,
39
- protected_namespaces=(),
40
- )
41
-
42
-
43
- def to_str(self) -> str:
44
- """Returns the string representation of the model using alias"""
45
- return pprint.pformat(self.model_dump(by_alias=True))
46
-
47
- def to_json(self) -> str:
48
- """Returns the JSON representation of the model using alias"""
49
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
50
- return json.dumps(self.to_dict())
51
-
52
- @classmethod
53
- def from_json(cls, json_str: str) -> Optional[Self]:
54
- """Create an instance of PrescriptionTransferRequest from a JSON string"""
55
- return cls.from_dict(json.loads(json_str))
56
-
57
- def to_dict(self) -> Dict[str, Any]:
58
- """Return the dictionary representation of the model using alias.
59
-
60
- This has the following differences from calling pydantic's
61
- `self.model_dump(by_alias=True)`:
62
-
63
- * `None` is only added to the output dict for nullable fields that
64
- were set at model initialization. Other fields with value `None`
65
- are ignored.
66
- """
67
- excluded_fields: Set[str] = set([
68
- ])
69
-
70
- _dict = self.model_dump(
71
- by_alias=True,
72
- exclude=excluded_fields,
73
- exclude_none=True,
74
- )
75
- return _dict
76
-
77
- @classmethod
78
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
79
- """Create an instance of PrescriptionTransferRequest from a dict"""
80
- if obj is None:
81
- return None
82
-
83
- if not isinstance(obj, dict):
84
- return cls.model_validate(obj)
85
-
86
- _obj = cls.model_validate({
87
- "prescription_number": obj.get("prescription_number"),
88
- "to_pharmacy_npi": obj.get("to_pharmacy_npi"),
89
- "requested_on": obj.get("requested_on")
90
- })
91
- return _obj
92
-
93
-
@@ -1,107 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- SwiftyRX API
5
-
6
- API for the SwiftyRX Backend
7
-
8
- The version of the OpenAPI document: 0.1.DEV-0
9
- Contact: paul.tindall@rxfoundry.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
11
-
12
- Do not edit the class manually.
13
- """ # noqa: E501
14
-
15
-
16
- from __future__ import annotations
17
- import pprint
18
- import re # noqa: F401
19
- import json
20
-
21
- from datetime import datetime
22
- from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
23
- from typing import Any, ClassVar, Dict, List, Optional
24
- from rxfoundry.clients.swifty_api.models.user import User
25
- from typing import Optional, Set
26
- from typing_extensions import Self
27
-
28
- class PrescriptionVerification(BaseModel):
29
- """
30
- PrescriptionVerification
31
- """ # noqa: E501
32
- level: Optional[StrictStr] = None
33
- user: Optional[User] = None
34
- verification_date_time: Optional[datetime] = None
35
- __properties: ClassVar[List[str]] = ["level", "user", "verification_date_time"]
36
-
37
- @field_validator('level')
38
- def level_validate_enum(cls, value):
39
- """Validates the enum"""
40
- if value is None:
41
- return value
42
-
43
- if value not in set(['pv0', 'pv1']):
44
- raise ValueError("must be one of enum values ('pv0', 'pv1')")
45
- return value
46
-
47
- model_config = ConfigDict(
48
- populate_by_name=True,
49
- validate_assignment=True,
50
- protected_namespaces=(),
51
- )
52
-
53
-
54
- def to_str(self) -> str:
55
- """Returns the string representation of the model using alias"""
56
- return pprint.pformat(self.model_dump(by_alias=True))
57
-
58
- def to_json(self) -> str:
59
- """Returns the JSON representation of the model using alias"""
60
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
61
- return json.dumps(self.to_dict())
62
-
63
- @classmethod
64
- def from_json(cls, json_str: str) -> Optional[Self]:
65
- """Create an instance of PrescriptionVerification from a JSON string"""
66
- return cls.from_dict(json.loads(json_str))
67
-
68
- def to_dict(self) -> Dict[str, Any]:
69
- """Return the dictionary representation of the model using alias.
70
-
71
- This has the following differences from calling pydantic's
72
- `self.model_dump(by_alias=True)`:
73
-
74
- * `None` is only added to the output dict for nullable fields that
75
- were set at model initialization. Other fields with value `None`
76
- are ignored.
77
- """
78
- excluded_fields: Set[str] = set([
79
- ])
80
-
81
- _dict = self.model_dump(
82
- by_alias=True,
83
- exclude=excluded_fields,
84
- exclude_none=True,
85
- )
86
- # override the default output from pydantic by calling `to_dict()` of user
87
- if self.user:
88
- _dict['user'] = self.user.to_dict()
89
- return _dict
90
-
91
- @classmethod
92
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
93
- """Create an instance of PrescriptionVerification from a dict"""
94
- if obj is None:
95
- return None
96
-
97
- if not isinstance(obj, dict):
98
- return cls.model_validate(obj)
99
-
100
- _obj = cls.model_validate({
101
- "level": obj.get("level"),
102
- "user": User.from_dict(obj["user"]) if obj.get("user") is not None else None,
103
- "verification_date_time": obj.get("verification_date_time")
104
- })
105
- return _obj
106
-
107
-