OHN-60 Outreach Programmes
- Version
- 1.1.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-60/api/openapi.yaml- Serveurs
https://opeshealthnetwork.com- Authentification
bearer: http bearer (JWT)
Les contrats sont rédigés en anglais.
Health organisation (NGO) partnerships with care sites, jurisdiction-approved screening protocols (configuration, empty by default: 503 not_configured), campaigns with sites and team, on-site registration linked to OHN-02/03, consent through OHN-15, screenings written into OHN-09/11, referral to an ACTIVE partner through OHN-27 with follow-up, reports and suppressed public-health figures. Deployable: care-exchange. Module key: outreach. Tables: ohn60_*. Every POST needs Idempotency-Key; bodies are strict (unknown keys 422); transitions carry expected_version. Synthetic data only until the legal gate.
Opérations
- Autres opérations (36)
Autres opérations
GET/api/ohn/v1/outreach/partnershipsPartnerships of the caller (NGO: its own; partner facility: those addressed to it, never drafts)
Partnerships of the caller (NGO: its own; partner facility: those addressed to it, never drafts).
Identifiant d’opération: listPartnerships
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
state | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Partnership |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/partnershipsDraft a partnership with a registered, active OHN-05 facility (one open agreement per NGO and facility)
Draft a partnership with a registered, active OHN-05 facility (one open agreement per NGO and facility).
Identifiant d’opération: createPartnership
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:PartnershipCreate
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Partnership |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/partnerships/{id}One partnership with its append-only history; another organisation answers 404
One partnership with its append-only history; another organisation answers 404.
Identifiant d’opération: getPartnership
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: Partnership |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/partnerships/{id}/transitionsdraft->proposed (NGO) -> accepted|rejected (partner, rejection needs a reason) -> active (NGO); suspend/resume/end by ei
draft->proposed (NGO) -> accepted|rejected (partner, rejection needs a reason) -> active (NGO); suspend/resume/end by either side with a reason. Audited, evented.
Identifiant d’opération: transitionPartnership
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)
application/json:PartnershipTransition
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Partnership |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/protocolsApproved protocols of the jurisdiction (steward: all)
Approved protocols of the jurisdiction (steward: all). None approved: 503 not_configured.
Identifiant d’opération: listProtocols
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Protocol |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/protocolsDraft a new version of a protocol (configuration)
Draft a new version of a protocol (configuration). 422 lists every problem of the document.
Identifiant d’opération: createProtocol
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ProtocolCreate
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Protocol |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/protocols/load-demoWHO PEN / HEARTS reference protocol, not clinically approved; 404 unless OHN_M60_ALLOW_DEMO_PROTOCOL=true outside production
WHO PEN / HEARTS reference protocol (cited per rule), not clinically approved; 404 unless OHN_M60_ALLOW_DEMO_PROTOCOL=true outside production.
Identifiant d’opération: loadDemoProtocol
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: Protocol |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/protocols/{id}One protocol
One protocol.
Identifiant d’opération: getProtocol
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: Protocol |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/protocols/{id}/approveA second steward approves with the approval reference (403 separation_of_duties for the drafter)
A second steward approves with the approval reference (403 separation_of_duties for the drafter). Approved versions are immutable.
Identifiant d’opération: approveProtocol
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)
application/json:ProtocolApprove
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Protocol |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/protocols/{id}/retireRetire a protocol version
Retire a protocol version.
Identifiant d’opération: retireProtocol
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)
application/json:ProtocolRetire
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Protocol |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/campaignsThe NGO's campaigns (field workers: only those they are rostered on)
The NGO's campaigns (field workers: only those they are rostered on).
Identifiant d’opération: listCampaigns
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Campaign |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/campaignsCreate a draft campaign on an APPROVED protocol (503 not_configured otherwise)
Create a draft campaign on an APPROVED protocol (503 not_configured otherwise).
Identifiant d’opération: createCampaign
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:CampaignCreate
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Campaign |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/campaigns/{id}One campaign with sites and team; another NGO answers 404
One campaign with sites and team; another NGO answers 404.
Identifiant d’opération: getCampaign
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: Campaign |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/campaigns/{id}/transitionsapprove (never by the creator) -> activate (needs a site) -> close (reason)
approve (never by the creator) -> activate (needs a site) -> close (reason).
Identifiant d’opération: transitionCampaign
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)
application/json:CampaignTransition
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Campaign |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/campaigns/{id}/sitesFixed or mobile site, optional GPS
Fixed or mobile site, optional GPS.
Identifiant d’opération: addSite
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)
application/json:SiteCreate
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Site |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/campaigns/{id}/teamRoster a coordinator, outreach worker or outreach clinician
Roster a coordinator, outreach worker or outreach clinician.
Identifiant d’opération: addTeamMember
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)
application/json:TeamMember
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: object |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/campaigns/{id}/daySite day view: who was screened, outcome, referral progress (names and Health IDs only)
Site day view: who was screened, outcome, referral progress (names and Health IDs only).
Identifiant d’opération: siteDay
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
site_id | query | string | non | |
date | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: object |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/persons/lookupBy Health ID (OHN-02) or MPI search (OHN-03)
By Health ID (OHN-02) or MPI search (OHN-03).
Identifiant d’opération: lookupPerson
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:PersonLookup
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: object |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/personsLink an existing record or register through OHN-03 and issue a Health ID through OHN-02
Link an existing record or register through OHN-03 and issue a Health ID through OHN-02. 409 possible_duplicate on an exact MPI match; 200 on a replay or an already-linked person.
Identifiant d’opération: registerPerson
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:PersonRegister
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Person |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/persons/{id}/consentsScreening or data-sharing consent, recorded in OHN-15 (the latest decision counts)
Screening or data-sharing consent, recorded in OHN-15 (the latest decision counts).
Identifiant d’opération: recordConsent
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)
application/json:Consent
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: object |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/persons/{id}/recordThe person's outreach record within this NGO: the licensed outreach clinician only
The person's outreach record within this NGO: the licensed outreach clinician only.
Identifiant d’opération: personRecord
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 |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/screeningsScreenings of the NGO (a field worker: own only; the outreach worker never sees the answers)
Screenings of the NGO (a field worker: own only; the outreach worker never sees the answers).
Identifiant d’opération: listScreenings
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
campaign_id | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Screening |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/screeningsRecord a screening (approved protocol, active campaign, rostered performer, allowed role, active licence for the clinici
Record a screening (approved protocol, active campaign, rostered performer, allowed role, active licence for the clinician, screening consent). Written into OHN-09/OHN-11; a positive/refer result is referred to an active partner.
Identifiant d’opération: recordScreening
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ScreeningCreate
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Screening |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/screenings/push-pendingWrite pending screenings into the record again after an outage
Write pending screenings into the record again after an outage.
Identifiant d’opération: pushPendingScreenings
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 |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/referralsNGO: its referrals; partner facility: incoming referrals under an active partnership
NGO: its referrals; partner facility: incoming referrals under an active partnership.
Identifiant d’opération: listReferrals
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
state | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Referral |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/referralsRefer a positive/refer screening to an ACTIVE partner (422 not_a_partner, 409 partnership_not_active, 403 consent_requir
Refer a positive/refer screening to an ACTIVE partner (422 not_a_partner, 409 partnership_not_active, 403 consent_required, 409 already_referred).
Identifiant d’opération: createReferral
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ReferralCreate
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Referral |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/referrals/{id}/follow-upPartner facility: received -> seen -> outcome
Partner facility: received -> seen -> outcome.
Identifiant d’opération: referralFollowUp
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)
application/json:FollowUp
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Referral |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/referrals/sweepMark open referrals past the follow-up window lost to follow-up and alert the referrer (OHN-53)
Mark open referrals past the follow-up window lost to follow-up and alert the referrer (OHN-53).
Identifiant d’opération: referralSweep
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 |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/reports/summaryScreened, positive, referred, seen, positivity and follow-up rate by campaign, site, area, age band or sex
Screened, positive, referred, seen, positivity and follow-up rate by campaign, site, area, age band or sex.
Identifiant d’opération: reportSummary
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
campaign_id | query | string | non | |
group_by | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Report |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/reports/summary/exportCSV attachment; watermarked by the platform ExportMarkFilter
CSV attachment; watermarked by the platform ExportMarkFilter.
Identifiant d’opération: reportExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
campaign_id | query | string | non | |
group_by | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | text/csv: string |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
POST/api/ohn/v1/outreach/reports/publicationsPublish the campaign's figures for public health with small-cell suppression (503 not_configured without OHN_M60_MIN_CEL
Publish the campaign's figures for public health with small-cell suppression (503 not_configured without OHN_M60_MIN_CELL_SIZE).
Identifiant d’opération: publishAggregates
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Publication
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: object |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/public-health/publicationsPublished, suppressed figures of the jurisdiction
Published, suppressed figures of the jurisdiction.
Identifiant d’opération: publicHealthPublications
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: object |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/api/ohn/v1/outreach/analytics/totalsMinistry analyst - outreach totals by region, campaign or period; every count below 10 is "<10"
Owner decision 2026-11-29. Totals of every organisation in the caller's jurisdiction. No name, no person-level record, no site, age or sex. Every count below 10 (zero included) is returned as the string "<10"; a rate is given only when both of its counts are shown. Each read is audited (analytics.totals) with its filters.
Identifiant d’opération: nationalTotals
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
group_by | query | "region" | "campaign" | "period" | non | |
period | query | "month" | "quarter" | non | Period bucket when group_by=period. |
from | query | string (date) | non | |
to | query | string (date) | non | |
region | query | string | non | One region (district) only. |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: NationalTotals |
401 | Unauthenticated | application/json: Error |
403 | Not the ministry analyst, or the wrong purpose (audited as denied) | application/json: Error |
422 | Validation failed | application/json: Error |
GET/api/ohn/v1/outreach/analytics/totals/exportThe same totals as a CSV attachment (watermarked); suppressed counts stay "<10"
The same totals as a CSV attachment, watermarked by the platform ExportMarkFilter. Suppressed counts stay "<10" in the file. Each export is audited (analytics.export).
Identifiant d’opération: nationalTotalsExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
group_by | query | "region" | "campaign" | "period" | non | |
period | query | "month" | "quarter" | non | Period bucket when group_by=period. |
from | query | string (date) | non | |
to | query | string (date) | non | |
region | query | string | non | One region (district) only. |
Réponses
GET/api/ohn/v1/outreach/me/screeningsThe patient's own screening results (portal)
The patient's own screening results (portal).
Identifiant d’opération: myScreenings
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: object |
401 | Unauthenticated | application/json: Error |
403 | Role, purpose, consent, licence or separation of duties | application/json: Error |
404 | Not found (or another organisation's record) | application/json: Error |
409 | Version conflict or invalid transition | application/json: Error |
422 | Validation failed | application/json: Error |
503 | not_configured or dependency_unavailable: nothing stored | application/json: Error |
GET/health/ohn-60Liveness and dependency wiring
Identifiant d’opération: health
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: object |
Schémas
Error
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
error | string | oui | |
message | string | oui | |
details | object | non | |
dependency | string | non |
PartnershipCreate
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
partner_facility_id | string (uuid) | oui | |
title | string | oui | |
programmes | array of string | non | |
services | array of "referral_receipt" | "lab_tests" | "follow_up" | oui | |
data_shared | array of string | oui | |
sharing_purpose | string | oui | |
start_date | string (date) | oui | |
end_date | string (date) | oui |
PartnershipTransition
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
action | "propose" | "accept" | "reject" | "activate" | "suspend" | "resume" | "end" | oui | |
expected_version | integer | oui | |
reason | string | non |
Partnership
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | non | |
ngo_org_id | string (uuid) | non | |
partner_facility_id | string (uuid) | non | |
partner_name | string | null | non | |
partner_code | string | null | non | |
title | string | non | |
programmes | array of string | non | |
services | array of string | non | |
data_shared | array of string | non | |
sharing_purpose | string | non | |
start_date | string (date) | non | |
end_date | string (date) | non | |
state | "draft" | "proposed" | "accepted" | "active" | "suspended" | "ended" | "rejected" | non | |
rejection_reason | string | null | non | |
version | integer | non | |
history | array of object | non |
ProtocolCreate
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
code | string | oui | |
title | string | oui | |
definition | ProtocolDefinition | oui | Jurisdiction-approved configuration. OHN-60 contains no clinical threshold: fields, ranges, performer roles and the positive/refer criteria all come from here. First matching rule wins; no match = negative. |
ProtocolDefinition
Jurisdiction-approved configuration. OHN-60 contains no clinical threshold: fields, ranges, performer roles and the positive/refer criteria all come from here. First matching rule wins; no match = negative.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
notice | string | non | |
sources | array of ProtocolDefinition.sources.item | non | The publications the rules cite (id, full citation, link). |
performer_roles | array of "outreach_worker" | "outreach_clinician" | oui | |
fields | array of ProtocolDefinition.fields.item | oui | |
outcome_rules | array of ProtocolDefinition.outcome_rules.item | oui | |
follow_up_days | integer | oui | |
record | ProtocolDefinition.record | oui | |
referral | ProtocolDefinition.referral | non |
ProtocolApprove
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
approval_reference | string | oui | |
expected_version | integer | oui |
ProtocolRetire
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
reason | string | oui | |
expected_version | integer | oui |
Protocol
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | non | |
code | string | non | |
version | integer | non | |
title | string | non | |
status | "draft" | "approved" | "retired" | non | |
demo | boolean | non | |
clinically_approved | boolean | non | |
approval_reference | string | null | non | |
expected_version | integer | non | |
notice | string | non | |
definition | ProtocolDefinition | non | Jurisdiction-approved configuration. OHN-60 contains no clinical threshold: fields, ranges, performer roles and the positive/refer criteria all come from here. First matching rule wins; no match = negative. |
CampaignCreate
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
name | string | oui | |
programme | string | oui | |
target_group | string | oui | |
district | string | oui | |
start_date | string (date) | oui | |
end_date | string (date) | oui | |
protocol_id | string (uuid) | oui | |
follow_up_days | integer | non |
CampaignTransition
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
action | "approve" | "activate" | "close" | oui | |
expected_version | integer | oui | |
reason | string | non |
Campaign
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | non | |
name | string | non | |
programme | string | non | |
target_group | string | non | |
area | Campaign.area | non | |
start_date | string (date) | non | |
end_date | string (date) | non | |
protocol_id | string (uuid) | non | |
protocol | object | non | |
follow_up_days | integer | non | |
state | "draft" | "approved" | "active" | "closed" | non | |
version | integer | non | |
sites | array of Site | non | |
team | array of object | non |
SiteCreate
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
name | string | oui | |
kind | "fixed" | "mobile" | oui | |
latitude | number | non | |
longitude | number | non | |
site_date | string (date) | non |
Site
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | non | |
name | string | non | |
kind | "fixed" | "mobile" | non | |
latitude | number | null | non | |
longitude | number | null | non | |
site_date | string | null | non |
TeamMember
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
principal_id | string (uuid) | oui | |
role | "field_coordinator" | "outreach_worker" | "outreach_clinician" | oui | |
display_name | string | oui |
PersonLookup
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
health_id | string | non | |
given_name | string | non | |
family_name | string | non | |
birth_date | string (date) | non |
PersonRegister
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
campaign_id | string (uuid) | oui | |
existing_patient_id | string (uuid) | non | |
health_id | string | non | |
given_name | string | non | |
family_name | string | non | |
birth_date | string (date) | non | |
sex | "male" | "female" | "unknown" | "other" | non | |
client_ref | string | non | |
on_conflict | "ask" | "link_exact" | non | link_exact (offline sync): link to the single exact MPI match instead of 409 possible_duplicate |
Person
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | non | |
patient_id | string (uuid) | non | |
health_id | string | null | non | |
given_name | string | non | |
family_name | string | non | |
birth_date | string (date) | non | |
sex | string | non | |
source | "existing" | "registered" | "linked_on_sync" | non | |
resolution | "existing" | "registered" | "linked_on_sync" | "replayed" | "already_linked" | non |
Consent
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
campaign_id | string (uuid) | oui | |
kind | "screening" | "data_sharing" | oui | |
granted | boolean | oui | |
client_ref | string | non |
ScreeningCreate
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
campaign_id | string (uuid) | oui | |
site_id | string (uuid) | oui | |
person_id | string (uuid) | oui | |
answers | object | oui | keys and value types of the protocol fields |
performed_at | string (date-time) | non | |
client_ref | string | non | |
referral_partner_facility_id | string (uuid) | non | |
referral_reason | string | non |
Screening
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | non | |
campaign_id | string (uuid) | non | |
site_id | string (uuid) | non | |
person_id | string (uuid) | non | |
patient_id | string (uuid) | non | |
outcome | "negative" | "positive" | "refer" | non | |
matched_rule | string | null | non | |
answers | object | non | |
performed_at | string (date-time) | non | |
performed_by | string | null | non | |
performer_role | string | non | |
record_state | "pending" | "recorded" | "failed" | non | |
encounter_ref | string | null | non | |
result_ref | string | null | non | |
referral | null | Referral | non | |
referral_required | boolean | non | |
referral_error | Error | non | |
replayed | boolean | non |
ReferralCreate
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
screening_id | string (uuid) | oui | |
partner_facility_id | string (uuid) | oui | |
reason | string | non |
FollowUp
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
action | "receive" | "seen" | "outcome" | oui | |
expected_version | integer | oui | |
outcome | string | non |
Referral
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | non | |
screening_id | string (uuid) | non | |
campaign_id | string (uuid) | non | |
partner_facility_id | string (uuid) | non | |
partnership_id | string (uuid) | non | |
ohn27_referral_id | string | null | non | |
reason | string | non | |
state | "referred" | "received" | "seen" | "outcome_recorded" | "lost_to_follow_up" | non | |
outcome | string | null | non | |
due_at | string (date-time) | non | |
version | integer | non | |
person | object | non |
NationalTotals
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
group_by | "region" | "campaign" | "period" | non | |
period | "month" | "quarter" | non | |
from | string | null | non | |
to | string | null | non | |
region | string | null | non | |
min_count | 10 | non | |
suppressed_as | "<10" | non | |
generated_at | string | non | |
rows | array of NationalTotals.rows.item | non |
Publication
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
campaign_id | string (uuid) | oui |
Report
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
group_by | "campaign" | "site" | "area" | "age_band" | "sex" | non | |
rows | array of Report.rows.item | non |
ProtocolDefinition.sources.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string | non | |
citation | string | non | |
url | string | non |
ProtocolDefinition.fields.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
key | string | oui | |
label_en | string | oui | |
label_fr | string | oui | |
type | "number" | "integer" | "boolean" | "choice" | "text" | oui | |
unit | string | non | |
min | number | non | |
max | number | non | |
required | boolean | non | |
max_length | integer | non | |
options | array of object | non |
ProtocolDefinition.outcome_rules.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string | oui | |
outcome | "positive" | "refer" | oui | |
priority | string | non | Optional OHN-27 priority code for referrals from this rule (e.g. urgent); absent = referral.priority. |
sources | array of string | non | Ids of the definition's sources this rule cites. |
all | array of ProtocolDefinition.outcome_rules.item.all.item | oui |
ProtocolDefinition.outcome_rules.item.all.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
field | string | oui | |
op | ">" | ">=" | "<" | "<=" | "==" | "!=" | "in" | oui | |
value | any | oui |
ProtocolDefinition.record défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
encounter_type | string | oui | code of the jurisdiction OHN-09 encounter_type list |
as_result | boolean | non | |
report_type | string | non | |
observation_codes | object | non |
ProtocolDefinition.referral défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
requested_service | string | oui | |
priority | string | oui |
Campaign.area défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
jurisdiction_id | string (uuid) | non | |
district | string | non |
NationalTotals.rows.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
group | string | non | |
screened | integer | "<10" | non | |
positive | integer | "<10" | non | |
referred | integer | "<10" | non | |
seen | integer | "<10" | non | |
positivity | number | null | non | |
follow_up_rate | number | null | non | |
suppressed | boolean | non |
Report.rows.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
group | string | non | |
screened | integer | null | non | |
positive | integer | null | non | |
referred | integer | null | non | |
seen | integer | null | non | |
positivity | number | null | non | |
follow_up_rate | number | null | non | |
suppressed | boolean | non |