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.38.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 817d232d4beca8aef4a85f22ecb25ee8327ce19a29a216709800bfa509043ea1 |
|
MD5 | de92ee2dbd0fe2654f6f8e21e40277c7 |
|
BLAKE2b-256 | b069acf3d99bb1897815e448a093cd7c5c046f489aea38b2c2a73af6378d8f60 |
Close
Hashes for helix.fhir.client.sdk-0.1.38-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 250e02d4d8c582648fd4db4f06da2830a2382d0fc29b926a84da7366cbe63d7e |
|
MD5 | 62bf961493be18fbcbba1e78bfc3de14 |
|
BLAKE2b-256 | 284f832b148cbcec91715d43a4e44be8f4b58274352e655e15d47cbdfd534eba |