Skip to main content

fhirkit-rs

FHIR R4 for Python, in Rust. It covers all 146 resources and every datatype, generated from the official specification. JSON goes in and out without loss: decimals stay Decimal (72.50 stays 72.50), and extensions on primitives survive. Validation reports every problem with the element's path, not only the first.

pip install fhirkit-rs
import fhirkit

r = fhirkit.parse(open("patient.json", "rb").read())   # str, bytes or dict
r.resource_type, r.id, r.issues                         # ('Patient', 'example', [])

for issue in fhirkit.validate({"resourceType": "Observation", "valueString": "x", "valueBoolean": True}):
    print(issue)
# error at Observation.value[x]: only one type may be given, found valueString, valueBoolean
# error at Observation.status: required element missing
# error at Observation.code: required element missing

fhirkit.parse(data, strict=True)   # raises fhirkit.ValidationError(.issues) on any error
fhirkit.parse_many(items)          # many at once, on all cores, GIL released
r.to_dict()                        # plain Python values, decimals as decimal.Decimal
r.to_json(pretty=True)             # canonical FHIR JSON
fhirkit validate *.json            # exit 1 if any resource has an error
fhirkit format patient.json        # canonical, pretty-printed
  • R4 (4.0.1). fhir.resources dropped plain R4 in its 7.0 release.
  • Zero runtime dependencies. One abi3 wheel per platform covers Python 3.9 and later.
  • Conformance. All 5,309 examples in the official R4 examples package read and write back unchanged.
  • Fast. On an M2 Max, the 5,309 R4 examples (188 MB) are read and validated in 0.56 s with parse_many, against 14.0 s for fhir.resources 6.5 (25×). Written back without changing a single value, where fhir.resources alters 197 decimals. Details: BENCH.md.

The PyPI name is fhirkit-rs because fhirkit on PyPI is an unrelated project; the import name is fhirkit. The Rust crate is fhirkit. Typed search, FHIRPath and SQL-on-FHIR are coming; see the roadmap.

Metadata

Release files for fhirkit-rs 0.1.0

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

Source distribution (sdist)

Source distribution for fhirkit-rs 0.1.0
File Size Uploaded Provenance
fhirkit_rs-0.1.0.tar.gz 341.2 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for fhirkit-rs 0.1.0
File
fhirkit_rs-0.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
fhirkit_rs-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
fhirkit_rs-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details
fhirkit_rs-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details
fhirkit_rs-0.1.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl CPython 3.9 abi3 macOS 11.0+ ARM64, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64 Details

Total release size: 20.1 MB

Release files / fhirkit_rs-0.1.0.tar.gz

Download URL fhirkit_rs-0.1.0.tar.gz
Size 341.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4dbb90488348c0f171b1dc39c663933e4759f328d7d8b02607bab2b423e6fad9
BLAKE2b-256 checksum
How to use checksums
12be8f7eccf07252867ccbf666093d9945d8c3446c61c828d106c938b6d5fed9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / fhirkit_rs-0.1.0-cp39-abi3-win_amd64.whl

Download URL fhirkit_rs-0.1.0-cp39-abi3-win_amd64.whl
Size 3.3 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b9d32504a72bdc8677acdda3db92bbb7f36a0203301ce96c3b62d5adced8c295
BLAKE2b-256 checksum
How to use checksums
18acc2b3346467b679001ed3869662fda5d07bb86c4594c4dc4364ab079e1fd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / fhirkit_rs-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL fhirkit_rs-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 3.5 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
2c99acb7d451a779dacb8d3f27382f81b65cc240a5df5932606758636ada1d27
BLAKE2b-256 checksum
How to use checksums
9491a54c7c558dffff754fb392119325e058d746c79db48ae5aa264cbe79516b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / fhirkit_rs-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL fhirkit_rs-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl
Size 3.3 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
ebe4b00d9f9ebe736a36be5d58d42947af087830cc2d38d6dbfa1451a8a3fcf5
BLAKE2b-256 checksum
How to use checksums
44254c1b8d9d8a6da52d576ee9ef2eeedc916f6336abdd67a027d1defd523864
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / fhirkit_rs-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL fhirkit_rs-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 3.1 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
a450fec82610f82e15a55416f675379e6881ceb7d388b4783b762bee7a446e48
BLAKE2b-256 checksum
How to use checksums
6072d9fda43b88470a367d4e3c32fa215cd8d4fc710767a5374765a4a804b22e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / fhirkit_rs-0.1.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL fhirkit_rs-0.1.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 6.4 MB
Tags CPython 3.9 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7166a06f137dc24e26d9cf0b552660a4aab23547532936513c49b2954c422ab7
BLAKE2b-256 checksum
How to use checksums
7042c1996b1fda529d851cb0ca22a71f3b12f8a3d4dd0a858dd3d924942d064d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Security for fhirkit-rs 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for fhirkit_rs-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

6 release files Full provenance

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