Skip to content

Commit c9e59bb

Browse files
committed
Add support for fhir_code, fhir_url and fhir_resource
Ref: Aidbox#69
1 parent db20fc8 commit c9e59bb

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.15
2+
3+
- Add fhir_code, fhir_url, fhir_resource as operation parameters
4+
15
## 0.1.14
26

37
- Fix db innitialization crash for fhirschema

aidbox_python_sdk/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = "aidbox-python-sdk"
2-
__version__ = "0.1.14"
2+
__version__ = "0.1.15"
33
__author__ = "beda.software"
44
__license__ = "None"
55
__copyright__ = "Copyright 2024 beda.software"

aidbox_python_sdk/sdk.py

+6
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ def operation( # noqa: PLR0913
151151
access_policy=None,
152152
request_schema=None,
153153
timeout=None,
154+
fhir_code=None,
155+
fhir_url=None,
156+
fhir_resource=None,
154157
):
155158
if public and access_policy is not None:
156159
raise ValueError("Operation might be public or have access policy, not both")
@@ -184,6 +187,9 @@ def wrapped_func(operation, request):
184187
"method": method,
185188
"path": path,
186189
**({"timeout": timeout} if timeout else {}),
190+
**({"fhirCode": fhir_code} if fhir_code else {}),
191+
**({"fhirUrl": fhir_url} if fhir_url else {}),
192+
**({"fhirResource": fhir_resource} if fhir_resource else {}),
187193
}
188194
self._operation_handlers[operation_id] = wrapped_func
189195
if public is True:

0 commit comments

Comments
 (0)