rxfoundry.clients.cwp-api 1.0.0.4604__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/__init__.py +0 -0
- rxfoundry/clients/__init__.py +0 -0
- rxfoundry/clients/cwp_api/__init__.py +76 -0
- rxfoundry/clients/cwp_api/api/__init__.py +6 -0
- rxfoundry/clients/cwp_api/api/prescription_intake_api.py +366 -0
- rxfoundry/clients/cwp_api/api/version_api.py +281 -0
- rxfoundry/clients/cwp_api/api_client.py +797 -0
- rxfoundry/clients/cwp_api/api_response.py +21 -0
- rxfoundry/clients/cwp_api/configuration.py +572 -0
- rxfoundry/clients/cwp_api/exceptions.py +216 -0
- rxfoundry/clients/cwp_api/models/__init__.py +58 -0
- rxfoundry/clients/cwp_api/models/address.py +109 -0
- rxfoundry/clients/cwp_api/models/allergen.py +106 -0
- rxfoundry/clients/cwp_api/models/alternate_pharmacy.py +106 -0
- rxfoundry/clients/cwp_api/models/client_image.py +90 -0
- rxfoundry/clients/cwp_api/models/client_info.py +92 -0
- rxfoundry/clients/cwp_api/models/client_patient_id.py +90 -0
- rxfoundry/clients/cwp_api/models/clinical_status.py +104 -0
- rxfoundry/clients/cwp_api/models/conditions.py +105 -0
- rxfoundry/clients/cwp_api/models/contact_info.py +108 -0
- rxfoundry/clients/cwp_api/models/contact_info_fax.py +90 -0
- rxfoundry/clients/cwp_api/models/diagnosis.py +134 -0
- rxfoundry/clients/cwp_api/models/erx_payload.py +94 -0
- rxfoundry/clients/cwp_api/models/exception_state.py +97 -0
- rxfoundry/clients/cwp_api/models/identifier.py +98 -0
- rxfoundry/clients/cwp_api/models/insurance_coverage.py +138 -0
- rxfoundry/clients/cwp_api/models/insurance_coverage_payor.py +94 -0
- rxfoundry/clients/cwp_api/models/insurance_coverage_payor_group.py +94 -0
- rxfoundry/clients/cwp_api/models/medication_details.py +134 -0
- rxfoundry/clients/cwp_api/models/model400_error.py +99 -0
- rxfoundry/clients/cwp_api/models/model401_error.py +97 -0
- rxfoundry/clients/cwp_api/models/model403_error.py +97 -0
- rxfoundry/clients/cwp_api/models/model404_error.py +99 -0
- rxfoundry/clients/cwp_api/models/model422_error.py +109 -0
- rxfoundry/clients/cwp_api/models/model500_error.py +99 -0
- rxfoundry/clients/cwp_api/models/model502_error.py +99 -0
- rxfoundry/clients/cwp_api/models/model503_error.py +99 -0
- rxfoundry/clients/cwp_api/models/name.py +96 -0
- rxfoundry/clients/cwp_api/models/other_meds.py +96 -0
- rxfoundry/clients/cwp_api/models/patient.py +162 -0
- rxfoundry/clients/cwp_api/models/patient_contact_info.py +115 -0
- rxfoundry/clients/cwp_api/models/patient_contact_info_fax.py +90 -0
- rxfoundry/clients/cwp_api/models/patient_identification.py +124 -0
- rxfoundry/clients/cwp_api/models/pharmacy_identification.py +94 -0
- rxfoundry/clients/cwp_api/models/prescriber.py +109 -0
- rxfoundry/clients/cwp_api/models/prescriber_identification.py +94 -0
- rxfoundry/clients/cwp_api/models/prescription.py +134 -0
- rxfoundry/clients/cwp_api/models/prescription_intake_request.py +130 -0
- rxfoundry/clients/cwp_api/models/response_body.py +97 -0
- rxfoundry/clients/cwp_api/models/sending_pharmacy.py +112 -0
- rxfoundry/clients/cwp_api/models/start_end_dates.py +89 -0
- rxfoundry/clients/cwp_api/models/telephone.py +105 -0
- rxfoundry/clients/cwp_api/models/version.py +87 -0
- rxfoundry/clients/cwp_api/py.typed +0 -0
- rxfoundry/clients/cwp_api/rest.py +258 -0
- rxfoundry_clients_cwp_api-1.0.0.4604.dist-info/METADATA +23 -0
- rxfoundry_clients_cwp_api-1.0.0.4604.dist-info/RECORD +59 -0
- rxfoundry_clients_cwp_api-1.0.0.4604.dist-info/WHEEL +5 -0
- rxfoundry_clients_cwp_api-1.0.0.4604.dist-info/top_level.txt +1 -0
rxfoundry/__init__.py
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Pharmacy Prescription Intake API
|
|
7
|
+
|
|
8
|
+
The Pharmacy Prescription Intake API serves as a unified interface for the intake of prescriptions from external clients to CenterWell Traditional and Specialty Pharmacies. The API abstracts the complexities of interacting with multiple pharmacy systems and provides a standardized mechanism for prescription intake. As part of the intake process, prescriptions are evaluated according to routing rules, and new prescriptions are created and fulfilled through either the Traditional or Specialty pharmacy as appropriate.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 1.0.0.BUILD
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "1.0.0"
|
|
18
|
+
|
|
19
|
+
# import apis into sdk package
|
|
20
|
+
from rxfoundry.clients.cwp_api.api.prescription_intake_api import PrescriptionIntakeApi
|
|
21
|
+
from rxfoundry.clients.cwp_api.api.version_api import VersionApi
|
|
22
|
+
|
|
23
|
+
# import ApiClient
|
|
24
|
+
from rxfoundry.clients.cwp_api.api_response import ApiResponse
|
|
25
|
+
from rxfoundry.clients.cwp_api.api_client import ApiClient
|
|
26
|
+
from rxfoundry.clients.cwp_api.configuration import Configuration
|
|
27
|
+
from rxfoundry.clients.cwp_api.exceptions import OpenApiException
|
|
28
|
+
from rxfoundry.clients.cwp_api.exceptions import ApiTypeError
|
|
29
|
+
from rxfoundry.clients.cwp_api.exceptions import ApiValueError
|
|
30
|
+
from rxfoundry.clients.cwp_api.exceptions import ApiKeyError
|
|
31
|
+
from rxfoundry.clients.cwp_api.exceptions import ApiAttributeError
|
|
32
|
+
from rxfoundry.clients.cwp_api.exceptions import ApiException
|
|
33
|
+
|
|
34
|
+
# import models into sdk package
|
|
35
|
+
from rxfoundry.clients.cwp_api.models.address import Address
|
|
36
|
+
from rxfoundry.clients.cwp_api.models.allergen import Allergen
|
|
37
|
+
from rxfoundry.clients.cwp_api.models.alternate_pharmacy import AlternatePharmacy
|
|
38
|
+
from rxfoundry.clients.cwp_api.models.client_image import ClientImage
|
|
39
|
+
from rxfoundry.clients.cwp_api.models.client_info import ClientInfo
|
|
40
|
+
from rxfoundry.clients.cwp_api.models.client_patient_id import ClientPatientId
|
|
41
|
+
from rxfoundry.clients.cwp_api.models.clinical_status import ClinicalStatus
|
|
42
|
+
from rxfoundry.clients.cwp_api.models.conditions import Conditions
|
|
43
|
+
from rxfoundry.clients.cwp_api.models.contact_info import ContactInfo
|
|
44
|
+
from rxfoundry.clients.cwp_api.models.contact_info_fax import ContactInfoFax
|
|
45
|
+
from rxfoundry.clients.cwp_api.models.diagnosis import Diagnosis
|
|
46
|
+
from rxfoundry.clients.cwp_api.models.erx_payload import ErxPayload
|
|
47
|
+
from rxfoundry.clients.cwp_api.models.exception_state import ExceptionState
|
|
48
|
+
from rxfoundry.clients.cwp_api.models.identifier import Identifier
|
|
49
|
+
from rxfoundry.clients.cwp_api.models.insurance_coverage import InsuranceCoverage
|
|
50
|
+
from rxfoundry.clients.cwp_api.models.insurance_coverage_payor import InsuranceCoveragePayor
|
|
51
|
+
from rxfoundry.clients.cwp_api.models.insurance_coverage_payor_group import InsuranceCoveragePayorGroup
|
|
52
|
+
from rxfoundry.clients.cwp_api.models.medication_details import MedicationDetails
|
|
53
|
+
from rxfoundry.clients.cwp_api.models.model400_error import Model400Error
|
|
54
|
+
from rxfoundry.clients.cwp_api.models.model401_error import Model401Error
|
|
55
|
+
from rxfoundry.clients.cwp_api.models.model403_error import Model403Error
|
|
56
|
+
from rxfoundry.clients.cwp_api.models.model404_error import Model404Error
|
|
57
|
+
from rxfoundry.clients.cwp_api.models.model422_error import Model422Error
|
|
58
|
+
from rxfoundry.clients.cwp_api.models.model500_error import Model500Error
|
|
59
|
+
from rxfoundry.clients.cwp_api.models.model502_error import Model502Error
|
|
60
|
+
from rxfoundry.clients.cwp_api.models.model503_error import Model503Error
|
|
61
|
+
from rxfoundry.clients.cwp_api.models.name import Name
|
|
62
|
+
from rxfoundry.clients.cwp_api.models.other_meds import OtherMeds
|
|
63
|
+
from rxfoundry.clients.cwp_api.models.patient import Patient
|
|
64
|
+
from rxfoundry.clients.cwp_api.models.patient_contact_info import PatientContactInfo
|
|
65
|
+
from rxfoundry.clients.cwp_api.models.patient_contact_info_fax import PatientContactInfoFax
|
|
66
|
+
from rxfoundry.clients.cwp_api.models.patient_identification import PatientIdentification
|
|
67
|
+
from rxfoundry.clients.cwp_api.models.pharmacy_identification import PharmacyIdentification
|
|
68
|
+
from rxfoundry.clients.cwp_api.models.prescriber import Prescriber
|
|
69
|
+
from rxfoundry.clients.cwp_api.models.prescriber_identification import PrescriberIdentification
|
|
70
|
+
from rxfoundry.clients.cwp_api.models.prescription import Prescription
|
|
71
|
+
from rxfoundry.clients.cwp_api.models.prescription_intake_request import PrescriptionIntakeRequest
|
|
72
|
+
from rxfoundry.clients.cwp_api.models.response_body import ResponseBody
|
|
73
|
+
from rxfoundry.clients.cwp_api.models.sending_pharmacy import SendingPharmacy
|
|
74
|
+
from rxfoundry.clients.cwp_api.models.start_end_dates import StartEndDates
|
|
75
|
+
from rxfoundry.clients.cwp_api.models.telephone import Telephone
|
|
76
|
+
from rxfoundry.clients.cwp_api.models.version import Version
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Pharmacy Prescription Intake API
|
|
5
|
+
|
|
6
|
+
The Pharmacy Prescription Intake API serves as a unified interface for the intake of prescriptions from external clients to CenterWell Traditional and Specialty Pharmacies. The API abstracts the complexities of interacting with multiple pharmacy systems and provides a standardized mechanism for prescription intake. As part of the intake process, prescriptions are evaluated according to routing rules, and new prescriptions are created and fulfilled through either the Traditional or Specialty pharmacy as appropriate.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0.BUILD
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictStr
|
|
20
|
+
from typing_extensions import Annotated
|
|
21
|
+
from rxfoundry.clients.cwp_api.models.prescription_intake_request import PrescriptionIntakeRequest
|
|
22
|
+
from rxfoundry.clients.cwp_api.models.response_body import ResponseBody
|
|
23
|
+
|
|
24
|
+
from rxfoundry.clients.cwp_api.api_client import ApiClient, RequestSerialized
|
|
25
|
+
from rxfoundry.clients.cwp_api.api_response import ApiResponse
|
|
26
|
+
from rxfoundry.clients.cwp_api.rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class PrescriptionIntakeApi:
|
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
31
|
+
Ref: https://openapi-generator.tech
|
|
32
|
+
|
|
33
|
+
Do not edit the class manually.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, api_client=None) -> None:
|
|
37
|
+
if api_client is None:
|
|
38
|
+
api_client = ApiClient.get_default()
|
|
39
|
+
self.api_client = api_client
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@validate_call
|
|
43
|
+
def v2_rxintake_prescriptions_post(
|
|
44
|
+
self,
|
|
45
|
+
x_src_sys: Annotated[StrictStr, Field(description="Source system originating the request")],
|
|
46
|
+
x_trace_id: Annotated[StrictStr, Field(description="Unique correlation identifier (UUID) for tracking requests")],
|
|
47
|
+
prescription_intake_request: PrescriptionIntakeRequest,
|
|
48
|
+
_request_timeout: Union[
|
|
49
|
+
None,
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Tuple[
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
54
|
+
]
|
|
55
|
+
] = None,
|
|
56
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_content_type: Optional[StrictStr] = None,
|
|
58
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
60
|
+
) -> ResponseBody:
|
|
61
|
+
"""Accepts prescription intake submissions from external client systems.
|
|
62
|
+
|
|
63
|
+
This endpoint acknowledges receipt of prescription intake requests from external clients, applies routing rules to determine the appropriate fulfillment channel, and routes the prescription for new prescription creation and fulfillment by either the CenterWell Traditional or Specialty pharmacy.
|
|
64
|
+
|
|
65
|
+
:param x_src_sys: Source system originating the request (required)
|
|
66
|
+
:type x_src_sys: str
|
|
67
|
+
:param x_trace_id: Unique correlation identifier (UUID) for tracking requests (required)
|
|
68
|
+
:type x_trace_id: str
|
|
69
|
+
:param prescription_intake_request: (required)
|
|
70
|
+
:type prescription_intake_request: PrescriptionIntakeRequest
|
|
71
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
72
|
+
number provided, it will be total request
|
|
73
|
+
timeout. It can also be a pair (tuple) of
|
|
74
|
+
(connection, read) timeouts.
|
|
75
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
76
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
77
|
+
request; this effectively ignores the
|
|
78
|
+
authentication in the spec for a single request.
|
|
79
|
+
:type _request_auth: dict, optional
|
|
80
|
+
:param _content_type: force content-type for the request.
|
|
81
|
+
:type _content_type: str, Optional
|
|
82
|
+
:param _headers: set to override the headers for a single
|
|
83
|
+
request; this effectively ignores the headers
|
|
84
|
+
in the spec for a single request.
|
|
85
|
+
:type _headers: dict, optional
|
|
86
|
+
:param _host_index: set to override the host_index for a single
|
|
87
|
+
request; this effectively ignores the host_index
|
|
88
|
+
in the spec for a single request.
|
|
89
|
+
:type _host_index: int, optional
|
|
90
|
+
:return: Returns the result object.
|
|
91
|
+
""" # noqa: E501
|
|
92
|
+
|
|
93
|
+
_param = self._v2_rxintake_prescriptions_post_serialize(
|
|
94
|
+
x_src_sys=x_src_sys,
|
|
95
|
+
x_trace_id=x_trace_id,
|
|
96
|
+
prescription_intake_request=prescription_intake_request,
|
|
97
|
+
_request_auth=_request_auth,
|
|
98
|
+
_content_type=_content_type,
|
|
99
|
+
_headers=_headers,
|
|
100
|
+
_host_index=_host_index
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
104
|
+
'202': "ResponseBody",
|
|
105
|
+
'400': "Model400Error",
|
|
106
|
+
'401': "Model401Error",
|
|
107
|
+
'403': "Model403Error",
|
|
108
|
+
'404': "Model404Error",
|
|
109
|
+
'422': "Model422Error",
|
|
110
|
+
'500': "Model500Error",
|
|
111
|
+
'502': "Model502Error",
|
|
112
|
+
'503': "Model503Error",
|
|
113
|
+
}
|
|
114
|
+
response_data = self.api_client.call_api(
|
|
115
|
+
*_param,
|
|
116
|
+
_request_timeout=_request_timeout
|
|
117
|
+
)
|
|
118
|
+
response_data.read()
|
|
119
|
+
return self.api_client.response_deserialize(
|
|
120
|
+
response_data=response_data,
|
|
121
|
+
response_types_map=_response_types_map,
|
|
122
|
+
).data
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
@validate_call
|
|
126
|
+
def v2_rxintake_prescriptions_post_with_http_info(
|
|
127
|
+
self,
|
|
128
|
+
x_src_sys: Annotated[StrictStr, Field(description="Source system originating the request")],
|
|
129
|
+
x_trace_id: Annotated[StrictStr, Field(description="Unique correlation identifier (UUID) for tracking requests")],
|
|
130
|
+
prescription_intake_request: PrescriptionIntakeRequest,
|
|
131
|
+
_request_timeout: Union[
|
|
132
|
+
None,
|
|
133
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
134
|
+
Tuple[
|
|
135
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
136
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
137
|
+
]
|
|
138
|
+
] = None,
|
|
139
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
140
|
+
_content_type: Optional[StrictStr] = None,
|
|
141
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
142
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
143
|
+
) -> ApiResponse[ResponseBody]:
|
|
144
|
+
"""Accepts prescription intake submissions from external client systems.
|
|
145
|
+
|
|
146
|
+
This endpoint acknowledges receipt of prescription intake requests from external clients, applies routing rules to determine the appropriate fulfillment channel, and routes the prescription for new prescription creation and fulfillment by either the CenterWell Traditional or Specialty pharmacy.
|
|
147
|
+
|
|
148
|
+
:param x_src_sys: Source system originating the request (required)
|
|
149
|
+
:type x_src_sys: str
|
|
150
|
+
:param x_trace_id: Unique correlation identifier (UUID) for tracking requests (required)
|
|
151
|
+
:type x_trace_id: str
|
|
152
|
+
:param prescription_intake_request: (required)
|
|
153
|
+
:type prescription_intake_request: PrescriptionIntakeRequest
|
|
154
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
155
|
+
number provided, it will be total request
|
|
156
|
+
timeout. It can also be a pair (tuple) of
|
|
157
|
+
(connection, read) timeouts.
|
|
158
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
159
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
160
|
+
request; this effectively ignores the
|
|
161
|
+
authentication in the spec for a single request.
|
|
162
|
+
:type _request_auth: dict, optional
|
|
163
|
+
:param _content_type: force content-type for the request.
|
|
164
|
+
:type _content_type: str, Optional
|
|
165
|
+
:param _headers: set to override the headers for a single
|
|
166
|
+
request; this effectively ignores the headers
|
|
167
|
+
in the spec for a single request.
|
|
168
|
+
:type _headers: dict, optional
|
|
169
|
+
:param _host_index: set to override the host_index for a single
|
|
170
|
+
request; this effectively ignores the host_index
|
|
171
|
+
in the spec for a single request.
|
|
172
|
+
:type _host_index: int, optional
|
|
173
|
+
:return: Returns the result object.
|
|
174
|
+
""" # noqa: E501
|
|
175
|
+
|
|
176
|
+
_param = self._v2_rxintake_prescriptions_post_serialize(
|
|
177
|
+
x_src_sys=x_src_sys,
|
|
178
|
+
x_trace_id=x_trace_id,
|
|
179
|
+
prescription_intake_request=prescription_intake_request,
|
|
180
|
+
_request_auth=_request_auth,
|
|
181
|
+
_content_type=_content_type,
|
|
182
|
+
_headers=_headers,
|
|
183
|
+
_host_index=_host_index
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
187
|
+
'202': "ResponseBody",
|
|
188
|
+
'400': "Model400Error",
|
|
189
|
+
'401': "Model401Error",
|
|
190
|
+
'403': "Model403Error",
|
|
191
|
+
'404': "Model404Error",
|
|
192
|
+
'422': "Model422Error",
|
|
193
|
+
'500': "Model500Error",
|
|
194
|
+
'502': "Model502Error",
|
|
195
|
+
'503': "Model503Error",
|
|
196
|
+
}
|
|
197
|
+
response_data = self.api_client.call_api(
|
|
198
|
+
*_param,
|
|
199
|
+
_request_timeout=_request_timeout
|
|
200
|
+
)
|
|
201
|
+
response_data.read()
|
|
202
|
+
return self.api_client.response_deserialize(
|
|
203
|
+
response_data=response_data,
|
|
204
|
+
response_types_map=_response_types_map,
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
@validate_call
|
|
209
|
+
def v2_rxintake_prescriptions_post_without_preload_content(
|
|
210
|
+
self,
|
|
211
|
+
x_src_sys: Annotated[StrictStr, Field(description="Source system originating the request")],
|
|
212
|
+
x_trace_id: Annotated[StrictStr, Field(description="Unique correlation identifier (UUID) for tracking requests")],
|
|
213
|
+
prescription_intake_request: PrescriptionIntakeRequest,
|
|
214
|
+
_request_timeout: Union[
|
|
215
|
+
None,
|
|
216
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
217
|
+
Tuple[
|
|
218
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
219
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
220
|
+
]
|
|
221
|
+
] = None,
|
|
222
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
223
|
+
_content_type: Optional[StrictStr] = None,
|
|
224
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
225
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
226
|
+
) -> RESTResponseType:
|
|
227
|
+
"""Accepts prescription intake submissions from external client systems.
|
|
228
|
+
|
|
229
|
+
This endpoint acknowledges receipt of prescription intake requests from external clients, applies routing rules to determine the appropriate fulfillment channel, and routes the prescription for new prescription creation and fulfillment by either the CenterWell Traditional or Specialty pharmacy.
|
|
230
|
+
|
|
231
|
+
:param x_src_sys: Source system originating the request (required)
|
|
232
|
+
:type x_src_sys: str
|
|
233
|
+
:param x_trace_id: Unique correlation identifier (UUID) for tracking requests (required)
|
|
234
|
+
:type x_trace_id: str
|
|
235
|
+
:param prescription_intake_request: (required)
|
|
236
|
+
:type prescription_intake_request: PrescriptionIntakeRequest
|
|
237
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
238
|
+
number provided, it will be total request
|
|
239
|
+
timeout. It can also be a pair (tuple) of
|
|
240
|
+
(connection, read) timeouts.
|
|
241
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
242
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
243
|
+
request; this effectively ignores the
|
|
244
|
+
authentication in the spec for a single request.
|
|
245
|
+
:type _request_auth: dict, optional
|
|
246
|
+
:param _content_type: force content-type for the request.
|
|
247
|
+
:type _content_type: str, Optional
|
|
248
|
+
:param _headers: set to override the headers for a single
|
|
249
|
+
request; this effectively ignores the headers
|
|
250
|
+
in the spec for a single request.
|
|
251
|
+
:type _headers: dict, optional
|
|
252
|
+
:param _host_index: set to override the host_index for a single
|
|
253
|
+
request; this effectively ignores the host_index
|
|
254
|
+
in the spec for a single request.
|
|
255
|
+
:type _host_index: int, optional
|
|
256
|
+
:return: Returns the result object.
|
|
257
|
+
""" # noqa: E501
|
|
258
|
+
|
|
259
|
+
_param = self._v2_rxintake_prescriptions_post_serialize(
|
|
260
|
+
x_src_sys=x_src_sys,
|
|
261
|
+
x_trace_id=x_trace_id,
|
|
262
|
+
prescription_intake_request=prescription_intake_request,
|
|
263
|
+
_request_auth=_request_auth,
|
|
264
|
+
_content_type=_content_type,
|
|
265
|
+
_headers=_headers,
|
|
266
|
+
_host_index=_host_index
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
270
|
+
'202': "ResponseBody",
|
|
271
|
+
'400': "Model400Error",
|
|
272
|
+
'401': "Model401Error",
|
|
273
|
+
'403': "Model403Error",
|
|
274
|
+
'404': "Model404Error",
|
|
275
|
+
'422': "Model422Error",
|
|
276
|
+
'500': "Model500Error",
|
|
277
|
+
'502': "Model502Error",
|
|
278
|
+
'503': "Model503Error",
|
|
279
|
+
}
|
|
280
|
+
response_data = self.api_client.call_api(
|
|
281
|
+
*_param,
|
|
282
|
+
_request_timeout=_request_timeout
|
|
283
|
+
)
|
|
284
|
+
return response_data.response
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
def _v2_rxintake_prescriptions_post_serialize(
|
|
288
|
+
self,
|
|
289
|
+
x_src_sys,
|
|
290
|
+
x_trace_id,
|
|
291
|
+
prescription_intake_request,
|
|
292
|
+
_request_auth,
|
|
293
|
+
_content_type,
|
|
294
|
+
_headers,
|
|
295
|
+
_host_index,
|
|
296
|
+
) -> RequestSerialized:
|
|
297
|
+
|
|
298
|
+
_host = None
|
|
299
|
+
|
|
300
|
+
_collection_formats: Dict[str, str] = {
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
_path_params: Dict[str, str] = {}
|
|
304
|
+
_query_params: List[Tuple[str, str]] = []
|
|
305
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
306
|
+
_form_params: List[Tuple[str, str]] = []
|
|
307
|
+
_files: Dict[
|
|
308
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
309
|
+
] = {}
|
|
310
|
+
_body_params: Optional[bytes] = None
|
|
311
|
+
|
|
312
|
+
# process the path parameters
|
|
313
|
+
# process the query parameters
|
|
314
|
+
# process the header parameters
|
|
315
|
+
if x_src_sys is not None:
|
|
316
|
+
_header_params['x-src-sys'] = x_src_sys
|
|
317
|
+
if x_trace_id is not None:
|
|
318
|
+
_header_params['x-trace-id'] = x_trace_id
|
|
319
|
+
# process the form parameters
|
|
320
|
+
# process the body parameter
|
|
321
|
+
if prescription_intake_request is not None:
|
|
322
|
+
_body_params = prescription_intake_request
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
# set the HTTP header `Accept`
|
|
326
|
+
if 'Accept' not in _header_params:
|
|
327
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
328
|
+
[
|
|
329
|
+
'application/json'
|
|
330
|
+
]
|
|
331
|
+
)
|
|
332
|
+
|
|
333
|
+
# set the HTTP header `Content-Type`
|
|
334
|
+
if _content_type:
|
|
335
|
+
_header_params['Content-Type'] = _content_type
|
|
336
|
+
else:
|
|
337
|
+
_default_content_type = (
|
|
338
|
+
self.api_client.select_header_content_type(
|
|
339
|
+
[
|
|
340
|
+
'application/json'
|
|
341
|
+
]
|
|
342
|
+
)
|
|
343
|
+
)
|
|
344
|
+
if _default_content_type is not None:
|
|
345
|
+
_header_params['Content-Type'] = _default_content_type
|
|
346
|
+
|
|
347
|
+
# authentication setting
|
|
348
|
+
_auth_settings: List[str] = [
|
|
349
|
+
]
|
|
350
|
+
|
|
351
|
+
return self.api_client.param_serialize(
|
|
352
|
+
method='POST',
|
|
353
|
+
resource_path='/v2/rxintake/prescriptions',
|
|
354
|
+
path_params=_path_params,
|
|
355
|
+
query_params=_query_params,
|
|
356
|
+
header_params=_header_params,
|
|
357
|
+
body=_body_params,
|
|
358
|
+
post_params=_form_params,
|
|
359
|
+
files=_files,
|
|
360
|
+
auth_settings=_auth_settings,
|
|
361
|
+
collection_formats=_collection_formats,
|
|
362
|
+
_host=_host,
|
|
363
|
+
_request_auth=_request_auth
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
|