← Tous les contrats
OHN-29 Public Health and Aggregate Reporting
- Version
- 1.0.1
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-29/api/openapi.json- Serveurs
https://opeshealthnetwork.com/api/ohn/v1/aggregate-reporting
- Authentification
bearer: http bearer
Télécharger le contrat (JSON)
Les contrats sont rédigés en anglais.
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.
Opérations
Autres opérations
GET/dashboardReporting dashboard: counts by state, awaiting correction, overdue
Identifiant d’opération: dashboard
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listIndicators
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
status | query | "active" | "retired" | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: createIndicator
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: retireIndicator
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listIndicatorSets
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: createIndicatorSet
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getPolicy
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: setPolicy
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listRecipients
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: upsertRecipient
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listAggregates
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
period_from | query | string | non | |
period_to | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: prepareAggregate
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: previewSuppression
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getAggregate
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getLineage
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: validateAggregate
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: approveAggregate
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: rejectAggregate
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: submitAggregate
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: correctAggregate
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listSubmissions
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: drainOutbox
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: reportCatalog
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: runReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | string | oui | |
jurisdiction | query | string (uuid) | non | Another jurisdiction yields no_authorized_data |
country | query | string (uuid) | non | |
period_from | query | string | non | |
period_to | query | string | non | |
recipient | query | string | non | |
facility | query | string (uuid) | non | |
indicator | query | string (uuid) | non | |
status | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: exportReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: downloadReportExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
token | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: health
Réponses
| Code | Description | Type de média |
|---|
200 | Database reachable | |
503 | Database unreachable | — |
Schémas
IndicatorCommand
| Nom | Type | Obligatoire | Description |
|---|
jurisdiction_id | string (uuid) | oui | |
indicator_code | string | oui | |
definition_version | string | oui | |
numerator_rule | string | oui | |
denominator_rule | string | oui | |
reporting_frequency | "weekly" | "monthly" | "quarterly" | "annual" | oui | |
RetireCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
IndicatorSetCommand
| Nom | Type | Obligatoire | Description |
|---|
label | string | oui | |
indicator_ids | array of string (uuid) | oui | |
PolicyCommand
| Nom | Type | Obligatoire | Description |
|---|
min_cell_size | integer | oui | |
due_days_after_period | integer | null | non | |
approval_reference | string | oui | |
RecipientCommand
| Nom | Type | Obligatoire | Description |
|---|
code | string | oui | |
label | string | oui | |
active | boolean | non | |
PrepareCommand
The period must have ended (422 period_not_closed); period_end must not precede period_start.
| Nom | Type | Obligatoire | Description |
|---|
period_start | string | oui | A real calendar date, YYYY-MM-DD |
period_end | string | oui | A real calendar date, YYYY-MM-DD |
source_facilities | array of string (uuid) | oui | |
indicator_set_id | string (uuid) | oui | |
aggregation_method | "facility_sum" | "facility_breakdown" | oui | |
ValidateCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
DecisionCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
SubmitCommand
reviewer_a and reviewer_b must differ and be the two reviewers who approved this revision; the submitter may be neither.
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
validation_evidence | string | oui | |
reviewer_a | string (uuid) | oui | |
reviewer_b | string (uuid) | oui | |
recipient_endpoint | string | oui | |
CorrectionCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
Problem
application/problem+json carrying the legacy fields error/message/details; 422 details are `{field: zod-issue-code | custom message}`.
| Nom | Type | Obligatoire | Description |
|---|
type | string | non | |
title | string | non | |
status | integer | non | |
detail | string | non | |
error | string | oui | |
message | string | non | |
trace_id | string | non | |
details | object | non | |
Receipt
| Nom | Type | Obligatoire | Description |
|---|
receipt_id | string (uuid) | non | |
committed_at | string (date-time) | non | |
aggregate_id | string | non | |
version | integer | non | |
status | "committed" | non | |
Indicator
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
indicator_code | string | non | |
definition_version | string | non | |
numerator_rule | string | non | |
denominator_rule | string | non | |
reporting_frequency | string | non | |
status | "active" | "retired" | non | |
version | integer | non | |
Value
A suppressed cell carries no value and no counts; a missing cell has none either (never zero).
| Nom | Type | Obligatoire | Description |
|---|
indicator_id | string (uuid) | non | |
facility_id | string | null (uuid) | non | |
numerator | integer | null | non | |
denominator | integer | null | non | |
value | string | null | non | Four decimals |
suppressed | boolean | non | |
suppression_reason | "small_numerator" | "small_denominator" | "complementary" | null | non | |
missing | boolean | non | |
Issue
| Nom | Type | Obligatoire | Description |
|---|
code | "numerator_exceeds_denominator" | "indicator_retired" | "indicator_all_missing" | "some_cells_missing" | non | |
indicator_id | string | null (uuid) | non | |
severity | "error" | "warning" | non | |
Report
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
period_start | string | non | |
period_end | string | non | |
indicator_set_id | string (uuid) | non | |
indicator_ids | array of string (uuid) | non | |
source_facilities | array of string (uuid) | non | |
aggregation_method | string | non | |
min_cell_size_applied | integer | non | |
policy_reference | string | non | |
state | "draft" | "validated" | "approved" | "submitted" | "acknowledged_or_rejected" | non | |
outcome | "acknowledged" | "rejected" | null | non | |
revision | integer | non | |
correction_state | string | null | non | |
correction_note | string | null | non | |
prepared_by | string (uuid) | non | |
validated_at | string | null (date-time) | non | |
validation_evidence | string | null | non | |
validation_issues | array of Issue | non | |
recipient_endpoint | string | null | non | |
due_date | string | null | non | |
submitted_at | string | null (date-time) | non | |
attempts | integer | non | |
rejection_reason | string | null | non | |
created_at | string (date-time) | non | |
version | integer | non | |
IndicatorList
| Nom | Type | Obligatoire | Description |
|---|
items | array of Indicator | non | |
next_cursor | string | null | non | |
PolicyResult
| Nom | Type | Obligatoire | Description |
|---|
policy | object | non | |
receipt | Receipt | non | |
RecipientResult
| Nom | Type | Obligatoire | Description |
|---|
item | object | non | |
receipt | Receipt | non | |
Preview
| Nom | Type | Obligatoire | Description |
|---|
min_cell_size | integer | non | |
policy_reference | string | non | |
cells | array of Value | non | |
suppressed_count | integer | non | |
receipt | Receipt | non | |
ReportList
| Nom | Type | Obligatoire | Description |
|---|
items | array of Report | non | |
next_cursor | string | null | non | |
ReportDetail
| Nom | Type | Obligatoire | Description |
|---|
report | Report | non | |
values | array of Value | non | |
approvers | array of string (uuid) | non | |
history | array of object | non | |
submissions | array of object | non | |
Lineage
| Nom | Type | Obligatoire | Description |
|---|
report | Report | non | |
indicators | array of Indicator | non | |
policy | object | non | |
source_facilities | array of string (uuid) | non | |
aggregation_method | string | non | |
revisions | array of object | non | |
decisions | array of object | non | |
ValidateResult
| Nom | Type | Obligatoire | Description |
|---|
passed | boolean | non | |
issues | array of Issue | non | |
report | Report | non | |
receipt | Receipt | non | |
ApproveResult
| Nom | Type | Obligatoire | Description |
|---|
report | Report | non | |
approvals_recorded | integer | non | |
approvals_required | 2 | non | |
receipt | Receipt | non | |
SubmissionList
| Nom | Type | Obligatoire | Description |
|---|
items | array of object | non | |
next_cursor | string | null | non | |
Dashboard
| Nom | Type | Obligatoire | Description |
|---|
counts | object | non | |
awaiting_correction | integer | non | |
overdue | integer | non | |
no_deadline_configured | integer | non | |
DrainResult
The platform relay publishes events; this call never claims delivery.
| Nom | Type | Obligatoire | Description |
|---|
delivered | integer | non | |
pending | integer | non | |
AnalyticReport
| Nom | Type | Obligatoire | Description |
|---|
report_id | string | non | |
title | string | non | |
columns | array of string | non | |
rows | array of object | non | |
summary | object | non | |
state | "rendered" | "no_authorized_data" | non | |
generated_at | string (date-time) | non | |
next_cursor | string | null | non | |
ExportReceipt
| Nom | Type | Obligatoire | Description |
|---|
export_id | string (uuid) | non | |
report_id | string | non | |
format | string | non | |
rows | integer | non | |
expires_at | string (date-time) | non | |
single_use | boolean | non | |
download_path | string | non | |
receipt | Receipt | non | |
Health
| Nom | Type | Obligatoire | Description |
|---|
status | string | non | |
module | string | non | |
dependencies | object | non | |
ExportCommand.filters défini sur place
| Nom | Type | Obligatoire | Description |
|---|
jurisdiction | string (uuid) | non | |
country | string (uuid) | non | |
period_from | string | non | A real calendar date, YYYY-MM-DD |
period_to | string | non | A real calendar date, YYYY-MM-DD |
recipient | string | non | |
facility | string (uuid) | non | |
indicator | string (uuid) | non | |
status | string | non | |
IndicatorSetResult.indicator_set défini sur place
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
label | string | non | |
indicator_ids | array of string (uuid) | non | |
IndicatorSetList.items.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
label | string | non | |
indicator_ids | array of string (uuid) | non | |
PolicyView.policy défini sur place
| Nom | Type | Obligatoire | Description |
|---|
min_cell_size | integer | non | |
due_days_after_period | integer | null | non | |
approval_reference | string | non | |
version | integer | non | |
Recipients.items.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
code | string | non | |
label | string | non | |
active | boolean | non | |
SubmitResult.submission défini sur place
| Nom | Type | Obligatoire | Description |
|---|
attempt | integer | non | |
receipt_ref | string | non | |
outcome | "acknowledged" | "rejected" | non | |
reason | string | null | non | |
ReportCatalog.reports.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
id | string | non | |
title | string | non | |