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
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 (30)
- Other operations (1)
- Branding (10)
OHN-05
GET/facilitiesList facilities (status, site_type, q, region, code, cursor filters)
Operation ID: listFacilities
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status | query | string | no | |
site_type | query | string | no | |
q | query | string | no | |
region | query | string | no | |
code | query | string | no | |
cursor | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
422 | invalid_facility_code (malformed code or wrong check character) or domain validation failure | application/json: Error |
429 | Rate limited | — |
POST/facilitiesEnrol a facility (OHN-05-API-001)
Operation ID: enrollFacility
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:FacilityEnrollment
Responses
| Code | Description | Media type |
|---|---|---|
201 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain refusal or dependency unavailable; facility_type_unmapped when the site type has no facility-code prefix | application/json: Error |
429 | Rate limited | — |
503 | Domain refusal or dependency unavailable | application/json: Error |
GET/facilities/{id}Facility profile
Operation ID: facilityProfile
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
429 | Rate limited | — |
GET/facilities/{id}/evidenceEvidence references
Operation ID: facilityEvidence
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
429 | Rate limited | — |
GET/facilities/{id}/hierarchyPublished hierarchy
Operation ID: facilityHierarchy
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
429 | Rate limited | — |
GET/facilities/{id}/licensesLicences
Operation ID: listLicenses
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
429 | Rate 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:CredentialVerification
Responses
POST/facilities/{id}/suspendSuspend facility
Operation ID: suspendFacility
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:Suspend
Responses
POST/facilities/{id}/transitionsFacility workflow transition
Operation ID: transitionFacility
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:Transition
Responses
POST/facilities/{id}/aliasesAdd alias (duplicate detection runs)
Operation ID: addAlias
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:Alias
Responses
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
licenseId | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:LicenseRenewal
Responses
POST/facilities/{id}/licenses/{licenseId}/reverifyRe-verify licence
Operation ID: reverifyLicense
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
licenseId | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:LicenseReverify
Responses
GET/site-relationshipsList site relationships
Operation ID: listRelationships
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
429 | Rate limited | — |
POST/site-relationshipsRequest site relationship
Operation ID: requestRelationship
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:SiteRelationship
Responses
POST/site-relationships/{id}/transitionsRelationship workflow transition (cycle check, approval)
Operation ID: transitionRelationship
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:RelationshipTransition
Responses
GET/duplicatesList duplicate candidates
Operation ID: listDuplicates
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
429 | Rate limited | — |
POST/duplicates/{id}/resolveResolve duplicate
Operation ID: resolveDuplicate
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:DuplicateResolution
Responses
GET/code-lists/{list}Read code list
Operation ID: listCodes
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
list | path | "relationship_type" | "site_type" | "specialty" | yes | site_type, relationship_type or specialty. Items carry source (jurisdiction or platform_default); site_type items carry facility_code_prefix. |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
429 | Rate limited | — |
POST/code-lists/{list}Upsert code list entries
Operation ID: upsertCodes
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
list | path | "relationship_type" | "site_type" | "specialty" | yes | site_type, relationship_type or specialty. Items carry source (jurisdiction or platform_default); site_type items carry facility_code_prefix. |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:CodeListUpsert
Responses
GET/registry-policyRead registry policy (unconfigured = fail closed)
Operation ID: readPolicy
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
429 | Rate limited | — |
POST/registry-policyWrite registry policy
Operation ID: writePolicy
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:RegistryPolicy
Responses
POST/registry/maintenance/license-sweepLicence expiry sweep (policy-driven)
Operation ID: licenseSweep
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Responses
POST/registry/maintenance/drain-outboxDrain outbox (no sink => nothing marked delivered)
Operation ID: drainOutbox
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Responses
GET/registry/reports/{reportId}Run report
Operation ID: runReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
reportId | path | "OHN-05-R001" | "OHN-05-R002" | "OHN-05-R003" | yes | |
jurisdiction | query | string | no | |
facility_type | query | string | no | |
period_from | query | string | no | |
period_to | query | string | no | |
country | query | string | no | |
expiry_window | query | string | no | |
region | query | string | no | |
cursor | query | string | no |
Responses
POST/registry/reports/{reportId}/exportCreate signed single-use export
Operation ID: createExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
reportId | path | "OHN-05-R001" | "OHN-05-R002" | "OHN-05-R003" | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ExportCommand
Responses
GET/registry/exports/{token}Download export (owner only, single use, 5 min)
Operation ID: fetchExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | path | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
429 | Rate limited | — |
GET/registry/report-catalogReport catalog
Operation ID: reportCatalog
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
429 | Rate limited | — |
GET/facilities/by-code/{code}Facility profile looked up by facility code
Operation ID: facilityByCode
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
code | path | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
422 | invalid_facility_code (malformed code or wrong check character) or domain validation failure | application/json: Error |
429 | Rate 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:SiteTypeChange
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | invalid_facility_code (malformed code or wrong check character) or domain validation failure | application/json: Error |
429 | Rate 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Validation failure | application/json: Error |
401 | Unauthenticated | — |
403 | Role/purpose denied (default deny) | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
429 | Rate limited | — |
503 | dependency_unavailable (OHN-01 country code unreadable) | application/json: Error |
Other operations
GET/health/ohn-05Liveness incl. DB and dependency modes
Operation ID: health
Responses
| Code | Description | Media type |
|---|---|---|
200 | ok | — |
503 | unavailable | — |
Branding
GET/facilities/{id}/logosThe facility's logos with their review state, and its branding setting
Operation ID: listFacilityLogos
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
401 | Unauthenticated | — |
403 | Role/purpose denied, not the facility's own administrator, or self-review | application/json: Error |
404 | Not found / out of scope | — |
409 | Version conflict or illegal transition | application/json: Error |
422 | Validation failure | application/json: Error |
429 | Rate limited | — |
POST/facilities/{id}/logosUpload a new facility logo (pending until a registry reviewer approves it)
Operation ID: uploadFacilityLogo
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:LogoUpload
Responses
| Code | Description | Media type |
|---|---|---|
201 | OK | application/json: object |
401 | Unauthenticated | — |
403 | Role/purpose denied, not the facility's own administrator, or self-review | application/json: Error |
404 | Not found / out of scope | — |
409 | Version conflict or illegal transition | application/json: Error |
422 | Validation failure | application/json: Error |
429 | Rate 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
logoId | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | The image; X-Content-Type-Options nosniff and a sandboxing CSP | image/png: string (binary)image/jpeg: string (binary)image/svg+xml: string (binary) |
401 | Unauthenticated | — |
403 | Denied | application/json: Error |
404 | Not found | — |
POST/facilities/{id}/logos/{logoId}/approveApprove a pending logo (registry reviewer; never the uploader)
Operation ID: approveFacilityLogo
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
logoId | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:LogoReview
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
401 | Unauthenticated | — |
403 | Role/purpose denied, not the facility's own administrator, or self-review | application/json: Error |
404 | Not found / out of scope | — |
409 | Version conflict or illegal transition | application/json: Error |
422 | Validation failure | application/json: Error |
429 | Rate limited | — |
POST/facilities/{id}/logos/{logoId}/rejectReject a pending logo with a reason (registry reviewer; never the uploader)
Operation ID: rejectFacilityLogo
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
logoId | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:LogoRejection
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
401 | Unauthenticated | — |
403 | Role/purpose denied, not the facility's own administrator, or self-review | application/json: Error |
404 | Not found / out of scope | — |
409 | Version conflict or illegal transition | application/json: Error |
422 | Validation failure | application/json: Error |
429 | Rate limited | — |
POST/facilities/{id}/logos/{logoId}/withdrawWithdraw a pending or approved logo (facility administrator)
Operation ID: withdrawFacilityLogo
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
logoId | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:LogoWithdrawal
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
401 | Unauthenticated | — |
403 | Role/purpose denied, not the facility's own administrator, or self-review | application/json: Error |
404 | Not found / out of scope | — |
409 | Version conflict or illegal transition | application/json: Error |
422 | Validation failure | application/json: Error |
429 | Rate limited | — |
GET/facilities/{id}/brandingPublic: name, facility code, the APPROVED logo (or null) and whether the branding watermark is on
Operation ID: facilityBranding
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
404 | Unknown or retired facility | — |
429 | Rate limited | — |
POST/facilities/{id}/brandingSwitch the branding watermark on or off (facility administrator; on needs an approved logo)
Operation ID: setFacilityBranding
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:BrandingSetting
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
401 | Unauthenticated | — |
403 | Role/purpose denied, not the facility's own administrator, or self-review | application/json: Error |
404 | Not found / out of scope | — |
409 | Version conflict or illegal transition | application/json: Error |
422 | Validation failure | application/json: Error |
429 | Rate limited | — |
GET/facilities/{id}/logoPublic: the approved logo image only, with its real content type, nosniff and (for SVG) a sandboxing CSP
Operation ID: facilityLogo
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
v | query | integer | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | The approved logo | image/png: string (binary)image/jpeg: string (binary)image/svg+xml: string (binary) |
404 | No approved logo | — |
429 | Rate limited | — |
GET/logo-reviewsPending logos of the jurisdiction, oldest first (registry reviewer)
Operation ID: logoReviewQueue
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
401 | Unauthenticated | — |
403 | Role/purpose denied, not the facility's own administrator, or self-review | application/json: Error |
404 | Not found / out of scope | — |
409 | Version conflict or illegal transition | application/json: Error |
422 | Validation failure | application/json: Error |
429 | Rate limited | — |
Schemas
Error
| Name | Type | Required | Description |
|---|---|---|---|
code | string | yes | |
message | string | yes | |
details | any | no |
FacilityEnrollment
| Name | Type | Required | Description |
|---|---|---|---|
legal_name | string | yes | |
country | string (uuid) | yes | |
site_type | string | yes | |
official_registry_id | string | no | |
license_ref | string | no | |
geo_coordinates | string | no | latitude,longitude decimal degrees |
operator_org | string (uuid) | yes | |
evidence | string (uuid) | yes | |
region | string | no | |
district | string | no | |
specialty | string | no | Required 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
| Name | Type | Required | Description |
|---|---|---|---|
facility_id | string (uuid) | yes | |
license_authority | string (uuid) | yes | |
license_number | string | yes | |
expiry_date | string (date) | yes | |
verification_evidence | string (uuid) | yes | |
review_decision | "approved" | "rejected" | yes | |
expected_version | integer | yes | |
confirmation_reference | string | no | 1.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
| Name | Type | Required | Description |
|---|---|---|---|
to_state | string | yes | |
expected_version | integer | yes | |
reason | string | yes |
Suspend
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
reason | string | yes |
Alias
| Name | Type | Required | Description |
|---|---|---|---|
alias_name | string | yes |
LicenseRenewal
| Name | Type | Required | Description |
|---|---|---|---|
expiry_date | string (date) | yes | |
verification_evidence | string (uuid) | yes | |
expected_version | integer | yes | |
confirmation_reference | string | no | 1.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
| Name | Type | Required | Description |
|---|---|---|---|
review_decision | "approved" | "rejected" | yes | |
expected_version | integer | yes |
SiteRelationship
| Name | Type | Required | Description |
|---|---|---|---|
facility_id | string (uuid) | yes | |
parent_site_id | string (uuid) | no | |
child_site_id | string (uuid) | yes | |
relationship_type | string | yes | |
effective_from | string (date) | yes |
RelationshipTransition
| Name | Type | Required | Description |
|---|---|---|---|
to_state | "cycle_checked" | "approved" | "published" | "rejected" | yes | |
expected_version | integer | yes | |
reason | string | yes |
DuplicateResolution
| Name | Type | Required | Description |
|---|---|---|---|
resolution | "confirmed_duplicate" | "not_duplicate" | yes | |
reason | string | yes | |
expected_version | integer | yes |
CodeListUpsert
| Name | Type | Required | Description |
|---|---|---|---|
entries | array of CodeListUpsert.entries.item | yes |
RegistryPolicy
| Name | Type | Required | Description |
|---|---|---|---|
expiring_window_days | integer | null | yes | |
on_expiry_action | "suspend" | "flag_only" | null | yes | |
cross_country_relationships_allowed | boolean | null | yes | |
approval_reference | string | yes |
ExportCommand
| Name | Type | Required | Description |
|---|---|---|---|
format | "csv" | "pdf" | yes | |
filters | object | no | |
columns | array of string | no |
Report
| Name | Type | Required | Description |
|---|---|---|---|
report_id | "OHN-05-R001" | "OHN-05-R002" | "OHN-05-R003" | no | |
title | string | no | |
columns | array of any | no | |
rows | array of any | no | |
summary | object | no | |
state | "rendered" | "no_authorized_data" | no | |
generated_at | string (date-time) | no | |
next_cursor | string | null | no |
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
| Name | Type | Required | Description |
|---|---|---|---|
site_type | string | yes | |
expected_version | integer | yes | |
reason | string | yes | |
specialty | string | no | Required 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
| Name | Type | Required | Description |
|---|---|---|---|
content_base64 | string | yes | The file, base64. At most 262144 bytes once decoded; the type is read from the bytes. |
file_name | string | no |
LogoReview
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes |
LogoRejection
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
reason | string | yes |
LogoWithdrawal
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
reason | string | no |
BrandingSetting
| Name | Type | Required | Description |
|---|---|---|---|
branding_watermark | boolean | yes | |
expected_version | integer | no | Required once the setting exists. |
FacilityBranding
| Name | Type | Required | Description |
|---|---|---|---|
facility_id | string (uuid) | yes | |
name | string | null | yes | |
facility_code | string | null | yes | |
logo | FacilityBranding.logo | yes | |
branding_watermark | boolean | yes |
CodeListUpsert.entries.item defined inline
| Name | Type | Required | Description |
|---|---|---|---|
code | string | yes | |
label_en | string | yes | |
label_fr | string | yes | |
active | boolean | no | |
facility_code_prefix | "INS" | "HSP" | "CLI" | "HCE" | "LAB" | "PHA" | "DIG" | "MAT" | "CHS" | "BLD" | "DEN" | "SPC" | … | no | site_type list only: the facility-code prefix of this type in the jurisdiction. PENDING = enrol without a code until the owner assigns a prefix. |
FacilityBranding.logo defined inline
| Name | Type | Required | Description |
|---|---|---|---|
url | string | no | |
content_type | "image/png" | "image/jpeg" | "image/svg+xml" | no | |
version | integer | no | |
sha256 | string | no |