Skip to content

← All contracts

OHN-05 Health Facility Registry

Version
1.4.0
OpenAPI
3.1.0
Source in the repository
modules/OHN-05/api/openapi.json
Servers
https://opeshealthnetwork.com/api/ohn/v1
Authentication
bearer: http bearer

Download the contract (JSON)

Contracts are written in English.

Base path /api/ohn/v1. Every POST requires Idempotency-Key; mutations use expected_version. Routes default-deny on role AND purpose. Every facility carries a human-readable facility_code (TYPE-CC-RRRRK, e.g. PHA-CM-7K4QX; docs/program/java/facility-codes.md); the UUID id stays the key every module links by. Facility branding (1.2.0): the facility logo (PNG/JPEG/SVG, max 256 KiB, type from the bytes, SVG sanitised) is uploaded by the facility's own administrator (role facility_administrator, purpose facility_branding) and approved or rejected by a registry reviewer who did not upload it; only an approved logo is served (public GET /facilities/{id}/branding and /facilities/{id}/logo). The branding watermark is a facility setting, off by default and forced off without an approved logo.

Operations

OHN-05

GET/facilitiesList facilities (status, site_type, q, region, code, cursor filters)

Operation ID: listFacilities

Authentication: bearer

Parameters

NameInTypeRequiredDescription
statusquerystringno
site_typequerystringno
qquerystringno
regionquerystringno
codequerystringno
cursorquerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
422invalid_facility_code (malformed code or wrong check character) or domain validation failure
application/json: Error
429Rate limited—
POST/facilitiesEnrol a facility (OHN-05-API-001)

Operation ID: enrollFacility

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Domain refusal or dependency unavailable; facility_type_unmapped when the site type has no facility-code prefix
application/json: Error
429Rate limited—
503Domain refusal or dependency unavailable
application/json: Error
GET/facilities/{id}Facility profile

Operation ID: facilityProfile

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
429Rate limited—
GET/facilities/{id}/evidenceEvidence references

Operation ID: facilityEvidence

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
429Rate limited—
GET/facilities/{id}/hierarchyPublished hierarchy

Operation ID: facilityHierarchy

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
429Rate limited—
GET/facilities/{id}/licensesLicences

Operation ID: listLicenses

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
429Rate limited—
POST/facilities/{id}/verifyCredential verification

1.4.0: manual licence confirmation (confirmation_reference) while no regulator API exists; the licence view carries license_confirmation {method regulator|manual|none, label, reference, confirmed_by, confirmed_at} and the facility profile lists it per licence.

Operation ID: verifyFacility

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
POST/facilities/{id}/suspendSuspend facility

Operation ID: suspendFacility

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
POST/facilities/{id}/transitionsFacility workflow transition

Operation ID: transitionFacility

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
POST/facilities/{id}/aliasesAdd alias (duplicate detection runs)

Operation ID: addAlias

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
POST/facilities/{id}/licenses/{licenseId}/renewRenew licence

1.4.0: manual licence confirmation (confirmation_reference) while no regulator API exists; the licence view carries license_confirmation {method regulator|manual|none, label, reference, confirmed_by, confirmed_at} and the facility profile lists it per licence.

Operation ID: renewLicense

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
licenseIdpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
POST/facilities/{id}/licenses/{licenseId}/reverifyRe-verify licence

Operation ID: reverifyLicense

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
licenseIdpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
GET/site-relationshipsList site relationships

Operation ID: listRelationships

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
429Rate limited—
POST/site-relationshipsRequest site relationship

Operation ID: requestRelationship

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
POST/site-relationships/{id}/transitionsRelationship workflow transition (cycle check, approval)

Operation ID: transitionRelationship

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
GET/duplicatesList duplicate candidates

Operation ID: listDuplicates

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
429Rate limited—
POST/duplicates/{id}/resolveResolve duplicate

Operation ID: resolveDuplicate

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
GET/code-lists/{list}Read code list

Operation ID: listCodes

Authentication: bearer

Parameters

NameInTypeRequiredDescription
listpath"relationship_type" | "site_type" | "specialty"yessite_type, relationship_type or specialty. Items carry source (jurisdiction or platform_default); site_type items carry facility_code_prefix.

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
429Rate limited—
POST/code-lists/{list}Upsert code list entries

