helix.fhir.client.sdk
Project description
helix.fhir.client.sdk
This SDK encapsulates:
- OAuth authentication and authorization
- Retry logic
- Paging
Usage
pip install helix.fhir.client.sdk
Example
fhir_client: FhirClient = FhirClient()
fhir_client = fhir_client.url(server_url)
if auth_server_url:
fhir_client = fhir_client.auth_server_url(auth_server_url)
if auth_client_id and auth_client_secret:
fhir_client = fhir_client.client_credentials(auth_client_id, auth_client_secret)
if auth_login_token:
fhir_client = fhir_client.login_token(auth_login_token)
if auth_scopes:
fhir_client = fhir_client.auth_scopes(auth_scopes)
if include_only_properties:
fhir_client = fhir_client.include_only_properties(
include_only_properties=include_only_properties
)
if page_size and page_number is not None:
fhir_client = fhir_client.page_size(page_size).page_number(page_number)
if sort_fields is not None:
fhir_client = fhir_client.sort_fields(sort_fields)
if additional_parameters:
fhir_client = fhir_client.additional_parameters(additional_parameters)
# have to done here since this arg can be used twice
if last_updated_before:
fhir_client = fhir_client.last_updated_before(last_updated_before)
if last_updated_after:
fhir_client = fhir_client.last_updated_after(last_updated_after)
result = fhir_client.get()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for helix.fhir.client.sdk-0.1.39.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddb02c7da18f919ca82271f389a2b6a828c2469e0fbcba218a29ce1b97a12a05 |
|
MD5 | 47199bbdee49373eb6f254f47ca92686 |
|
BLAKE2b-256 | efbc5e779bb2e64d5554da7f925098ee5b305dddc51200c3b12edaf401e0c531 |
Close
Hashes for helix.fhir.client.sdk-0.1.39-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9e39a82bf20ab36ea5925f882bd61cd8bda1c9b85c6a4b3da289248d9dc5d4e |
|
MD5 | 0f37619571fe315f8ca65ae0868be00b |
|
BLAKE2b-256 | af4a1338c838620ce2d8681b8ec1a9e398e78f385fd3c3b52274e6118fb8b4e3 |