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.33.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0147180505f9c2a5b15e7925084e6da55766dec89b29f94cb0f9dc021c4dc93 |
|
MD5 | 7cd775f92dd68d91b6c654f5af714886 |
|
BLAKE2b-256 | 5612c38fec46b0bbd5b6f7d8183dfcc09adf85f81643e297cea2643485a3aed5 |
Close
Hashes for helix.fhir.client.sdk-0.1.33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a4bfff4e8a6ea6d10d026b3f3047a34fc406fced7ae9223bc36368f1dff5283 |
|
MD5 | 53d48d360a885656472083cd4786af94 |
|
BLAKE2b-256 | 73b1a7dc83a75d025f4835aed828baf2ed8b54a684d47f9ddc09d2ccdeafbe93 |