Skip to content

← 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

CodeDescriptionMedia type
200Success
application/json: Dashboard
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/indicatorsIndicator definitions

Operation ID: listIndicators

Authentication: bearer

Parameters

NameInTypeRequiredDescription
statusquery"active" | "retired"no
cursorquerystringno

Responses

CodeDescriptionMedia type
200Success
application/json: IndicatorList
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/indicatorsConfigure an indicator definition (F001); immutable once created

Operation ID: createIndicator

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Success
application/json: IndicatorResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/indicators/{id}/retireRetire an indicator definition

Operation ID: retireIndicator

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstringyes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200Success
application/json: IndicatorResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/indicator-setsIndicator sets

Operation ID: listIndicatorSets

Authentication: bearer

Responses

CodeDescriptionMedia type
200Success
application/json: IndicatorSetList
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/indicator-setsCreate a fixed set of indicators to report on

Operation ID: createIndicatorSet

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Success
application/json: IndicatorSetResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/policyDisclosure policy (minimum cell size, deadline) of the jurisdiction

Operation ID: getPolicy

Authentication: bearer

Responses

CodeDescriptionMedia type
200Success
application/json: PolicyView
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/policySet the disclosure policy with its approval reference

Operation ID: setPolicy

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Success
application/json: PolicyResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/recipientsAuthorised recipient endpoints

Operation ID: listRecipients

Authentication: bearer

Responses

CodeDescriptionMedia type
200Success
application/json: Recipients
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/recipientsAdd or change a recipient endpoint

Operation ID: upsertRecipient

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Success
application/json: RecipientResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/reports/aggregatesAggregate reports

Operation ID: listAggregates

Authentication: bearer

Parameters

NameInTypeRequiredDescription
statequerystringno
period_fromquerystringno
period_toquerystringno
cursorquerystringno

Responses

CodeDescriptionMedia type
200Success
application/json: ReportList
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/reports/aggregatesPrepare an aggregate report (F002, W001): select, check policy, aggregate, apply disclosure control, draft

Operation ID: prepareAggregate

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Success
application/json: ReportResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/reports/aggregates/previewPreview small-cell suppression without storing; withheld cells show no counts

Operation ID: previewSuppression

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200Success
application/json: Preview
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/reports/aggregates/{id}Report with values, approvers, history and submissions

Operation ID: getAggregate

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstringyes

Responses

CodeDescriptionMedia type
200Success
application/json: ReportDetail
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/reports/aggregates/{id}/lineageDefinitions, sources, policy and decisions behind the figures

Operation ID: getLineage

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstringyes

Responses

CodeDescriptionMedia type
200Success
application/json: Lineage
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/reports/aggregates/{id}/validateValidate a draft; records evidence when it passes

Operation ID: validateAggregate

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstringyes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200Success
application/json: ValidateResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/reports/aggregates/{id}/approveRecord one reviewer approval; the second distinct reviewer approves the report (W002)

Operation ID: approveAggregate

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstringyes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200Success
application/json: ApproveResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/reports/aggregates/{id}/rejectReject a validated or approved report before submission

Operation ID: rejectAggregate

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstringyes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200Success
application/json: DecisionResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/reports/aggregates/{id}/submitSubmit an approved report to a certified recipient (F003); records the recipient answer

Operation ID: submitAggregate

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstringyes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200Success
application/json: SubmitResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/reports/aggregates/{id}/correctionsRe-aggregate a rejected report as a new revision (W003)

Operation ID: correctAggregate

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstringyes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Success
application/json: ReportResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/submissionsSubmission history

Operation ID: listSubmissions

Authentication: bearer

Parameters

NameInTypeRequiredDescription
cursorquerystringno

Responses

CodeDescriptionMedia type
200Success
application/json: SubmissionList
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/maintenance/drain-outboxReport pending outbox events (no sink: nothing claimed delivered)

Operation ID: drainOutbox

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Responses

CodeDescriptionMedia type
200Success
application/json: DrainResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/report-catalogAvailable reports

Operation ID: reportCatalog

Authentication: bearer

Responses

CodeDescriptionMedia type
200Success
application/json: ReportCatalog
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/reports/{reportId}Run report R001..R003

Operation ID: runReport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
reportIdpathstringyes
jurisdictionquerystring (uuid)noAnother jurisdiction yields no_authorized_data
countryquerystring (uuid)no
period_fromquerystringno
period_toquerystringno
recipientquerystringno
facilityquerystring (uuid)no
indicatorquerystring (uuid)no
statusquerystringno
cursorquerystringno

Responses

CodeDescriptionMedia type
200Success
application/json: AnalyticReport
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/reports/{reportId}/exportCreate a signed single-use report export

