← All contracts
OHN-29 Public Health and Aggregate Reporting
- Version
- 1.0.1
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-29/api/openapi.json- Servers
https://opeshealthnetwork.com/api/ohn/v1/aggregate-reporting
- Authentication
bearer: http bearer
Download the contract (JSON)
Contracts are written in English.
Server paths are under /api/ohn/v1/aggregate-reporting. Default deny: role AND purpose must match. Inventory paths OHN-29-API-001..003 are mapped to this disjoint prefix (see ADR-0001). Only aggregates are stored; suppressed cells carry no value and no counts. Reports of another jurisdiction are 404. Behaviour reconciled with the TypeScript reference and the Java service (docs/program/java/ohn-29-contract-changes.md). Tokens come from the platform gateway (ES256, audience ohn-29); the TypeScript-only synthetic-token endpoint is not part of this contract.
Operations
Other operations
GET/dashboardReporting dashboard: counts by state, awaiting correction, overdue
Operation ID: dashboard
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/indicatorsIndicator definitions
Operation ID: listIndicators
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
status | query | "active" | "retired" | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/indicatorsConfigure an indicator definition (F001); immutable once created
Operation ID: createIndicator
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/indicators/{id}/retireRetire an indicator definition
Operation ID: retireIndicator
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/indicator-setsIndicator sets
Operation ID: listIndicatorSets
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/indicator-setsCreate a fixed set of indicators to report on
Operation ID: createIndicatorSet
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/policyDisclosure policy (minimum cell size, deadline) of the jurisdiction
Operation ID: getPolicy
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/policySet the disclosure policy with its approval reference
Operation ID: setPolicy
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/recipientsAuthorised recipient endpoints
Operation ID: listRecipients
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/recipientsAdd or change a recipient endpoint
Operation ID: upsertRecipient
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/reports/aggregatesAggregate reports
Operation ID: listAggregates
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
state | query | string | no | |
period_from | query | string | no | |
period_to | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/reports/aggregatesPrepare an aggregate report (F002, W001): select, check policy, aggregate, apply disclosure control, draft
Operation ID: prepareAggregate
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/reports/aggregates/previewPreview small-cell suppression without storing; withheld cells show no counts
Operation ID: previewSuppression
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/reports/aggregates/{id}Report with values, approvers, history and submissions
Operation ID: getAggregate
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/reports/aggregates/{id}/lineageDefinitions, sources, policy and decisions behind the figures
Operation ID: getLineage
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/reports/aggregates/{id}/validateValidate a draft; records evidence when it passes
Operation ID: validateAggregate
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/reports/aggregates/{id}/approveRecord one reviewer approval; the second distinct reviewer approves the report (W002)
Operation ID: approveAggregate
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/reports/aggregates/{id}/rejectReject a validated or approved report before submission
Operation ID: rejectAggregate
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/reports/aggregates/{id}/submitSubmit an approved report to a certified recipient (F003); records the recipient answer
Operation ID: submitAggregate
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/reports/aggregates/{id}/correctionsRe-aggregate a rejected report as a new revision (W003)
Operation ID: correctAggregate
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/submissionsSubmission history
Operation ID: listSubmissions
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/maintenance/drain-outboxReport pending outbox events (no sink: nothing claimed delivered)
Operation ID: drainOutbox
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/report-catalogAvailable reports
Operation ID: reportCatalog
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/reports/{reportId}Run report R001..R003
Operation ID: runReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
reportId | path | string | yes | |
jurisdiction | query | string (uuid) | no | Another jurisdiction yields no_authorized_data |
country | query | string (uuid) | no | |
period_from | query | string | no | |
period_to | query | string | no | |
recipient | query | string | no | |
facility | query | string (uuid) | no | |
indicator | query | string (uuid) | no | |
status | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/reports/{reportId}/exportCreate a signed single-use report export
Operation ID: exportReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
reportId | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
409 | Version conflict, illegal transition, report exists, already decided, or idempotency key reused | |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/report-exports/{token}Download a report export once
Operation ID: downloadReportExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
token | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | The export, once (text/csv or application/pdf) | text/csv: string (binary)
application/pdf: string (binary)
|
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted | |
404 | Not found / not disclosed (another jurisdiction; any route outside this contract) | |
410 | export_expired (5 minutes) or export_consumed (single use) | — |
422 | Domain validation failed (details: field -> code) or an unmet precondition | |
429 | Rate limited | |
500 | export_integrity_failed | — |
503 | Dependency unavailable (fail closed) | |
GET/health/ohn-29Public liveness; reports how each dependency is wired
Operation ID: health
Responses
| Code | Description | Media type |
|---|
200 | Database reachable | |
503 | Database unreachable | — |
Schemas
IndicatorCommand
| Name | Type | Required | Description |
|---|
jurisdiction_id | string (uuid) | yes | |
indicator_code | string | yes | |
definition_version | string | yes | |
numerator_rule | string | yes | |
denominator_rule | string | yes | |
reporting_frequency | "weekly" | "monthly" | "quarterly" | "annual" | yes | |
RetireCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
IndicatorSetCommand
| Name | Type | Required | Description |
|---|
label | string | yes | |
indicator_ids | array of string (uuid) | yes | |
PolicyCommand
| Name | Type | Required | Description |
|---|
min_cell_size | integer | yes | |
due_days_after_period | integer | null | no | |
approval_reference | string | yes | |
RecipientCommand
| Name | Type | Required | Description |
|---|
code | string | yes | |
label | string | yes | |
active | boolean | no | |
PrepareCommand
The period must have ended (422 period_not_closed); period_end must not precede period_start.
| Name | Type | Required | Description |
|---|
period_start | string | yes | A real calendar date, YYYY-MM-DD |
period_end | string | yes | A real calendar date, YYYY-MM-DD |
source_facilities | array of string (uuid) | yes | |
indicator_set_id | string (uuid) | yes | |
aggregation_method | "facility_sum" | "facility_breakdown" | yes | |
ValidateCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
DecisionCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
SubmitCommand
reviewer_a and reviewer_b must differ and be the two reviewers who approved this revision; the submitter may be neither.
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
validation_evidence | string | yes | |
reviewer_a | string (uuid) | yes | |
reviewer_b | string (uuid) | yes | |
recipient_endpoint | string | yes | |
CorrectionCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
Problem
application/problem+json carrying the legacy fields error/message/details; 422 details are `{field: zod-issue-code | custom message}`.
| Name | Type | Required | Description |
|---|
type | string | no | |
title | string | no | |
status | integer | no | |
detail | string | no | |
error | string | yes | |
message | string | no | |
trace_id | string | no | |
details | object | no | |
Receipt
| Name | Type | Required | Description |
|---|
receipt_id | string (uuid) | no | |
committed_at | string (date-time) | no | |
aggregate_id | string | no | |
version | integer | no | |
status | "committed" | no | |
Indicator
| Name | Type | Required | Description |
|---|
id | string (uuid) | no | |
indicator_code | string | no | |
definition_version | string | no | |
numerator_rule | string | no | |
denominator_rule | string | no | |
reporting_frequency | string | no | |
status | "active" | "retired" | no | |
version | integer | no | |
Value
A suppressed cell carries no value and no counts; a missing cell has none either (never zero).
| Name | Type | Required | Description |
|---|
indicator_id | string (uuid) | no | |
facility_id | string | null (uuid) | no | |
numerator | integer | null | no | |
denominator | integer | null | no | |
value | string | null | no | Four decimals |
suppressed | boolean | no | |
suppression_reason | "small_numerator" | "small_denominator" | "complementary" | null | no | |
missing | boolean | no | |
Issue
| Name | Type | Required | Description |
|---|
code | "numerator_exceeds_denominator" | "indicator_retired" | "indicator_all_missing" | "some_cells_missing" | no | |
indicator_id | string | null (uuid) | no | |
severity | "error" | "warning" | no | |
Report
| Name | Type | Required | Description |
|---|
id | string (uuid) | no | |
period_start | string | no | |
period_end | string | no | |
indicator_set_id | string (uuid) | no | |
indicator_ids | array of string (uuid) | no | |
source_facilities | array of string (uuid) | no | |
aggregation_method | string | no | |
min_cell_size_applied | integer | no | |
policy_reference | string | no | |
state | "draft" | "validated" | "approved" | "submitted" | "acknowledged_or_rejected" | no | |
outcome | "acknowledged" | "rejected" | null | no | |
revision | integer | no | |
correction_state | string | null | no | |
correction_note | string | null | no | |
prepared_by | string (uuid) | no | |
validated_at | string | null (date-time) | no | |
validation_evidence | string | null | no | |
validation_issues | array of Issue | no | |
recipient_endpoint | string | null | no | |
due_date | string | null | no | |
submitted_at | string | null (date-time) | no | |
attempts | integer | no | |
rejection_reason | string | null | no | |
created_at | string (date-time) | no | |
version | integer | no | |
IndicatorList
| Name | Type | Required | Description |
|---|
items | array of Indicator | no | |
next_cursor | string | null | no | |
PolicyResult
| Name | Type | Required | Description |
|---|
policy | object | no | |
receipt | Receipt | no | |
RecipientResult
| Name | Type | Required | Description |
|---|
item | object | no | |
receipt | Receipt | no | |
Preview
| Name | Type | Required | Description |
|---|
min_cell_size | integer | no | |
policy_reference | string | no | |
cells | array of Value | no | |
suppressed_count | integer | no | |
receipt | Receipt | no | |
ReportList
| Name | Type | Required | Description |
|---|
items | array of Report | no | |
next_cursor | string | null | no | |
ReportDetail
| Name | Type | Required | Description |
|---|
report | Report | no | |
values | array of Value | no | |
approvers | array of string (uuid) | no | |
history | array of object | no | |
submissions | array of object | no | |
Lineage
| Name | Type | Required | Description |
|---|
report | Report | no | |
indicators | array of Indicator | no | |
policy | object | no | |
source_facilities | array of string (uuid) | no | |
aggregation_method | string | no | |
revisions | array of object | no | |
decisions | array of object | no | |
ValidateResult
| Name | Type | Required | Description |
|---|
passed | boolean | no | |
issues | array of Issue | no | |
report | Report | no | |
receipt | Receipt | no | |
ApproveResult
| Name | Type | Required | Description |
|---|
report | Report | no | |
approvals_recorded | integer | no | |
approvals_required | 2 | no | |
receipt | Receipt | no | |
SubmissionList
| Name | Type | Required | Description |
|---|
items | array of object | no | |
next_cursor | string | null | no | |
Dashboard
| Name | Type | Required | Description |
|---|
counts | object | no | |
awaiting_correction | integer | no | |
overdue | integer | no | |
no_deadline_configured | integer | no | |
DrainResult
The platform relay publishes events; this call never claims delivery.
| Name | Type | Required | Description |
|---|
delivered | integer | no | |
pending | integer | no | |
AnalyticReport
| Name | Type | Required | Description |
|---|
report_id | string | no | |
title | string | no | |
columns | array of string | no | |
rows | array of object | no | |
summary | object | no | |
state | "rendered" | "no_authorized_data" | no | |
generated_at | string (date-time) | no | |
next_cursor | string | null | no | |
ExportReceipt
| Name | Type | Required | Description |
|---|
export_id | string (uuid) | no | |
report_id | string | no | |
format | string | no | |
rows | integer | no | |
expires_at | string (date-time) | no | |
single_use | boolean | no | |
download_path | string | no | |
receipt | Receipt | no | |
Health
| Name | Type | Required | Description |
|---|
status | string | no | |
module | string | no | |
dependencies | object | no | |
ExportCommand.filters defined inline
| Name | Type | Required | Description |
|---|
jurisdiction | string (uuid) | no | |
country | string (uuid) | no | |
period_from | string | no | A real calendar date, YYYY-MM-DD |
period_to | string | no | A real calendar date, YYYY-MM-DD |
recipient | string | no | |
facility | string (uuid) | no | |
indicator | string (uuid) | no | |
status | string | no | |
IndicatorSetResult.indicator_set defined inline
| Name | Type | Required | Description |
|---|
id | string (uuid) | no | |
label | string | no | |
indicator_ids | array of string (uuid) | no | |
IndicatorSetList.items.item defined inline
| Name | Type | Required | Description |
|---|
id | string (uuid) | no | |
label | string | no | |
indicator_ids | array of string (uuid) | no | |
PolicyView.policy defined inline
| Name | Type | Required | Description |
|---|
min_cell_size | integer | no | |
due_days_after_period | integer | null | no | |
approval_reference | string | no | |
version | integer | no | |
Recipients.items.item defined inline
| Name | Type | Required | Description |
|---|
code | string | no | |
label | string | no | |
active | boolean | no | |
SubmitResult.submission defined inline
| Name | Type | Required | Description |
|---|
attempt | integer | no | |
receipt_ref | string | no | |
outcome | "acknowledged" | "rejected" | no | |
reason | string | null | no | |
ReportCatalog.reports.item defined inline
| Name | Type | Required | Description |
|---|
id | string | no | |
title | string | no | |