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.30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f3de16cb805e63c9f8825b4babd1b8fdbe4c3681d51532b7c9f745b676bafa5 |
|
MD5 | ac060b0a2e80643bbb95b8b4471de462 |
|
BLAKE2b-256 | 50dfa0522bee25a5baf30579dabc2f5a16197cc8b2d8fb5ac43bfbe8b537d932 |
Close
Hashes for helix.fhir.client.sdk-0.1.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67efd020a037bd9e6468c6eaa51cc17338a45f1a646078b711c28883457830b2 |
|
MD5 | 80c33b6cf9ebb059594228f2f1e00431 |
|
BLAKE2b-256 | 2f16faed2dde226d6e85e33cfff296ac1e6962602e197b642fa0c21e95b834ac |