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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dhis2w_fhir_serve-1.13.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dhis2w_fhir_serve-1.13.1-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file dhis2w_fhir_serve-1.13.1.tar.gz.

File metadata

  • Download URL: dhis2w_fhir_serve-1.13.1.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dhis2w_fhir_serve-1.13.1.tar.gz
Algorithm Hash digest
SHA256 10f7cf702e8c434f5edf95ae9c0de42e58923e642d25c6d75fbf6592941cedd0
MD5 ce36b5cc3a025b374b829b40ecb38a46
BLAKE2b-256 0f1c898a86357a1311a201eeae9e2c91f639fe53f2e9f8d25d0a4f6e9b27862b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dhis2w_fhir_serve-1.13.1.tar.gz:

Publisher: pypi-publish.yml on winterop-com/dhis2w-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dhis2w_fhir_serve-1.13.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dhis2w_fhir_serve-1.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79a4450d9a3ca61a556e34efff540ce86ae6972525c1bb5c1ab6ae5e32e73ed9
MD5 ae1e167354d0595ba0790e683e70998c
BLAKE2b-256 ef264ae46c353d783007c4fe85997d8c9f3ee3ae193c396a1176c9e7a6eb2c34

See more details on using hashes here.

Provenance

The following attestation bundles were made for dhis2w_fhir_serve-1.13.1-py3-none-any.whl:

Publisher: pypi-publish.yml on winterop-com/dhis2w-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.18.0

2 files

1.17.0

2 files

1.16.0

2 files

1.15.0

2 files

1.14.0

2 files

1.13.4

2 files

1.13.3

2 files

1.13.2

2 files

This release

1.13.1 This release

2 files

1.13.0

2 files

1.12.0

2 files

1.11.0

2 files

1.10.0

2 files

1.9.0

2 files

1.8.3

2 files

1.8.2

2 files

1.8.1

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

1.5.0

2 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