Skip to main content

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

Metadata

Release files for fhan 0.1.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fhan 0.1.16
File Size Uploaded
fhan-0.1.16.tar.gz 68.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fhan 0.1.16
File Interpreter ABI Platform
fhan-0.1.16-py3-none-any.whl Python 3 none any Details

Total release size: 126.6 kB

Release files / fhan-0.1.16.tar.gz

Download URL fhan-0.1.16.tar.gz
Size 68.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a574202d32cb2f05016b33ada6f0daefd45d4185e95f2578ed05549ad424c34d
BLAKE2b-256 checksum
How to use checksums
6994d09a94099dc111c1797d77ec39e0636fe6a7fdef70ba18f9a6a257c02c52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / fhan-0.1.16-py3-none-any.whl

Download URL fhan-0.1.16-py3-none-any.whl
Size 58.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ee18f62d71c2efbb1f751272d71a8efd420878fe99ffa486f23a85e63d85fac
BLAKE2b-256 checksum
How to use checksums
df14446e935584685ae02ee98e7ae7aefd16d54860dad232f74870836d119733
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release history Release notifications | RSS feed

This release

0.1.16 This release

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page