Aller au contenu

← 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

CodeDescriptionType de média
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

Identifiant d’opération: listIndicators

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statusquery"active" | "retired"non
cursorquerystringnon

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: createIndicator

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: retireIndicator

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: listIndicatorSets

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: createIndicatorSet

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: getPolicy

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: setPolicy

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: listRecipients

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: upsertRecipient

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: listAggregates

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statequerystringnon
period_fromquerystringnon
period_toquerystringnon
cursorquerystringnon

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: prepareAggregate

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: previewSuppression

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: getAggregate

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: getLineage

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: validateAggregate

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: approveAggregate

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: rejectAggregate

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: submitAggregate

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: correctAggregate

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: listSubmissions

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
cursorquerystringnon

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: drainOutbox

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: reportCatalog

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: runReport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpathstringoui
jurisdictionquerystring (uuid)nonAnother jurisdiction yields no_authorized_data
countryquerystring (uuid)non
period_fromquerystringnon
period_toquerystringnon
recipientquerystringnon
facilityquerystring (uuid)non
indicatorquerystring (uuid)non
statusquerystringnon
cursorquerystringnon

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: exportReport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: downloadReportExport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
tokenpathstringoui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: health

Réponses

CodeDescriptionType de média
200Database reachable
application/json: Health
503Database unreachable—

Schémas

IndicatorCommand

NomTypeObligatoireDescription
jurisdiction_idstring (uuid)oui
indicator_codestringoui
definition_versionstringoui
numerator_rulestringoui
denominator_rulestringoui
reporting_frequency"weekly" | "monthly" | "quarterly" | "annual"oui

RetireCommand

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui

IndicatorSetCommand

NomTypeObligatoireDescription
labelstringoui
indicator_idsarray of string (uuid)oui

PolicyCommand

NomTypeObligatoireDescription
min_cell_sizeintegeroui
due_days_after_periodinteger | nullnon
approval_referencestringoui

RecipientCommand

NomTypeObligatoireDescription
codestringoui
labelstringoui
activebooleannon

PrepareCommand

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

NomTypeObligatoireDescription
period_startstringouiA real calendar date, YYYY-MM-DD
period_endstringouiA real calendar date, YYYY-MM-DD
source_facilitiesarray of string (uuid)oui
indicator_set_idstring (uuid)oui
aggregation_method"facility_sum" | "facility_breakdown"oui

ValidateCommand

NomTypeObligatoireDescription
expected_versionintegeroui

DecisionCommand

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui

SubmitCommand

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

NomTypeObligatoireDescription
expected_versionintegeroui
validation_evidencestringoui
reviewer_astring (uuid)oui
reviewer_bstring (uuid)oui
recipient_endpointstringoui

CorrectionCommand

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui

ExportCommand

NomTypeObligatoireDescription
format"csv" | "pdf"oui
filtersExportCommand.filtersnon

Problem

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

NomTypeObligatoireDescription
typestringnon
titlestringnon
statusintegernon
detailstringnon
errorstringoui
messagestringnon
trace_idstringnon
detailsobjectnon

Receipt

NomTypeObligatoireDescription
receipt_idstring (uuid)non
committed_atstring (date-time)non
aggregate_idstringnon
versionintegernon
status"committed"non

Indicator

NomTypeObligatoireDescription
idstring (uuid)non
indicator_codestringnon
definition_versionstringnon
numerator_rulestringnon
denominator_rulestringnon
reporting_frequencystringnon
status"active" | "retired"non
versionintegernon

Value

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

NomTypeObligatoireDescription
indicator_idstring (uuid)non
facility_idstring | null (uuid)non
numeratorinteger | nullnon
denominatorinteger | nullnon
valuestring | nullnonFour decimals
suppressedbooleannon
suppression_reason"small_numerator" | "small_denominator" | "complementary" | nullnon
missingbooleannon

Issue

NomTypeObligatoireDescription
code"numerator_exceeds_denominator" | "indicator_retired" | "indicator_all_missing" | "some_cells_missing"non
indicator_idstring | null (uuid)non
severity"error" | "warning"non

Report

NomTypeObligatoireDescription
idstring (uuid)non
period_startstringnon
period_endstringnon
indicator_set_idstring (uuid)non
indicator_idsarray of string (uuid)non
source_facilitiesarray of string (uuid)non
aggregation_methodstringnon
min_cell_size_appliedintegernon
policy_referencestringnon
state"draft" | "validated" | "approved" | "submitted" | "acknowledged_or_rejected"non
outcome"acknowledged" | "rejected" | nullnon
revisionintegernon
correction_statestring | nullnon
correction_notestring | nullnon
prepared_bystring (uuid)non
validated_atstring | null (date-time)non
validation_evidencestring | nullnon
validation_issuesarray of Issuenon
recipient_endpointstring | nullnon
due_datestring | nullnon
submitted_atstring | null (date-time)non
attemptsintegernon
rejection_reasonstring | nullnon
created_atstring (date-time)non
versionintegernon

