Skip to main content

dirigent-fhir

The FHIR pack for dirigent. It contributes the fhir connection kind and the REST blocks for one FHIR R4 server:

Block Effect What it does
fhir.read reads Reads one resource by type and id.
fhir.search reads Searches one type, following Bundle.link[next] on the connection's origin under a page cap.
fhir.create writes Creates a resource, conditionally with ifNoneExist.
fhir.update writes Updates a resource with a conditional update on its identifier, never on a source server's id.
fhir.transaction writes Writes many resources in one transaction or batch Bundle, references between them rewritten to urn:uuid entries.

It is FHIR as a system of its own, not a DHIS2 pack: FHIR to FHIR is as much its purpose as feeding DHIS2. Between steps a resource or a Bundle is plain FHIR JSON. Inside a block the R4 models of dhis2w-fhir-engine type what they cover, and a resource they do not model passes through as JSON. A server's OperationOutcome fails the step classified by its status and its issue types, so a transient or throttled issue is retried and an invalid one is not.

Documentation: the docs/ directory, built with uv run mkdocs build --strict.

Install

The pack is not on PyPI yet. Install it from a checkout:

uv add /path/to/dirigent-fhir

An instance discovers the pack by installing it: the dirigent.plugins.v1 entry point in pyproject.toml is the whole registration.

Develop

uv sync
uv run ruff format --check . && uv run ruff check .
uv run mypy && uv run pyright
uv run pytest -m "not live"
uv run mkdocs build --strict

The tests are offline: every block runs against a fake FHIR server in tests/fhirserver.py, and the response bounds against a hostile server on loopback. tests/test_fhir_live.py reads a real server with DIRIGENT_LIVE=1 FHIR_LIVE_URL=http://localhost:8090/fhir.

The pack follows dirigent's version: 0.29.0 is built against dirigent 0.29.0.

Metadata

Release files for dirigent-fhir 0.29.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 dirigent-fhir 0.29.0
File Size Uploaded Provenance Actions
dirigent_fhir-0.29.0.tar.gz 26.1 kB With provenance Details for dirigent_fhir-0.29.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dirigent-fhir 0.29.0
File Interpreter ABI Platform Actions
dirigent_fhir-0.29.0-py3-none-any.whl Python 3 none any Details for dirigent_fhir-0.29.0-py3-none-any.whl

Total release size: 61.9 kB

Release files / dirigent_fhir-0.29.0.tar.gz

Download URL dirigent_fhir-0.29.0.tar.gz
Size 26.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bb129117408173c5e7823e29ebeeb64a6bcc1cddfc578d0b33939dc71f4242de
BLAKE2b-256 checksum
How to use checksums
431bcb697ac3610072206328ddab55d5a1cb4a3e6d0a67234d935df148384e1a
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 1, 2026.

Transparency log

Release files / dirigent_fhir-0.29.0-py3-none-any.whl

Download URL dirigent_fhir-0.29.0-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14b15566be7971f0eac2d61be6af03827fb26aaed22ca107bd1665c16a2b85c6
BLAKE2b-256 checksum
How to use checksums
e5c358f0a1cf15d7337daaa91fa37ce7c1d1c975107abeaea316dbe041176dea
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 1, 2026.

Transparency log

Security for dirigent-fhir 0.29.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dirigent_fhir-0.29.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 Nov 1, 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.

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