← Tous les contrats
OHN-19 Family Guardian and Delegated Access
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-19/api/openapi.json- Serveurs
https://opeshealthnetwork.com
- Authentification
bearer: http bearer (JWT)
Télécharger le contrat (JSON)
Les contrats sont rédigés en anglais.
Representative authority, delegated access, age-of-majority transition and the enforcement decision. Request bodies are strict (unknown fields are refused with 422 domain_validation_failed). Responses are JSON objects described in docs/program/java/ohn-19-analysis.md. Reconciled with the TypeScript module for the Java migration (2026-11); gateway tokens use audience ohn-19 and carry role, jurisdiction, organization_id and purpose.
Opérations
representatives
GET/api/ohn/v1/representativesList authorities visible to the caller.
Identifiant d’opération: listRepresentativeAuthorities
Authentification: bearer
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 | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/representativesSubmit a guardian relationship claim (F001). A claim confers no access.
Identifiant d’opération: submitGuardianClaim
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Created; the body carries the committed receipt | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/api/ohn/v1/representatives/{id}Authority detail (history for verifiers).
Identifiant d’opération: getRepresentativeAuthority
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/representatives/{id}/verifyPerform one W001 verification step.
Identifiant d’opération: verifyRepresentativeAuthority
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/representatives/{id}/revokeRevoke (verifier) or relinquish (guardian) an authority.
Identifiant d’opération: revokeRepresentativeAuthority
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
delegations
GET/api/ohn/v1/delegationsList delegations visible to the caller.
Identifiant d’opération: listDelegations
Authentification: bearer
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 | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/delegationsRequest delegated access (F002).
Identifiant d’opération: requestDelegation
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Created; the body carries the committed receipt | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/api/ohn/v1/delegations/{id}Delegation detail.
Identifiant d’opération: getDelegation
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/delegations/{id}/transitionsPerform one W002 step (patient confirmation, activation, decline).
Identifiant d’opération: transitionDelegation
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/delegations/{id}/revokeRevoke or relinquish a delegation.
Identifiant d’opération: revokeDelegation
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
disputes
GET/api/ohn/v1/guardianship/disputesList disputes visible to the caller.
Identifiant d’opération: listDisputes
Authentification: bearer
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 | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/guardianship/disputesRaise a dispute; the authority is suspended in the same transaction.
Identifiant d’opération: raiseDispute
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Created; the body carries the committed receipt | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/guardianship/disputes/{id}/resolveUphold or dismiss a dispute.
Identifiant d’opération: resolveDispute
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
restrictions
GET/api/ohn/v1/guardianship/dependents/{id}/restrictionsConfidential category restrictions of a patient (never visible to representatives).
Identifiant d’opération: listCategoryRestrictions
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/guardianship/dependents/{id}/restrictionsRestrict a data category for representatives.
Identifiant d’opération: setCategoryRestriction
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Created; the body carries the committed receipt | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/guardianship/restrictions/{id}/liftLift a restriction.
Identifiant d’opération: liftCategoryRestriction
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
capacity
POST/api/ohn/v1/guardianship/capacity-assessmentsRecord a capacity assessment reference (F004).
Identifiant d’opération: recordCapacityAssessment
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Created; the body carries the committed receipt | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/api/ohn/v1/guardianship/dependents/{id}/capacity-assessmentsCapacity assessment references of a patient.
Identifiant d’opération: listCapacityAssessments
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/guardianship/capacity-assessments/{id}/withdrawWithdraw a capacity assessment reference.
Identifiant d’opération: withdrawCapacityAssessment
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
transitions
GET/api/ohn/v1/guardianship/age-transitionsAge-of-majority transitions.
Identifiant d’opération: listAgeTransitions
Authentification: bearer
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 | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/api/ohn/v1/guardianship/age-transitions/{id}Transition detail with history.
Identifiant d’opération: getAgeTransition
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/guardianship/age-transitions/{id}/reviewMinor transition review (F003).
Identifiant d’opération: reviewAgeTransition
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/guardianship/age-transitions/{id}/advanceRecalculate access or record patient notification (W003).
Identifiant d’opération: advanceAgeTransition
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
reports
GET/api/ohn/v1/guardianship/reports/{reportId}Run report R001, R002 or R003.
Identifiant d’opération: runReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | string | oui | |
jurisdiction | query | string | non | |
country | query | string | non | |
relationship | query | string | non | |
status | query | string | non | |
period_from | query | string | non | |
period_to | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/guardianship/reports/{reportId}/exportCreate a signed, single-use, five-minute export.
Identifiant d’opération: exportReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | string | oui | |
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Created; the body carries the committed receipt | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/api/ohn/v1/guardianship/exports/{token}Download an export once.
Identifiant d’opération: downloadExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
token | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | The export file (CSV or PDF), single use, five minutes | text/csv: string (binary)
application/pdf: string (binary)
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
410 | Export expired or already downloaded | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
policy
GET/api/ohn/v1/guardianship/policyJurisdiction policy versions.
Identifiant d’opération: listPolicies
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/guardianship/policyDraft a policy version.
Identifiant d’opération: draftPolicy
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Created; the body carries the committed receipt | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/guardianship/policy/{version}/activateActivate a draft (not by its author).
Identifiant d’opération: activatePolicy
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
version | path | string | oui | |
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/api/ohn/v1/guardianship/reference-dataControlled lists of the active policy.
Identifiant d’opération: getReferenceData
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
decisions
POST/api/ohn/v1/guardianship/decisionsEnforcement decision: may this representative act for this patient (and category)?
Identifiant d’opération: decideRepresentation
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
maintenance
POST/api/ohn/v1/guardianship/maintenance/sweepExpire lapsed authorities and delegations; detect majority thresholds.
Identifiant d’opération: runSweep
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/api/ohn/v1/guardianship/maintenance/drain-outboxRelay pending events; reports pending when no bus is configured.
Identifiant d’opération: drainOutbox
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | One key per user intent, 8-128 characters of [A-Za-z0-9_.:-]. Same key and payload returns the original response; same key with another payload returns 409 idempotency_key_reused; a request still running returns 409 request_in_progress. |
Corps de la requête
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
health
GET/health/ohn-19Liveness and dependency modes; 503 when the database is unreachable
Identifiant d’opération: ohn19Health
Réponses
| Code | Description | Type de média |
|---|
200 | ok | application/json: object
|
503 | unavailable | application/json: object
|
Schémas
GuardianClaimCommand
| Nom | Type | Obligatoire | Description |
|---|
guardian_principal | string (uuid) | oui | |
dependent_patient | string (uuid) | oui | |
relationship_type | string | oui | |
jurisdiction_id | string (uuid) | oui | |
evidence_ref | string (uuid) | oui | |
valid_from | string | oui | |
valid_to | string | non | |
capacity_assessment_id | string (uuid) | non | |
VerifyCommand
| Nom | Type | Obligatoire | Description |
|---|
step | "evidence_checked" | "authority_confirmed" | "limited_access_active" | "rejected" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
evidence_type | string | non | |
AuthorityRevokeCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason_code | "authority_ended" | "court_order_changed" | "guardian_request" | "patient_request" | "safeguarding_concern" | "administrative_error" | oui | |
DelegationCommand
| Nom | Type | Obligatoire | Description |
|---|
patient_id | string (uuid) | oui | |
delegate_principal | string (uuid) | oui | |
scope | array of string | oui | |
purpose | string | oui | |
expires_at | string (date-time) | oui | |
patient_confirmation | string (uuid) | non | |
DelegationTransitionCommand
| Nom | Type | Obligatoire | Description |
|---|
to_state | "patient_confirmed" | "active" | "declined" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
patient_confirmation | string (uuid) | non | |
DelegationRevokeCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason_code | "patient_request" | "delegate_relinquished" | "safeguarding_concern" | "administrative_error" | oui | |
TransitionReviewCommand
| Nom | Type | Obligatoire | Description |
|---|
dependent_id | string (uuid) | oui | |
policy_version | string | oui | |
threshold_date | string | oui | |
confidentiality_review | "no_confidential_content" | "confidential_content_withheld" | "escalated_for_review" | oui | |
reviewer_id | string (uuid) | oui | |
expected_version | integer | oui | |
TransitionAdvanceCommand
| Nom | Type | Obligatoire | Description |
|---|
to_state | "access_recalculated" | "patient_notified" | oui | |
expected_version | integer | oui | |
CapacityAssessmentCommand
| Nom | Type | Obligatoire | Description |
|---|
patient_id | string (uuid) | oui | |
assessor_ref | string (uuid) | oui | |
document_ref | string (uuid) | oui | |
effective_from | string | oui | |
review_date | string | non | |
CapacityWithdrawCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
DisputeCommand
| Nom | Type | Obligatoire | Description |
|---|
authority_id | string (uuid) | oui | |
reason_code | "authority_contested" | "evidence_challenged" | "court_order_changed" | "safeguarding_concern" | "other" | oui | |
expected_version | integer | oui | |
DisputeResolveCommand
| Nom | Type | Obligatoire | Description |
|---|
outcome | "upheld" | "dismissed" | oui | |
reason | string | oui | |
expected_version | integer | oui | |
RestrictionCommand
| Nom | Type | Obligatoire | Description |
|---|
category | string | oui | |
authority_id | string (uuid) | non | |
reason_code | "patient_request" | "confidential_adolescent_care" | "safeguarding" | "legal_requirement" | oui | |
RestrictionLiftCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
DecisionCommand
| Nom | Type | Obligatoire | Description |
|---|
patient_id | string (uuid) | oui | |
representative_principal | string (uuid) | oui | |
data_category | string | non | |
PolicyConfig
| Nom | Type | Obligatoire | Description |
|---|
age_of_majority_years | integer | oui | |
relationship_types | array of string | oui | |
adult_relationship_types | array of string | oui | |
evidence_types | array of string | oui | |
delegation_purposes | array of string | oui | |
data_categories | array of string | oui | |
guardian_excluded_categories | array of string | oui | |
max_delegation_days | integer | oui | |
verification_sla_days | integer | oui | |
transition_processing_days | integer | oui | |
PolicyActivateCommand
| Nom | Type | Obligatoire | Description |
|---|
reason | string | oui | |
Error
| Nom | Type | Obligatoire | Description |
|---|
error | string | oui | |
message | string | non | |
details | object | non | |
dependency | string | non | |
Receipt
| Nom | Type | Obligatoire | Description |
|---|
receipt_id | string (uuid) | oui | |
committed_at | string (date-time) | oui | |
aggregate_id | string | null | non | |
version | integer | null | non | |
status | "committed" | "denied" | oui | |
ExportCommand.filters défini sur place
| Nom | Type | Obligatoire | Description |
|---|
jurisdiction | string (uuid) | non | |
country | string (uuid) | non | |
relationship | string | non | |
status | string | non | |
period_from | string | non | |
period_to | string | non | |
cursor | string | non | |
PolicyDraftCommand.config défini sur place
| Nom | Type | Obligatoire | Description |
|---|
age_of_majority_years | integer | oui | |
relationship_types | array of string | oui | |
adult_relationship_types | array of string | oui | |
evidence_types | array of string | oui | |
delegation_purposes | array of string | oui | |
data_categories | array of string | oui | |
guardian_excluded_categories | array of string | oui | |
max_delegation_days | integer | oui | |
verification_sla_days | integer | oui | |
transition_processing_days | integer | oui | |