Operation ID: upsertCodes

Authentication: bearer

Parameters

NameInTypeRequiredDescription
listpath"relationship_type" | "site_type" | "specialty"yessite_type, relationship_type or specialty. Items carry source (jurisdiction or platform_default); site_type items carry facility_code_prefix.
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
GET/registry-policyRead registry policy (unconfigured = fail closed)

Operation ID: readPolicy

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
429Rate limited—
POST/registry-policyWrite registry policy

Operation ID: writePolicy

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
POST/registry/maintenance/license-sweepLicence expiry sweep (policy-driven)

Operation ID: licenseSweep

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
POST/registry/maintenance/drain-outboxDrain outbox (no sink => nothing marked delivered)

Operation ID: drainOutbox

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
GET/registry/reports/{reportId}Run report

Operation ID: runReport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
reportIdpath"OHN-05-R001" | "OHN-05-R002" | "OHN-05-R003"yes
jurisdictionquerystringno
facility_typequerystringno
period_fromquerystringno
period_toquerystringno
countryquerystringno
expiry_windowquerystringno
regionquerystringno
cursorquerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
422Filter failed validation
application/json: Error
429Rate limited—
POST/registry/reports/{reportId}/exportCreate signed single-use export

Operation ID: createExport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
reportIdpath"OHN-05-R001" | "OHN-05-R002" | "OHN-05-R003"yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
GET/registry/exports/{token}Download export (owner only, single use, 5 min)

Operation ID: fetchExport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
tokenpathstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
429Rate limited—
GET/registry/report-catalogReport catalog

Operation ID: reportCatalog

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
429Rate limited—
GET/facilities/by-code/{code}Facility profile looked up by facility code

Operation ID: facilityByCode

Authentication: bearer

Parameters

NameInTypeRequiredDescription
codepathstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
422invalid_facility_code (malformed code or wrong check character) or domain validation failure
application/json: Error
429Rate limited—
POST/facilities/{id}/site-typeChange the facility type (the facility code is kept, not reissued; the change is audited)

Operation ID: changeSiteType

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422invalid_facility_code (malformed code or wrong check character) or domain validation failure
application/json: Error
429Rate limited—
POST/registry/maintenance/facility-code-backfillIssue facility codes to facilities of the jurisdiction that have none (unmapped types are skipped and listed)

Operation ID: backfillFacilityCodes

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Validation failure
application/json: Error
401Unauthenticated—
403Role/purpose denied (default deny)—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
429Rate limited—
503dependency_unavailable (OHN-01 country code unreadable)
application/json: Error

Other operations

GET/health/ohn-05Liveness incl. DB and dependency modes

Operation ID: health

Responses

CodeDescriptionMedia type
200ok—
503unavailable—

Branding

GET/facilities/{id}/logosThe facility's logos with their review state, and its branding setting

Operation ID: listFacilityLogos

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated—
403Role/purpose denied, not the facility's own administrator, or self-review
application/json: Error
404Not found / out of scope—
409Version conflict or illegal transition
application/json: Error
422Validation failure
application/json: Error
429Rate limited—
POST/facilities/{id}/logosUpload a new facility logo (pending until a registry reviewer approves it)

Operation ID: uploadFacilityLogo

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
401Unauthenticated—
403Role/purpose denied, not the facility's own administrator, or self-review
application/json: Error
404Not found / out of scope—
409Version conflict or illegal transition
application/json: Error
422Validation failure
application/json: Error
429Rate limited—
GET/facilities/{id}/logos/{logoId}/contentThe stored (cleaned) image of any logo, for review by the facility administrator or a registry reviewer

Operation ID: facilityLogoContent

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
logoIdpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200The image; X-Content-Type-Options nosniff and a sandboxing CSP
image/png: string (binary)
image/jpeg: string (binary)
image/svg+xml: string (binary)
401Unauthenticated—
403Denied
application/json: Error
404Not found—
POST/facilities/{id}/logos/{logoId}/approveApprove a pending logo (registry reviewer; never the uploader)

