Skip to main content

dhis2w-fhir-serve

FHIR facade server over a generated IG project, mounted as d2w fhir serve.

  • Serves two APIs in one process: FHIR at the base URL, whose contract is the CapabilityStatement at GET /metadata, and everything the facade answers about itself under /facade, whose contract is its own OpenAPI document at GET /facade/openapi.json (readable as a page at /facade/docs). CDS Hooks discovery stays at GET /cds-services, where that specification fixes it.
  • Reads a project's compiled IG (ig/fsh-generated/resources) plus its predefined resource trees (ig/input/resources) into an in-memory ResourceStore a FHIR client can read and search.
  • Receives QuestionnaireResponse captures into a ResponseSpool: atomic writes to <project>/.serve/responses/received, and reads that re-read the directory so a d2w fhir forward run beside the server is visible immediately.
  • Lists the whole spool with its lifecycle state at GET /facade/spool - received, forwarded, or rejected beside the DHIS2 import report that says why.
  • Answers about the instance itself on a --live run: the register (GET /{RegisterType}), one entity's enrollments, and one entity's record at GET /facade/tracked-entities/{uid}/events - every event of its enrollments as the QuestionnaireResponse its programme stage's published form describes, read per request under the credentials of whoever asked.
  • Answers the aggregate half beside it: GET /facade/data-sets/{uid}/responses?orgUnit=&period= - what the instance holds for one data set, at one organisation unit, over the periods the request names, one QuestionnaireResponse per reporting key in the shape that data set's published form describes.

The store is byte-faithful: a resource is served exactly as SUSHI emitted it. A stored response is the submission as received - a receipt, never a live view of DHIS2 data; the record at /facade/tracked-entities/{uid}/events and the reported forms at /facade/data-sets/{uid}/responses are the live view, and they are different addresses.

Release files for dhis2w-fhir-serve 1.22.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 dhis2w-fhir-serve 1.22.0
File Size Uploaded
dhis2w_fhir_serve-1.22.0.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for dhis2w-fhir-serve 1.22.0
File Interpreter ABI Platform
dhis2w_fhir_serve-1.22.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.2 MB

Release files / dhis2w_fhir_serve-1.22.0.tar.gz

Download URL dhis2w_fhir_serve-1.22.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
ecf13467fb632c87d9d74ef90f1265951d7e684ce603e58d135834e9ccfc1e2f
BLAKE2b-256 checksum
How to use checksums
24ec2b488990e95fd2286c1b75eb5ababc79b7fbe4891b18174c08ce857b21e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 14, 2026.

Transparency log

Release files / dhis2w_fhir_serve-1.22.0-py3-none-any.whl

Download URL dhis2w_fhir_serve-1.22.0-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c6edd1a9dae594126f9193d5f510943a70e582d0d8c1163314063b2c31f7f881
BLAKE2b-256 checksum
How to use checksums
065c5c5c8245db984a66f327a4f51a2ae6a28d14598bab17588e1d9597e9437a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 14, 2026.

Transparency log

Release history Release notifications | RSS feed

1.24.1

2 release files

1.24.0

2 release files

1.23.0

2 release files

This release

1.22.0 This release

2 release files

1.21.0

2 release files

1.20.0

2 release files

1.19.0

2 release files

1.18.0

2 release files

1.17.0

2 release files

1.16.0

2 release files

1.15.0

2 release files

1.14.0

2 release files

1.9.0

2 release files

1.8.3

2 release files

1.8.2

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.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