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.29.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 173a3a1fc26f05f8d7514c3b0196e55266c4808372a0dd4993478911cf8fa1f7 |
|
MD5 | d473201f80efca3adb753d2767051292 |
|
BLAKE2b-256 | 3b291d5c4a6df8cb4c912bec15fa3b4a05bf2925fe90cdef95ce380ee46bdb6f |
Close
Hashes for helix.fhir.client.sdk-0.1.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9473bcd34ba8390bb60d604e28d47ae8dd0ed84d301b7d8cdbbac911fd26b87f |
|
MD5 | 08a1e29517de46a6e8217d07c05d0d96 |
|
BLAKE2b-256 | bcd1dc7eeda241c80ee5ea80f2bd188cc8ace58d1d6972c0378c3d3b30c98da1 |