ReportResult

NomTypeObligatoireDescription
reportReportnon
valuesarray of Valuenon
receiptReceiptnon

IndicatorResult

NomTypeObligatoireDescription
indicatorIndicatornon
receiptReceiptnon

IndicatorList

NomTypeObligatoireDescription
itemsarray of Indicatornon
next_cursorstring | nullnon

IndicatorSetResult

NomTypeObligatoireDescription
indicator_setIndicatorSetResult.indicator_setnon
receiptReceiptnon

IndicatorSetList

NomTypeObligatoireDescription
itemsarray of IndicatorSetList.items.itemnon

PolicyView

NomTypeObligatoireDescription
configuredbooleannon
policyPolicyView.policynon

PolicyResult

NomTypeObligatoireDescription
policyobjectnon
receiptReceiptnon

Recipients

NomTypeObligatoireDescription
configuredbooleannon
itemsarray of Recipients.items.itemnon

RecipientResult

NomTypeObligatoireDescription
itemobjectnon
receiptReceiptnon

Preview

NomTypeObligatoireDescription
min_cell_sizeintegernon
policy_referencestringnon
cellsarray of Valuenon
suppressed_countintegernon
receiptReceiptnon

ReportList

NomTypeObligatoireDescription
itemsarray of Reportnon
next_cursorstring | nullnon

ReportDetail

NomTypeObligatoireDescription
reportReportnon
valuesarray of Valuenon
approversarray of string (uuid)non
historyarray of objectnon
submissionsarray of objectnon

Lineage

NomTypeObligatoireDescription
reportReportnon
indicatorsarray of Indicatornon
policyobjectnon
source_facilitiesarray of string (uuid)non
aggregation_methodstringnon
revisionsarray of objectnon
decisionsarray of objectnon

ValidateResult

NomTypeObligatoireDescription
passedbooleannon
issuesarray of Issuenon
reportReportnon
receiptReceiptnon

ApproveResult

NomTypeObligatoireDescription
reportReportnon
approvals_recordedintegernon
approvals_required2non
receiptReceiptnon

DecisionResult

NomTypeObligatoireDescription
reportReportnon
receiptReceiptnon

SubmitResult

NomTypeObligatoireDescription
reportReportnon
submissionSubmitResult.submissionnon
receiptReceiptnon

SubmissionList

NomTypeObligatoireDescription
itemsarray of objectnon
next_cursorstring | nullnon

Dashboard

NomTypeObligatoireDescription
countsobjectnon
awaiting_correctionintegernon
overdueintegernon
no_deadline_configuredintegernon

DrainResult

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

NomTypeObligatoireDescription
deliveredintegernon
pendingintegernon

ReportCatalog

NomTypeObligatoireDescription
reportsarray of ReportCatalog.reports.itemnon

AnalyticReport

NomTypeObligatoireDescription
report_idstringnon
titlestringnon
columnsarray of stringnon
rowsarray of objectnon
summaryobjectnon
state"rendered" | "no_authorized_data"non
generated_atstring (date-time)non
next_cursorstring | nullnon

ExportReceipt

NomTypeObligatoireDescription
export_idstring (uuid)non
report_idstringnon
formatstringnon
rowsintegernon
expires_atstring (date-time)non
single_usebooleannon
download_pathstringnon
receiptReceiptnon

Health

NomTypeObligatoireDescription
statusstringnon
modulestringnon
dependenciesobjectnon

ExportCommand.filters défini sur place

NomTypeObligatoireDescription
jurisdictionstring (uuid)non
countrystring (uuid)non
period_fromstringnonA real calendar date, YYYY-MM-DD
period_tostringnonA real calendar date, YYYY-MM-DD
recipientstringnon
facilitystring (uuid)non
indicatorstring (uuid)non
statusstringnon

IndicatorSetResult.indicator_set défini sur place

NomTypeObligatoireDescription
idstring (uuid)non
labelstringnon
indicator_idsarray of string (uuid)non

IndicatorSetList.items.item défini sur place

NomTypeObligatoireDescription
idstring (uuid)non
labelstringnon
indicator_idsarray of string (uuid)non

PolicyView.policy défini sur place

NomTypeObligatoireDescription
min_cell_sizeintegernon
due_days_after_periodinteger | nullnon
approval_referencestringnon
versionintegernon

Recipients.items.item défini sur place

NomTypeObligatoireDescription
codestringnon
labelstringnon
activebooleannon

SubmitResult.submission défini sur place

NomTypeObligatoireDescription
attemptintegernon
receipt_refstringnon
outcome"acknowledged" | "rejected"non
reasonstring | nullnon

ReportCatalog.reports.item défini sur place

NomTypeObligatoireDescription
idstringnon
titlestringnon