OHN-05 Health Facility Registry
- Version
- 1.4.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-05/api/openapi.json- Serveurs
https://opeshealthnetwork.com/api/ohn/v1- Authentification
bearer: http bearer
Les contrats sont rédigés en anglais.
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.
Opérations
- OHN-05 (30)
- Autres opérations (1)
- Branding (10)
OHN-05
GET/facilitiesList facilities (status, site_type, q, region, code, cursor filters)
Identifiant d’opération: listFacilities
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
status | query | string | non | |
site_type | query | string | non | |
q | query | string | non | |
region | query | string | non | |
code | query | string | non | |
cursor | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: enrollFacility
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:FacilityEnrollment
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: facilityProfile
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: facilityEvidence
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: facilityHierarchy
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: listLicenses
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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.
Identifiant d’opération: verifyFacility
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:CredentialVerification
Réponses
POST/facilities/{id}/suspendSuspend facility
Identifiant d’opération: suspendFacility
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Suspend
Réponses
POST/facilities/{id}/transitionsFacility workflow transition
Identifiant d’opération: transitionFacility
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Transition
Réponses
POST/facilities/{id}/aliasesAdd alias (duplicate detection runs)
Identifiant d’opération: addAlias
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Alias
Réponses
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.
Identifiant d’opération: renewLicense
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
licenseId | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:LicenseRenewal
Réponses
POST/facilities/{id}/licenses/{licenseId}/reverifyRe-verify licence
Identifiant d’opération: reverifyLicense
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
licenseId | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:LicenseReverify
Réponses
GET/site-relationshipsList site relationships
Identifiant d’opération: listRelationships
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: requestRelationship
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:SiteRelationship
Réponses
POST/site-relationships/{id}/transitionsRelationship workflow transition (cycle check, approval)
Identifiant d’opération: transitionRelationship
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:RelationshipTransition
Réponses
GET/duplicatesList duplicate candidates
Identifiant d’opération: listDuplicates
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: resolveDuplicate
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:DuplicateResolution
Réponses
GET/code-lists/{list}Read code list
Identifiant d’opération: listCodes
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
list | path | "relationship_type" | "site_type" | "specialty" | oui | site_type, relationship_type or specialty. Items carry source (jurisdiction or platform_default); site_type items carry facility_code_prefix. |
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: upsertCodes
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
list | path | "relationship_type" | "site_type" | "specialty" | oui | site_type, relationship_type or specialty. Items carry source (jurisdiction or platform_default); site_type items carry facility_code_prefix. |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:CodeListUpsert
Réponses
GET/registry-policyRead registry policy (unconfigured = fail closed)
Identifiant d’opération: readPolicy
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: writePolicy
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:RegistryPolicy
Réponses
POST/registry/maintenance/license-sweepLicence expiry sweep (policy-driven)
Identifiant d’opération: licenseSweep
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Réponses
POST/registry/maintenance/drain-outboxDrain outbox (no sink => nothing marked delivered)
Identifiant d’opération: drainOutbox
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Réponses
GET/registry/reports/{reportId}Run report
Identifiant d’opération: runReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
reportId | path | "OHN-05-R001" | "OHN-05-R002" | "OHN-05-R003" | oui | |
jurisdiction | query | string | non | |
facility_type | query | string | non | |
period_from | query | string | non | |
period_to | query | string | non | |
country | query | string | non | |
expiry_window | query | string | non | |
region | query | string | non | |
cursor | query | string | non |
Réponses
POST/registry/reports/{reportId}/exportCreate signed single-use export
Identifiant d’opération: createExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
reportId | path | "OHN-05-R001" | "OHN-05-R002" | "OHN-05-R003" | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ExportCommand
Réponses
GET/registry/exports/{token}Download export (owner only, single use, 5 min)
Identifiant d’opération: fetchExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
token | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: reportCatalog
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: facilityByCode
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
code | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: changeSiteType
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:SiteTypeChange
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: backfillFacilityCodes
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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 |
Autres opérations
GET/health/ohn-05Liveness incl. DB and dependency modes
Identifiant d’opération: health
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | ok | — |
503 | unavailable | — |
Branding
GET/facilities/{id}/logosThe facility's logos with their review state, and its branding setting
Identifiant d’opération: listFacilityLogos
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: uploadFacilityLogo
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:LogoUpload
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: facilityLogoContent
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
logoId | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: approveFacilityLogo
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
logoId | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:LogoReview
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: rejectFacilityLogo
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
logoId | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:LogoRejection
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: withdrawFacilityLogo
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
logoId | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:LogoWithdrawal
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: facilityBranding
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: setFacilityBranding
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:BrandingSetting
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: facilityLogo
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
v | query | integer | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: logoReviewQueue
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
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 | — |
Schémas
Error
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
code | string | oui | |
message | string | oui | |
details | any | non |
FacilityEnrollment
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
legal_name | string | oui | |
country | string (uuid) | oui | |
site_type | string | oui | |
official_registry_id | string | non | |
license_ref | string | non | |
geo_coordinates | string | non | latitude,longitude decimal degrees |
operator_org | string (uuid) | oui | |
evidence | string (uuid) | oui | |
region | string | non | |
district | string | non | |
specialty | string | non | 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
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
license_authority | string (uuid) | oui | |
license_number | string | oui | |
expiry_date | string (date) | oui | |
verification_evidence | string (uuid) | oui | |
review_decision | "approved" | "rejected" | oui | |
expected_version | integer | oui | |
confirmation_reference | string | non | 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
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
to_state | string | oui | |
expected_version | integer | oui | |
reason | string | oui |
Suspend
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
reason | string | oui |
Alias
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
alias_name | string | oui |
LicenseRenewal
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expiry_date | string (date) | oui | |
verification_evidence | string (uuid) | oui | |
expected_version | integer | oui | |
confirmation_reference | string | non | 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
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
review_decision | "approved" | "rejected" | oui | |
expected_version | integer | oui |
SiteRelationship
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
parent_site_id | string (uuid) | non | |
child_site_id | string (uuid) | oui | |
relationship_type | string | oui | |
effective_from | string (date) | oui |
RelationshipTransition
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
to_state | "cycle_checked" | "approved" | "published" | "rejected" | oui | |
expected_version | integer | oui | |
reason | string | oui |
DuplicateResolution
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
resolution | "confirmed_duplicate" | "not_duplicate" | oui | |
reason | string | oui | |
expected_version | integer | oui |
CodeListUpsert
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
entries | array of CodeListUpsert.entries.item | oui |
RegistryPolicy
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expiring_window_days | integer | null | oui | |
on_expiry_action | "suspend" | "flag_only" | null | oui | |
cross_country_relationships_allowed | boolean | null | oui | |
approval_reference | string | oui |
ExportCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
format | "csv" | "pdf" | oui | |
filters | object | non | |
columns | array of string | non |
Report
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
report_id | "OHN-05-R001" | "OHN-05-R002" | "OHN-05-R003" | non | |
title | string | non | |
columns | array of any | non | |
rows | array of any | non | |
summary | object | non | |
state | "rendered" | "no_authorized_data" | non | |
generated_at | string (date-time) | non | |
next_cursor | string | null | non |
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
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
site_type | string | oui | |
expected_version | integer | oui | |
reason | string | oui | |
specialty | string | non | 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
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
content_base64 | string | oui | The file, base64. At most 262144 bytes once decoded; the type is read from the bytes. |
file_name | string | non |
LogoReview
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui |
LogoRejection
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
reason | string | oui |
LogoWithdrawal
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
reason | string | non |
BrandingSetting
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
branding_watermark | boolean | oui | |
expected_version | integer | non | Required once the setting exists. |
FacilityBranding
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
name | string | null | oui | |
facility_code | string | null | oui | |
logo | FacilityBranding.logo | oui | |
branding_watermark | boolean | oui |
CodeListUpsert.entries.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
code | string | oui | |
label_en | string | oui | |
label_fr | string | oui | |
active | boolean | non | |
facility_code_prefix | "INS" | "HSP" | "CLI" | "HCE" | "LAB" | "PHA" | "DIG" | "MAT" | "CHS" | "BLD" | "DEN" | "SPC" | … | non | 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 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
url | string | non | |
content_type | "image/png" | "image/jpeg" | "image/svg+xml" | non | |
version | integer | non | |
sha256 | string | non |