← Tous les contrats
OHN-41 FHIR Repository and Profile Registry
- Version
- 1.1.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-41/api/openapi.yaml- Serveurs
https://opeshealthnetwork.com
- Authentification
bearerAuth: http bearer (JWT)
Télécharger le contrat (YAML)
Les contrats sont rédigés en anglais.
Governed FHIR R4 persistence with immutable version history, profile release governance (W001), optimistic versioned storage (W002) and quarantine of invalid resources (W003). Every POST requires an Idempotency-Key. Errors use {error, message, details}. 401 unauthenticated, 403 policy_denied, 404 not disclosed, 409 stale_version / invalid_transition / idempotency_key_reused, 422 domain_validation_failed and domain refusals, 429 with Retry-After, 503 jurisdiction_unavailable / dependency_unavailable (the body also names the `dependency`, e.g. OHN-16). Also: 400 malformed_request and idempotency_key_required, 413 payload_too_large (body over 512 KB), 410 export_expired. The Java service answers problem+json that adds type, title, status, detail and trace_id to {error, message, details}; validation details are zod's flatten() shape {formErrors, fieldErrors}. Tokens come from the platform gateway (ES256, audience ohn-41); /synthetic-token exists only in the TypeScript baseline.
Opérations
Health
GET/health/ohn-41Liveness and database check
Identifiant d’opération: ohn41_health
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
404 | Not found or not disclosed | |
Synthetic
POST/api/ohn/v1/fhir/synthetic-tokenIssue a synthetic token (TypeScript baseline in synthetic mode only; not served by the Java service, tokens come from the gateway)
Identifiant d’opération: ohn41_syntheticToken
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
404 | Not found or not disclosed | |
POST/api/ohn/v1/fhir/synthetic/setupConfigure the synthetic upstream fakes (synthetic mode only)
Identifiant d’opération: ohn41_syntheticSetup
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Repository
GET/api/ohn/v1/fhir/capabilitiesFHIR R4 CapabilityStatement for the caller partition
Identifiant d’opération: ohn41_capabilities
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/fhir/repository/statusRepository configuration, counts and guidance
Identifiant d’opération: ohn41_repositoryStatus
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/fhir/contextCaller principal and permitted actions
Identifiant d’opération: ohn41_context
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/fhir/vocabularyControlled vocabularies used by forms
Identifiant d’opération: ohn41_vocabulary
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Profiles
GET/api/ohn/v1/fhir/profilesList profile releases in the jurisdiction
Identifiant d’opération: ohn41_listProfiles
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
resource_type | query | string | non | |
package_id | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/profilesSubmit a profile release (F001)
Identifiant d’opération: ohn41_createProfile
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/fhir/profiles/{id}Profile release with history and compatibility runs
Identifiant d’opération: ohn41_getProfile
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/fhir/profiles/{id}/compatibilityBreaking changes versus the release in force
Identifiant d’opération: ohn41_profileCompatibility
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/profiles/{id}/resolve-dependenciescandidate -> dependency_resolved (dependencies approved, bindings licensed)
Identifiant d’opération: ohn41_resolveDependencies
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/profiles/{id}/validatedependency_resolved -> validated (compatibility run)
Identifiant d’opération: ohn41_validateProfile
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/profiles/{id}/approvevalidated -> approved (independent reviewer)
Identifiant d’opération: ohn41_approveProfile
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/profiles/{id}/activateapproved -> active; emits fhir.profile.published
Identifiant d’opération: ohn41_activateProfile
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/profiles/{id}/rejectReject a release before activation
Identifiant d’opération: ohn41_rejectProfile
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/profiles/{id}/retireRetire an active, unpinned release
Identifiant d’opération: ohn41_retireProfile
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/fhir/profile-packs(v1.1, ADR-0005) Profile pack by reference - "package_id", "package_id|version" or the id of any active release in the pack
Identifiant d’opération: ohn41_getProfilePack
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
ref | query | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | All active releases of one package version in the caller's jurisdiction | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
Pins
GET/api/ohn/v1/fhir/pinsPackage pins in the jurisdiction
Identifiant d’opération: ohn41_listPins
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/pinsPin an active release for its resource type
Identifiant d’opération: ohn41_pinRelease
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/pins/{id}/unpinRemove a pin
Identifiant d’opération: ohn41_unpin
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Partitions
GET/api/ohn/v1/fhir/partitionsPartition of the caller organization
Identifiant d’opération: ohn41_listPartitions
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/partitionsCreate the organization partition
Identifiant d’opération: ohn41_createPartition
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/partitions/{id}/suspendSuspend writes to a partition
Identifiant d’opération: ohn41_suspendPartition
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/partitions/{id}/purge-expiredDelete superseded versions older than the partition retention period (current versions are kept)
Identifiant d’opération: ohn41_purgeExpired
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Resources
GET/api/ohn/v1/fhir/resourcesResource heads (metadata only)
Identifiant d’opération: ohn41_listResources
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
resource_type | query | string | non | |
logical_id | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/resourcesCreate or update a resource (W002); invalid input is quarantined (W003)
Identifiant d’opération: ohn41_writeResource
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/fhir/resources/{id}/historyVersion history metadata, no bodies
Identifiant d’opération: ohn41_resourceHistory
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/resources/inspectRead one version (F002); patient-linked bodies need an OHN-16 permit
Identifiant d’opération: ohn41_inspectVersion
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/transactions(v1.1, ADR-0005) Atomic multi-resource commit - every entry is stored or none is
Each entry passes the full W002 pipeline inside one database transaction. Intra-bundle references to an entry full_url are resolved to Type/id. A refusal answers 422 with outcome rolled_back, the failing entry index and reason, and is not stored as an idempotent response so the same bundle can be retried after the cause is fixed. A dependency outage answers 503 and nothing is written.
Identifiant d’opération: ohn41_commitTransaction
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Committed; one result per entry, in entry order | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Rolled back (outcome rolled_back) or request validation failed (error domain_validation_failed); nothing was stored | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/resources/read(v1.1, ADR-0005) Read the current version of one resource; same checks as inspect
Identifiant d’opération: ohn41_readCurrent
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Current version with freshness and an audit receipt | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/resources/compareDiff two versions
Identifiant d’opération: ohn41_compareVersions
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Quarantine
GET/api/ohn/v1/fhir/outcomesQuarantine records
Identifiant d’opération: ohn41_listOutcomes
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
resource_type | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/fhir/outcomes/{id}Quarantine record with history and appeals
Identifiant d’opération: ohn41_getOutcome
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/outcomes/{id}/notify-sourcequarantined -> source_notified
Identifiant d’opération: ohn41_notifySource
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/outcomes/{id}/correctSubmitter supplies a corrected body
Identifiant d’opération: ohn41_correctOutcome
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/outcomes/{id}/revalidatecorrected -> revalidated (commits) or back to quarantined
Identifiant d’opération: ohn41_revalidateOutcome
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/outcomes/{id}/discardClose a quarantine record without storing
Identifiant d’opération: ohn41_discardOutcome
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/fhir/appealsValidation failure appeals
Identifiant d’opération: ohn41_listAppeals
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/appealsAppeal a failed rule (F003)
Identifiant d’opération: ohn41_createAppeal
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/appeals/{id}/decideAssigned reviewer upholds or overturns
Identifiant d’opération: ohn41_decideAppeal
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Reports
GET/api/ohn/v1/fhir/reports/{reportId}Run OHN-41-R001..R003
Identifiant d’opération: ohn41_runReport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-41-R001" | "OHN-41-R002" | "OHN-41-R003" | oui | |
jurisdiction | query | string (uuid) | non | |
country | query | string (uuid) | non | |
source | query | string (uuid) | non | |
from | query | string (date-time) | non | |
to | query | string (date-time) | non | |
package | query | string | non | |
resource_type | query | string | non | |
review_state | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/fhir/reports/{reportId}/exportCreate a signed, 5-minute, owner-only CSV or PDF export
Identifiant d’opération: ohn41_exportReport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-41-R001" | "OHN-41-R002" | "OHN-41-R003" | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Success | |
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, conflict or reused idempotency key | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/fhir/exports/{token}Download an export (audited)
Identifiant d’opération: ohn41_downloadExport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
token | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | text/csv: string
application/pdf: string (binary)
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure, domain refusal or quarantined resource | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Schémas
Error
| Nom | Type | Obligatoire | Description |
|---|
error | string | oui | |
message | string | non | |
details | any | non | |
Document
JSON document; shapes are listed in modules/OHN-41/data/schema.md
object
Receipt
| Nom | Type | Obligatoire | Description |
|---|
receipt_id | string (uuid) | oui | |
committed_at | string (date-time) | oui | |
aggregate_id | string (uuid) | oui | |
aggregate_type | string | oui | |
version | integer | oui | |
status | "committed" | "denied" | "pending" | oui | |
CommandResult
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | non | |
delivery | "committed" | "pending_downstream_confirmation" | non | |
CapabilityStatement
| Nom | Type | Obligatoire | Description |
|---|
resourceType | "CapabilityStatement" | oui | |
status | "active" | oui | |
kind | "instance" | oui | |
fhirVersion | "4.0.1" | oui | |
implementationGuide | array of string | non | |
rest | array of object | oui | |
Versioned
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
Reasoned
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
Approve
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
acknowledge_breaking_changes | boolean | non | |
ReleaseCreate
OHN-41-F001 FHIR profile release
| Nom | Type | Obligatoire | Description |
|---|
profile_canonical | string (uri) | oui | http(s)://<base>/StructureDefinition/<name> |
package_id | string | oui | |
package_version | string | oui | |
resource_type | "Patient" | "Observation" | "Condition" | "AllergyIntolerance" | "MedicationStatement" | "Immunization" | "Encounter" | "DiagnosticReport" | "Organization" | "Practitioner" | "Location" | oui | |
country_scope | string | oui | |
release_evidence | string (uuid) | oui | |
rules | Rules | oui | |
dependencies | array of ReleaseCreate.dependencies.item | non | |
Pin
| Nom | Type | Obligatoire | Description |
|---|
release_id | string (uuid) | oui | |
reason | string | oui | |
Partition
| Nom | Type | Obligatoire | Description |
|---|
name | string | oui | |
resource_types | array of "Patient" | "Observation" | "Condition" | "AllergyIntolerance" | "MedicationStatement" | "Immunization" | "Encounter" | "DiagnosticReport" | "Organization" | "Practitioner" | "Location" | oui | |
retention_days | integer | oui | |
ResourceWrite
| Nom | Type | Obligatoire | Description |
|---|
resource_type | "Patient" | "Observation" | "Condition" | "AllergyIntolerance" | "MedicationStatement" | "Immunization" | "Encounter" | "DiagnosticReport" | "Organization" | "Practitioner" | "Location" | oui | |
logical_id | string | oui | |
resource | object | oui | FHIR R4 JSON resource |
patient_ref | string (uuid) | non | Required for patient-linked types |
expected_version_id | integer | non | Omit to create; current version id to update |
ProfilePack
| Nom | Type | Obligatoire | Description |
|---|
api_version | "1.1.0" | oui | |
ref | string | oui | |
id | string | oui | package_id|version |
name | string | oui | |
version | string | oui | |
profiles | array of ProfilePack.profiles.item | oui | |
Transaction
| Nom | Type | Obligatoire | Description |
|---|
transaction_id | string | oui | |
patient_ref | string (uuid) | non | Required when any entry is patient-linked |
entries | array of Transaction.entries.item | oui | |
TransactionRolledBack
| Nom | Type | Obligatoire | Description |
|---|
api_version | "1.1.0" | oui | |
outcome | "rolled_back" | oui | |
transaction_id | string | oui | |
failed_index | integer | oui | |
reason | string | oui | A validator rule code, partition_not_configured, profile_not_pinned, policy_denied, patient_context_missing, resource_exists, stale_version, duplicate_full_url, put_requires_logical_id, post_must_not_name_logical_id or duplicate_resource_in_transaction |
issues | array of object | oui | |
entries_committed | 0 | oui | |
receipt | Receipt | oui | |
ReadCurrent
| Nom | Type | Obligatoire | Description |
|---|
resource_type | "Patient" | "Observation" | "Condition" | "AllergyIntolerance" | "MedicationStatement" | "Immunization" | "Encounter" | "DiagnosticReport" | "Organization" | "Practitioner" | "Location" | oui | |
logical_id | string | oui | |
jurisdiction_id | string (uuid) | oui | |
access_purpose | string | oui | |
Inspect
OHN-41-F002 FHIR resource version inspection
| Nom | Type | Obligatoire | Description |
|---|
resource_type | "Patient" | "Observation" | "Condition" | "AllergyIntolerance" | "MedicationStatement" | "Immunization" | "Encounter" | "DiagnosticReport" | "Organization" | "Practitioner" | "Location" | oui | |
logical_id | string | oui | |
jurisdiction_id | string (uuid) | oui | |
access_purpose | "repository_administration" | "conformance_review" | "treatment" | "care_coordination" | "public_health" | oui | |
version_id | string | oui | |
Compare
| Nom | Type | Obligatoire | Description |
|---|
resource_type | "Patient" | "Observation" | "Condition" | "AllergyIntolerance" | "MedicationStatement" | "Immunization" | "Encounter" | "DiagnosticReport" | "Organization" | "Practitioner" | "Location" | oui | |
logical_id | string | oui | |
jurisdiction_id | string (uuid) | oui | |
access_purpose | "repository_administration" | "conformance_review" | "treatment" | "care_coordination" | "public_health" | oui | |
from_version_id | string | oui | |
to_version_id | string | oui | |
Correction
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
resource | object | oui | |
Appeal
OHN-41-F003 FHIR validation failure appeal
| Nom | Type | Obligatoire | Description |
|---|
resource_ref | string (uuid) | oui | Quarantine record id |
profile_ref | string (uuid) | oui | |
rule_code | string | oui | |
source_evidence | string (uuid) | oui | |
reviewer | string (uuid) | oui | |
AppealDecision
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
decision | "upheld" | "overturned" | oui | |
reason | string | oui | |
Export
| Nom | Type | Obligatoire | Description |
|---|
format | "csv" | "pdf" | oui | |
filters | object | non | |
SyntheticToken
| Nom | Type | Obligatoire | Description |
|---|
principal_id | string (uuid) | oui | |
role | "fhir_administrator" | "conformance_reviewer" | "fhir_source_system" | "unauthorized_viewer" | oui | |
jurisdiction | string (uuid) | oui | |
organization_id | string (uuid) | oui | |
purpose | "repository_administration" | "conformance_review" | "treatment" | "care_coordination" | "public_health" | oui | |
SyntheticSetup
| Nom | Type | Obligatoire | Description |
|---|
deny_patients | array of string (uuid) | non | |
unlicensed_systems | array of string (uri) | non | |
inactive_jurisdictions | array of string (uuid) | non | |
down | array of "OHN-01" | "OHN-16" | "OHN-23" | "OHN-18" | non | |
reset | boolean | non | |
Rules.fixed.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
path | string | oui | |
values | array of string | oui | |
Rules.bindings.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
path | string | oui | |
system | string (uri) | oui | |
ReleaseCreate.dependencies.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
package_id | string | oui | |
version | string | oui | |
ProfilePack.profiles.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
resource_type | string | oui | |
canonical | string (uri) | oui | |
required | array of string | oui | |
release_id | string (uuid) | oui | |
Transaction.entries.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
full_url | string | oui | |
method | "POST" | "PUT" | oui | |
resource_type | "Patient" | "Observation" | "Condition" | "AllergyIntolerance" | "MedicationStatement" | "Immunization" | "Encounter" | "DiagnosticReport" | "Organization" | "Practitioner" | "Location" | oui | |
logical_id | string | non | PUT only; POST ids are assigned by the server |
resource | object | oui | |
TransactionCommitted.results.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
full_url | string | oui | |
status | "201 Created" | "200 OK" | oui | |
location | string | oui | |
resource_type | string | oui | |
logical_id | string | oui | |
version_id | string | oui | |
etag | string | oui | |
last_modified | string (date-time) | oui | |
provenance_ref | string | null | non | |