Skip to content

← All contracts

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)

Download the contract (YAML)

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

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

NameInTypeRequiredDescription
statequerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: Partnership
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Partnership
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: Partnership
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Partnership
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

CodeDescriptionMedia type
200OK
application/json: Protocol
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Protocol
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Responses

CodeDescriptionMedia type
201OK
application/json: Protocol
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: Protocol
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Protocol
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Protocol
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

CodeDescriptionMedia type
200OK
application/json: Campaign
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Campaign
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: Campaign
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Campaign
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Site
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes
site_idquerystringno
datequerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Person
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
campaign_idquerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: Screening
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Screening
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
statequerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: Referral
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Referral
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Referral
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
campaign_idquerystringno
group_byquerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: Report
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
campaign_idquerystringno
group_byquerystringno

Responses

CodeDescriptionMedia type
200OK
text/csv: string
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_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

NameInTypeRequiredDescription
group_byquery"region" | "campaign" | "period"no
periodquery"month" | "quarter"noPeriod bucket when group_by=period.
fromquerystring (date)no
toquerystring (date)no
regionquerystringnoOne region (district) only.

Responses

CodeDescriptionMedia type
200OK
application/json: NationalTotals
401Unauthenticated
application/json: Error
403Not the ministry analyst, or the wrong purpose (audited as denied)
application/json: Error
422Validation 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

NameInTypeRequiredDescription
group_byquery"region" | "campaign" | "period"no
periodquery"month" | "quarter"noPeriod bucket when group_by=period.
fromquerystring (date)no
toquerystring (date)no
regionquerystringnoOne region (district) only.

Responses