Operation ID: approveFacilityLogo

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
logoIdpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated—
403Role/purpose denied, not the facility's own administrator, or self-review
application/json: Error
404Not found / out of scope—
409Version conflict or illegal transition
application/json: Error
422Validation failure
application/json: Error
429Rate limited—
POST/facilities/{id}/logos/{logoId}/rejectReject a pending logo with a reason (registry reviewer; never the uploader)

Operation ID: rejectFacilityLogo

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
logoIdpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated—
403Role/purpose denied, not the facility's own administrator, or self-review
application/json: Error
404Not found / out of scope—
409Version conflict or illegal transition
application/json: Error
422Validation failure
application/json: Error
429Rate limited—
POST/facilities/{id}/logos/{logoId}/withdrawWithdraw a pending or approved logo (facility administrator)

Operation ID: withdrawFacilityLogo

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
logoIdpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated—
403Role/purpose denied, not the facility's own administrator, or self-review
application/json: Error
404Not found / out of scope—
409Version conflict or illegal transition
application/json: Error
422Validation failure
application/json: Error
429Rate limited—
GET/facilities/{id}/brandingPublic: name, facility code, the APPROVED logo (or null) and whether the branding watermark is on

Operation ID: facilityBranding

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: object
404Unknown or retired facility—
429Rate limited—
POST/facilities/{id}/brandingSwitch the branding watermark on or off (facility administrator; on needs an approved logo)

Operation ID: setFacilityBranding

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated—
403Role/purpose denied, not the facility's own administrator, or self-review
application/json: Error
404Not found / out of scope—
409Version conflict or illegal transition
application/json: Error
422Validation failure
application/json: Error
429Rate limited—
GET/logo-reviewsPending logos of the jurisdiction, oldest first (registry reviewer)

Operation ID: logoReviewQueue

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Unauthenticated—
403Role/purpose denied, not the facility's own administrator, or self-review
application/json: Error
404Not found / out of scope—
409Version conflict or illegal transition
application/json: Error
422Validation failure
application/json: Error
429Rate limited—

Schemas

Error

NameTypeRequiredDescription
codestringyes
messagestringyes
detailsanyno

FacilityEnrollment

NameTypeRequiredDescription
legal_namestringyes
countrystring (uuid)yes
site_typestringyes
official_registry_idstringno
license_refstringno
geo_coordinatesstringnolatitude,longitude decimal degrees
operator_orgstring (uuid)yes
evidencestring (uuid)yes
regionstringno
districtstringno
specialtystringnoRequired when the site type maps to prefix SPC (specialist centre); code from the 'specialty' code list (defaults: see SpecialtyCode). Refused for any other type.

CredentialVerification

NameTypeRequiredDescription
facility_idstring (uuid)yes
license_authoritystring (uuid)yes
license_numberstringyes
expiry_datestring (date)yes
verification_evidencestring (uuid)yes
review_decision"approved" | "rejected"yes
expected_versionintegeryes
confirmation_referencestringno1.4.0 (owner decision 2026-11-29): the regulator's or Ministry's confirmation reference an OHN registry reviewer obtained. While no regulator integration is configured, it stands for the regulator's confirmation: the licence is recorded as authority_confirmation unconfirmed_manual ("manually confirmed"), with the reviewer and the time, and audited. Without it, and no regulator integration, the request answers 503 dependency_unavailable. Once a regulator API is configured, the regulator decides and a reference is no substitute.

Transition

NameTypeRequiredDescription
to_statestringyes
expected_versionintegeryes
reasonstringyes

Suspend

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringyes

Alias

NameTypeRequiredDescription
alias_namestringyes

LicenseRenewal

NameTypeRequiredDescription
expiry_datestring (date)yes
verification_evidencestring (uuid)yes
expected_versionintegeryes
confirmation_referencestringno1.4.0 (owner decision 2026-11-29): the regulator's or Ministry's confirmation reference an OHN registry reviewer obtained. While no regulator integration is configured, it stands for the regulator's confirmation: the licence is recorded as authority_confirmation unconfirmed_manual ("manually confirmed"), with the reviewer and the time, and audited. Without it, and no regulator integration, the request answers 503 dependency_unavailable. Once a regulator API is configured, the regulator decides and a reference is no substitute. On renewal only a registry_reviewer may give it (403 manual_confirmation_reviewer_only), never the person who submitted the facility (403 separation_of_duties).

LicenseReverify