Operation ID: exportReport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
reportIdpathstringyes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Success
application/json: ExportReceipt
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
409Version conflict, illegal transition, report exists, already decided, or idempotency key reused
application/json: Problem
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/report-exports/{token}Download a report export once

Operation ID: downloadReportExport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
tokenpathstringyes

Responses

CodeDescriptionMedia type
200The export, once (text/csv or application/pdf)
text/csv: string (binary)
application/pdf: string (binary)
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose public_health_reporting), separation of duties, publication not permitted
application/json: Problem
404Not found / not disclosed (another jurisdiction; any route outside this contract)
application/json: Problem
410export_expired (5 minutes) or export_consumed (single use)—
422Domain validation failed (details: field -> code) or an unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
500export_integrity_failed—
503Dependency unavailable (fail closed)
application/json: Problem
GET/health/ohn-29Public liveness; reports how each dependency is wired

Operation ID: health

Responses

CodeDescriptionMedia type
200Database reachable
application/json: Health
503Database unreachable—

Schemas

IndicatorCommand

NameTypeRequiredDescription
jurisdiction_idstring (uuid)yes
indicator_codestringyes
definition_versionstringyes
numerator_rulestringyes
denominator_rulestringyes
reporting_frequency"weekly" | "monthly" | "quarterly" | "annual"yes

RetireCommand

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringyes

IndicatorSetCommand

NameTypeRequiredDescription
labelstringyes
indicator_idsarray of string (uuid)yes

PolicyCommand

NameTypeRequiredDescription
min_cell_sizeintegeryes
due_days_after_periodinteger | nullno
approval_referencestringyes

RecipientCommand

NameTypeRequiredDescription
codestringyes
labelstringyes
activebooleanno

PrepareCommand

The period must have ended (422 period_not_closed); period_end must not precede period_start.

NameTypeRequiredDescription
period_startstringyesA real calendar date, YYYY-MM-DD
period_endstringyesA real calendar date, YYYY-MM-DD
source_facilitiesarray of string (uuid)yes
indicator_set_idstring (uuid)yes
aggregation_method"facility_sum" | "facility_breakdown"yes

ValidateCommand

NameTypeRequiredDescription
expected_versionintegeryes

DecisionCommand

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringyes

SubmitCommand

reviewer_a and reviewer_b must differ and be the two reviewers who approved this revision; the submitter may be neither.

NameTypeRequiredDescription
expected_versionintegeryes
validation_evidencestringyes
reviewer_astring (uuid)yes
reviewer_bstring (uuid)yes
recipient_endpointstringyes

CorrectionCommand

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringyes

ExportCommand

NameTypeRequiredDescription
format"csv" | "pdf"yes
filtersExportCommand.filtersno

Problem

application/problem+json carrying the legacy fields error/message/details; 422 details are `{field: zod-issue-code | custom message}`.

NameTypeRequiredDescription
typestringno
titlestringno
statusintegerno
detailstringno
errorstringyes
messagestringno
trace_idstringno
detailsobjectno

Receipt

NameTypeRequiredDescription
receipt_idstring (uuid)no
committed_atstring (date-time)no
aggregate_idstringno
versionintegerno
status"committed"no

Indicator

NameTypeRequiredDescription
idstring (uuid)no
indicator_codestringno
definition_versionstringno
numerator_rulestringno
denominator_rulestringno
reporting_frequencystringno
status"active" | "retired"no
versionintegerno

Value

A suppressed cell carries no value and no counts; a missing cell has none either (never zero).

NameTypeRequiredDescription
indicator_idstring (uuid)no
facility_idstring | null (uuid)no
numeratorinteger | nullno
denominatorinteger | nullno
valuestring | nullnoFour decimals
suppressedbooleanno
suppression_reason"small_numerator" | "small_denominator" | "complementary" | nullno
missingbooleanno

Issue

NameTypeRequiredDescription
code"numerator_exceeds_denominator" | "indicator_retired" | "indicator_all_missing" | "some_cells_missing"no
indicator_idstring | null (uuid)no
severity"error" | "warning"no

Report

NameTypeRequiredDescription
idstring (uuid)no
period_startstringno
period_endstringno
indicator_set_idstring (uuid)no
indicator_idsarray of string (uuid)no
source_facilitiesarray of string (uuid)no
aggregation_methodstringno
min_cell_size_appliedintegerno
policy_referencestringno
state"draft" | "validated" | "approved" | "submitted" | "acknowledged_or_rejected"no
outcome"acknowledged" | "rejected" | nullno
revisionintegerno
correction_statestring | nullno
correction_notestring | nullno
prepared_bystring (uuid)no
validated_atstring | null (date-time)no
validation_evidencestring | nullno
validation_issuesarray of Issueno
recipient_endpointstring | nullno
due_datestring | nullno
submitted_atstring | null (date-time)no
attemptsintegerno
rejection_reasonstring | nullno
created_atstring (date-time)no
versionintegerno

