Aller au contenu

← Tous les contrats

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)

Télécharger le contrat (YAML)

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

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

NomEmplacementTypeObligatoireDescription
statequerystringnon

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: createPartnership

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: getPartnership

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: transitionPartnership

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: listProtocols

Authentification: bearer

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: createProtocol

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: loadDemoProtocol

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: getProtocol

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: approveProtocol

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: retireProtocol

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: listCampaigns

Authentification: bearer

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: createCampaign

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: getCampaign

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: transitionCampaign

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: addSite

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: addTeamMember

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: siteDay

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
site_idquerystringnon
datequerystringnon

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: lookupPerson

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: registerPerson

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: recordConsent

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: personRecord

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: listScreenings

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
campaign_idquerystringnon

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: recordScreening

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: pushPendingScreenings

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: listReferrals

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statequerystringnon

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: createReferral

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: referralFollowUp

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: referralSweep

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: reportSummary

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
campaign_idquerystringnon
group_byquerystringnon

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: reportExport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
campaign_idquerystringnon
group_byquerystringnon

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: publishAggregates

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: publicHealthPublications

Authentification: bearer

Réponses

CodeDescriptionType de média
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.

Identifiant d’opération: nationalTotals

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
group_byquery"region" | "campaign" | "period"non
periodquery"month" | "quarter"nonPeriod bucket when group_by=period.
fromquerystring (date)non
toquerystring (date)non
regionquerystringnonOne region (district) only.

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: nationalTotalsExport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
group_byquery"region" | "campaign" | "period"non
periodquery"month" | "quarter"nonPeriod bucket when group_by=period.
fromquerystring (date)non
toquerystring (date)non
regionquerystringnonOne region (district) only.

Réponses

CodeDescriptionType de média
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).

Identifiant d’opération: myScreenings

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: health

Réponses

CodeDescriptionType de média
200OK
application/json: object

Schémas

Error

NomTypeObligatoireDescription
errorstringoui
messagestringoui
detailsobjectnon
dependencystringnon

PartnershipCreate

NomTypeObligatoireDescription
partner_facility_idstring (uuid)oui
titlestringoui
programmesarray of stringnon
servicesarray of "referral_receipt" | "lab_tests" | "follow_up"oui
data_sharedarray of stringoui
sharing_purposestringoui
start_datestring (date)oui
end_datestring (date)oui

PartnershipTransition

NomTypeObligatoireDescription
action"propose" | "accept" | "reject" | "activate" | "suspend" | "resume" | "end"oui
expected_versionintegeroui
reasonstringnon

Partnership

NomTypeObligatoireDescription
idstring (uuid)non
ngo_org_idstring (uuid)non
partner_facility_idstring (uuid)non
partner_namestring | nullnon
partner_codestring | nullnon
titlestringnon
programmesarray of stringnon
servicesarray of stringnon
data_sharedarray of stringnon
sharing_purposestringnon
start_datestring (date)non
end_datestring (date)non
state"draft" | "proposed" | "accepted" | "active" | "suspended" | "ended" | "rejected"non
rejection_reasonstring | nullnon
versionintegernon
historyarray of objectnon

ProtocolCreate

NomTypeObligatoireDescription
codestringoui
titlestringoui
definitionProtocolDefinitionouiJurisdiction-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.

NomTypeObligatoireDescription
noticestringnon
sourcesarray of ProtocolDefinition.sources.itemnonThe publications the rules cite (id, full citation, link).
performer_rolesarray of "outreach_worker" | "outreach_clinician"oui
fieldsarray of ProtocolDefinition.fields.itemoui
outcome_rulesarray of ProtocolDefinition.outcome_rules.itemoui
follow_up_daysintegeroui
recordProtocolDefinition.recordoui
referralProtocolDefinition.referralnon

ProtocolApprove

NomTypeObligatoireDescription
approval_referencestringoui
expected_versionintegeroui

ProtocolRetire

NomTypeObligatoireDescription
reasonstringoui
expected_versionintegeroui

Protocol

NomTypeObligatoireDescription
idstring (uuid)non
codestringnon
versionintegernon
titlestringnon
status"draft" | "approved" | "retired"non
demobooleannon
clinically_approvedbooleannon
approval_referencestring | nullnon
expected_versionintegernon
noticestringnon
definitionProtocolDefinitionnonJurisdiction-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

NomTypeObligatoireDescription
namestringoui
programmestringoui
target_groupstringoui
districtstringoui
start_datestring (date)oui
end_datestring (date)oui
protocol_idstring (uuid)oui
follow_up_daysintegernon

CampaignTransition

NomTypeObligatoireDescription
action"approve" | "activate" | "close"oui
expected_versionintegeroui
reasonstringnon

Campaign

NomTypeObligatoireDescription
idstring (uuid)non
namestringnon
programmestringnon
target_groupstringnon
areaCampaign.areanon
start_datestring (date)non
end_datestring (date)non
protocol_idstring (uuid)non
protocolobjectnon
follow_up_daysintegernon
state"draft" | "approved" | "active" | "closed"non
versionintegernon
sitesarray of Sitenon
teamarray of objectnon

SiteCreate

NomTypeObligatoireDescription
namestringoui
kind"fixed" | "mobile"oui
latitudenumbernon
longitudenumbernon
site_datestring (date)non

Site

NomTypeObligatoireDescription
idstring (uuid)non
namestringnon
kind"fixed" | "mobile"non
latitudenumber | nullnon
longitudenumber | nullnon
site_datestring | nullnon

TeamMember

