OHN-60 Outreach Programmes
- Version
- 1.1.0
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-60/api/openapi.yaml- Servers
https://opeshealthnetwork.com- Authentication
bearer: http bearer (JWT)
Contracts are written in English.
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.
Operations
- Other operations (36)
Other operations
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).
Operation ID: listPartnerships
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
state | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
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).
Operation ID: createPartnership
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:PartnershipCreate
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: getPartnership
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: transitionPartnership
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:PartnershipTransition
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: listProtocols
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: createProtocol
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ProtocolCreate
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: loadDemoProtocol
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: getProtocol
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: approveProtocol
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ProtocolApprove
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: retireProtocol
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ProtocolRetire
Responses
| Code | Description | Media type |
|---|---|---|
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).
Operation ID: listCampaigns
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
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).
Operation ID: createCampaign
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:CampaignCreate
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: getCampaign
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
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).
Operation ID: transitionCampaign
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:CampaignTransition
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: addSite
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:SiteCreate
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: addTeamMember
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:TeamMember
Responses
| Code | Description | Media type |
|---|---|---|
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).
Operation ID: siteDay
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
site_id | query | string | no | |
date | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
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).
Operation ID: lookupPerson
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:PersonLookup
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: registerPerson
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:PersonRegister
Responses
| Code | Description | Media type |
|---|---|---|
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).
Operation ID: recordConsent
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:Consent
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: personRecord
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
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).
Operation ID: listScreenings
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
campaign_id | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: recordScreening
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ScreeningCreate
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: pushPendingScreenings
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: listReferrals
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
state | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
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).
Operation ID: createReferral
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ReferralCreate
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: referralFollowUp
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:FollowUp
Responses
| Code | Description | Media type |
|---|---|---|
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).
Operation ID: referralSweep
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: reportSummary
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
campaign_id | query | string | no | |
group_by | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: reportExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
campaign_id | query | string | no | |
group_by | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
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).
Operation ID: publishAggregates
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:Publication
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: publicHealthPublications
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
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.
Operation ID: nationalTotals
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
group_by | query | "region" | "campaign" | "period" | no | |
period | query | "month" | "quarter" | no | Period bucket when group_by=period. |
from | query | string (date) | no | |
to | query | string (date) | no | |
region | query | string | no | One region (district) only. |
Responses
| Code | Description | Media type |
|---|---|---|
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).
Operation ID: nationalTotalsExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
group_by | query | "region" | "campaign" | "period" | no | |
period | query | "month" | "quarter" | no | Period bucket when group_by=period. |
from | query | string (date) | no | |
to | query | string (date) | no | |
region | query | string | no | One region (district) only. |
Responses
GET/api/ohn/v1/outreach/me/screeningsThe patient's own screening results (portal)
The patient's own screening results (portal).
Operation ID: myScreenings
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: health
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
Schemas
Error
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes | |
message | string | yes | |
details | object | no | |
dependency | string | no |
PartnershipCreate
| Name | Type | Required | Description |
|---|---|---|---|
partner_facility_id | string (uuid) | yes | |
title | string | yes | |
programmes | array of string | no | |
services | array of "referral_receipt" | "lab_tests" | "follow_up" | yes | |
data_shared | array of string | yes | |
sharing_purpose | string | yes | |
start_date | string (date) | yes | |
end_date | string (date) | yes |
PartnershipTransition
| Name | Type | Required | Description |
|---|---|---|---|
action | "propose" | "accept" | "reject" | "activate" | "suspend" | "resume" | "end" | yes | |
expected_version | integer | yes | |
reason | string | no |
Partnership
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | no | |
ngo_org_id | string (uuid) | no | |
partner_facility_id | string (uuid) | no | |
partner_name | string | null | no | |
partner_code | string | null | no | |
title | string | no | |
programmes | array of string | no | |
services | array of string | no | |
data_shared | array of string | no | |
sharing_purpose | string | no | |
start_date | string (date) | no | |
end_date | string (date) | no | |
state | "draft" | "proposed" | "accepted" | "active" | "suspended" | "ended" | "rejected" | no | |
rejection_reason | string | null | no | |
version | integer | no | |
history | array of object | no |
ProtocolCreate
| Name | Type | Required | Description |
|---|---|---|---|
code | string | yes | |
title | string | yes | |
definition | ProtocolDefinition | yes | 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.
| Name | Type | Required | Description |
|---|---|---|---|
notice | string | no | |
sources | array of ProtocolDefinition.sources.item | no | The publications the rules cite (id, full citation, link). |
performer_roles | array of "outreach_worker" | "outreach_clinician" | yes | |
fields | array of ProtocolDefinition.fields.item | yes | |
outcome_rules | array of ProtocolDefinition.outcome_rules.item | yes | |
follow_up_days | integer | yes | |
record | ProtocolDefinition.record | yes | |
referral | ProtocolDefinition.referral | no |
ProtocolApprove
| Name | Type | Required | Description |
|---|---|---|---|
approval_reference | string | yes | |
expected_version | integer | yes |
ProtocolRetire
| Name | Type | Required | Description |
|---|---|---|---|
reason | string | yes | |
expected_version | integer | yes |
Protocol
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | no | |
code | string | no | |
version | integer | no | |
title | string | no | |
status | "draft" | "approved" | "retired" | no | |
demo | boolean | no | |
clinically_approved | boolean | no | |
approval_reference | string | null | no | |
expected_version | integer | no | |
notice | string | no | |
definition | ProtocolDefinition | no | 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
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
programme | string | yes | |
target_group | string | yes | |
district | string | yes | |
start_date | string (date) | yes | |
end_date | string (date) | yes | |
protocol_id | string (uuid) | yes | |
follow_up_days | integer | no |
CampaignTransition
| Name | Type | Required | Description |
|---|---|---|---|
action | "approve" | "activate" | "close" | yes | |
expected_version | integer | yes | |
reason | string | no |
Campaign
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | no | |
name | string | no | |
programme | string | no | |
target_group | string | no | |
area | Campaign.area | no | |
start_date | string (date) | no | |
end_date | string (date) | no | |
protocol_id | string (uuid) | no | |
protocol | object | no | |
follow_up_days | integer | no | |
state | "draft" | "approved" | "active" | "closed" | no | |
version | integer | no | |
sites | array of Site | no | |
team | array of object | no |
SiteCreate
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
kind | "fixed" | "mobile" | yes | |
latitude | number | no | |
longitude | number | no | |
site_date | string (date) | no |
Site
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | no | |
name | string | no | |
kind | "fixed" | "mobile" | no | |
latitude | number | null | no | |
longitude | number | null | no | |
site_date | string | null | no |
TeamMember
| Name | Type | Required | Description |
|---|---|---|---|
principal_id | string (uuid) | yes | |
role | "field_coordinator" | "outreach_worker" | "outreach_clinician" | yes | |
display_name | string | yes |
PersonLookup
| Name | Type | Required | Description |
|---|---|---|---|
health_id | string | no | |
given_name | string | no | |
family_name | string | no | |
birth_date | string (date) | no |
PersonRegister
| Name | Type | Required | Description |
|---|---|---|---|
campaign_id | string (uuid) | yes | |
existing_patient_id | string (uuid) | no | |
health_id | string | no | |
given_name | string | no | |
family_name | string | no | |
birth_date | string (date) | no | |
sex | "male" | "female" | "unknown" | "other" | no | |
client_ref | string | no | |
on_conflict | "ask" | "link_exact" | no | link_exact (offline sync): link to the single exact MPI match instead of 409 possible_duplicate |
Person
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | no | |
patient_id | string (uuid) | no | |
health_id | string | null | no | |
given_name | string | no | |
family_name | string | no | |
birth_date | string (date) | no | |
sex | string | no | |
source | "existing" | "registered" | "linked_on_sync" | no | |
resolution | "existing" | "registered" | "linked_on_sync" | "replayed" | "already_linked" | no |
Consent
| Name | Type | Required | Description |
|---|---|---|---|
campaign_id | string (uuid) | yes | |
kind | "screening" | "data_sharing" | yes | |
granted | boolean | yes | |
client_ref | string | no |
ScreeningCreate
| Name | Type | Required | Description |
|---|---|---|---|
campaign_id | string (uuid) | yes | |
site_id | string (uuid) | yes | |
person_id | string (uuid) | yes | |
answers | object | yes | keys and value types of the protocol fields |
performed_at | string (date-time) | no | |
client_ref | string | no | |
referral_partner_facility_id | string (uuid) | no | |
referral_reason | string | no |
Screening
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | no | |
campaign_id | string (uuid) | no | |
site_id | string (uuid) | no | |
person_id | string (uuid) | no | |
patient_id | string (uuid) | no | |
outcome | "negative" | "positive" | "refer" | no | |
matched_rule | string | null | no | |
answers | object | no | |
performed_at | string (date-time) | no | |
performed_by | string | null | no | |
performer_role | string | no | |
record_state | "pending" | "recorded" | "failed" | no | |
encounter_ref | string | null | no | |
result_ref | string | null | no | |
referral | null | Referral | no | |
referral_required | boolean | no | |
referral_error | Error | no | |
replayed | boolean | no |
ReferralCreate
| Name | Type | Required | Description |
|---|---|---|---|
screening_id | string (uuid) | yes | |
partner_facility_id | string (uuid) | yes | |
reason | string | no |
FollowUp
| Name | Type | Required | Description |
|---|---|---|---|
action | "receive" | "seen" | "outcome" | yes | |
expected_version | integer | yes | |
outcome | string | no |
Referral
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | no | |
screening_id | string (uuid) | no | |
campaign_id | string (uuid) | no | |
partner_facility_id | string (uuid) | no | |
partnership_id | string (uuid) | no | |
ohn27_referral_id | string | null | no | |
reason | string | no | |
state | "referred" | "received" | "seen" | "outcome_recorded" | "lost_to_follow_up" | no | |
outcome | string | null | no | |
due_at | string (date-time) | no | |
version | integer | no | |
person | object | no |
NationalTotals
| Name | Type | Required | Description |
|---|---|---|---|
group_by | "region" | "campaign" | "period" | no | |
period | "month" | "quarter" | no | |
from | string | null | no | |
to | string | null | no | |
region | string | null | no | |
min_count | 10 | no | |
suppressed_as | "<10" | no | |
generated_at | string | no | |
rows | array of NationalTotals.rows.item | no |
Publication
| Name | Type | Required | Description |
|---|---|---|---|
campaign_id | string (uuid) | yes |
Report
| Name | Type | Required | Description |
|---|---|---|---|
group_by | "campaign" | "site" | "area" | "age_band" | "sex" | no | |
rows | array of Report.rows.item | no |
ProtocolDefinition.sources.item defined inline
| Name | Type | Required | Description |
|---|---|---|---|
id | string | no | |
citation | string | no | |
url | string | no |
ProtocolDefinition.fields.item defined inline
| Name | Type | Required | Description |
|---|---|---|---|
key | string | yes | |
label_en | string | yes | |
label_fr | string | yes | |
type | "number" | "integer" | "boolean" | "choice" | "text" | yes | |
unit | string | no | |
min | number | no | |
max | number | no | |
required | boolean | no | |
max_length | integer | no | |
options | array of object | no |
ProtocolDefinition.outcome_rules.item defined inline
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
outcome | "positive" | "refer" | yes | |
priority | string | no | Optional OHN-27 priority code for referrals from this rule (e.g. urgent); absent = referral.priority. |
sources | array of string | no | Ids of the definition's sources this rule cites. |
all | array of ProtocolDefinition.outcome_rules.item.all.item | yes |
ProtocolDefinition.outcome_rules.item.all.item defined inline
| Name | Type | Required | Description |
|---|---|---|---|
field | string | yes | |
op | ">" | ">=" | "<" | "<=" | "==" | "!=" | "in" | yes | |
value | any | yes |
ProtocolDefinition.record defined inline
| Name | Type | Required | Description |
|---|---|---|---|
encounter_type | string | yes | code of the jurisdiction OHN-09 encounter_type list |
as_result | boolean | no | |
report_type | string | no | |
observation_codes | object | no |
ProtocolDefinition.referral defined inline
| Name | Type | Required | Description |
|---|---|---|---|
requested_service | string | yes | |
priority | string | yes |
Campaign.area defined inline
| Name | Type | Required | Description |
|---|---|---|---|
jurisdiction_id | string (uuid) | no | |
district | string | no |
NationalTotals.rows.item defined inline
| Name | Type | Required | Description |
|---|---|---|---|
group | string | no | |
screened | integer | "<10" | no | |
positive | integer | "<10" | no | |
referred | integer | "<10" | no | |
seen | integer | "<10" | no | |
positivity | number | null | no | |
follow_up_rate | number | null | no | |
suppressed | boolean | no |
Report.rows.item defined inline
| Name | Type | Required | Description |
|---|---|---|---|
group | string | no | |
screened | integer | null | no | |
positive | integer | null | no | |
referred | integer | null | no | |
seen | integer | null | no | |
positivity | number | null | no | |
follow_up_rate | number | null | no | |
suppressed | boolean | no |