← All contracts
OHN-12 Immunization, Maternal and Child Summaries
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-12/api/openapi.json- Servers
https://opeshealthnetwork.com/api/ohn/v1/child-health
- Authentication
bearer: http bearer
Download the contract (JSON)
Contracts are written in English.
Server paths are under /api/ohn/v1/child-health. Default deny: role AND purpose must match. Inventory paths OHN-12-API-001..002 are mapped to this disjoint prefix (see ADR-0001).
Operations
Other operations
GET/patients/{id}/patient-viewThe patient’s own visible immunizations and schedule status (OHN-31 patient chart)
Operation ID: getPatientView
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{id}/immunizationsVisible immunizations with schedule comparison
Operation ID: listPatientImmunizations
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{id}/maternal-child-summarySummary assembled with sensitive sections filtered (W002)
Operation ID: getMaternalChildSummary
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{id}/timelineChild care timeline
Operation ID: getTimeline
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{id}/confidentiality-previewWhat each requester kind would see
Operation ID: previewConfidentiality
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/immunizationsPipeline worklist (not for guardian verifiers)
Operation ID: listImmunizations
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
state | query | string | no | |
vaccine_code | query | string | no | |
patient_id | query | string (uuid) | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/immunizationsSubmit a vaccine event (F001)
Operation ID: submitImmunization
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/immunizations/{id}/transitionsAdvance vaccine event ingestion (W001)
Operation ID: transitionImmunization
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/pregnancy-episodesRecord a pregnancy episode (F002)
Operation ID: recordPregnancy
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/pregnancy-episodes/{id}/closeClose a pregnancy episode
Operation ID: closePregnancy
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/birth-eventsBirth links
Operation ID: listBirths
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
status | query | string | no | |
child | query | string (uuid) | no | |
mother | query | string (uuid) | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/birth-eventsAssociate a newborn with a mother (F003)
Operation ID: submitBirth
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/birth-events/{id}/decisionVerify or dispute a birth link
Operation ID: decideBirth
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/age-transitionsTransition cases
Operation ID: listTransitions
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
state | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/age-transitionsOpen an age-threshold transition case
Operation ID: openTransition
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/age-transitions/{id}/transitionsAdvance a transition (W003)
Operation ID: stepTransition
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/scheduleJurisdiction vaccination schedule
Operation ID: getSchedule
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/scheduleUpsert a schedule entry
Operation ID: upsertSchedule
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/policyAge-threshold policy
Operation ID: getPolicy
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/policySet the age-threshold policy
Operation ID: setPolicy
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/maintenance/drain-outboxReport pending outbox events (no sink: nothing claimed delivered)
Operation ID: drainOutbox
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/report-catalogAvailable reports
Operation ID: reportCatalog
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/reports/{reportId}Run report R001..R004
Operation ID: runReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
reportId | path | "OHN-12-R001" | "OHN-12-R002" | "OHN-12-R003" | "OHN-12-R004" | yes | |
facility | query | string (uuid) | no | |
vaccine_code | query | string | no | |
status | query | string | no | |
birth_year | query | string | no | |
jurisdiction | query | string (uuid) | no | |
period_from | query | string | no | |
period_to | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/reports/{reportId}/exportCreate a signed single-use export
Operation ID: exportReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
reportId | path | "OHN-12-R001" | "OHN-12-R002" | "OHN-12-R003" | "OHN-12-R004" | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/exports/{token}Download an export once
Operation ID: downloadExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
token | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | text/csv: string (binary)
application/pdf: string (binary)
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/anc/configActive antenatal configuration (or configured=false)
Operation ID: getAncConfig
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/anc/config-versionsAntenatal configuration versions
Operation ID: listAncConfigs
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/config-versionsDraft an antenatal configuration
Operation ID: draftAncConfig
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/config-versions/demoDraft the SYNTHETIC demo configuration (404 in production)
Operation ID: loadDemoAncConfig
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/config-versions/referenceDraft the reference configuration (WHO 2016 antenatal care model with eight contacts at 12, 20, 26, 30, 34, 36, 38 and 40 weeks; WHO IMPAC PCPNC 2015 danger signs; each item cited) with synthetic_demo false. Served in every profile; it counts only after a second person approves it with a real approval reference
Operation ID: loadReferenceAncConfig
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/config-versions/{id}/submitSubmit a draft for approval
Operation ID: submitAncConfig
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/config-versions/{id}/approveApprove and activate (a second person)
Operation ID: approveAncConfig
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/config-versions/{id}/rejectReject a configuration
Operation ID: rejectAncConfig
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/anc/episodesAntenatal worklist (facility, state, mother)
Operation ID: listAncEpisodes
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
state | query | "active" | "delivered" | "closed" | no | |
facility | query | string (uuid) | no | |
mother | query | string (uuid) | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/episodesStart antenatal care (creates the PregnancyEpisode)
Operation ID: startAncEpisode
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/anc/episodes/{id}Antenatal episode with schedule, contacts, scans, delivery
Operation ID: getAncEpisode
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/episodes/{id}/contactsRecord an antenatal contact
Operation ID: recordAncContact
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/episodes/{id}/contacts/{cid}/entered-in-errorMark a contact entered in error
Operation ID: ancContactInError
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
cid | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/episodes/{id}/ultrasoundsRecord an ultrasound summary
Operation ID: recordUltrasound
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/episodes/{id}/ultrasounds/{uid}/entered-in-errorMark an ultrasound entered in error
Operation ID: ultrasoundInError
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
uid | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/episodes/{id}/planRisk factors and birth plan
Operation ID: updateAncPlan
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/anc/episodes/{id}/deliveryDelivery outcome: BirthEvent + birth summary per baby
Operation ID: recordDelivery
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{patientId}/ancAntenatal episodes of a mother (patient chart)
Operation ID: listMotherAncEpisodes
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
patientId | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{patientId}/birth-summaryChild’s pregnancy-and-birth summary (clinician)
Operation ID: getBirthSummary
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
patientId | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{patientId}/pregnancy-viewMy pregnancy (mother, or a representative she delegated in OHN-19)
Operation ID: getPregnancyView
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
patientId | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{patientId}/childrenMy babies’ birth summaries and my sharing choices (mother only)
Operation ID: getMyChildren
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
patientId | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{patientId}/birth-summary-viewBirth summary for the child or a guardian in force (OHN-19)
Operation ID: getBirthSummaryView
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
patientId | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
Schemas
ImmunizationCommand
| Name | Type | Required | Description |
|---|
patient_id | string (uuid) | yes | |
code_system | "cvx" | "snomed_ct" | "atc" | "local" | yes | |
vaccine_code | string | yes | |
administered_at | string | yes | |
dose_number | integer | no | |
lot_number | string | no | |
source_facility | string (uuid) | yes | |
source_event_id | string | yes | |
status | "completed" | "not_done" | "entered_in_error" | yes | |
ImmunizationStepCommand
| Name | Type | Required | Description |
|---|
to_state | "terminology_checked" | "identity_linked" | "versioned" | "visible" | "rejected" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
PregnancyCommand
| Name | Type | Required | Description |
|---|
mother_patient_ref | string (uuid) | yes | |
pregnancy_episode_ref | string (uuid) | yes | |
care_facility | string (uuid) | yes | |
episode_start | string | yes | |
estimated_delivery_date | string | no | |
PregnancyCloseCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
BirthCommand
| Name | Type | Required | Description |
|---|
child_health_id | string (uuid) | yes | |
mother_health_id | string (uuid) | yes | |
birth_event_ref | string (uuid) | yes | |
multiple_birth_order | integer | no | |
relationship_evidence | string (uuid) | yes | |
BirthDecisionCommand
| Name | Type | Required | Description |
|---|
decision | "verified" | "disputed" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
TransitionOpenCommand
| Name | Type | Required | Description |
|---|
patient_id | string (uuid) | yes | |
date_of_birth | string | yes | |
TransitionStepCommand
| Name | Type | Required | Description |
|---|
to_state | "jurisdiction_policy_evaluated" | "delegations_adjusted" | "notified" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
ScheduleEntryCommand
| Name | Type | Required | Description |
|---|
vaccine_code | string | yes | |
expected_doses | integer | yes | |
approval_reference | string | yes | |
active | boolean | no | |
PolicyCommand
| Name | Type | Required | Description |
|---|
transition_age_years | integer | yes | |
transition_action | "revoke_guardian_access" | "require_reconsent" | yes | |
approval_reference | string | yes | |
expected_version | integer | no | |
ExportCommand
| Name | Type | Required | Description |
|---|
format | "csv" | "pdf" | yes | |
filters | object | no | Report filters (facility, vaccine_code, status, birth_year, jurisdiction, period_from, period_to); unknown keys and invalid values are refused with 422 |
AncConfigDraftCommand
| Name | Type | Required | Description |
|---|
document | object | yes | Jurisdiction antenatal configuration (clinical content). Strict document, validated by the application (all keys listed here, unknown keys refused with 422): label, notice, dating{edd_offset_days 200..320, max_gestation_weeks 30..50}, contact_schedule[], danger_signs[], risk_factors[], tests[], supplements[], delivery_modes[], birth_summary{standard_facts, fields[], prenatal_findings always|never}, representation{child_summary_category, pregnancy_category}. Every label has en and fr. |
AncConfigSubmitCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
AncConfigApproveCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
approval_ref | string | yes | |
AncConfigRejectCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
AncStartCommand
| Name | Type | Required | Description |
|---|
mother_patient_ref | string (uuid) | yes | |
care_facility | string (uuid) | yes | |
dating_method | "lmp" | "ultrasound" | yes | |
lmp | string | no | |
dating_scan_date | string | no | |
dating_scan_ga_weeks | integer | no | |
dating_scan_ga_days | integer | no | |
gravida | integer | yes | |
para | integer | yes | |
EnteredInErrorCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
UltrasoundCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
scan_date | string | yes | |
facility | string (uuid) | yes | |
number_of_fetuses | integer | yes | |
findings | string | yes | |
relevant_to_child | boolean | no | |
child_relevant_summary | string | no | |
report_ref | string (uuid) | no | |
PlanCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
risk_factors | array of RiskFactorInput | yes | |
birth_plan | object | yes | planned_place (uuid or null), companion (max 200), transport (max 300), preferences (max 2000); unknown keys refused with 422 |
DeliveryCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
delivery_date | string | yes | |
mode | string | yes | |
place_facility | string (uuid) | yes | |
babies | array of BabyInput | yes | |
note | string | no | |
Error
| Name | Type | Required | Description |
|---|
error | string | yes | |
message | string | no | |
details | object | no | |
TestEntry
| Name | Type | Required | Description |
|---|
key | string | yes | |
status | "ordered" | "resulted" | "declined" | "not_available" | yes | |
order_ref | string (uuid) | no | |
result_ref | string (uuid) | no | |
AncConfigDocument
Jurisdiction antenatal configuration (clinical content). Strict document, validated by the application (all keys listed here, unknown keys refused with 422): label, notice, dating{edd_offset_days 200..320, max_gestation_weeks 30..50}, contact_schedule[], danger_signs[], risk_factors[], tests[], supplements[], delivery_modes[], birth_summary{standard_facts, fields[], prenatal_findings always|never}, representation{child_summary_category, pregnancy_category}. Every label has en and fr.
AncConfigDocument.dating defined inline
| Name | Type | Required | Description |
|---|
edd_offset_days | integer | yes | |
max_gestation_weeks | integer | yes | |
AncConfigDocument.danger_signs.item defined inline
AncConfigDocument.danger_signs.item.label defined inline
| Name | Type | Required | Description |
|---|
en | string | yes | |
fr | string | yes | |
AncConfigDocument.danger_signs.item.guidance defined inline
| Name | Type | Required | Description |
|---|
en | string | yes | |
fr | string | yes | |
AncConfigDocument.risk_factors.item defined inline
AncConfigDocument.risk_factors.item.label defined inline
| Name | Type | Required | Description |
|---|
en | string | yes | |
fr | string | yes | |
AncConfigDocument.tests.item defined inline
AncConfigDocument.tests.item.label defined inline
| Name | Type | Required | Description |
|---|
en | string | yes | |
fr | string | yes | |
AncConfigDocument.supplements.item defined inline
AncConfigDocument.supplements.item.label defined inline
| Name | Type | Required | Description |
|---|
en | string | yes | |
fr | string | yes | |
AncConfigDocument.delivery_modes.item defined inline
AncConfigDocument.delivery_modes.item.label defined inline
| Name | Type | Required | Description |
|---|
en | string | yes | |
fr | string | yes | |
AncConfigDocument.birth_summary defined inline
AncConfigDocument.birth_summary.standard_facts defined inline
| Name | Type | Required | Description |
|---|
gestational_age_at_birth | boolean | yes | |
mode_of_delivery | boolean | yes | |
plurality | boolean | yes | |
AncConfigDocument.birth_summary.fields.item defined inline
| Name | Type | Required | Description |
|---|
key | string | yes | |
label | AncConfigDocument.birth_summary.fields.item.label | yes | |
kind | "number" | "integer" | "choice" | "multi_choice" | "boolean" | "text" | yes | |
unit | string | no | |
min | number | no | |
max | number | no | |
choices | array of object | no | |
required | boolean | no | |
maternal_sensitive | boolean | no | |
sharing | "always" | "with_mother_consent" | "never" | yes | |
consent_resource_class | any | no | |
AncConfigDocument.birth_summary.fields.item.label defined inline
| Name | Type | Required | Description |
|---|
en | string | yes | |
fr | string | yes | |
AncConfigDocument.representation defined inline
| Name | Type | Required | Description |
|---|
child_summary_category | any | yes | |
pregnancy_category | any | yes | |