NameTypeRequiredDescription
review_decision"approved" | "rejected"yes
expected_versionintegeryes

SiteRelationship

NameTypeRequiredDescription
facility_idstring (uuid)yes
parent_site_idstring (uuid)no
child_site_idstring (uuid)yes
relationship_typestringyes
effective_fromstring (date)yes

RelationshipTransition

NameTypeRequiredDescription
to_state"cycle_checked" | "approved" | "published" | "rejected"yes
expected_versionintegeryes
reasonstringyes

DuplicateResolution

NameTypeRequiredDescription
resolution"confirmed_duplicate" | "not_duplicate"yes
reasonstringyes
expected_versionintegeryes

CodeListUpsert

NameTypeRequiredDescription
entriesarray of CodeListUpsert.entries.itemyes

RegistryPolicy

NameTypeRequiredDescription
expiring_window_daysinteger | nullyes
on_expiry_action"suspend" | "flag_only" | nullyes
cross_country_relationships_allowedboolean | nullyes
approval_referencestringyes

ExportCommand

NameTypeRequiredDescription
format"csv" | "pdf"yes
filtersobjectno
columnsarray of stringno

Report

NameTypeRequiredDescription
report_id"OHN-05-R001" | "OHN-05-R002" | "OHN-05-R003"no
titlestringno
columnsarray of anyno
rowsarray of anyno
summaryobjectno
state"rendered" | "no_authorized_data"no
generated_atstring (date-time)no
next_cursorstring | nullno

FacilityCode

Display form of the facility code, returned as facility_code on every facility (null only while the type awaits an owner prefix).

string

SiteTypeChange

NameTypeRequiredDescription
site_typestringyes
expected_versionintegeryes
reasonstringyes
specialtystringnoRequired when the site type maps to prefix SPC (specialist centre); code from the 'specialty' code list (defaults: see SpecialtyCode). Refused for any other type.

FacilityTypeCode

Platform-default site_type codes (EN/FR labels in GET /code-lists/site_type, source platform_default), each with exactly one facility-code prefix in this order: payer_office=INS, hospital=HSP, clinic=CLI, health_centre=HCE, laboratory=LAB, pharmacy=PHA, imaging_centre=DIG, maternity=MAT, health_post=CHS, blood_bank=BLD, dental_clinic=DEN, specialist_centre=SPC, ambulance_service=AMB, medicine_distributor=DIS, nursing_home=HMC, vaccination_centre=VAC, occupational_health=OCC, health_organisation=NGO. A jurisdiction may add its own codes to the site_type list; site_type fields therefore stay open strings validated against the jurisdiction code list.

"payer_office" | "hospital" | "clinic" | "health_centre" | "laboratory" | "pharmacy" | "imaging_centre" | "maternity" | "health_post" | "blood_bank" | "dental_clinic" | "specialist_centre" | …

SpecialtyCode

Platform-default specialty codes (code list 'specialty', configurable per jurisdiction). Required for a specialist_centre (prefix SPC), refused for any other type.

"eye_care" | "dialysis" | "mental_health" | "rehabilitation" | "other"

LogoUpload

NameTypeRequiredDescription
content_base64stringyesThe file, base64. At most 262144 bytes once decoded; the type is read from the bytes.
file_namestringno

LogoReview

NameTypeRequiredDescription
expected_versionintegeryes

LogoRejection

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringyes

LogoWithdrawal

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringno

BrandingSetting

NameTypeRequiredDescription
branding_watermarkbooleanyes
expected_versionintegernoRequired once the setting exists.

FacilityBranding

NameTypeRequiredDescription
facility_idstring (uuid)yes
namestring | nullyes
facility_codestring | nullyes
logoFacilityBranding.logoyes
branding_watermarkbooleanyes

CodeListUpsert.entries.item defined inline

NameTypeRequiredDescription
codestringyes
label_enstringyes
label_frstringyes
activebooleanno
facility_code_prefix"INS" | "HSP" | "CLI" | "HCE" | "LAB" | "PHA" | "DIG" | "MAT" | "CHS" | "BLD" | "DEN" | "SPC" | …nosite_type list only: the facility-code prefix of this type in the jurisdiction. PENDING = enrol without a code until the owner assigns a prefix.