fhir-linter
Python bindings for the FHIR R5 linter and validator.
import fhir_linter
for d in fhir_linter.validate(resource_json) + fhir_linter.lint(resource_json):
print(d.severity, d.code, d.path, d.message)
Locations
line is 1-indexed. col (1-indexed) and offset (0-indexed) count UTF-8
bytes, not characters: after non-ASCII text such as "ééé",
resource_json[d.offset:] lands too far. Index the encoded bytes instead:
resource_json.encode()[d.offset:]. All three are None without a location.
FHIR definitions
The wheel does not bundle the FHIR R5 definitions (about 60 MB). Download them
once with scripts/download-definitions.sh from the
repository, then either pass
definitions_dir= to each call or set FHIR_DEFINITIONS_DIR. Without them,
calls raise ValueError.
definitions_dir is read from disk: only pass paths you trust.
Errors
ValueError: unparsable JSON, invalid lint config, unknown rule, no definitions.RuntimeError: the definitions directory cannot be loaded.
Metadata
Release files for fhir-linter 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fhir_linter-0.5.2.tar.gz | 110.4 kB | With provenance | Details for fhir_linter-0.5.2.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fhir_linter-0.5.2-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for fhir_linter-0.5.2-cp310-abi3-win_amd64.whl |
| fhir_linter-0.5.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details for fhir_linter-0.5.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| fhir_linter-0.5.2-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for fhir_linter-0.5.2-cp310-abi3-macosx_11_0_arm64.whl |
Total release size: 2.4 MB
Release files / fhir_linter-0.5.2.tar.gz
| Download URL | fhir_linter-0.5.2.tar.gz |
|---|---|
| Size | 110.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f4d2bd95726737eb003375343d2ac7d16a4a12e65bc3a14b92a5e5ecf0ad831
|
|
BLAKE2b-256 checksum How to use checksums |
3935a346a77d342e202bf96ddc3ca980cae63db7e578045198e0ae833384b381
|
| 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 Nov 11, 2026.
Transparency logRelease files / fhir_linter-0.5.2-cp310-abi3-win_amd64.whl
| Download URL | fhir_linter-0.5.2-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 654.1 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
309ed1de3fc4448f62ed88793a34899fbbbde3c5631f6d3572570388d74afca3
|
|
BLAKE2b-256 checksum How to use checksums |
504d686dda739fcc9425f125fd7046838c33e548492b86785e9da116a5e72320
|
| 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 Nov 11, 2026.
Transparency logRelease files / fhir_linter-0.5.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | fhir_linter-0.5.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 841.8 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
543c099ad28abd6629536e806943280a25d11d9a548d219d3e5f7f8929f68bc5
|
|
BLAKE2b-256 checksum How to use checksums |
ba2d27efd81fc1b4f2f597cb0c5d21a1b7575ad2966040439394ad9282cd2850
|
| 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 Nov 11, 2026.
Transparency logRelease files / fhir_linter-0.5.2-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | fhir_linter-0.5.2-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 752.6 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ace311f94dd850eaa01eb8befd0035c8a561f263fbf8b7e617fbe997f1f33db0
|
|
BLAKE2b-256 checksum How to use checksums |
7c32be0128b2edd4b71fa5d489064a23db9bcc4b4edc8f72abb483e7cc34ac07
|
| 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 Nov 11, 2026.
Transparency logSecurity for fhir-linter 0.5.2
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 4 files in this release have been uploaded with provenance metadata.
Attestation for fhir_linter-0.5.2.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 Nov 11, 2026.
Transparency logA 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.