bluehive 0.1.0a11__tar.gz → 0.1.0a12__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.
- bluehive-0.1.0a12/.release-please-manifest.json +3 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/CHANGELOG.md +9 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/PKG-INFO +10 -3
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/README.md +9 -2
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/api.md +2 -1
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/pyproject.toml +1 -1
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_version.py +1 -1
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/employees.py +16 -22
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/hl7.py +136 -2
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/__init__.py +2 -0
- bluehive-0.1.0a12/src/bluehive/types/hl7_process_params.py +27 -0
- bluehive-0.1.0a12/src/bluehive/types/hl7_process_response.py +7 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/test_hl7.py +82 -0
- bluehive-0.1.0a11/.release-please-manifest.json +0 -3
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/.gitignore +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/CONTRIBUTING.md +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/LICENSE +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/SECURITY.md +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/bin/check-release-environment +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/bin/publish-pypi +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/examples/.keep +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/noxfile.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/release-please-config.json +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/requirements-dev.lock +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/requirements.lock +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/__init__.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_base_client.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_client.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_compat.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_constants.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_exceptions.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_files.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_models.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_qs.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_resource.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_streaming.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_types.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_utils/__init__.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_utils/_compat.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_utils/_datetime_parse.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_utils/_logs.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_utils/_proxy.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_utils/_reflection.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_utils/_resources_proxy.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_utils/_streams.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_utils/_sync.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_utils/_transform.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_utils/_typing.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/_utils/_utils.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/lib/.keep +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/py.typed +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/__init__.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/database.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/employers/__init__.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/employers/employers.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/employers/service_bundles.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/fax.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/health.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/integrations.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/orders.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/providers.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/resources/version.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/database_check_health_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employee_create_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employee_create_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employee_delete_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employee_link_user_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employee_link_user_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employee_list_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employee_list_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employee_retrieve_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employee_unlink_user_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employee_unlink_user_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employee_update_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employee_update_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employer_create_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employer_create_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employer_list_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employer_retrieve_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employers/__init__.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employers/service_bundle_create_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employers/service_bundle_create_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employers/service_bundle_list_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employers/service_bundle_retrieve_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employers/service_bundle_update_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employers/service_bundle_update_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/fax_list_providers_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/fax_retrieve_status_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/fax_send_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/fax_send_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/health_check_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/hl7_send_results_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/hl7_send_results_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/integration_check_active_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/integration_list_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_create_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_create_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_retrieve_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_retrieve_results_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_retrieve_results_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_schedule_appointment_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_schedule_appointment_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_send_for_employee_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_send_for_employee_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_update_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_update_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_update_status_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_update_status_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_upload_results_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_upload_results_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/provider_lookup_params.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/provider_lookup_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/version_retrieve_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/__init__.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/__init__.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/employers/__init__.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/employers/test_service_bundles.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/test_database.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/test_employees.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/test_employers.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/test_fax.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/test_health.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/test_integrations.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/test_orders.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/test_providers.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/test_version.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/conftest.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/sample_file.txt +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_client.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_deepcopy.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_extract_files.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_files.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_models.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_qs.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_required_args.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_response.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_streaming.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_transform.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_utils/test_datetime_parse.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_utils/test_proxy.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/test_utils/test_typing.py +0 -0
- {bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/utils.py +0 -0
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.12 (2025-10-05)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.11...v0.1.0-alpha.12](https://github.com/bluehive-health/bluehive-sdk-python/compare/v0.1.0-alpha.11...v0.1.0-alpha.12)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([b98edba](https://github.com/bluehive-health/bluehive-sdk-python/commit/b98edba433e0915cd42f46f3f83f33571c2505d2))
|
|
10
|
+
* **api:** manual updates ([7787d54](https://github.com/bluehive-health/bluehive-sdk-python/commit/7787d543eb92154ba2365397dfb0d9bf64e13050))
|
|
11
|
+
|
|
3
12
|
## 0.1.0-alpha.11 (2025-10-05)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v0.1.0-alpha.10...v0.1.0-alpha.11](https://github.com/bluehive-health/bluehive-sdk-python/compare/v0.1.0-alpha.10...v0.1.0-alpha.11)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: bluehive
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a12
|
|
4
4
|
Summary: The official Python library for the bluehive API
|
|
5
5
|
Project-URL: Homepage, https://github.com/bluehive-health/bluehive-sdk-python
|
|
6
6
|
Project-URL: Repository, https://github.com/bluehive-health/bluehive-sdk-python
|
|
@@ -60,9 +60,12 @@ pip install --pre bluehive
|
|
|
60
60
|
The full API of this library can be found in [api.md](https://github.com/bluehive-health/bluehive-sdk-python/tree/main/api.md).
|
|
61
61
|
|
|
62
62
|
```python
|
|
63
|
+
import os
|
|
63
64
|
from bluehive import BlueHive
|
|
64
65
|
|
|
65
|
-
client = BlueHive(
|
|
66
|
+
client = BlueHive(
|
|
67
|
+
api_key=os.environ.get("BLUEHIVE_API_KEY"), # This is the default and can be omitted
|
|
68
|
+
)
|
|
66
69
|
|
|
67
70
|
response = client.health.check()
|
|
68
71
|
print(response.status)
|
|
@@ -78,10 +81,13 @@ so that your API Key is not stored in source control.
|
|
|
78
81
|
Simply import `AsyncBlueHive` instead of `BlueHive` and use `await` with each API call:
|
|
79
82
|
|
|
80
83
|
```python
|
|
84
|
+
import os
|
|
81
85
|
import asyncio
|
|
82
86
|
from bluehive import AsyncBlueHive
|
|
83
87
|
|
|
84
|
-
client = AsyncBlueHive(
|
|
88
|
+
client = AsyncBlueHive(
|
|
89
|
+
api_key=os.environ.get("BLUEHIVE_API_KEY"), # This is the default and can be omitted
|
|
90
|
+
)
|
|
85
91
|
|
|
86
92
|
|
|
87
93
|
async def main() -> None:
|
|
@@ -115,6 +121,7 @@ from bluehive import AsyncBlueHive
|
|
|
115
121
|
|
|
116
122
|
async def main() -> None:
|
|
117
123
|
async with AsyncBlueHive(
|
|
124
|
+
api_key="My API Key",
|
|
118
125
|
http_client=DefaultAioHttpClient(),
|
|
119
126
|
) as client:
|
|
120
127
|
response = await client.health.check()
|
|
@@ -25,9 +25,12 @@ pip install --pre bluehive
|
|
|
25
25
|
The full API of this library can be found in [api.md](api.md).
|
|
26
26
|
|
|
27
27
|
```python
|
|
28
|
+
import os
|
|
28
29
|
from bluehive import BlueHive
|
|
29
30
|
|
|
30
|
-
client = BlueHive(
|
|
31
|
+
client = BlueHive(
|
|
32
|
+
api_key=os.environ.get("BLUEHIVE_API_KEY"), # This is the default and can be omitted
|
|
33
|
+
)
|
|
31
34
|
|
|
32
35
|
response = client.health.check()
|
|
33
36
|
print(response.status)
|
|
@@ -43,10 +46,13 @@ so that your API Key is not stored in source control.
|
|
|
43
46
|
Simply import `AsyncBlueHive` instead of `BlueHive` and use `await` with each API call:
|
|
44
47
|
|
|
45
48
|
```python
|
|
49
|
+
import os
|
|
46
50
|
import asyncio
|
|
47
51
|
from bluehive import AsyncBlueHive
|
|
48
52
|
|
|
49
|
-
client = AsyncBlueHive(
|
|
53
|
+
client = AsyncBlueHive(
|
|
54
|
+
api_key=os.environ.get("BLUEHIVE_API_KEY"), # This is the default and can be omitted
|
|
55
|
+
)
|
|
50
56
|
|
|
51
57
|
|
|
52
58
|
async def main() -> None:
|
|
@@ -80,6 +86,7 @@ from bluehive import AsyncBlueHive
|
|
|
80
86
|
|
|
81
87
|
async def main() -> None:
|
|
82
88
|
async with AsyncBlueHive(
|
|
89
|
+
api_key="My API Key",
|
|
83
90
|
http_client=DefaultAioHttpClient(),
|
|
84
91
|
) as client:
|
|
85
92
|
response = await client.health.check()
|
|
@@ -100,11 +100,12 @@ Methods:
|
|
|
100
100
|
Types:
|
|
101
101
|
|
|
102
102
|
```python
|
|
103
|
-
from bluehive.types import Hl7SendResultsResponse
|
|
103
|
+
from bluehive.types import Hl7ProcessResponse, Hl7SendResultsResponse
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
Methods:
|
|
107
107
|
|
|
108
|
+
- <code title="post /v1/hl7/">client.hl7.<a href="./src/bluehive/resources/hl7.py">process</a>(\*\*<a href="src/bluehive/types/hl7_process_params.py">params</a>) -> str</code>
|
|
108
109
|
- <code title="post /v1/hl7/results">client.hl7.<a href="./src/bluehive/resources/hl7.py">send_results</a>(\*\*<a href="src/bluehive/types/hl7_send_results_params.py">params</a>) -> str</code>
|
|
109
110
|
|
|
110
111
|
# Orders
|
|
@@ -365,18 +365,15 @@ class EmployeesResource(SyncAPIResource):
|
|
|
365
365
|
"""
|
|
366
366
|
return self._delete(
|
|
367
367
|
"/v1/employees/unlink-user",
|
|
368
|
+
body=maybe_transform(
|
|
369
|
+
{
|
|
370
|
+
"employee_id": employee_id,
|
|
371
|
+
"user_id": user_id,
|
|
372
|
+
},
|
|
373
|
+
employee_unlink_user_params.EmployeeUnlinkUserParams,
|
|
374
|
+
),
|
|
368
375
|
options=make_request_options(
|
|
369
|
-
extra_headers=extra_headers,
|
|
370
|
-
extra_query=extra_query,
|
|
371
|
-
extra_body=extra_body,
|
|
372
|
-
timeout=timeout,
|
|
373
|
-
query=maybe_transform(
|
|
374
|
-
{
|
|
375
|
-
"employee_id": employee_id,
|
|
376
|
-
"user_id": user_id,
|
|
377
|
-
},
|
|
378
|
-
employee_unlink_user_params.EmployeeUnlinkUserParams,
|
|
379
|
-
),
|
|
376
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
380
377
|
),
|
|
381
378
|
cast_to=EmployeeUnlinkUserResponse,
|
|
382
379
|
)
|
|
@@ -711,18 +708,15 @@ class AsyncEmployeesResource(AsyncAPIResource):
|
|
|
711
708
|
"""
|
|
712
709
|
return await self._delete(
|
|
713
710
|
"/v1/employees/unlink-user",
|
|
711
|
+
body=await async_maybe_transform(
|
|
712
|
+
{
|
|
713
|
+
"employee_id": employee_id,
|
|
714
|
+
"user_id": user_id,
|
|
715
|
+
},
|
|
716
|
+
employee_unlink_user_params.EmployeeUnlinkUserParams,
|
|
717
|
+
),
|
|
714
718
|
options=make_request_options(
|
|
715
|
-
extra_headers=extra_headers,
|
|
716
|
-
extra_query=extra_query,
|
|
717
|
-
extra_body=extra_body,
|
|
718
|
-
timeout=timeout,
|
|
719
|
-
query=await async_maybe_transform(
|
|
720
|
-
{
|
|
721
|
-
"employee_id": employee_id,
|
|
722
|
-
"user_id": user_id,
|
|
723
|
-
},
|
|
724
|
-
employee_unlink_user_params.EmployeeUnlinkUserParams,
|
|
725
|
-
),
|
|
719
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
726
720
|
),
|
|
727
721
|
cast_to=EmployeeUnlinkUserResponse,
|
|
728
722
|
)
|
|
@@ -4,8 +4,8 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from ..types import hl7_send_results_params
|
|
8
|
-
from .._types import Body, Query, Headers, NotGiven, not_given
|
|
7
|
+
from ..types import hl7_process_params, hl7_send_results_params
|
|
8
|
+
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
9
9
|
from .._utils import maybe_transform, async_maybe_transform
|
|
10
10
|
from .._compat import cached_property
|
|
11
11
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -40,6 +40,67 @@ class Hl7Resource(SyncAPIResource):
|
|
|
40
40
|
"""
|
|
41
41
|
return Hl7ResourceWithStreamingResponse(self)
|
|
42
42
|
|
|
43
|
+
def process(
|
|
44
|
+
self,
|
|
45
|
+
*,
|
|
46
|
+
f: str | Omit = omit,
|
|
47
|
+
interface: str | Omit = omit,
|
|
48
|
+
login_passwd: str | Omit = omit,
|
|
49
|
+
login_user: str | Omit = omit,
|
|
50
|
+
message: str | Omit = omit,
|
|
51
|
+
message_b64: str | Omit = omit,
|
|
52
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
53
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
54
|
+
extra_headers: Headers | None = None,
|
|
55
|
+
extra_query: Query | None = None,
|
|
56
|
+
extra_body: Body | None = None,
|
|
57
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
58
|
+
) -> str:
|
|
59
|
+
"""Process incoming HL7 messages from EHR systems.
|
|
60
|
+
|
|
61
|
+
Accepts JSON with "message"
|
|
62
|
+
field, raw text/plain HL7 content, or form-encoded data.
|
|
63
|
+
|
|
64
|
+
Args:
|
|
65
|
+
f: Form field (legacy support)
|
|
66
|
+
|
|
67
|
+
interface: Interface identifier (legacy support)
|
|
68
|
+
|
|
69
|
+
login_passwd: Login password (legacy support)
|
|
70
|
+
|
|
71
|
+
login_user: Login user (legacy support)
|
|
72
|
+
|
|
73
|
+
message: HL7 message content - the primary way to send HL7 data
|
|
74
|
+
|
|
75
|
+
message_b64: Base64 encoded HL7 message (legacy support)
|
|
76
|
+
|
|
77
|
+
extra_headers: Send extra headers
|
|
78
|
+
|
|
79
|
+
extra_query: Add additional query parameters to the request
|
|
80
|
+
|
|
81
|
+
extra_body: Add additional JSON properties to the request
|
|
82
|
+
|
|
83
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
84
|
+
"""
|
|
85
|
+
return self._post(
|
|
86
|
+
"/v1/hl7/",
|
|
87
|
+
body=maybe_transform(
|
|
88
|
+
{
|
|
89
|
+
"f": f,
|
|
90
|
+
"interface": interface,
|
|
91
|
+
"login_passwd": login_passwd,
|
|
92
|
+
"login_user": login_user,
|
|
93
|
+
"message": message,
|
|
94
|
+
"message_b64": message_b64,
|
|
95
|
+
},
|
|
96
|
+
hl7_process_params.Hl7ProcessParams,
|
|
97
|
+
),
|
|
98
|
+
options=make_request_options(
|
|
99
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
100
|
+
),
|
|
101
|
+
cast_to=str,
|
|
102
|
+
)
|
|
103
|
+
|
|
43
104
|
def send_results(
|
|
44
105
|
self,
|
|
45
106
|
*,
|
|
@@ -104,6 +165,67 @@ class AsyncHl7Resource(AsyncAPIResource):
|
|
|
104
165
|
"""
|
|
105
166
|
return AsyncHl7ResourceWithStreamingResponse(self)
|
|
106
167
|
|
|
168
|
+
async def process(
|
|
169
|
+
self,
|
|
170
|
+
*,
|
|
171
|
+
f: str | Omit = omit,
|
|
172
|
+
interface: str | Omit = omit,
|
|
173
|
+
login_passwd: str | Omit = omit,
|
|
174
|
+
login_user: str | Omit = omit,
|
|
175
|
+
message: str | Omit = omit,
|
|
176
|
+
message_b64: str | Omit = omit,
|
|
177
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
178
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
179
|
+
extra_headers: Headers | None = None,
|
|
180
|
+
extra_query: Query | None = None,
|
|
181
|
+
extra_body: Body | None = None,
|
|
182
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
183
|
+
) -> str:
|
|
184
|
+
"""Process incoming HL7 messages from EHR systems.
|
|
185
|
+
|
|
186
|
+
Accepts JSON with "message"
|
|
187
|
+
field, raw text/plain HL7 content, or form-encoded data.
|
|
188
|
+
|
|
189
|
+
Args:
|
|
190
|
+
f: Form field (legacy support)
|
|
191
|
+
|
|
192
|
+
interface: Interface identifier (legacy support)
|
|
193
|
+
|
|
194
|
+
login_passwd: Login password (legacy support)
|
|
195
|
+
|
|
196
|
+
login_user: Login user (legacy support)
|
|
197
|
+
|
|
198
|
+
message: HL7 message content - the primary way to send HL7 data
|
|
199
|
+
|
|
200
|
+
message_b64: Base64 encoded HL7 message (legacy support)
|
|
201
|
+
|
|
202
|
+
extra_headers: Send extra headers
|
|
203
|
+
|
|
204
|
+
extra_query: Add additional query parameters to the request
|
|
205
|
+
|
|
206
|
+
extra_body: Add additional JSON properties to the request
|
|
207
|
+
|
|
208
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
209
|
+
"""
|
|
210
|
+
return await self._post(
|
|
211
|
+
"/v1/hl7/",
|
|
212
|
+
body=await async_maybe_transform(
|
|
213
|
+
{
|
|
214
|
+
"f": f,
|
|
215
|
+
"interface": interface,
|
|
216
|
+
"login_passwd": login_passwd,
|
|
217
|
+
"login_user": login_user,
|
|
218
|
+
"message": message,
|
|
219
|
+
"message_b64": message_b64,
|
|
220
|
+
},
|
|
221
|
+
hl7_process_params.Hl7ProcessParams,
|
|
222
|
+
),
|
|
223
|
+
options=make_request_options(
|
|
224
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
225
|
+
),
|
|
226
|
+
cast_to=str,
|
|
227
|
+
)
|
|
228
|
+
|
|
107
229
|
async def send_results(
|
|
108
230
|
self,
|
|
109
231
|
*,
|
|
@@ -152,6 +274,9 @@ class Hl7ResourceWithRawResponse:
|
|
|
152
274
|
def __init__(self, hl7: Hl7Resource) -> None:
|
|
153
275
|
self._hl7 = hl7
|
|
154
276
|
|
|
277
|
+
self.process = to_raw_response_wrapper(
|
|
278
|
+
hl7.process,
|
|
279
|
+
)
|
|
155
280
|
self.send_results = to_raw_response_wrapper(
|
|
156
281
|
hl7.send_results,
|
|
157
282
|
)
|
|
@@ -161,6 +286,9 @@ class AsyncHl7ResourceWithRawResponse:
|
|
|
161
286
|
def __init__(self, hl7: AsyncHl7Resource) -> None:
|
|
162
287
|
self._hl7 = hl7
|
|
163
288
|
|
|
289
|
+
self.process = async_to_raw_response_wrapper(
|
|
290
|
+
hl7.process,
|
|
291
|
+
)
|
|
164
292
|
self.send_results = async_to_raw_response_wrapper(
|
|
165
293
|
hl7.send_results,
|
|
166
294
|
)
|
|
@@ -170,6 +298,9 @@ class Hl7ResourceWithStreamingResponse:
|
|
|
170
298
|
def __init__(self, hl7: Hl7Resource) -> None:
|
|
171
299
|
self._hl7 = hl7
|
|
172
300
|
|
|
301
|
+
self.process = to_streamed_response_wrapper(
|
|
302
|
+
hl7.process,
|
|
303
|
+
)
|
|
173
304
|
self.send_results = to_streamed_response_wrapper(
|
|
174
305
|
hl7.send_results,
|
|
175
306
|
)
|
|
@@ -179,6 +310,9 @@ class AsyncHl7ResourceWithStreamingResponse:
|
|
|
179
310
|
def __init__(self, hl7: AsyncHl7Resource) -> None:
|
|
180
311
|
self._hl7 = hl7
|
|
181
312
|
|
|
313
|
+
self.process = async_to_streamed_response_wrapper(
|
|
314
|
+
hl7.process,
|
|
315
|
+
)
|
|
182
316
|
self.send_results = async_to_streamed_response_wrapper(
|
|
183
317
|
hl7.send_results,
|
|
184
318
|
)
|
|
@@ -4,9 +4,11 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from .fax_send_params import FaxSendParams as FaxSendParams
|
|
6
6
|
from .fax_send_response import FaxSendResponse as FaxSendResponse
|
|
7
|
+
from .hl7_process_params import Hl7ProcessParams as Hl7ProcessParams
|
|
7
8
|
from .order_create_params import OrderCreateParams as OrderCreateParams
|
|
8
9
|
from .order_update_params import OrderUpdateParams as OrderUpdateParams
|
|
9
10
|
from .employee_list_params import EmployeeListParams as EmployeeListParams
|
|
11
|
+
from .hl7_process_response import Hl7ProcessResponse as Hl7ProcessResponse
|
|
10
12
|
from .health_check_response import HealthCheckResponse as HealthCheckResponse
|
|
11
13
|
from .order_create_response import OrderCreateResponse as OrderCreateResponse
|
|
12
14
|
from .order_update_response import OrderUpdateResponse as OrderUpdateResponse
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["Hl7ProcessParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Hl7ProcessParams(TypedDict, total=False):
|
|
11
|
+
f: str
|
|
12
|
+
"""Form field (legacy support)"""
|
|
13
|
+
|
|
14
|
+
interface: str
|
|
15
|
+
"""Interface identifier (legacy support)"""
|
|
16
|
+
|
|
17
|
+
login_passwd: str
|
|
18
|
+
"""Login password (legacy support)"""
|
|
19
|
+
|
|
20
|
+
login_user: str
|
|
21
|
+
"""Login user (legacy support)"""
|
|
22
|
+
|
|
23
|
+
message: str
|
|
24
|
+
"""HL7 message content - the primary way to send HL7 data"""
|
|
25
|
+
|
|
26
|
+
message_b64: str
|
|
27
|
+
"""Base64 encoded HL7 message (legacy support)"""
|
|
@@ -16,6 +16,47 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
|
|
|
16
16
|
class TestHl7:
|
|
17
17
|
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
|
|
18
18
|
|
|
19
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
20
|
+
@parametrize
|
|
21
|
+
def test_method_process(self, client: BlueHive) -> None:
|
|
22
|
+
hl7 = client.hl7.process()
|
|
23
|
+
assert_matches_type(str, hl7, path=["response"])
|
|
24
|
+
|
|
25
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
26
|
+
@parametrize
|
|
27
|
+
def test_method_process_with_all_params(self, client: BlueHive) -> None:
|
|
28
|
+
hl7 = client.hl7.process(
|
|
29
|
+
f="f",
|
|
30
|
+
interface="interface",
|
|
31
|
+
login_passwd="login_passwd",
|
|
32
|
+
login_user="login_user",
|
|
33
|
+
message="message",
|
|
34
|
+
message_b64="message_b64",
|
|
35
|
+
)
|
|
36
|
+
assert_matches_type(str, hl7, path=["response"])
|
|
37
|
+
|
|
38
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
39
|
+
@parametrize
|
|
40
|
+
def test_raw_response_process(self, client: BlueHive) -> None:
|
|
41
|
+
response = client.hl7.with_raw_response.process()
|
|
42
|
+
|
|
43
|
+
assert response.is_closed is True
|
|
44
|
+
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
45
|
+
hl7 = response.parse()
|
|
46
|
+
assert_matches_type(str, hl7, path=["response"])
|
|
47
|
+
|
|
48
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
49
|
+
@parametrize
|
|
50
|
+
def test_streaming_response_process(self, client: BlueHive) -> None:
|
|
51
|
+
with client.hl7.with_streaming_response.process() as response:
|
|
52
|
+
assert not response.is_closed
|
|
53
|
+
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
54
|
+
|
|
55
|
+
hl7 = response.parse()
|
|
56
|
+
assert_matches_type(str, hl7, path=["response"])
|
|
57
|
+
|
|
58
|
+
assert cast(Any, response.is_closed) is True
|
|
59
|
+
|
|
19
60
|
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
20
61
|
@parametrize
|
|
21
62
|
def test_method_send_results(self, client: BlueHive) -> None:
|
|
@@ -71,6 +112,47 @@ class TestAsyncHl7:
|
|
|
71
112
|
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
|
|
72
113
|
)
|
|
73
114
|
|
|
115
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
116
|
+
@parametrize
|
|
117
|
+
async def test_method_process(self, async_client: AsyncBlueHive) -> None:
|
|
118
|
+
hl7 = await async_client.hl7.process()
|
|
119
|
+
assert_matches_type(str, hl7, path=["response"])
|
|
120
|
+
|
|
121
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
122
|
+
@parametrize
|
|
123
|
+
async def test_method_process_with_all_params(self, async_client: AsyncBlueHive) -> None:
|
|
124
|
+
hl7 = await async_client.hl7.process(
|
|
125
|
+
f="f",
|
|
126
|
+
interface="interface",
|
|
127
|
+
login_passwd="login_passwd",
|
|
128
|
+
login_user="login_user",
|
|
129
|
+
message="message",
|
|
130
|
+
message_b64="message_b64",
|
|
131
|
+
)
|
|
132
|
+
assert_matches_type(str, hl7, path=["response"])
|
|
133
|
+
|
|
134
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
135
|
+
@parametrize
|
|
136
|
+
async def test_raw_response_process(self, async_client: AsyncBlueHive) -> None:
|
|
137
|
+
response = await async_client.hl7.with_raw_response.process()
|
|
138
|
+
|
|
139
|
+
assert response.is_closed is True
|
|
140
|
+
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
141
|
+
hl7 = await response.parse()
|
|
142
|
+
assert_matches_type(str, hl7, path=["response"])
|
|
143
|
+
|
|
144
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
145
|
+
@parametrize
|
|
146
|
+
async def test_streaming_response_process(self, async_client: AsyncBlueHive) -> None:
|
|
147
|
+
async with async_client.hl7.with_streaming_response.process() as response:
|
|
148
|
+
assert not response.is_closed
|
|
149
|
+
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
|
|
150
|
+
|
|
151
|
+
hl7 = await response.parse()
|
|
152
|
+
assert_matches_type(str, hl7, path=["response"])
|
|
153
|
+
|
|
154
|
+
assert cast(Any, response.is_closed) is True
|
|
155
|
+
|
|
74
156
|
@pytest.mark.skip(reason="Prism tests are disabled")
|
|
75
157
|
@parametrize
|
|
76
158
|
async def test_method_send_results(self, async_client: AsyncBlueHive) -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/database_check_health_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employers/service_bundle_create_params.py
RENAMED
|
File without changes
|
|
File without changes
|
{bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employers/service_bundle_list_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/employers/service_bundle_update_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/integration_check_active_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_retrieve_results_response.py
RENAMED
|
File without changes
|
{bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_schedule_appointment_params.py
RENAMED
|
File without changes
|
{bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_schedule_appointment_response.py
RENAMED
|
File without changes
|
{bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_send_for_employee_params.py
RENAMED
|
File without changes
|
{bluehive-0.1.0a11 → bluehive-0.1.0a12}/src/bluehive/types/order_send_for_employee_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bluehive-0.1.0a11 → bluehive-0.1.0a12}/tests/api_resources/employers/test_service_bundles.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|