rxfoundry.clients.hd-api 1.19.1.5985__tar.gz
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_hd_api-1.19.1.5985/PKG-INFO +23 -0
- rxfoundry_clients_hd_api-1.19.1.5985/README.md +156 -0
- rxfoundry_clients_hd_api-1.19.1.5985/pyproject.toml +89 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/__init__.py +0 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/__init__.py +0 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/__init__.py +63 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/api/__init__.py +10 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/api/fill_api.py +319 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/api/mailbox_api.py +590 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/api/patient_api.py +605 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/api/script_api.py +573 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/api/uat_api.py +605 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/api/version_api.py +281 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/api_client.py +797 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/api_response.py +21 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/configuration.py +602 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/exceptions.py +216 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/__init__.py +41 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/address.py +95 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/contact.py +99 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/contact_info.py +93 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/create_fill_request200_response.py +91 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/create_fill_request401_response.py +91 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/external_medication.py +91 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/fill_request.py +95 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/get_mailbox200_response.py +101 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/order_item_level_information.py +112 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/patient.py +126 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/patient_address.py +110 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/pharmacist.py +89 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/pharmacy.py +115 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/prescriber.py +105 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/prescription.py +139 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/prescription_update.py +102 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/script_create_request.py +112 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/script_request.py +112 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/script_update_request.py +95 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/shipping.py +107 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/shipping_address.py +99 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/status_event.py +109 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/update_mailbox200_response.py +91 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/update_patient200_response.py +89 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/update_patient_request.py +91 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/models/version.py +87 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/py.typed +0 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry/clients/hd_api/rest.py +258 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry.clients.hd_api.egg-info/PKG-INFO +23 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry.clients.hd_api.egg-info/SOURCES.txt +84 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry.clients.hd_api.egg-info/dependency_links.txt +1 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry.clients.hd_api.egg-info/requires.txt +4 -0
- rxfoundry_clients_hd_api-1.19.1.5985/rxfoundry.clients.hd_api.egg-info/top_level.txt +1 -0
- rxfoundry_clients_hd_api-1.19.1.5985/setup.cfg +7 -0
- rxfoundry_clients_hd_api-1.19.1.5985/setup.py +49 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_address.py +59 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_contact.py +53 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_contact_info.py +54 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_create_fill_request200_response.py +53 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_create_fill_request401_response.py +55 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_external_medication.py +54 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_fill_api.py +38 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_fill_request.py +66 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_get_mailbox200_response.py +66 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_mailbox_api.py +45 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_order_item_level_information.py +63 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_patient.py +98 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_patient_address.py +64 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_patient_api.py +45 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_pharmacist.py +54 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_pharmacy.py +87 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_prescriber.py +74 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_prescription.py +114 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_prescription_update.py +65 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_script_api.py +45 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_script_create_request.py +222 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_script_request.py +222 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_script_update_request.py +72 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_shipping.py +69 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_shipping_address.py +61 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_status_event.py +68 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_uat_api.py +45 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_update_mailbox200_response.py +55 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_update_patient200_response.py +52 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_update_patient_request.py +78 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_version.py +51 -0
- rxfoundry_clients_hd_api-1.19.1.5985/test/test_version_api.py +38 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rxfoundry.clients.hd-api
|
|
3
|
+
Version: 1.19.1.5985
|
|
4
|
+
Summary: Healthdyne API
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: OpenAPI Generator community
|
|
7
|
+
Author-email: team@openapitools.org
|
|
8
|
+
Keywords: OpenAPI,OpenAPI-Generator,Healthdyne API
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
11
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
12
|
+
Requires-Dist: pydantic>=2
|
|
13
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: description
|
|
17
|
+
Dynamic: description-content-type
|
|
18
|
+
Dynamic: keywords
|
|
19
|
+
Dynamic: requires-dist
|
|
20
|
+
Dynamic: summary
|
|
21
|
+
|
|
22
|
+
PharmacyGateway Service
|
|
23
|
+
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# rxfoundry.clients.hd-api
|
|
2
|
+
PharmacyGateway Service
|
|
3
|
+
|
|
4
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
|
+
|
|
6
|
+
- API version: 1.19.1.BUILD
|
|
7
|
+
- Package version: 1.0.0
|
|
8
|
+
- Generator version: 7.13.0
|
|
9
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
|
+
|
|
11
|
+
## Requirements.
|
|
12
|
+
|
|
13
|
+
Python 3.9+
|
|
14
|
+
|
|
15
|
+
## Installation & Usage
|
|
16
|
+
### pip install
|
|
17
|
+
|
|
18
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
22
|
+
```
|
|
23
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
24
|
+
|
|
25
|
+
Then import the package:
|
|
26
|
+
```python
|
|
27
|
+
import rxfoundry.clients.hd_api
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Setuptools
|
|
31
|
+
|
|
32
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
python setup.py install --user
|
|
36
|
+
```
|
|
37
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
38
|
+
|
|
39
|
+
Then import the package:
|
|
40
|
+
```python
|
|
41
|
+
import rxfoundry.clients.hd_api
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Tests
|
|
45
|
+
|
|
46
|
+
Execute `pytest` to run the tests.
|
|
47
|
+
|
|
48
|
+
## Getting Started
|
|
49
|
+
|
|
50
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
|
|
54
|
+
import rxfoundry.clients.hd_api
|
|
55
|
+
from rxfoundry.clients.hd_api.rest import ApiException
|
|
56
|
+
from pprint import pprint
|
|
57
|
+
|
|
58
|
+
# Defining the host is optional and defaults to http://localhost/hd-api
|
|
59
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
60
|
+
configuration = rxfoundry.clients.hd_api.Configuration(
|
|
61
|
+
host = "http://localhost/hd-api"
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# The client must configure the authentication and authorization parameters
|
|
65
|
+
# in accordance with the API server security policy.
|
|
66
|
+
# Examples for each auth method are provided below, use the example that
|
|
67
|
+
# satisfies your auth use case.
|
|
68
|
+
|
|
69
|
+
# Configure API key authorization: ApiKeyAuth
|
|
70
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
|
71
|
+
|
|
72
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
73
|
+
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
# Enter a context with an instance of the API client
|
|
77
|
+
with rxfoundry.clients.hd_api.ApiClient(configuration) as api_client:
|
|
78
|
+
# Create an instance of the API class
|
|
79
|
+
api_instance = rxfoundry.clients.hd_api.FillApi(api_client)
|
|
80
|
+
fill_request = rxfoundry.clients.hd_api.FillRequest() # FillRequest | FillRequest object that needs to be added
|
|
81
|
+
|
|
82
|
+
try:
|
|
83
|
+
# Create a fill request
|
|
84
|
+
api_response = api_instance.create_fill_request(fill_request)
|
|
85
|
+
print("The response of FillApi->create_fill_request:\n")
|
|
86
|
+
pprint(api_response)
|
|
87
|
+
except ApiException as e:
|
|
88
|
+
print("Exception when calling FillApi->create_fill_request: %s\n" % e)
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Documentation for API Endpoints
|
|
93
|
+
|
|
94
|
+
All URIs are relative to *http://localhost/hd-api*
|
|
95
|
+
|
|
96
|
+
Class | Method | HTTP request | Description
|
|
97
|
+
------------ | ------------- | ------------- | -------------
|
|
98
|
+
*FillApi* | [**create_fill_request**](docs/FillApi.md#create_fill_request) | **POST** /v2/fill | Create a fill request
|
|
99
|
+
*MailboxApi* | [**get_mailbox**](docs/MailboxApi.md#get_mailbox) | **GET** /v2/mailbox | Get a mailbox
|
|
100
|
+
*MailboxApi* | [**update_mailbox**](docs/MailboxApi.md#update_mailbox) | **POST** /v2/mailbox | Mark events as received
|
|
101
|
+
*PatientApi* | [**create_patient**](docs/PatientApi.md#create_patient) | **POST** /v2/patient | Create a patient
|
|
102
|
+
*PatientApi* | [**update_patient**](docs/PatientApi.md#update_patient) | **PUT** /v2/patient | Update a patient
|
|
103
|
+
*ScriptApi* | [**rx_create**](docs/ScriptApi.md#rx_create) | **POST** /v2/script | Rx Create
|
|
104
|
+
*ScriptApi* | [**rx_update**](docs/ScriptApi.md#rx_update) | **PUT** /v2/script | Rx Update of Previously Forwarded Rx
|
|
105
|
+
*UATApi* | [**update_order_item**](docs/UATApi.md#update_order_item) | **POST** /api/affiliate/UpdateOrderItem | Update the order item on an existing order
|
|
106
|
+
*UATApi* | [**update_order_status**](docs/UATApi.md#update_order_status) | **POST** /api/affiliant/UpdateOrderStatus/{AffiliateOrderNumber}/{OrderStatus} | Update an order status
|
|
107
|
+
*VersionApi* | [**get_version**](docs/VersionApi.md#get_version) | **GET** /version | Get the api version
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## Documentation For Models
|
|
111
|
+
|
|
112
|
+
- [Address](docs/Address.md)
|
|
113
|
+
- [Contact](docs/Contact.md)
|
|
114
|
+
- [ContactInfo](docs/ContactInfo.md)
|
|
115
|
+
- [CreateFillRequest200Response](docs/CreateFillRequest200Response.md)
|
|
116
|
+
- [CreateFillRequest401Response](docs/CreateFillRequest401Response.md)
|
|
117
|
+
- [ExternalMedication](docs/ExternalMedication.md)
|
|
118
|
+
- [FillRequest](docs/FillRequest.md)
|
|
119
|
+
- [GetMailbox200Response](docs/GetMailbox200Response.md)
|
|
120
|
+
- [OrderItemLevelInformation](docs/OrderItemLevelInformation.md)
|
|
121
|
+
- [Patient](docs/Patient.md)
|
|
122
|
+
- [PatientAddress](docs/PatientAddress.md)
|
|
123
|
+
- [Pharmacist](docs/Pharmacist.md)
|
|
124
|
+
- [Pharmacy](docs/Pharmacy.md)
|
|
125
|
+
- [Prescriber](docs/Prescriber.md)
|
|
126
|
+
- [Prescription](docs/Prescription.md)
|
|
127
|
+
- [PrescriptionUpdate](docs/PrescriptionUpdate.md)
|
|
128
|
+
- [ScriptCreateRequest](docs/ScriptCreateRequest.md)
|
|
129
|
+
- [ScriptUpdateRequest](docs/ScriptUpdateRequest.md)
|
|
130
|
+
- [Shipping](docs/Shipping.md)
|
|
131
|
+
- [ShippingAddress](docs/ShippingAddress.md)
|
|
132
|
+
- [StatusEvent](docs/StatusEvent.md)
|
|
133
|
+
- [UpdateMailbox200Response](docs/UpdateMailbox200Response.md)
|
|
134
|
+
- [UpdatePatient200Response](docs/UpdatePatient200Response.md)
|
|
135
|
+
- [UpdatePatientRequest](docs/UpdatePatientRequest.md)
|
|
136
|
+
- [Version](docs/Version.md)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<a id="documentation-for-authorization"></a>
|
|
140
|
+
## Documentation For Authorization
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
Authentication schemes defined for the API:
|
|
144
|
+
<a id="ApiKeyAuth"></a>
|
|
145
|
+
### ApiKeyAuth
|
|
146
|
+
|
|
147
|
+
- **Type**: API key
|
|
148
|
+
- **API key parameter name**: HealthDyne-Subscription-Key
|
|
149
|
+
- **Location**: HTTP header
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
## Author
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
[tool.poetry]
|
|
2
|
+
name = "rxfoundry.clients.hd_api"
|
|
3
|
+
version = "1.19.1.5985"
|
|
4
|
+
description = "Healthdyne API"
|
|
5
|
+
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
|
|
6
|
+
license = "NoLicense"
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
9
|
+
keywords = ["OpenAPI", "OpenAPI-Generator", "Healthdyne API"]
|
|
10
|
+
include = ["rxfoundry.clients.hd_api/py.typed"]
|
|
11
|
+
|
|
12
|
+
[tool.poetry.dependencies]
|
|
13
|
+
python = "^3.9"
|
|
14
|
+
|
|
15
|
+
urllib3 = ">= 2.1.0, < 3.0.0"
|
|
16
|
+
python-dateutil = ">= 2.8.2"
|
|
17
|
+
pydantic = ">= 2"
|
|
18
|
+
typing-extensions = ">= 4.7.1"
|
|
19
|
+
|
|
20
|
+
[tool.poetry.dev-dependencies]
|
|
21
|
+
pytest = ">= 7.2.1"
|
|
22
|
+
pytest-cov = ">= 2.8.1"
|
|
23
|
+
tox = ">= 3.9.0"
|
|
24
|
+
flake8 = ">= 4.0.0"
|
|
25
|
+
types-python-dateutil = ">= 2.8.19.14"
|
|
26
|
+
mypy = ">= 1.5"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
[build-system]
|
|
30
|
+
requires = ["setuptools"]
|
|
31
|
+
build-backend = "setuptools.build_meta"
|
|
32
|
+
|
|
33
|
+
[tool.pylint.'MESSAGES CONTROL']
|
|
34
|
+
extension-pkg-whitelist = "pydantic"
|
|
35
|
+
|
|
36
|
+
[tool.mypy]
|
|
37
|
+
files = [
|
|
38
|
+
"rxfoundry.clients.hd_api",
|
|
39
|
+
#"test", # auto-generated tests
|
|
40
|
+
"tests", # hand-written tests
|
|
41
|
+
]
|
|
42
|
+
# TODO: enable "strict" once all these individual checks are passing
|
|
43
|
+
# strict = true
|
|
44
|
+
|
|
45
|
+
# List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
|
|
46
|
+
warn_unused_configs = true
|
|
47
|
+
warn_redundant_casts = true
|
|
48
|
+
warn_unused_ignores = true
|
|
49
|
+
|
|
50
|
+
## Getting these passing should be easy
|
|
51
|
+
strict_equality = true
|
|
52
|
+
extra_checks = true
|
|
53
|
+
|
|
54
|
+
## Strongly recommend enabling this one as soon as you can
|
|
55
|
+
check_untyped_defs = true
|
|
56
|
+
|
|
57
|
+
## These shouldn't be too much additional work, but may be tricky to
|
|
58
|
+
## get passing if you use a lot of untyped libraries
|
|
59
|
+
disallow_subclassing_any = true
|
|
60
|
+
disallow_untyped_decorators = true
|
|
61
|
+
disallow_any_generics = true
|
|
62
|
+
|
|
63
|
+
### These next few are various gradations of forcing use of type annotations
|
|
64
|
+
#disallow_untyped_calls = true
|
|
65
|
+
#disallow_incomplete_defs = true
|
|
66
|
+
#disallow_untyped_defs = true
|
|
67
|
+
#
|
|
68
|
+
### This one isn't too hard to get passing, but return on investment is lower
|
|
69
|
+
#no_implicit_reexport = true
|
|
70
|
+
#
|
|
71
|
+
### This one can be tricky to get passing if you use a lot of untyped libraries
|
|
72
|
+
#warn_return_any = true
|
|
73
|
+
|
|
74
|
+
[[tool.mypy.overrides]]
|
|
75
|
+
module = [
|
|
76
|
+
"rxfoundry.clients.hd_api.configuration",
|
|
77
|
+
]
|
|
78
|
+
warn_unused_ignores = true
|
|
79
|
+
strict_equality = true
|
|
80
|
+
extra_checks = true
|
|
81
|
+
check_untyped_defs = true
|
|
82
|
+
disallow_subclassing_any = true
|
|
83
|
+
disallow_untyped_decorators = true
|
|
84
|
+
disallow_any_generics = true
|
|
85
|
+
disallow_untyped_calls = true
|
|
86
|
+
disallow_incomplete_defs = true
|
|
87
|
+
disallow_untyped_defs = true
|
|
88
|
+
no_implicit_reexport = true
|
|
89
|
+
warn_return_any = true
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Healthdyne API
|
|
7
|
+
|
|
8
|
+
PharmacyGateway Service
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 1.19.1.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.hd_api.api.fill_api import FillApi
|
|
21
|
+
from rxfoundry.clients.hd_api.api.mailbox_api import MailboxApi
|
|
22
|
+
from rxfoundry.clients.hd_api.api.patient_api import PatientApi
|
|
23
|
+
from rxfoundry.clients.hd_api.api.script_api import ScriptApi
|
|
24
|
+
from rxfoundry.clients.hd_api.api.uat_api import UATApi
|
|
25
|
+
from rxfoundry.clients.hd_api.api.version_api import VersionApi
|
|
26
|
+
|
|
27
|
+
# import ApiClient
|
|
28
|
+
from rxfoundry.clients.hd_api.api_response import ApiResponse
|
|
29
|
+
from rxfoundry.clients.hd_api.api_client import ApiClient
|
|
30
|
+
from rxfoundry.clients.hd_api.configuration import Configuration
|
|
31
|
+
from rxfoundry.clients.hd_api.exceptions import OpenApiException
|
|
32
|
+
from rxfoundry.clients.hd_api.exceptions import ApiTypeError
|
|
33
|
+
from rxfoundry.clients.hd_api.exceptions import ApiValueError
|
|
34
|
+
from rxfoundry.clients.hd_api.exceptions import ApiKeyError
|
|
35
|
+
from rxfoundry.clients.hd_api.exceptions import ApiAttributeError
|
|
36
|
+
from rxfoundry.clients.hd_api.exceptions import ApiException
|
|
37
|
+
|
|
38
|
+
# import models into sdk package
|
|
39
|
+
from rxfoundry.clients.hd_api.models.address import Address
|
|
40
|
+
from rxfoundry.clients.hd_api.models.contact import Contact
|
|
41
|
+
from rxfoundry.clients.hd_api.models.contact_info import ContactInfo
|
|
42
|
+
from rxfoundry.clients.hd_api.models.create_fill_request200_response import CreateFillRequest200Response
|
|
43
|
+
from rxfoundry.clients.hd_api.models.create_fill_request401_response import CreateFillRequest401Response
|
|
44
|
+
from rxfoundry.clients.hd_api.models.external_medication import ExternalMedication
|
|
45
|
+
from rxfoundry.clients.hd_api.models.fill_request import FillRequest
|
|
46
|
+
from rxfoundry.clients.hd_api.models.get_mailbox200_response import GetMailbox200Response
|
|
47
|
+
from rxfoundry.clients.hd_api.models.order_item_level_information import OrderItemLevelInformation
|
|
48
|
+
from rxfoundry.clients.hd_api.models.patient import Patient
|
|
49
|
+
from rxfoundry.clients.hd_api.models.patient_address import PatientAddress
|
|
50
|
+
from rxfoundry.clients.hd_api.models.pharmacist import Pharmacist
|
|
51
|
+
from rxfoundry.clients.hd_api.models.pharmacy import Pharmacy
|
|
52
|
+
from rxfoundry.clients.hd_api.models.prescriber import Prescriber
|
|
53
|
+
from rxfoundry.clients.hd_api.models.prescription import Prescription
|
|
54
|
+
from rxfoundry.clients.hd_api.models.prescription_update import PrescriptionUpdate
|
|
55
|
+
from rxfoundry.clients.hd_api.models.script_create_request import ScriptCreateRequest
|
|
56
|
+
from rxfoundry.clients.hd_api.models.script_update_request import ScriptUpdateRequest
|
|
57
|
+
from rxfoundry.clients.hd_api.models.shipping import Shipping
|
|
58
|
+
from rxfoundry.clients.hd_api.models.shipping_address import ShippingAddress
|
|
59
|
+
from rxfoundry.clients.hd_api.models.status_event import StatusEvent
|
|
60
|
+
from rxfoundry.clients.hd_api.models.update_mailbox200_response import UpdateMailbox200Response
|
|
61
|
+
from rxfoundry.clients.hd_api.models.update_patient200_response import UpdatePatient200Response
|
|
62
|
+
from rxfoundry.clients.hd_api.models.update_patient_request import UpdatePatientRequest
|
|
63
|
+
from rxfoundry.clients.hd_api.models.version import Version
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from rxfoundry.clients.hd_api.api.fill_api import FillApi
|
|
5
|
+
from rxfoundry.clients.hd_api.api.mailbox_api import MailboxApi
|
|
6
|
+
from rxfoundry.clients.hd_api.api.patient_api import PatientApi
|
|
7
|
+
from rxfoundry.clients.hd_api.api.script_api import ScriptApi
|
|
8
|
+
from rxfoundry.clients.hd_api.api.uat_api import UATApi
|
|
9
|
+
from rxfoundry.clients.hd_api.api.version_api import VersionApi
|
|
10
|
+
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Healthdyne API
|
|
5
|
+
|
|
6
|
+
PharmacyGateway Service
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.19.1.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
|
|
20
|
+
from typing_extensions import Annotated
|
|
21
|
+
from rxfoundry.clients.hd_api.models.create_fill_request200_response import CreateFillRequest200Response
|
|
22
|
+
from rxfoundry.clients.hd_api.models.fill_request import FillRequest
|
|
23
|
+
|
|
24
|
+
from rxfoundry.clients.hd_api.api_client import ApiClient, RequestSerialized
|
|
25
|
+
from rxfoundry.clients.hd_api.api_response import ApiResponse
|
|
26
|
+
from rxfoundry.clients.hd_api.rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class FillApi:
|
|
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 create_fill_request(
|
|
44
|
+
self,
|
|
45
|
+
fill_request: Annotated[FillRequest, Field(description="FillRequest object that needs to be added")],
|
|
46
|
+
_request_timeout: Union[
|
|
47
|
+
None,
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Tuple[
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
52
|
+
]
|
|
53
|
+
] = None,
|
|
54
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_content_type: Optional[StrictStr] = None,
|
|
56
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
58
|
+
) -> CreateFillRequest200Response:
|
|
59
|
+
"""Create a fill request
|
|
60
|
+
|
|
61
|
+
Create a fill request
|
|
62
|
+
|
|
63
|
+
:param fill_request: FillRequest object that needs to be added (required)
|
|
64
|
+
:type fill_request: FillRequest
|
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
66
|
+
number provided, it will be total request
|
|
67
|
+
timeout. It can also be a pair (tuple) of
|
|
68
|
+
(connection, read) timeouts.
|
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
71
|
+
request; this effectively ignores the
|
|
72
|
+
authentication in the spec for a single request.
|
|
73
|
+
:type _request_auth: dict, optional
|
|
74
|
+
:param _content_type: force content-type for the request.
|
|
75
|
+
:type _content_type: str, Optional
|
|
76
|
+
:param _headers: set to override the headers for a single
|
|
77
|
+
request; this effectively ignores the headers
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _headers: dict, optional
|
|
80
|
+
:param _host_index: set to override the host_index for a single
|
|
81
|
+
request; this effectively ignores the host_index
|
|
82
|
+
in the spec for a single request.
|
|
83
|
+
:type _host_index: int, optional
|
|
84
|
+
:return: Returns the result object.
|
|
85
|
+
""" # noqa: E501
|
|
86
|
+
|
|
87
|
+
_param = self._create_fill_request_serialize(
|
|
88
|
+
fill_request=fill_request,
|
|
89
|
+
_request_auth=_request_auth,
|
|
90
|
+
_content_type=_content_type,
|
|
91
|
+
_headers=_headers,
|
|
92
|
+
_host_index=_host_index
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
96
|
+
'200': "CreateFillRequest200Response",
|
|
97
|
+
'401': "CreateFillRequest401Response",
|
|
98
|
+
'500': None,
|
|
99
|
+
}
|
|
100
|
+
response_data = self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
104
|
+
response_data.read()
|
|
105
|
+
return self.api_client.response_deserialize(
|
|
106
|
+
response_data=response_data,
|
|
107
|
+
response_types_map=_response_types_map,
|
|
108
|
+
).data
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@validate_call
|
|
112
|
+
def create_fill_request_with_http_info(
|
|
113
|
+
self,
|
|
114
|
+
fill_request: Annotated[FillRequest, Field(description="FillRequest object that needs to be added")],
|
|
115
|
+
_request_timeout: Union[
|
|
116
|
+
None,
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Tuple[
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
121
|
+
]
|
|
122
|
+
] = None,
|
|
123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_content_type: Optional[StrictStr] = None,
|
|
125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
+
) -> ApiResponse[CreateFillRequest200Response]:
|
|
128
|
+
"""Create a fill request
|
|
129
|
+
|
|
130
|
+
Create a fill request
|
|
131
|
+
|
|
132
|
+
:param fill_request: FillRequest object that needs to be added (required)
|
|
133
|
+
:type fill_request: FillRequest
|
|
134
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
135
|
+
number provided, it will be total request
|
|
136
|
+
timeout. It can also be a pair (tuple) of
|
|
137
|
+
(connection, read) timeouts.
|
|
138
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
139
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
140
|
+
request; this effectively ignores the
|
|
141
|
+
authentication in the spec for a single request.
|
|
142
|
+
:type _request_auth: dict, optional
|
|
143
|
+
:param _content_type: force content-type for the request.
|
|
144
|
+
:type _content_type: str, Optional
|
|
145
|
+
:param _headers: set to override the headers for a single
|
|
146
|
+
request; this effectively ignores the headers
|
|
147
|
+
in the spec for a single request.
|
|
148
|
+
:type _headers: dict, optional
|
|
149
|
+
:param _host_index: set to override the host_index for a single
|
|
150
|
+
request; this effectively ignores the host_index
|
|
151
|
+
in the spec for a single request.
|
|
152
|
+
:type _host_index: int, optional
|
|
153
|
+
:return: Returns the result object.
|
|
154
|
+
""" # noqa: E501
|
|
155
|
+
|
|
156
|
+
_param = self._create_fill_request_serialize(
|
|
157
|
+
fill_request=fill_request,
|
|
158
|
+
_request_auth=_request_auth,
|
|
159
|
+
_content_type=_content_type,
|
|
160
|
+
_headers=_headers,
|
|
161
|
+
_host_index=_host_index
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
165
|
+
'200': "CreateFillRequest200Response",
|
|
166
|
+
'401': "CreateFillRequest401Response",
|
|
167
|
+
'500': None,
|
|
168
|
+
}
|
|
169
|
+
response_data = self.api_client.call_api(
|
|
170
|
+
*_param,
|
|
171
|
+
_request_timeout=_request_timeout
|
|
172
|
+
)
|
|
173
|
+
response_data.read()
|
|
174
|
+
return self.api_client.response_deserialize(
|
|
175
|
+
response_data=response_data,
|
|
176
|
+
response_types_map=_response_types_map,
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
@validate_call
|
|
181
|
+
def create_fill_request_without_preload_content(
|
|
182
|
+
self,
|
|
183
|
+
fill_request: Annotated[FillRequest, Field(description="FillRequest object that needs to be added")],
|
|
184
|
+
_request_timeout: Union[
|
|
185
|
+
None,
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
187
|
+
Tuple[
|
|
188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
189
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
190
|
+
]
|
|
191
|
+
] = None,
|
|
192
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
193
|
+
_content_type: Optional[StrictStr] = None,
|
|
194
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
195
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
196
|
+
) -> RESTResponseType:
|
|
197
|
+
"""Create a fill request
|
|
198
|
+
|
|
199
|
+
Create a fill request
|
|
200
|
+
|
|
201
|
+
:param fill_request: FillRequest object that needs to be added (required)
|
|
202
|
+
:type fill_request: FillRequest
|
|
203
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
204
|
+
number provided, it will be total request
|
|
205
|
+
timeout. It can also be a pair (tuple) of
|
|
206
|
+
(connection, read) timeouts.
|
|
207
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
208
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
209
|
+
request; this effectively ignores the
|
|
210
|
+
authentication in the spec for a single request.
|
|
211
|
+
:type _request_auth: dict, optional
|
|
212
|
+
:param _content_type: force content-type for the request.
|
|
213
|
+
:type _content_type: str, Optional
|
|
214
|
+
:param _headers: set to override the headers for a single
|
|
215
|
+
request; this effectively ignores the headers
|
|
216
|
+
in the spec for a single request.
|
|
217
|
+
:type _headers: dict, optional
|
|
218
|
+
:param _host_index: set to override the host_index for a single
|
|
219
|
+
request; this effectively ignores the host_index
|
|
220
|
+
in the spec for a single request.
|
|
221
|
+
:type _host_index: int, optional
|
|
222
|
+
:return: Returns the result object.
|
|
223
|
+
""" # noqa: E501
|
|
224
|
+
|
|
225
|
+
_param = self._create_fill_request_serialize(
|
|
226
|
+
fill_request=fill_request,
|
|
227
|
+
_request_auth=_request_auth,
|
|
228
|
+
_content_type=_content_type,
|
|
229
|
+
_headers=_headers,
|
|
230
|
+
_host_index=_host_index
|
|
231
|
+
)
|
|
232
|
+
|
|
233
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
234
|
+
'200': "CreateFillRequest200Response",
|
|
235
|
+
'401': "CreateFillRequest401Response",
|
|
236
|
+
'500': None,
|
|
237
|
+
}
|
|
238
|
+
response_data = self.api_client.call_api(
|
|
239
|
+
*_param,
|
|
240
|
+
_request_timeout=_request_timeout
|
|
241
|
+
)
|
|
242
|
+
return response_data.response
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def _create_fill_request_serialize(
|
|
246
|
+
self,
|
|
247
|
+
fill_request,
|
|
248
|
+
_request_auth,
|
|
249
|
+
_content_type,
|
|
250
|
+
_headers,
|
|
251
|
+
_host_index,
|
|
252
|
+
) -> RequestSerialized:
|
|
253
|
+
|
|
254
|
+
_host = None
|
|
255
|
+
|
|
256
|
+
_collection_formats: Dict[str, str] = {
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
_path_params: Dict[str, str] = {}
|
|
260
|
+
_query_params: List[Tuple[str, str]] = []
|
|
261
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
262
|
+
_form_params: List[Tuple[str, str]] = []
|
|
263
|
+
_files: Dict[
|
|
264
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
265
|
+
] = {}
|
|
266
|
+
_body_params: Optional[bytes] = None
|
|
267
|
+
|
|
268
|
+
# process the path parameters
|
|
269
|
+
# process the query parameters
|
|
270
|
+
# process the header parameters
|
|
271
|
+
# process the form parameters
|
|
272
|
+
# process the body parameter
|
|
273
|
+
if fill_request is not None:
|
|
274
|
+
_body_params = fill_request
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
# set the HTTP header `Accept`
|
|
278
|
+
if 'Accept' not in _header_params:
|
|
279
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
280
|
+
[
|
|
281
|
+
'application/json'
|
|
282
|
+
]
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
# set the HTTP header `Content-Type`
|
|
286
|
+
if _content_type:
|
|
287
|
+
_header_params['Content-Type'] = _content_type
|
|
288
|
+
else:
|
|
289
|
+
_default_content_type = (
|
|
290
|
+
self.api_client.select_header_content_type(
|
|
291
|
+
[
|
|
292
|
+
'application/json'
|
|
293
|
+
]
|
|
294
|
+
)
|
|
295
|
+
)
|
|
296
|
+
if _default_content_type is not None:
|
|
297
|
+
_header_params['Content-Type'] = _default_content_type
|
|
298
|
+
|
|
299
|
+
# authentication setting
|
|
300
|
+
_auth_settings: List[str] = [
|
|
301
|
+
'ApiKeyAuth'
|
|
302
|
+
]
|
|
303
|
+
|
|
304
|
+
return self.api_client.param_serialize(
|
|
305
|
+
method='POST',
|
|
306
|
+
resource_path='/v2/fill',
|
|
307
|
+
path_params=_path_params,
|
|
308
|
+
query_params=_query_params,
|
|
309
|
+
header_params=_header_params,
|
|
310
|
+
body=_body_params,
|
|
311
|
+
post_params=_form_params,
|
|
312
|
+
files=_files,
|
|
313
|
+
auth_settings=_auth_settings,
|
|
314
|
+
collection_formats=_collection_formats,
|
|
315
|
+
_host=_host,
|
|
316
|
+
_request_auth=_request_auth
|
|
317
|
+
)
|
|
318
|
+
|
|
319
|
+
|