NomTypeObligatoireDescription
principal_idstring (uuid)oui
role"field_coordinator" | "outreach_worker" | "outreach_clinician"oui
display_namestringoui

PersonLookup

NomTypeObligatoireDescription
health_idstringnon
given_namestringnon
family_namestringnon
birth_datestring (date)non

PersonRegister

NomTypeObligatoireDescription
campaign_idstring (uuid)oui
existing_patient_idstring (uuid)non
health_idstringnon
given_namestringnon
family_namestringnon
birth_datestring (date)non
sex"male" | "female" | "unknown" | "other"non
client_refstringnon
on_conflict"ask" | "link_exact"nonlink_exact (offline sync): link to the single exact MPI match instead of 409 possible_duplicate

Person

NomTypeObligatoireDescription
idstring (uuid)non
patient_idstring (uuid)non
health_idstring | nullnon
given_namestringnon
family_namestringnon
birth_datestring (date)non
sexstringnon
source"existing" | "registered" | "linked_on_sync"non
resolution"existing" | "registered" | "linked_on_sync" | "replayed" | "already_linked"non

ScreeningCreate

NomTypeObligatoireDescription
campaign_idstring (uuid)oui
site_idstring (uuid)oui
person_idstring (uuid)oui
answersobjectouikeys and value types of the protocol fields
performed_atstring (date-time)non
client_refstringnon
referral_partner_facility_idstring (uuid)non
referral_reasonstringnon

Screening

NomTypeObligatoireDescription
idstring (uuid)non
campaign_idstring (uuid)non
site_idstring (uuid)non
person_idstring (uuid)non
patient_idstring (uuid)non
outcome"negative" | "positive" | "refer"non
matched_rulestring | nullnon
answersobjectnon
performed_atstring (date-time)non
performed_bystring | nullnon
performer_rolestringnon
record_state"pending" | "recorded" | "failed"non
encounter_refstring | nullnon
result_refstring | nullnon
referralnull | Referralnon
referral_requiredbooleannon
referral_errorErrornon
replayedbooleannon

ReferralCreate

NomTypeObligatoireDescription
screening_idstring (uuid)oui
partner_facility_idstring (uuid)oui
reasonstringnon

FollowUp

NomTypeObligatoireDescription
action"receive" | "seen" | "outcome"oui
expected_versionintegeroui
outcomestringnon

Referral

NomTypeObligatoireDescription
idstring (uuid)non
screening_idstring (uuid)non
campaign_idstring (uuid)non
partner_facility_idstring (uuid)non
partnership_idstring (uuid)non
ohn27_referral_idstring | nullnon
reasonstringnon
state"referred" | "received" | "seen" | "outcome_recorded" | "lost_to_follow_up"non
outcomestring | nullnon
due_atstring (date-time)non
versionintegernon
personobjectnon

NationalTotals

NomTypeObligatoireDescription
group_by"region" | "campaign" | "period"non
period"month" | "quarter"non
fromstring | nullnon
tostring | nullnon
regionstring | nullnon
min_count10non
suppressed_as"<10"non
generated_atstringnon
rowsarray of NationalTotals.rows.itemnon

Publication

NomTypeObligatoireDescription
campaign_idstring (uuid)oui

Report

NomTypeObligatoireDescription
group_by"campaign" | "site" | "area" | "age_band" | "sex"non
rowsarray of Report.rows.itemnon

ProtocolDefinition.sources.item défini sur place

NomTypeObligatoireDescription
idstringnon
citationstringnon
urlstringnon

ProtocolDefinition.fields.item défini sur place

NomTypeObligatoireDescription
keystringoui
label_enstringoui
label_frstringoui
type"number" | "integer" | "boolean" | "choice" | "text"oui
unitstringnon
minnumbernon
maxnumbernon
requiredbooleannon
max_lengthintegernon
optionsarray of objectnon

ProtocolDefinition.outcome_rules.item défini sur place

NomTypeObligatoireDescription
idstringoui
outcome"positive" | "refer"oui
prioritystringnonOptional OHN-27 priority code for referrals from this rule (e.g. urgent); absent = referral.priority.
sourcesarray of stringnonIds of the definition's sources this rule cites.
allarray of ProtocolDefinition.outcome_rules.item.all.itemoui

ProtocolDefinition.outcome_rules.item.all.item défini sur place

NomTypeObligatoireDescription
fieldstringoui
op">" | ">=" | "<" | "<=" | "==" | "!=" | "in"oui
valueanyoui

ProtocolDefinition.record défini sur place

NomTypeObligatoireDescription
encounter_typestringouicode of the jurisdiction OHN-09 encounter_type list
as_resultbooleannon
report_typestringnon
observation_codesobjectnon

ProtocolDefinition.referral défini sur place

NomTypeObligatoireDescription
requested_servicestringoui
prioritystringoui

Campaign.area défini sur place

NomTypeObligatoireDescription
jurisdiction_idstring (uuid)non
districtstringnon

NationalTotals.rows.item défini sur place

NomTypeObligatoireDescription
groupstringnon
screenedinteger | "<10"non
positiveinteger | "<10"non
referredinteger | "<10"non
seeninteger | "<10"non
positivitynumber | nullnon
follow_up_ratenumber | nullnon
suppressedbooleannon

Report.rows.item défini sur place

NomTypeObligatoireDescription
groupstringnon
screenedinteger | nullnon
positiveinteger | nullnon
referredinteger | nullnon
seeninteger | nullnon
positivitynumber | nullnon
follow_up_ratenumber | nullnon
suppressedbooleannon