← Tous les contrats
OHN-12 Immunization, Maternal and Child Summaries
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-12/api/openapi.json- Serveurs
https://opeshealthnetwork.com/api/ohn/v1/child-health
- 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/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).
Opérations
Autres opérations
GET/patients/{id}/patient-viewThe patient’s own visible immunizations and schedule status (OHN-31 patient chart)
Identifiant d’opération: getPatientView
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listPatientImmunizations
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: getMaternalChildSummary
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getTimeline
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: previewConfidentiality
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: listImmunizations
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
vaccine_code | query | string | non | |
patient_id | query | string (uuid) | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: submitImmunization
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 | 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)
Identifiant d’opération: transitionImmunization
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: recordPregnancy
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 | 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
Identifiant d’opération: closePregnancy
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listBirths
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
status | query | string | non | |
child | query | string (uuid) | non | |
mother | query | string (uuid) | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: submitBirth
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 | 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
Identifiant d’opération: decideBirth
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listTransitions
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: openTransition
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 | 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)
Identifiant d’opération: stepTransition
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getSchedule
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: upsertSchedule
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 | 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
Identifiant d’opération: getPolicy
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
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 |
|---|
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)
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 | 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
Identifiant d’opération: reportCatalog
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: runReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-12-R001" | "OHN-12-R002" | "OHN-12-R003" | "OHN-12-R004" | oui | |
facility | query | string (uuid) | non | |
vaccine_code | query | string | non | |
status | query | string | non | |
birth_year | query | string | non | |
jurisdiction | query | string (uuid) | non | |
period_from | query | string | non | |
period_to | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: exportReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-12-R001" | "OHN-12-R002" | "OHN-12-R003" | "OHN-12-R004" | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: downloadExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
token | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: getAncConfig
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listAncConfigs
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: draftAncConfig
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 | 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)
Identifiant d’opération: loadDemoAncConfig
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: loadReferenceAncConfig
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: submitAncConfig
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: approveAncConfig
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: rejectAncConfig
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: listAncEpisodes
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | "active" | "delivered" | "closed" | non | |
facility | query | string (uuid) | non | |
mother | query | string (uuid) | non | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: startAncEpisode
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 | 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
Identifiant d’opération: getAncEpisode
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: recordAncContact
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: ancContactInError
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
cid | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: recordUltrasound
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: ultrasoundInError
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
uid | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: updateAncPlan
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: recordDelivery
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: listMotherAncEpisodes
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
patientId | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: getBirthSummary
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
patientId | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: getPregnancyView
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
patientId | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: getMyChildren
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
patientId | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: getBirthSummaryView
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
patientId | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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) | — |
Schémas
ImmunizationCommand
| Nom | Type | Obligatoire | Description |
|---|
patient_id | string (uuid) | oui | |
code_system | "cvx" | "snomed_ct" | "atc" | "local" | oui | |
vaccine_code | string | oui | |
administered_at | string | oui | |
dose_number | integer | non | |
lot_number | string | non | |
source_facility | string (uuid) | oui | |
source_event_id | string | oui | |
status | "completed" | "not_done" | "entered_in_error" | oui | |
ImmunizationStepCommand
| Nom | Type | Obligatoire | Description |
|---|
to_state | "terminology_checked" | "identity_linked" | "versioned" | "visible" | "rejected" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
PregnancyCommand
| Nom | Type | Obligatoire | Description |
|---|
mother_patient_ref | string (uuid) | oui | |
pregnancy_episode_ref | string (uuid) | oui | |
care_facility | string (uuid) | oui | |
episode_start | string | oui | |
estimated_delivery_date | string | non | |
PregnancyCloseCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
BirthCommand
| Nom | Type | Obligatoire | Description |
|---|
child_health_id | string (uuid) | oui | |
mother_health_id | string (uuid) | oui | |
birth_event_ref | string (uuid) | oui | |
multiple_birth_order | integer | non | |
relationship_evidence | string (uuid) | oui | |
BirthDecisionCommand
| Nom | Type | Obligatoire | Description |
|---|
decision | "verified" | "disputed" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
TransitionOpenCommand
| Nom | Type | Obligatoire | Description |
|---|
patient_id | string (uuid) | oui | |
date_of_birth | string | oui | |
TransitionStepCommand
| Nom | Type | Obligatoire | Description |
|---|
to_state | "jurisdiction_policy_evaluated" | "delegations_adjusted" | "notified" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
ScheduleEntryCommand
| Nom | Type | Obligatoire | Description |
|---|
vaccine_code | string | oui | |
expected_doses | integer | oui | |
approval_reference | string | oui | |
active | boolean | non | |
PolicyCommand
| Nom | Type | Obligatoire | Description |
|---|
transition_age_years | integer | oui | |
transition_action | "revoke_guardian_access" | "require_reconsent" | oui | |
approval_reference | string | oui | |
expected_version | integer | non | |
ExportCommand
| Nom | Type | Obligatoire | Description |
|---|
format | "csv" | "pdf" | oui | |
filters | object | non | Report filters (facility, vaccine_code, status, birth_year, jurisdiction, period_from, period_to); unknown keys and invalid values are refused with 422 |
AncConfigDraftCommand
| Nom | Type | Obligatoire | Description |
|---|
document | object | oui | 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
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
AncConfigApproveCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
approval_ref | string | oui | |
AncConfigRejectCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
AncStartCommand
| Nom | Type | Obligatoire | Description |
|---|
mother_patient_ref | string (uuid) | oui | |
care_facility | string (uuid) | oui | |
dating_method | "lmp" | "ultrasound" | oui | |
lmp | string | non | |
dating_scan_date | string | non | |
dating_scan_ga_weeks | integer | non | |
dating_scan_ga_days | integer | non | |
gravida | integer | oui | |
para | integer | oui | |
EnteredInErrorCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
UltrasoundCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
scan_date | string | oui | |
facility | string (uuid) | oui | |
number_of_fetuses | integer | oui | |
findings | string | oui | |
relevant_to_child | boolean | non | |
child_relevant_summary | string | non | |
report_ref | string (uuid) | non | |
PlanCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
risk_factors | array of RiskFactorInput | oui | |
birth_plan | object | oui | planned_place (uuid or null), companion (max 200), transport (max 300), preferences (max 2000); unknown keys refused with 422 |
DeliveryCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
delivery_date | string | oui | |
mode | string | oui | |
place_facility | string (uuid) | oui | |
babies | array of BabyInput | oui | |
note | string | non | |
Error
| Nom | Type | Obligatoire | Description |
|---|
error | string | oui | |
message | string | non | |
details | object | non | |
TestEntry
| Nom | Type | Obligatoire | Description |
|---|
key | string | oui | |
status | "ordered" | "resulted" | "declined" | "not_available" | oui | |
order_ref | string (uuid) | non | |
result_ref | string (uuid) | non | |
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 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
edd_offset_days | integer | oui | |
max_gestation_weeks | integer | oui | |
AncConfigDocument.danger_signs.item défini sur place
AncConfigDocument.danger_signs.item.label défini sur place
| Nom | Type | Obligatoire | Description |
|---|
en | string | oui | |
fr | string | oui | |
AncConfigDocument.danger_signs.item.guidance défini sur place
| Nom | Type | Obligatoire | Description |
|---|
en | string | oui | |
fr | string | oui | |
AncConfigDocument.risk_factors.item défini sur place
AncConfigDocument.risk_factors.item.label défini sur place
| Nom | Type | Obligatoire | Description |
|---|
en | string | oui | |
fr | string | oui | |
AncConfigDocument.tests.item défini sur place
AncConfigDocument.tests.item.label défini sur place
| Nom | Type | Obligatoire | Description |
|---|
en | string | oui | |
fr | string | oui | |
AncConfigDocument.supplements.item défini sur place
AncConfigDocument.supplements.item.label défini sur place
| Nom | Type | Obligatoire | Description |
|---|
en | string | oui | |
fr | string | oui | |
AncConfigDocument.delivery_modes.item défini sur place
AncConfigDocument.delivery_modes.item.label défini sur place
| Nom | Type | Obligatoire | Description |
|---|
en | string | oui | |
fr | string | oui | |
AncConfigDocument.birth_summary défini sur place
AncConfigDocument.birth_summary.standard_facts défini sur place
| Nom | Type | Obligatoire | Description |
|---|
gestational_age_at_birth | boolean | oui | |
mode_of_delivery | boolean | oui | |
plurality | boolean | oui | |
AncConfigDocument.birth_summary.fields.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
key | string | oui | |
label | AncConfigDocument.birth_summary.fields.item.label | oui | |
kind | "number" | "integer" | "choice" | "multi_choice" | "boolean" | "text" | oui | |
unit | string | non | |
min | number | non | |
max | number | non | |
choices | array of object | non | |
required | boolean | non | |
maternal_sensitive | boolean | non | |
sharing | "always" | "with_mother_consent" | "never" | oui | |
consent_resource_class | any | non | |
AncConfigDocument.birth_summary.fields.item.label défini sur place
| Nom | Type | Obligatoire | Description |
|---|
en | string | oui | |
fr | string | oui | |
AncConfigDocument.representation défini sur place
| Nom | Type | Obligatoire | Description |
|---|
child_summary_category | any | oui | |
pregnancy_category | any | oui | |