← All contracts
OHN-19 Family Guardian and Delegated Access
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-19/api/openapi.json- Servers
https://opeshealthnetwork.com
- Authentication
bearer: http bearer (JWT)
Download the contract (JSON)
Contracts are written in English.
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.
Operations
representatives
GET/api/ohn/v1/representativesList authorities visible to the caller.
Operation ID: listRepresentativeAuthorities
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
state | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: submitGuardianClaim
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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).
Operation ID: getRepresentativeAuthority
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: verifyRepresentativeAuthority
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: revokeRepresentativeAuthority
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: listDelegations
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
state | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
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).
Operation ID: requestDelegation
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: getDelegation
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
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).
Operation ID: transitionDelegation
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: revokeDelegation
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: listDisputes
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
state | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: raiseDispute
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: resolveDispute
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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).
Operation ID: listCategoryRestrictions
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: setCategoryRestriction
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: liftCategoryRestriction
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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).
Operation ID: recordCapacityAssessment
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: listCapacityAssessments
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: withdrawCapacityAssessment
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: listAgeTransitions
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
state | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: getAgeTransition
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
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).
Operation ID: reviewAgeTransition
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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).
Operation ID: advanceAgeTransition
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: runReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
reportId | path | string | yes | |
jurisdiction | query | string | no | |
country | query | string | no | |
relationship | query | string | no | |
status | query | string | no | |
period_from | query | string | no | |
period_to | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: exportReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
reportId | path | string | yes | |
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: downloadExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
token | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: listPolicies
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: draftPolicy
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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).
Operation ID: activatePolicy
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
version | path | string | yes | |
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: getReferenceData
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
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)?
Operation ID: decideRepresentation
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | 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. |
Request body (required)
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: runSweep
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | 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. |
Request body
Responses
| Code | Description | Media type |
|---|
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.
Operation ID: drainOutbox
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | 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. |
Request body
Responses
| Code | Description | Media type |
|---|
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
Operation ID: ohn19Health
Responses
| Code | Description | Media type |
|---|
200 | ok | application/json: object
|
503 | unavailable | application/json: object
|
Schemas
GuardianClaimCommand
| Name | Type | Required | Description |
|---|
guardian_principal | string (uuid) | yes | |
dependent_patient | string (uuid) | yes | |
relationship_type | string | yes | |
jurisdiction_id | string (uuid) | yes | |
evidence_ref | string (uuid) | yes | |
valid_from | string | yes | |
valid_to | string | no | |
capacity_assessment_id | string (uuid) | no | |
VerifyCommand
| Name | Type | Required | Description |
|---|
step | "evidence_checked" | "authority_confirmed" | "limited_access_active" | "rejected" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
evidence_type | string | no | |
AuthorityRevokeCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason_code | "authority_ended" | "court_order_changed" | "guardian_request" | "patient_request" | "safeguarding_concern" | "administrative_error" | yes | |
DelegationCommand
| Name | Type | Required | Description |
|---|
patient_id | string (uuid) | yes | |
delegate_principal | string (uuid) | yes | |
scope | array of string | yes | |
purpose | string | yes | |
expires_at | string (date-time) | yes | |
patient_confirmation | string (uuid) | no | |
DelegationTransitionCommand
| Name | Type | Required | Description |
|---|
to_state | "patient_confirmed" | "active" | "declined" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
patient_confirmation | string (uuid) | no | |
DelegationRevokeCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason_code | "patient_request" | "delegate_relinquished" | "safeguarding_concern" | "administrative_error" | yes | |
TransitionReviewCommand
| Name | Type | Required | Description |
|---|
dependent_id | string (uuid) | yes | |
policy_version | string | yes | |
threshold_date | string | yes | |
confidentiality_review | "no_confidential_content" | "confidential_content_withheld" | "escalated_for_review" | yes | |
reviewer_id | string (uuid) | yes | |
expected_version | integer | yes | |
TransitionAdvanceCommand
| Name | Type | Required | Description |
|---|
to_state | "access_recalculated" | "patient_notified" | yes | |
expected_version | integer | yes | |
CapacityAssessmentCommand
| Name | Type | Required | Description |
|---|
patient_id | string (uuid) | yes | |
assessor_ref | string (uuid) | yes | |
document_ref | string (uuid) | yes | |
effective_from | string | yes | |
review_date | string | no | |
CapacityWithdrawCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
DisputeCommand
| Name | Type | Required | Description |
|---|
authority_id | string (uuid) | yes | |
reason_code | "authority_contested" | "evidence_challenged" | "court_order_changed" | "safeguarding_concern" | "other" | yes | |
expected_version | integer | yes | |
DisputeResolveCommand
| Name | Type | Required | Description |
|---|
outcome | "upheld" | "dismissed" | yes | |
reason | string | yes | |
expected_version | integer | yes | |
RestrictionCommand
| Name | Type | Required | Description |
|---|
category | string | yes | |
authority_id | string (uuid) | no | |
reason_code | "patient_request" | "confidential_adolescent_care" | "safeguarding" | "legal_requirement" | yes | |
RestrictionLiftCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
DecisionCommand
| Name | Type | Required | Description |
|---|
patient_id | string (uuid) | yes | |
representative_principal | string (uuid) | yes | |
data_category | string | no | |
PolicyConfig
| Name | Type | Required | Description |
|---|
age_of_majority_years | integer | yes | |
relationship_types | array of string | yes | |
adult_relationship_types | array of string | yes | |
evidence_types | array of string | yes | |
delegation_purposes | array of string | yes | |
data_categories | array of string | yes | |
guardian_excluded_categories | array of string | yes | |
max_delegation_days | integer | yes | |
verification_sla_days | integer | yes | |
transition_processing_days | integer | yes | |
PolicyActivateCommand
| Name | Type | Required | Description |
|---|
reason | string | yes | |
Error
| Name | Type | Required | Description |
|---|
error | string | yes | |
message | string | no | |
details | object | no | |
dependency | string | no | |
Receipt
| Name | Type | Required | Description |
|---|
receipt_id | string (uuid) | yes | |
committed_at | string (date-time) | yes | |
aggregate_id | string | null | no | |
version | integer | null | no | |
status | "committed" | "denied" | yes | |
ExportCommand.filters defined inline
| Name | Type | Required | Description |
|---|
jurisdiction | string (uuid) | no | |
country | string (uuid) | no | |
relationship | string | no | |
status | string | no | |
period_from | string | no | |
period_to | string | no | |
cursor | string | no | |
PolicyDraftCommand.config defined inline
| Name | Type | Required | Description |
|---|
age_of_majority_years | integer | yes | |
relationship_types | array of string | yes | |
adult_relationship_types | array of string | yes | |
evidence_types | array of string | yes | |
delegation_purposes | array of string | yes | |
data_categories | array of string | yes | |
guardian_excluded_categories | array of string | yes | |
max_delegation_days | integer | yes | |
verification_sla_days | integer | yes | |
transition_processing_days | integer | yes | |