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.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d10eb1c555f5968ba56364d37538affb995abd1721cafd892a1dc630909d072 |
|
MD5 | dd851d5323ce479e8bf2fa1dcc068077 |
|
BLAKE2b-256 | b5f58e23be768960af8e3be8aea8d62a15b76ff6f0d381488cc8cfd1dc987961 |
Close
Hashes for helix.fhir.client.sdk-0.1.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa3c1289db06d94f6f9b11015b46a7075f67a273a43c227e7e56382f2aa8e882 |
|
MD5 | b74ff6a3b4ad06965e4b8d6cbe1c2b4c |
|
BLAKE2b-256 | 32fa7123ee5e008e8aa1cdc1aa8c8c703030f9f10e2ae55d3cb4ef45ac453089 |