CodeDescriptionMedia type
200OK
text/csv: string
401Unauthenticated
application/json: Error
403Not the ministry analyst, or the wrong purpose (audited as denied)
application/json: Error
422Validation failed
application/json: Error
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

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated
application/json: Error
403Role, purpose, consent, licence or separation of duties
application/json: Error
404Not found (or another organisation's record)
application/json: Error
409Version conflict or invalid transition
application/json: Error
422Validation failed
application/json: Error
503not_configured or dependency_unavailable: nothing stored
application/json: Error
GET/health/ohn-60Liveness and dependency wiring

Operation ID: health

Responses

CodeDescriptionMedia type
200OK
application/json: object

Schemas

Error

NameTypeRequiredDescription
errorstringyes
messagestringyes
detailsobjectno
dependencystringno

PartnershipCreate

NameTypeRequiredDescription
partner_facility_idstring (uuid)yes
titlestringyes
programmesarray of stringno
servicesarray of "referral_receipt" | "lab_tests" | "follow_up"yes
data_sharedarray of stringyes
sharing_purposestringyes
start_datestring (date)yes
end_datestring (date)yes

PartnershipTransition

NameTypeRequiredDescription
action"propose" | "accept" | "reject" | "activate" | "suspend" | "resume" | "end"yes
expected_versionintegeryes
reasonstringno

Partnership

NameTypeRequiredDescription
idstring (uuid)no
ngo_org_idstring (uuid)no
partner_facility_idstring (uuid)no
partner_namestring | nullno
partner_codestring | nullno
titlestringno
programmesarray of stringno
servicesarray of stringno
data_sharedarray of stringno
sharing_purposestringno
start_datestring (date)no
end_datestring (date)no
state"draft" | "proposed" | "accepted" | "active" | "suspended" | "ended" | "rejected"no
rejection_reasonstring | nullno
versionintegerno
historyarray of objectno

ProtocolCreate

NameTypeRequiredDescription
codestringyes
titlestringyes
definitionProtocolDefinitionyesJurisdiction-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.

NameTypeRequiredDescription
noticestringno
sourcesarray of ProtocolDefinition.sources.itemnoThe publications the rules cite (id, full citation, link).
performer_rolesarray of "outreach_worker" | "outreach_clinician"yes
fieldsarray of ProtocolDefinition.fields.itemyes
outcome_rulesarray of ProtocolDefinition.outcome_rules.itemyes
follow_up_daysintegeryes
recordProtocolDefinition.recordyes
referralProtocolDefinition.referralno

ProtocolApprove

NameTypeRequiredDescription
approval_referencestringyes
expected_versionintegeryes

ProtocolRetire

NameTypeRequiredDescription
reasonstringyes
expected_versionintegeryes

Protocol

NameTypeRequiredDescription
idstring (uuid)no
codestringno
versionintegerno
titlestringno
status"draft" | "approved" | "retired"no
demobooleanno
clinically_approvedbooleanno
approval_referencestring | nullno
expected_versionintegerno
noticestringno
definitionProtocolDefinitionnoJurisdiction-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

NameTypeRequiredDescription
namestringyes
programmestringyes
target_groupstringyes
districtstringyes
start_datestring (date)yes
end_datestring (date)yes
protocol_idstring (uuid)yes
follow_up_daysintegerno

CampaignTransition

NameTypeRequiredDescription
action"approve" | "activate" | "close"yes
expected_versionintegeryes
reasonstringno

Campaign

NameTypeRequiredDescription
idstring (uuid)no
namestringno
programmestringno
target_groupstringno
areaCampaign.areano
start_datestring (date)no
end_datestring (date)no
protocol_idstring (uuid)no
protocolobjectno
follow_up_daysintegerno
state"draft" | "approved" | "active" | "closed"no
versionintegerno
sitesarray of Siteno
teamarray of objectno

SiteCreate

NameTypeRequiredDescription
namestringyes
kind"fixed" | "mobile"yes
latitudenumberno
longitudenumberno
site_datestring (date)no

Site

NameTypeRequiredDescription
idstring (uuid)no
namestringno
kind"fixed" | "mobile"no
latitudenumber | nullno
longitudenumber | nullno
site_datestring | nullno

TeamMember

NameTypeRequiredDescription
principal_idstring (uuid)yes
role"field_coordinator" | "outreach_worker" | "outreach_clinician"yes
display_namestringyes

PersonLookup

NameTypeRequiredDescription
health_idstringno
given_namestringno
family_namestringno
birth_datestring (date)no

PersonRegister

NameTypeRequiredDescription
campaign_idstring (uuid)yes
existing_patient_idstring (uuid)no
health_idstringno
given_namestringno
family_namestringno
birth_datestring (date)no
sex"male" | "female" | "unknown" | "other"no
client_refstringno
on_conflict"ask" | "link_exact"nolink_exact (offline sync): link to the single exact MPI match instead of 409 possible_duplicate

Person

NameTypeRequiredDescription
idstring (uuid)no
patient_idstring (uuid)no
health_idstring | nullno
given_namestringno
family_namestringno
birth_datestring (date)no
sexstringno
source"existing" | "registered" | "linked_on_sync"no
resolution"existing" | "registered" | "linked_on_sync" | "replayed" | "already_linked"no

ScreeningCreate

NameTypeRequiredDescription
campaign_idstring (uuid)yes
site_idstring (uuid)yes
person_idstring (uuid)yes
answersobjectyeskeys and value types of the protocol fields
performed_atstring (date-time)no
client_refstringno
referral_partner_facility_idstring (uuid)no
referral_reasonstringno

Screening

NameTypeRequiredDescription
idstring (uuid)no
campaign_idstring (uuid)no
site_idstring (uuid)no
person_idstring (uuid)no
patient_idstring (uuid)no
outcome"negative" | "positive" | "refer"no
matched_rulestring | nullno
answersobjectno
performed_atstring (date-time)no
performed_bystring | nullno
performer_rolestringno
record_state"pending" | "recorded" | "failed"no
encounter_refstring | nullno
result_refstring | nullno
referralnull | Referralno
referral_requiredbooleanno
referral_errorErrorno
replayedbooleanno

ReferralCreate

NameTypeRequiredDescription
screening_idstring (uuid)yes
partner_facility_idstring (uuid)yes
reasonstringno

FollowUp

NameTypeRequiredDescription
action"receive" | "seen" | "outcome"yes
expected_versionintegeryes
outcomestringno

Referral

NameTypeRequiredDescription
idstring (uuid)no
screening_idstring (uuid)no
campaign_idstring (uuid)no
partner_facility_idstring (uuid)no
partnership_idstring (uuid)no
ohn27_referral_idstring | nullno
reasonstringno
state"referred" | "received" | "seen" | "outcome_recorded" | "lost_to_follow_up"no
outcomestring | nullno
due_atstring (date-time)no
versionintegerno
personobjectno

NationalTotals

NameTypeRequiredDescription
group_by"region" | "campaign" | "period"no
period"month" | "quarter"no
fromstring | nullno
tostring | nullno
regionstring | nullno
min_count10no
suppressed_as"<10"no
generated_atstringno
rowsarray of NationalTotals.rows.itemno

Publication

NameTypeRequiredDescription
campaign_idstring (uuid)yes

Report

NameTypeRequiredDescription
group_by"campaign" | "site" | "area" | "age_band" | "sex"no
rowsarray of Report.rows.itemno

ProtocolDefinition.sources.item defined inline

NameTypeRequiredDescription
idstringno
citationstringno
urlstringno

ProtocolDefinition.fields.item defined inline

NameTypeRequiredDescription
keystringyes
label_enstringyes
label_frstringyes
type"number" | "integer" | "boolean" | "choice" | "text"yes
unitstringno
minnumberno
maxnumberno
requiredbooleanno
max_lengthintegerno
optionsarray of objectno

ProtocolDefinition.outcome_rules.item defined inline

NameTypeRequiredDescription
idstringyes
outcome"positive" | "refer"yes
prioritystringnoOptional OHN-27 priority code for referrals from this rule (e.g. urgent); absent = referral.priority.
sourcesarray of stringnoIds of the definition's sources this rule cites.
allarray of ProtocolDefinition.outcome_rules.item.all.itemyes

ProtocolDefinition.outcome_rules.item.all.item defined inline

NameTypeRequiredDescription
fieldstringyes
op">" | ">=" | "<" | "<=" | "==" | "!=" | "in"yes
valueanyyes

ProtocolDefinition.record defined inline

NameTypeRequiredDescription
encounter_typestringyescode of the jurisdiction OHN-09 encounter_type list
as_resultbooleanno
report_typestringno
observation_codesobjectno

ProtocolDefinition.referral defined inline

NameTypeRequiredDescription
requested_servicestringyes
prioritystringyes

Campaign.area defined inline

NameTypeRequiredDescription
jurisdiction_idstring (uuid)no
districtstringno

NationalTotals.rows.item defined inline

NameTypeRequiredDescription
groupstringno
screenedinteger | "<10"no
positiveinteger | "<10"no
referredinteger | "<10"no
seeninteger | "<10"no
positivitynumber | nullno
follow_up_ratenumber | nullno
suppressedbooleanno

Report.rows.item defined inline

NameTypeRequiredDescription
groupstringno
screenedinteger | nullno
positiveinteger | nullno
referredinteger | nullno
seeninteger | nullno
positivitynumber | nullno
follow_up_ratenumber | nullno
suppressedbooleanno