hubble-sdk-python 0.3.0__tar.gz → 0.3.2__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.
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/CHANGELOG.md +22 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/PKG-INFO +22 -1
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/README.md +21 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/export_patient_fhir.py +18 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/export_patient_pdf.py +61 -4
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/get_patient_pdf_export.py +16 -8
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/read_fhir.py +26 -4
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/__init__.py +4 -0
- hubble_sdk_python-0.3.2/hubble_sdk/_generated/models/export_patient_pdf_combined.py +27 -0
- hubble_sdk_python-0.3.2/hubble_sdk/_generated/models/export_patient_pdf_hubble_version.py +27 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/operation_outcome.py +1 -3
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_hubble.py +143 -35
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_webhooks.py +2 -2
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/pyproject.toml +1 -1
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/tests/test_hubble.py +157 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/.gitignore +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/LICENSE +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/config.yaml +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/__init__.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/__init__.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/__init__.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/__init__.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/attach_client_authorization.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/create_consent.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/create_consent_link.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/exchange_token.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/get_application_token.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/get_consent.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/list_consents.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/revoke_consent.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/client.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/errors.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/api_error.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/application_token_error.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/application_token_error_error.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/application_token_request.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/application_token_response.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/attach_client_authorization_body.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/client_supplied_discloser.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/client_supplied_discloser_facility_type.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/consent.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/consent_error.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/consent_link_request.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/consent_list.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/consent_source.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/consent_source_status.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/consent_source_type.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/consent_status.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/created_consent.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/device_authorization_request.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/device_authorization_response.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/export_patient_fhir_prefer.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/export_patient_fhir_response_202.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/export_patient_fhir_response_202_status.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/export_patient_pdf_prefer.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/export_patient_pdf_response_202.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/export_patient_pdf_response_202_status.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/facility_address.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/facility_address_state.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/fhir_resource.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/get_patient_pdf_export_download.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/get_patient_pdf_export_response_200.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/get_patient_pdf_export_response_200_status.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/o_auth_error.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/o_auth_error_error.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/operation_outcome_issue_item.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/patient_address.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/patient_address_state.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/patient_demographics.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/provider_seed.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/token_request.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/token_request_grant_type.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/token_response.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/types.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_params.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/py.typed +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/pydoc-markdown.yml +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/templates/property_templates/enum_property.py.jinja +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/templates/str_enum.py.jinja +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/tests/test_params.py +0 -0
- {hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/tests/test_webhooks.py +0 -0
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.2](https://github.com/hubble-dot-ai/hubble-sdks/compare/hubble-sdk-python-v0.3.1...hubble-sdk-python-v0.3.2) (2026-11-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* expose combined PDF exports through high-level clients ([#85](https://github.com/hubble-dot-ai/hubble-sdks/issues/85)) ([1365b65](https://github.com/hubble-dot-ai/hubble-sdks/commit/1365b65248e81137b8f814cc895440e1ba009400))
|
|
9
|
+
|
|
10
|
+
## [0.3.1](https://github.com/hubble-dot-ai/hubble-sdks/compare/hubble-sdk-python-v0.3.0...hubble-sdk-python-v0.3.1) (2026-11-05)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* Support `Hubble-Version` through the `version` option on `export_pdf`, including waiting for background generation and downloading the completed records archive. ([#82](https://github.com/hubble-dot-ai/hubble-sdks/issues/82)) ([8f295db](https://github.com/hubble-dot-ai/hubble-sdks/commit/8f295db3f67c8606a29db0f7dfd99752e963c99e))
|
|
16
|
+
* Request a single PDF containing a source's summary and documents with `combined=true` in the generated client. ([#84](https://github.com/hubble-dot-ai/hubble-sdks/issues/84)) ([3a70d41](https://github.com/hubble-dot-ai/hubble-sdks/commit/3a70d417c9cc27700679b3e957a748dd251fcd71))
|
|
17
|
+
* Limit FHIR reads and exports to one connected source with the generated client's `connection` parameter. ([#81](https://github.com/hubble-dot-ai/hubble-sdks/issues/81)) ([0f812d0](https://github.com/hubble-dot-ai/hubble-sdks/commit/0f812d06ac59e23285fd72238529eb21afcbc80a))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Documentation
|
|
21
|
+
|
|
22
|
+
* Document records archives and 30-day export availability after completion, with download links valid for at most 60 seconds. ([#81](https://github.com/hubble-dot-ai/hubble-sdks/issues/81)) ([0f812d0](https://github.com/hubble-dot-ai/hubble-sdks/commit/0f812d06ac59e23285fd72238529eb21afcbc80a))
|
|
23
|
+
* Clarify that `consent.completed` means the patient finished adding sources; their records may still be processing. ([#78](https://github.com/hubble-dot-ai/hubble-sdks/issues/78)) ([b16e458](https://github.com/hubble-dot-ai/hubble-sdks/commit/b16e45869dd7a5f531318e58c182022b12e3139b))
|
|
24
|
+
|
|
3
25
|
## [0.3.0](https://github.com/hubble-dot-ai/hubble-sdks/compare/hubble-sdk-python-v0.2.1...hubble-sdk-python-v0.3.0) (2026-10-27)
|
|
4
26
|
|
|
5
27
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: hubble-sdk-python
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Python client for the Hubble Patient Access API.
|
|
5
5
|
Project-URL: Homepage, https://github.com/hubble-dot-ai/hubble-sdks
|
|
6
6
|
Project-URL: Repository, https://github.com/hubble-dot-ai/hubble-sdks
|
|
@@ -81,6 +81,27 @@ export = hub.export_pdf(consent_id, connection=connection_id) # one sour
|
|
|
81
81
|
|
|
82
82
|
Reuse one `Hubble` client so its token is reused too.
|
|
83
83
|
|
|
84
|
+
### Combined PDF exports
|
|
85
|
+
|
|
86
|
+
Pass `version`, `connection`, and `combined=True` to download one PDF containing
|
|
87
|
+
the source's summary and documents. The helper requests background generation,
|
|
88
|
+
waits for completion, and downloads the file.
|
|
89
|
+
|
|
90
|
+
```python
|
|
91
|
+
export = hub.export_pdf(
|
|
92
|
+
consent_id,
|
|
93
|
+
version="2026-11-01",
|
|
94
|
+
connection=connection_id,
|
|
95
|
+
combined=True,
|
|
96
|
+
)
|
|
97
|
+
# export.content contains the PDF bytes; export.content_type is "application/pdf".
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
`session.export_pdf` accepts the same options without the consent ID. With a
|
|
101
|
+
version and `combined` omitted or false, the result is a records archive (ZIP).
|
|
102
|
+
Calls without a version keep their existing behavior. `timeout` controls the
|
|
103
|
+
wait for background generation in seconds and defaults to ten minutes.
|
|
104
|
+
|
|
84
105
|
### The device flow
|
|
85
106
|
|
|
86
107
|
Existing integrations can keep using the device flow, which waits for the
|
|
@@ -49,6 +49,27 @@ export = hub.export_pdf(consent_id, connection=connection_id) # one sour
|
|
|
49
49
|
|
|
50
50
|
Reuse one `Hubble` client so its token is reused too.
|
|
51
51
|
|
|
52
|
+
### Combined PDF exports
|
|
53
|
+
|
|
54
|
+
Pass `version`, `connection`, and `combined=True` to download one PDF containing
|
|
55
|
+
the source's summary and documents. The helper requests background generation,
|
|
56
|
+
waits for completion, and downloads the file.
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
export = hub.export_pdf(
|
|
60
|
+
consent_id,
|
|
61
|
+
version="2026-11-01",
|
|
62
|
+
connection=connection_id,
|
|
63
|
+
combined=True,
|
|
64
|
+
)
|
|
65
|
+
# export.content contains the PDF bytes; export.content_type is "application/pdf".
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
`session.export_pdf` accepts the same options without the consent ID. With a
|
|
69
|
+
version and `combined` omitted or false, the result is a records archive (ZIP).
|
|
70
|
+
Calls without a version keep their existing behavior. `timeout` controls the
|
|
71
|
+
wait for background generation in seconds and defaults to ten minutes.
|
|
72
|
+
|
|
52
73
|
### The device flow
|
|
53
74
|
|
|
54
75
|
Existing integrations can keep using the device flow, which waits for the
|
|
@@ -16,6 +16,7 @@ from ...types import UNSET, Response, Unset
|
|
|
16
16
|
def _get_kwargs(
|
|
17
17
|
*,
|
|
18
18
|
consent: UUID | Unset = UNSET,
|
|
19
|
+
connection: UUID | Unset = UNSET,
|
|
19
20
|
field_count: int | Unset = UNSET,
|
|
20
21
|
field_offset: int | Unset = UNSET,
|
|
21
22
|
prefer: ExportPatientFhirPrefer | Unset = UNSET,
|
|
@@ -31,6 +32,11 @@ def _get_kwargs(
|
|
|
31
32
|
json_consent = str(consent)
|
|
32
33
|
params["consent"] = json_consent
|
|
33
34
|
|
|
35
|
+
json_connection: str | Unset = UNSET
|
|
36
|
+
if not isinstance(connection, Unset):
|
|
37
|
+
json_connection = str(connection)
|
|
38
|
+
params["connection"] = json_connection
|
|
39
|
+
|
|
34
40
|
params["_count"] = field_count
|
|
35
41
|
|
|
36
42
|
params["_offset"] = field_offset
|
|
@@ -111,6 +117,7 @@ def sync_detailed(
|
|
|
111
117
|
*,
|
|
112
118
|
client: AuthenticatedClient,
|
|
113
119
|
consent: UUID | Unset = UNSET,
|
|
120
|
+
connection: UUID | Unset = UNSET,
|
|
114
121
|
field_count: int | Unset = UNSET,
|
|
115
122
|
field_offset: int | Unset = UNSET,
|
|
116
123
|
prefer: ExportPatientFhirPrefer | Unset = UNSET,
|
|
@@ -127,6 +134,7 @@ def sync_detailed(
|
|
|
127
134
|
|
|
128
135
|
Args:
|
|
129
136
|
consent (UUID | Unset):
|
|
137
|
+
connection (UUID | Unset):
|
|
130
138
|
field_count (int | Unset):
|
|
131
139
|
field_offset (int | Unset):
|
|
132
140
|
prefer (ExportPatientFhirPrefer | Unset):
|
|
@@ -141,6 +149,7 @@ def sync_detailed(
|
|
|
141
149
|
|
|
142
150
|
kwargs = _get_kwargs(
|
|
143
151
|
consent=consent,
|
|
152
|
+
connection=connection,
|
|
144
153
|
field_count=field_count,
|
|
145
154
|
field_offset=field_offset,
|
|
146
155
|
prefer=prefer,
|
|
@@ -157,6 +166,7 @@ def sync(
|
|
|
157
166
|
*,
|
|
158
167
|
client: AuthenticatedClient,
|
|
159
168
|
consent: UUID | Unset = UNSET,
|
|
169
|
+
connection: UUID | Unset = UNSET,
|
|
160
170
|
field_count: int | Unset = UNSET,
|
|
161
171
|
field_offset: int | Unset = UNSET,
|
|
162
172
|
prefer: ExportPatientFhirPrefer | Unset = UNSET,
|
|
@@ -173,6 +183,7 @@ def sync(
|
|
|
173
183
|
|
|
174
184
|
Args:
|
|
175
185
|
consent (UUID | Unset):
|
|
186
|
+
connection (UUID | Unset):
|
|
176
187
|
field_count (int | Unset):
|
|
177
188
|
field_offset (int | Unset):
|
|
178
189
|
prefer (ExportPatientFhirPrefer | Unset):
|
|
@@ -188,6 +199,7 @@ def sync(
|
|
|
188
199
|
return sync_detailed(
|
|
189
200
|
client=client,
|
|
190
201
|
consent=consent,
|
|
202
|
+
connection=connection,
|
|
191
203
|
field_count=field_count,
|
|
192
204
|
field_offset=field_offset,
|
|
193
205
|
prefer=prefer,
|
|
@@ -198,6 +210,7 @@ async def asyncio_detailed(
|
|
|
198
210
|
*,
|
|
199
211
|
client: AuthenticatedClient,
|
|
200
212
|
consent: UUID | Unset = UNSET,
|
|
213
|
+
connection: UUID | Unset = UNSET,
|
|
201
214
|
field_count: int | Unset = UNSET,
|
|
202
215
|
field_offset: int | Unset = UNSET,
|
|
203
216
|
prefer: ExportPatientFhirPrefer | Unset = UNSET,
|
|
@@ -214,6 +227,7 @@ async def asyncio_detailed(
|
|
|
214
227
|
|
|
215
228
|
Args:
|
|
216
229
|
consent (UUID | Unset):
|
|
230
|
+
connection (UUID | Unset):
|
|
217
231
|
field_count (int | Unset):
|
|
218
232
|
field_offset (int | Unset):
|
|
219
233
|
prefer (ExportPatientFhirPrefer | Unset):
|
|
@@ -228,6 +242,7 @@ async def asyncio_detailed(
|
|
|
228
242
|
|
|
229
243
|
kwargs = _get_kwargs(
|
|
230
244
|
consent=consent,
|
|
245
|
+
connection=connection,
|
|
231
246
|
field_count=field_count,
|
|
232
247
|
field_offset=field_offset,
|
|
233
248
|
prefer=prefer,
|
|
@@ -242,6 +257,7 @@ async def asyncio(
|
|
|
242
257
|
*,
|
|
243
258
|
client: AuthenticatedClient,
|
|
244
259
|
consent: UUID | Unset = UNSET,
|
|
260
|
+
connection: UUID | Unset = UNSET,
|
|
245
261
|
field_count: int | Unset = UNSET,
|
|
246
262
|
field_offset: int | Unset = UNSET,
|
|
247
263
|
prefer: ExportPatientFhirPrefer | Unset = UNSET,
|
|
@@ -258,6 +274,7 @@ async def asyncio(
|
|
|
258
274
|
|
|
259
275
|
Args:
|
|
260
276
|
consent (UUID | Unset):
|
|
277
|
+
connection (UUID | Unset):
|
|
261
278
|
field_count (int | Unset):
|
|
262
279
|
field_offset (int | Unset):
|
|
263
280
|
prefer (ExportPatientFhirPrefer | Unset):
|
|
@@ -274,6 +291,7 @@ async def asyncio(
|
|
|
274
291
|
await asyncio_detailed(
|
|
275
292
|
client=client,
|
|
276
293
|
consent=consent,
|
|
294
|
+
connection=connection,
|
|
277
295
|
field_count=field_count,
|
|
278
296
|
field_offset=field_offset,
|
|
279
297
|
prefer=prefer,
|
|
@@ -6,6 +6,8 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.export_patient_pdf_combined import ExportPatientPdfCombined
|
|
10
|
+
from ...models.export_patient_pdf_hubble_version import ExportPatientPdfHubbleVersion
|
|
9
11
|
from ...models.export_patient_pdf_prefer import ExportPatientPdfPrefer
|
|
10
12
|
from ...models.export_patient_pdf_response_202 import ExportPatientPdfResponse202
|
|
11
13
|
from ...models.operation_outcome import OperationOutcome
|
|
@@ -16,9 +18,14 @@ def _get_kwargs(
|
|
|
16
18
|
*,
|
|
17
19
|
consent: UUID | Unset = UNSET,
|
|
18
20
|
connection: str | Unset = UNSET,
|
|
21
|
+
combined: ExportPatientPdfCombined | Unset = UNSET,
|
|
22
|
+
hubble_version: ExportPatientPdfHubbleVersion | Unset = UNSET,
|
|
19
23
|
prefer: ExportPatientPdfPrefer | Unset = UNSET,
|
|
20
24
|
) -> dict[str, Any]:
|
|
21
25
|
headers: dict[str, Any] = {}
|
|
26
|
+
if not isinstance(hubble_version, Unset):
|
|
27
|
+
headers["Hubble-Version"] = str(hubble_version)
|
|
28
|
+
|
|
22
29
|
if not isinstance(prefer, Unset):
|
|
23
30
|
headers["Prefer"] = str(prefer)
|
|
24
31
|
|
|
@@ -31,6 +38,12 @@ def _get_kwargs(
|
|
|
31
38
|
|
|
32
39
|
params["connection"] = connection
|
|
33
40
|
|
|
41
|
+
json_combined: str | Unset = UNSET
|
|
42
|
+
if not isinstance(combined, Unset):
|
|
43
|
+
json_combined = combined.value
|
|
44
|
+
|
|
45
|
+
params["combined"] = json_combined
|
|
46
|
+
|
|
34
47
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
35
48
|
|
|
36
49
|
_kwargs: dict[str, Any] = {
|
|
@@ -103,6 +116,8 @@ def sync_detailed(
|
|
|
103
116
|
client: AuthenticatedClient,
|
|
104
117
|
consent: UUID | Unset = UNSET,
|
|
105
118
|
connection: str | Unset = UNSET,
|
|
119
|
+
combined: ExportPatientPdfCombined | Unset = UNSET,
|
|
120
|
+
hubble_version: ExportPatientPdfHubbleVersion | Unset = UNSET,
|
|
106
121
|
prefer: ExportPatientPdfPrefer | Unset = UNSET,
|
|
107
122
|
) -> Response[ExportPatientPdfResponse202 | OperationOutcome]:
|
|
108
123
|
"""Export records as PDF (one per source)
|
|
@@ -115,11 +130,18 @@ def sync_detailed(
|
|
|
115
130
|
Prefer: respond-async to prepare the export in a background worker. Poll Content-Location with the
|
|
116
131
|
same token no sooner than Retry-After until it returns a 303 redirect to a short-lived download URL.
|
|
117
132
|
An organization can hold 20 exports in flight at once; a repeat request for one already running
|
|
118
|
-
reuses it. Without Prefer, the synchronous response is unchanged.
|
|
133
|
+
reuses it. Without Prefer, the synchronous response is unchanged. Send `Hubble-Version: 2026-11-01`
|
|
134
|
+
with Prefer: respond-async for the records archive (preview) instead: always a zip, with or without
|
|
135
|
+
`connection`, holding a folder per source and a `manifest.json` that lists every file. It is only
|
|
136
|
+
built asynchronously. Find files through the manifest rather than by path; new files may appear. Add
|
|
137
|
+
`combined=true` with `connection` for one PDF of that source instead of the zip: its summary
|
|
138
|
+
followed by its documents, in no guaranteed order.
|
|
119
139
|
|
|
120
140
|
Args:
|
|
121
141
|
consent (UUID | Unset):
|
|
122
142
|
connection (str | Unset):
|
|
143
|
+
combined (ExportPatientPdfCombined | Unset):
|
|
144
|
+
hubble_version (ExportPatientPdfHubbleVersion | Unset):
|
|
123
145
|
prefer (ExportPatientPdfPrefer | Unset):
|
|
124
146
|
|
|
125
147
|
Raises:
|
|
@@ -133,6 +155,8 @@ def sync_detailed(
|
|
|
133
155
|
kwargs = _get_kwargs(
|
|
134
156
|
consent=consent,
|
|
135
157
|
connection=connection,
|
|
158
|
+
combined=combined,
|
|
159
|
+
hubble_version=hubble_version,
|
|
136
160
|
prefer=prefer,
|
|
137
161
|
)
|
|
138
162
|
|
|
@@ -148,6 +172,8 @@ def sync(
|
|
|
148
172
|
client: AuthenticatedClient,
|
|
149
173
|
consent: UUID | Unset = UNSET,
|
|
150
174
|
connection: str | Unset = UNSET,
|
|
175
|
+
combined: ExportPatientPdfCombined | Unset = UNSET,
|
|
176
|
+
hubble_version: ExportPatientPdfHubbleVersion | Unset = UNSET,
|
|
151
177
|
prefer: ExportPatientPdfPrefer | Unset = UNSET,
|
|
152
178
|
) -> ExportPatientPdfResponse202 | OperationOutcome | None:
|
|
153
179
|
"""Export records as PDF (one per source)
|
|
@@ -160,11 +186,18 @@ def sync(
|
|
|
160
186
|
Prefer: respond-async to prepare the export in a background worker. Poll Content-Location with the
|
|
161
187
|
same token no sooner than Retry-After until it returns a 303 redirect to a short-lived download URL.
|
|
162
188
|
An organization can hold 20 exports in flight at once; a repeat request for one already running
|
|
163
|
-
reuses it. Without Prefer, the synchronous response is unchanged.
|
|
189
|
+
reuses it. Without Prefer, the synchronous response is unchanged. Send `Hubble-Version: 2026-11-01`
|
|
190
|
+
with Prefer: respond-async for the records archive (preview) instead: always a zip, with or without
|
|
191
|
+
`connection`, holding a folder per source and a `manifest.json` that lists every file. It is only
|
|
192
|
+
built asynchronously. Find files through the manifest rather than by path; new files may appear. Add
|
|
193
|
+
`combined=true` with `connection` for one PDF of that source instead of the zip: its summary
|
|
194
|
+
followed by its documents, in no guaranteed order.
|
|
164
195
|
|
|
165
196
|
Args:
|
|
166
197
|
consent (UUID | Unset):
|
|
167
198
|
connection (str | Unset):
|
|
199
|
+
combined (ExportPatientPdfCombined | Unset):
|
|
200
|
+
hubble_version (ExportPatientPdfHubbleVersion | Unset):
|
|
168
201
|
prefer (ExportPatientPdfPrefer | Unset):
|
|
169
202
|
|
|
170
203
|
Raises:
|
|
@@ -179,6 +212,8 @@ def sync(
|
|
|
179
212
|
client=client,
|
|
180
213
|
consent=consent,
|
|
181
214
|
connection=connection,
|
|
215
|
+
combined=combined,
|
|
216
|
+
hubble_version=hubble_version,
|
|
182
217
|
prefer=prefer,
|
|
183
218
|
).parsed
|
|
184
219
|
|
|
@@ -188,6 +223,8 @@ async def asyncio_detailed(
|
|
|
188
223
|
client: AuthenticatedClient,
|
|
189
224
|
consent: UUID | Unset = UNSET,
|
|
190
225
|
connection: str | Unset = UNSET,
|
|
226
|
+
combined: ExportPatientPdfCombined | Unset = UNSET,
|
|
227
|
+
hubble_version: ExportPatientPdfHubbleVersion | Unset = UNSET,
|
|
191
228
|
prefer: ExportPatientPdfPrefer | Unset = UNSET,
|
|
192
229
|
) -> Response[ExportPatientPdfResponse202 | OperationOutcome]:
|
|
193
230
|
"""Export records as PDF (one per source)
|
|
@@ -200,11 +237,18 @@ async def asyncio_detailed(
|
|
|
200
237
|
Prefer: respond-async to prepare the export in a background worker. Poll Content-Location with the
|
|
201
238
|
same token no sooner than Retry-After until it returns a 303 redirect to a short-lived download URL.
|
|
202
239
|
An organization can hold 20 exports in flight at once; a repeat request for one already running
|
|
203
|
-
reuses it. Without Prefer, the synchronous response is unchanged.
|
|
240
|
+
reuses it. Without Prefer, the synchronous response is unchanged. Send `Hubble-Version: 2026-11-01`
|
|
241
|
+
with Prefer: respond-async for the records archive (preview) instead: always a zip, with or without
|
|
242
|
+
`connection`, holding a folder per source and a `manifest.json` that lists every file. It is only
|
|
243
|
+
built asynchronously. Find files through the manifest rather than by path; new files may appear. Add
|
|
244
|
+
`combined=true` with `connection` for one PDF of that source instead of the zip: its summary
|
|
245
|
+
followed by its documents, in no guaranteed order.
|
|
204
246
|
|
|
205
247
|
Args:
|
|
206
248
|
consent (UUID | Unset):
|
|
207
249
|
connection (str | Unset):
|
|
250
|
+
combined (ExportPatientPdfCombined | Unset):
|
|
251
|
+
hubble_version (ExportPatientPdfHubbleVersion | Unset):
|
|
208
252
|
prefer (ExportPatientPdfPrefer | Unset):
|
|
209
253
|
|
|
210
254
|
Raises:
|
|
@@ -218,6 +262,8 @@ async def asyncio_detailed(
|
|
|
218
262
|
kwargs = _get_kwargs(
|
|
219
263
|
consent=consent,
|
|
220
264
|
connection=connection,
|
|
265
|
+
combined=combined,
|
|
266
|
+
hubble_version=hubble_version,
|
|
221
267
|
prefer=prefer,
|
|
222
268
|
)
|
|
223
269
|
|
|
@@ -231,6 +277,8 @@ async def asyncio(
|
|
|
231
277
|
client: AuthenticatedClient,
|
|
232
278
|
consent: UUID | Unset = UNSET,
|
|
233
279
|
connection: str | Unset = UNSET,
|
|
280
|
+
combined: ExportPatientPdfCombined | Unset = UNSET,
|
|
281
|
+
hubble_version: ExportPatientPdfHubbleVersion | Unset = UNSET,
|
|
234
282
|
prefer: ExportPatientPdfPrefer | Unset = UNSET,
|
|
235
283
|
) -> ExportPatientPdfResponse202 | OperationOutcome | None:
|
|
236
284
|
"""Export records as PDF (one per source)
|
|
@@ -243,11 +291,18 @@ async def asyncio(
|
|
|
243
291
|
Prefer: respond-async to prepare the export in a background worker. Poll Content-Location with the
|
|
244
292
|
same token no sooner than Retry-After until it returns a 303 redirect to a short-lived download URL.
|
|
245
293
|
An organization can hold 20 exports in flight at once; a repeat request for one already running
|
|
246
|
-
reuses it. Without Prefer, the synchronous response is unchanged.
|
|
294
|
+
reuses it. Without Prefer, the synchronous response is unchanged. Send `Hubble-Version: 2026-11-01`
|
|
295
|
+
with Prefer: respond-async for the records archive (preview) instead: always a zip, with or without
|
|
296
|
+
`connection`, holding a folder per source and a `manifest.json` that lists every file. It is only
|
|
297
|
+
built asynchronously. Find files through the manifest rather than by path; new files may appear. Add
|
|
298
|
+
`combined=true` with `connection` for one PDF of that source instead of the zip: its summary
|
|
299
|
+
followed by its documents, in no guaranteed order.
|
|
247
300
|
|
|
248
301
|
Args:
|
|
249
302
|
consent (UUID | Unset):
|
|
250
303
|
connection (str | Unset):
|
|
304
|
+
combined (ExportPatientPdfCombined | Unset):
|
|
305
|
+
hubble_version (ExportPatientPdfHubbleVersion | Unset):
|
|
251
306
|
prefer (ExportPatientPdfPrefer | Unset):
|
|
252
307
|
|
|
253
308
|
Raises:
|
|
@@ -263,6 +318,8 @@ async def asyncio(
|
|
|
263
318
|
client=client,
|
|
264
319
|
consent=consent,
|
|
265
320
|
connection=connection,
|
|
321
|
+
combined=combined,
|
|
322
|
+
hubble_version=hubble_version,
|
|
266
323
|
prefer=prefer,
|
|
267
324
|
)
|
|
268
325
|
).parsed
|
|
@@ -129,8 +129,10 @@ def sync_detailed(
|
|
|
129
129
|
when the export started already includes it. Pending work returns 202. Ready work returns 303 to a
|
|
130
130
|
download URL valid for at most 60 seconds. Do not forward the Hubble Bearer token to the storage
|
|
131
131
|
host. Accept: application/json returns a ready status and same-origin downloadUrl instead; navigate
|
|
132
|
-
to that URL for the redirect.
|
|
133
|
-
|
|
132
|
+
to that URL for the redirect. Preparation must finish within two hours of creation. On completion,
|
|
133
|
+
expiresAt becomes the download deadline, 30 days later. Revoked or expired source authorization
|
|
134
|
+
invalidates the artifact. An export started with `Hubble-Version` carries that version in a `Hubble-
|
|
135
|
+
Version` response header.
|
|
134
136
|
|
|
135
137
|
Args:
|
|
136
138
|
id (UUID):
|
|
@@ -175,8 +177,10 @@ def sync(
|
|
|
175
177
|
when the export started already includes it. Pending work returns 202. Ready work returns 303 to a
|
|
176
178
|
download URL valid for at most 60 seconds. Do not forward the Hubble Bearer token to the storage
|
|
177
179
|
host. Accept: application/json returns a ready status and same-origin downloadUrl instead; navigate
|
|
178
|
-
to that URL for the redirect.
|
|
179
|
-
|
|
180
|
+
to that URL for the redirect. Preparation must finish within two hours of creation. On completion,
|
|
181
|
+
expiresAt becomes the download deadline, 30 days later. Revoked or expired source authorization
|
|
182
|
+
invalidates the artifact. An export started with `Hubble-Version` carries that version in a `Hubble-
|
|
183
|
+
Version` response header.
|
|
180
184
|
|
|
181
185
|
Args:
|
|
182
186
|
id (UUID):
|
|
@@ -216,8 +220,10 @@ async def asyncio_detailed(
|
|
|
216
220
|
when the export started already includes it. Pending work returns 202. Ready work returns 303 to a
|
|
217
221
|
download URL valid for at most 60 seconds. Do not forward the Hubble Bearer token to the storage
|
|
218
222
|
host. Accept: application/json returns a ready status and same-origin downloadUrl instead; navigate
|
|
219
|
-
to that URL for the redirect.
|
|
220
|
-
|
|
223
|
+
to that URL for the redirect. Preparation must finish within two hours of creation. On completion,
|
|
224
|
+
expiresAt becomes the download deadline, 30 days later. Revoked or expired source authorization
|
|
225
|
+
invalidates the artifact. An export started with `Hubble-Version` carries that version in a `Hubble-
|
|
226
|
+
Version` response header.
|
|
221
227
|
|
|
222
228
|
Args:
|
|
223
229
|
id (UUID):
|
|
@@ -260,8 +266,10 @@ async def asyncio(
|
|
|
260
266
|
when the export started already includes it. Pending work returns 202. Ready work returns 303 to a
|
|
261
267
|
download URL valid for at most 60 seconds. Do not forward the Hubble Bearer token to the storage
|
|
262
268
|
host. Accept: application/json returns a ready status and same-origin downloadUrl instead; navigate
|
|
263
|
-
to that URL for the redirect.
|
|
264
|
-
|
|
269
|
+
to that URL for the redirect. Preparation must finish within two hours of creation. On completion,
|
|
270
|
+
expiresAt becomes the download deadline, 30 days later. Revoked or expired source authorization
|
|
271
|
+
invalidates the artifact. An export started with `Hubble-Version` carries that version in a `Hubble-
|
|
272
|
+
Version` response header.
|
|
265
273
|
|
|
266
274
|
Args:
|
|
267
275
|
id (UUID):
|
{hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/api/default/read_fhir.py
RENAMED
|
@@ -16,6 +16,7 @@ def _get_kwargs(
|
|
|
16
16
|
path: str,
|
|
17
17
|
*,
|
|
18
18
|
consent: UUID | Unset = UNSET,
|
|
19
|
+
connection: UUID | Unset = UNSET,
|
|
19
20
|
) -> dict[str, Any]:
|
|
20
21
|
|
|
21
22
|
params: dict[str, Any] = {}
|
|
@@ -25,6 +26,11 @@ def _get_kwargs(
|
|
|
25
26
|
json_consent = str(consent)
|
|
26
27
|
params["consent"] = json_consent
|
|
27
28
|
|
|
29
|
+
json_connection: str | Unset = UNSET
|
|
30
|
+
if not isinstance(connection, Unset):
|
|
31
|
+
json_connection = str(connection)
|
|
32
|
+
params["connection"] = json_connection
|
|
33
|
+
|
|
28
34
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
29
35
|
|
|
30
36
|
_kwargs: dict[str, Any] = {
|
|
@@ -88,16 +94,19 @@ def sync_detailed(
|
|
|
88
94
|
*,
|
|
89
95
|
client: AuthenticatedClient,
|
|
90
96
|
consent: UUID | Unset = UNSET,
|
|
97
|
+
connection: UUID | Unset = UNSET,
|
|
91
98
|
) -> Response[FhirResource | OperationOutcome]:
|
|
92
99
|
"""Read FHIR data
|
|
93
100
|
|
|
94
101
|
The FHIR R4 data plane. Authenticated by a consent token, which determines the consent, or an
|
|
95
102
|
application token with `consent=<id>` naming it. Returns arbitrary FHIR resources; type responses
|
|
96
|
-
against @types/fhir (TS) or fhir.resources (Python) rather than this spec.
|
|
103
|
+
against @types/fhir (TS) or fhir.resources (Python) rather than this spec. Reads merge every source
|
|
104
|
+
on the consent unless `connection` names one.
|
|
97
105
|
|
|
98
106
|
Args:
|
|
99
107
|
path (str):
|
|
100
108
|
consent (UUID | Unset):
|
|
109
|
+
connection (UUID | Unset):
|
|
101
110
|
|
|
102
111
|
Raises:
|
|
103
112
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -110,6 +119,7 @@ def sync_detailed(
|
|
|
110
119
|
kwargs = _get_kwargs(
|
|
111
120
|
path=path,
|
|
112
121
|
consent=consent,
|
|
122
|
+
connection=connection,
|
|
113
123
|
)
|
|
114
124
|
|
|
115
125
|
response = client.get_httpx_client().request(
|
|
@@ -124,16 +134,19 @@ def sync(
|
|
|
124
134
|
*,
|
|
125
135
|
client: AuthenticatedClient,
|
|
126
136
|
consent: UUID | Unset = UNSET,
|
|
137
|
+
connection: UUID | Unset = UNSET,
|
|
127
138
|
) -> FhirResource | OperationOutcome | None:
|
|
128
139
|
"""Read FHIR data
|
|
129
140
|
|
|
130
141
|
The FHIR R4 data plane. Authenticated by a consent token, which determines the consent, or an
|
|
131
142
|
application token with `consent=<id>` naming it. Returns arbitrary FHIR resources; type responses
|
|
132
|
-
against @types/fhir (TS) or fhir.resources (Python) rather than this spec.
|
|
143
|
+
against @types/fhir (TS) or fhir.resources (Python) rather than this spec. Reads merge every source
|
|
144
|
+
on the consent unless `connection` names one.
|
|
133
145
|
|
|
134
146
|
Args:
|
|
135
147
|
path (str):
|
|
136
148
|
consent (UUID | Unset):
|
|
149
|
+
connection (UUID | Unset):
|
|
137
150
|
|
|
138
151
|
Raises:
|
|
139
152
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -147,6 +160,7 @@ def sync(
|
|
|
147
160
|
path=path,
|
|
148
161
|
client=client,
|
|
149
162
|
consent=consent,
|
|
163
|
+
connection=connection,
|
|
150
164
|
).parsed
|
|
151
165
|
|
|
152
166
|
|
|
@@ -155,16 +169,19 @@ async def asyncio_detailed(
|
|
|
155
169
|
*,
|
|
156
170
|
client: AuthenticatedClient,
|
|
157
171
|
consent: UUID | Unset = UNSET,
|
|
172
|
+
connection: UUID | Unset = UNSET,
|
|
158
173
|
) -> Response[FhirResource | OperationOutcome]:
|
|
159
174
|
"""Read FHIR data
|
|
160
175
|
|
|
161
176
|
The FHIR R4 data plane. Authenticated by a consent token, which determines the consent, or an
|
|
162
177
|
application token with `consent=<id>` naming it. Returns arbitrary FHIR resources; type responses
|
|
163
|
-
against @types/fhir (TS) or fhir.resources (Python) rather than this spec.
|
|
178
|
+
against @types/fhir (TS) or fhir.resources (Python) rather than this spec. Reads merge every source
|
|
179
|
+
on the consent unless `connection` names one.
|
|
164
180
|
|
|
165
181
|
Args:
|
|
166
182
|
path (str):
|
|
167
183
|
consent (UUID | Unset):
|
|
184
|
+
connection (UUID | Unset):
|
|
168
185
|
|
|
169
186
|
Raises:
|
|
170
187
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -177,6 +194,7 @@ async def asyncio_detailed(
|
|
|
177
194
|
kwargs = _get_kwargs(
|
|
178
195
|
path=path,
|
|
179
196
|
consent=consent,
|
|
197
|
+
connection=connection,
|
|
180
198
|
)
|
|
181
199
|
|
|
182
200
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -189,16 +207,19 @@ async def asyncio(
|
|
|
189
207
|
*,
|
|
190
208
|
client: AuthenticatedClient,
|
|
191
209
|
consent: UUID | Unset = UNSET,
|
|
210
|
+
connection: UUID | Unset = UNSET,
|
|
192
211
|
) -> FhirResource | OperationOutcome | None:
|
|
193
212
|
"""Read FHIR data
|
|
194
213
|
|
|
195
214
|
The FHIR R4 data plane. Authenticated by a consent token, which determines the consent, or an
|
|
196
215
|
application token with `consent=<id>` naming it. Returns arbitrary FHIR resources; type responses
|
|
197
|
-
against @types/fhir (TS) or fhir.resources (Python) rather than this spec.
|
|
216
|
+
against @types/fhir (TS) or fhir.resources (Python) rather than this spec. Reads merge every source
|
|
217
|
+
on the consent unless `connection` names one.
|
|
198
218
|
|
|
199
219
|
Args:
|
|
200
220
|
path (str):
|
|
201
221
|
consent (UUID | Unset):
|
|
222
|
+
connection (UUID | Unset):
|
|
202
223
|
|
|
203
224
|
Raises:
|
|
204
225
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -213,5 +234,6 @@ async def asyncio(
|
|
|
213
234
|
path=path,
|
|
214
235
|
client=client,
|
|
215
236
|
consent=consent,
|
|
237
|
+
connection=connection,
|
|
216
238
|
)
|
|
217
239
|
).parsed
|
{hubble_sdk_python-0.3.0 → hubble_sdk_python-0.3.2}/hubble_sdk/_generated/models/__init__.py
RENAMED
|
@@ -22,6 +22,8 @@ from .device_authorization_response import DeviceAuthorizationResponse
|
|
|
22
22
|
from .export_patient_fhir_prefer import ExportPatientFhirPrefer
|
|
23
23
|
from .export_patient_fhir_response_202 import ExportPatientFhirResponse202
|
|
24
24
|
from .export_patient_fhir_response_202_status import ExportPatientFhirResponse202Status
|
|
25
|
+
from .export_patient_pdf_combined import ExportPatientPdfCombined
|
|
26
|
+
from .export_patient_pdf_hubble_version import ExportPatientPdfHubbleVersion
|
|
25
27
|
from .export_patient_pdf_prefer import ExportPatientPdfPrefer
|
|
26
28
|
from .export_patient_pdf_response_202 import ExportPatientPdfResponse202
|
|
27
29
|
from .export_patient_pdf_response_202_status import ExportPatientPdfResponse202Status
|
|
@@ -68,6 +70,8 @@ __all__ = (
|
|
|
68
70
|
"ExportPatientFhirPrefer",
|
|
69
71
|
"ExportPatientFhirResponse202",
|
|
70
72
|
"ExportPatientFhirResponse202Status",
|
|
73
|
+
"ExportPatientPdfCombined",
|
|
74
|
+
"ExportPatientPdfHubbleVersion",
|
|
71
75
|
"ExportPatientPdfPrefer",
|
|
72
76
|
"ExportPatientPdfResponse202",
|
|
73
77
|
"ExportPatientPdfResponse202Status",
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from enum import StrEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ExportPatientPdfCombined(StrEnum):
|
|
5
|
+
TRUE = "true"
|
|
6
|
+
|
|
7
|
+
def __str__(self) -> str:
|
|
8
|
+
return str(self.value)
|
|
9
|
+
|
|
10
|
+
# How API responses are parsed. The API may add values to this enum without a
|
|
11
|
+
# new SDK release, so a value this version does not know becomes a member
|
|
12
|
+
# carrying the raw string instead of raising. It compares equal to that string
|
|
13
|
+
# and is absent from list(ExportPatientPdfCombined), which is how to tell it apart.
|
|
14
|
+
# A value that is not a string is a malformed response and still raises.
|
|
15
|
+
# Constructing the enum directly stays strict, so a typo in a value you pass
|
|
16
|
+
# in still raises and membership checks are unchanged.
|
|
17
|
+
@classmethod
|
|
18
|
+
def _from_value(cls, value: object) -> "ExportPatientPdfCombined":
|
|
19
|
+
try:
|
|
20
|
+
return cls(value)
|
|
21
|
+
except ValueError:
|
|
22
|
+
if not isinstance(value, str):
|
|
23
|
+
raise
|
|
24
|
+
member = str.__new__(cls, value)
|
|
25
|
+
member._name_ = value
|
|
26
|
+
member._value_ = value
|
|
27
|
+
return member
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from enum import StrEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ExportPatientPdfHubbleVersion(StrEnum):
|
|
5
|
+
VALUE_0 = "2026-11-01"
|
|
6
|
+
|
|
7
|
+
def __str__(self) -> str:
|
|
8
|
+
return str(self.value)
|
|
9
|
+
|
|
10
|
+
# How API responses are parsed. The API may add values to this enum without a
|
|
11
|
+
# new SDK release, so a value this version does not know becomes a member
|
|
12
|
+
# carrying the raw string instead of raising. It compares equal to that string
|
|
13
|
+
# and is absent from list(ExportPatientPdfHubbleVersion), which is how to tell it apart.
|
|
14
|
+
# A value that is not a string is a malformed response and still raises.
|
|
15
|
+
# Constructing the enum directly stays strict, so a typo in a value you pass
|
|
16
|
+
# in still raises and membership checks are unchanged.
|
|
17
|
+
@classmethod
|
|
18
|
+
def _from_value(cls, value: object) -> "ExportPatientPdfHubbleVersion":
|
|
19
|
+
try:
|
|
20
|
+
return cls(value)
|
|
21
|
+
except ValueError:
|
|
22
|
+
if not isinstance(value, str):
|
|
23
|
+
raise
|
|
24
|
+
member = str.__new__(cls, value)
|
|
25
|
+
member._name_ = value
|
|
26
|
+
member._value_ = value
|
|
27
|
+
return member
|
|
@@ -51,9 +51,7 @@ class OperationOutcome:
|
|
|
51
51
|
|
|
52
52
|
@classmethod
|
|
53
53
|
def from_dict(cls, src_dict: Mapping[str, Any]) -> Self:
|
|
54
|
-
from ..models.operation_outcome_issue_item import
|
|
55
|
-
OperationOutcomeIssueItem,
|
|
56
|
-
)
|
|
54
|
+
from ..models.operation_outcome_issue_item import OperationOutcomeIssueItem
|
|
57
55
|
|
|
58
56
|
d = dict(src_dict)
|
|
59
57
|
resource_type = cast(Literal["OperationOutcome"], d.pop("resourceType"))
|