Skip to main content

Add your description here

Project description

Fhan

At least Python 3.10 is required

Fhan is a small FHIR query client with a focus on performance and usability.

from fhan.client import Client

client = Client(base_url="https://demo.kodjin.com/fhir", authenticate=False)
patients = client.get("Patient", count=1)
print(patients)

Installation

To get started with Fhan, install it using pip:

pip install fhan

Basic Usage

Check out the example notebooks.

After installation, you can begin using Fhan to query FHIR resources:

from fhan.client import Client

# The server is public and does not require authentication
client = Client("https://demo.kodjin.com/fhir/Condition", authenticate=False)

Get a Resource by id:

client.get("Condition", "13b810dc-58d5-42e3-b34f-5e2454401561")

Search for resources:

client.get("Observation", search_params={"code":"249227004"}, count=20)

Authentication

For servers that require authentication:

Copy .env.example to .env. Fill in your authentication details in the .env file. Currently, Fhan supports a limited set of authentication methods. Contributions to expand authentication support are welcome!

Tools

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fhan-0.1.15.tar.gz (68.1 kB view hashes)

Uploaded Source

Built Distribution

fhan-0.1.15-py3-none-any.whl (58.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page