ReportResult

NameTypeRequiredDescription
reportReportno
valuesarray of Valueno
receiptReceiptno

IndicatorResult

NameTypeRequiredDescription
indicatorIndicatorno
receiptReceiptno

IndicatorList

NameTypeRequiredDescription
itemsarray of Indicatorno
next_cursorstring | nullno

IndicatorSetResult

NameTypeRequiredDescription
indicator_setIndicatorSetResult.indicator_setno
receiptReceiptno

IndicatorSetList

NameTypeRequiredDescription
itemsarray of IndicatorSetList.items.itemno

PolicyView

NameTypeRequiredDescription
configuredbooleanno
policyPolicyView.policyno

PolicyResult

NameTypeRequiredDescription
policyobjectno
receiptReceiptno

Recipients

NameTypeRequiredDescription
configuredbooleanno
itemsarray of Recipients.items.itemno

RecipientResult

NameTypeRequiredDescription
itemobjectno
receiptReceiptno

Preview

NameTypeRequiredDescription
min_cell_sizeintegerno
policy_referencestringno
cellsarray of Valueno
suppressed_countintegerno
receiptReceiptno

ReportList

NameTypeRequiredDescription
itemsarray of Reportno
next_cursorstring | nullno

ReportDetail

NameTypeRequiredDescription
reportReportno
valuesarray of Valueno
approversarray of string (uuid)no
historyarray of objectno
submissionsarray of objectno

Lineage

NameTypeRequiredDescription
reportReportno
indicatorsarray of Indicatorno
policyobjectno
source_facilitiesarray of string (uuid)no
aggregation_methodstringno
revisionsarray of objectno
decisionsarray of objectno

ValidateResult

NameTypeRequiredDescription
passedbooleanno
issuesarray of Issueno
reportReportno
receiptReceiptno

ApproveResult

NameTypeRequiredDescription
reportReportno
approvals_recordedintegerno
approvals_required2no
receiptReceiptno

DecisionResult

NameTypeRequiredDescription
reportReportno
receiptReceiptno

SubmitResult

NameTypeRequiredDescription
reportReportno
submissionSubmitResult.submissionno
receiptReceiptno

SubmissionList

NameTypeRequiredDescription
itemsarray of objectno
next_cursorstring | nullno

Dashboard

NameTypeRequiredDescription
countsobjectno
awaiting_correctionintegerno
overdueintegerno
no_deadline_configuredintegerno

DrainResult

The platform relay publishes events; this call never claims delivery.

NameTypeRequiredDescription
deliveredintegerno
pendingintegerno

ReportCatalog

NameTypeRequiredDescription
reportsarray of ReportCatalog.reports.itemno

AnalyticReport

NameTypeRequiredDescription
report_idstringno
titlestringno
columnsarray of stringno
rowsarray of objectno
summaryobjectno
state"rendered" | "no_authorized_data"no
generated_atstring (date-time)no
next_cursorstring | nullno

ExportReceipt

NameTypeRequiredDescription
export_idstring (uuid)no
report_idstringno
formatstringno
rowsintegerno
expires_atstring (date-time)no
single_usebooleanno
download_pathstringno
receiptReceiptno

Health

NameTypeRequiredDescription
statusstringno
modulestringno
dependenciesobjectno

ExportCommand.filters defined inline

NameTypeRequiredDescription
jurisdictionstring (uuid)no
countrystring (uuid)no
period_fromstringnoA real calendar date, YYYY-MM-DD
period_tostringnoA real calendar date, YYYY-MM-DD
recipientstringno
facilitystring (uuid)no
indicatorstring (uuid)no
statusstringno

IndicatorSetResult.indicator_set defined inline

NameTypeRequiredDescription
idstring (uuid)no
labelstringno
indicator_idsarray of string (uuid)no

IndicatorSetList.items.item defined inline

NameTypeRequiredDescription
idstring (uuid)no
labelstringno
indicator_idsarray of string (uuid)no

PolicyView.policy defined inline

NameTypeRequiredDescription
min_cell_sizeintegerno
due_days_after_periodinteger | nullno
approval_referencestringno
versionintegerno

Recipients.items.item defined inline

NameTypeRequiredDescription
codestringno
labelstringno
activebooleanno

SubmitResult.submission defined inline

NameTypeRequiredDescription
attemptintegerno
receipt_refstringno
outcome"acknowledged" | "rejected"no
reasonstring | nullno

ReportCatalog.reports.item defined inline

NameTypeRequiredDescription
idstringno
titlestringno