← All contracts
OHN-04 Identifier Crosswalk and Merge Governance
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-04/api/openapi.json- Servers
https://opeshealthnetwork.com/api/ohn/v1
- Authentication
bearer: http bearer (JWT)
Download the contract (JSON)
Contracts are written in English.
Local-identifier crosswalk, dual-control patient merge, reversible unmerge and downstream reconciliation. Generated from the server request schemas; do not edit by hand.
Operations
Other operations
POST/identifier-crosswalksSubmit an identifier crosswalk (F001). Resolves nothing until activated.
Operation ID: submitCrosswalk
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/identifier-crosswalks/resolveResolve a local identifier to the network identity (inventory form; prefer the body form).
Operation ID: resolveCrosswalk
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
assigning_authority | query | string | no | |
local_id | query | string | no | |
as_of | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/identifier-crosswalks/resolutionsResolve a local identifier without placing it in a URL.
Operation ID: resolveCrosswalkByBody
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/identifier-crosswalks/searchSearch crosswalks of the organisation.
Operation ID: searchCrosswalks
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/identifier-crosswalks/{id}Crosswalk detail with workflow history and full lineage.
Operation ID: getCrosswalk
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/identifier-crosswalks/{id}/advancePerform one W001 step.
Operation ID: advanceCrosswalk
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/identifier-crosswalks/{id}/resolve-conflictReject a held collision or supersede the existing mapping.
Operation ID: resolveCrosswalkConflict
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/identifier-crosswalks/{id}/retireClose an active crosswalk with an end date.
Operation ID: retireCrosswalk
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/mpi/mergesMerge queue.
Operation ID: listMerges
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/mpi/mergesRequest a patient merge (F002).
Operation ID: requestMerge
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/mpi/merges/impact-previewWhat a merge would change and what blocks it. Changes nothing.
Operation ID: previewMergeImpact
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/mpi/merges/approvalsRecord one supervisor decision (F003). Two different supervisors are required.
Operation ID: recordMergeApproval
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/mpi/merges/{id}Merge case with approvals, propagation and history.
Operation ID: getMerge
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/mpi/merges/{id}/advanceEvidence review, execution or abort (W002).
Operation ID: advanceMerge
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/mpi/merges/{id}/disputeRaise or clear a clinical owner dispute; an open dispute blocks execution.
Operation ID: disputeMerge
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/mpi/unmergesUnmerge investigations.
Operation ID: listUnmerges
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/mpi/unmergesOpen an unmerge investigation (F004); both identities are frozen at once.
Operation ID: openUnmerge
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/mpi/unmerges/{id}Unmerge case with the reconstruction plan.
Operation ID: getUnmerge
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/mpi/unmerges/{id}/reconstructionAssign every identifier registered since the merge to one of the two people.
Operation ID: reconstructUnmerge
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/mpi/unmerges/{id}/advanceApprove, restore, verify or dismiss (W003).
Operation ID: advanceUnmerge
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/crosswalk-governance/propagationsDownstream propagation log.
Operation ID: listPropagations
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/crosswalk-governance/propagations/{id}/acknowledgeAcknowledgement or failure reported by the downstream system.
Operation ID: acknowledgePropagation
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/crosswalk-governance/propagations/{id}/redriveRe-send the event for a pending or failed propagation.
Operation ID: redrivePropagation
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/crosswalk-governance/assigning-authoritiesIssuers of local identifiers.
Operation ID: listAssigningAuthorities
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/crosswalk-governance/assigning-authoritiesRegister an issuer.
Operation ID: registerAssigningAuthority
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/crosswalk-governance/assigning-authorities/{id}/retireRetire an issuer.
Operation ID: retireAssigningAuthority
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/crosswalk-governance/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 | |
status | query | string | no | |
issuer | query | string | no | |
system | query | string | no | |
age_hours | 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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/crosswalk-governance/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. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
GET/crosswalk-governance/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 bytes once; Content-Type is text/csv or application/pdf depending on the requested format | application/octet-stream: string (binary)
|
400 | Malformed request | |
401 | Unauthenticated | |
403 | Denied by policy or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge 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 | |
GET/crosswalk-governance/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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/crosswalk-governance/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. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/crosswalk-governance/policy/{version}/activateActivate a draft (not by its author).
Operation ID: activatePolicy
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
version | path | integer | yes | |
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload returns the original response; same key with another payload returns 409. |
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 or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
POST/crosswalk-governance/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. Same key and payload returns the original response; same key with another payload returns 409. |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy or separation of duties | |
404 | Not found, or a non-disclosing refusal | |
409 | Conflict, stale version, invalid transition, blocked merge or idempotency key reuse | |
422 | Domain validation failed | |
429 | Rate limited | |
503 | A dependency is unavailable; nothing was committed | |
Schemas
CrosswalkCommand
| Name | Type | Required | Description |
|---|
health_id | string (uuid) | yes | |
local_id | string | yes | |
assigning_authority | string (uuid) | yes | |
source_facility | string (uuid) | yes | |
valid_from | string | yes | |
identity_evidence_ref | string (uuid) | yes | |
CrosswalkAdvanceCommand
| Name | Type | Required | Description |
|---|
to_state | "authority_verified" | "conflict_screened" | "active" | "rejected" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
ConflictResolveCommand
| Name | Type | Required | Description |
|---|
resolution | "reject" | "supersede_existing" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
CrosswalkRetireCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
valid_to | string | yes | |
reason | string | yes | |
ResolveQuery
| Name | Type | Required | Description |
|---|
assigning_authority | string (uuid) | yes | |
local_id | string | yes | |
as_of | string | no | |
SearchCommand
| Name | Type | Required | Description |
|---|
assigning_authority | string (uuid) | no | |
local_id | string | no | |
health_id | string (uuid) | no | |
state | string | no | |
cursor | string | no | |
MergeRequestCommand
| Name | Type | Required | Description |
|---|
survivor_patient_id | string (uuid) | yes | |
retiring_patient_id | string (uuid) | yes | |
evidence_refs | array of string (uuid) | yes | |
clinical_impact | string | yes | |
reason | string | yes | |
requester_id | string (uuid) | yes | |
ImpactPreviewCommand
| Name | Type | Required | Description |
|---|
survivor_patient_id | string (uuid) | yes | |
retiring_patient_id | string (uuid) | yes | |
MergeAdvanceCommand
| Name | Type | Required | Description |
|---|
to_state | "evidence_reviewed" | "executed" | "aborted" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
MergeApprovalCommand
| Name | Type | Required | Description |
|---|
merge_case_id | string (uuid) | yes | |
decision | "approve" | "reject" | yes | |
risk_review | string | yes | |
second_approver_id | string (uuid) | yes | |
reason | string | yes | |
MergeDisputeCommand
| Name | Type | Required | Description |
|---|
action | "raise" | "clear" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
UnmergeCommand
| Name | Type | Required | Description |
|---|
merge_case_id | string (uuid) | yes | |
affected_records | string | yes | |
recovery_plan | string | yes | |
patient_safety_review | string (uuid) | yes | |
reason | string | yes | |
UnmergeAdvanceCommand
| Name | Type | Required | Description |
|---|
to_state | "approved" | "restored" | "verified" | "dismissed" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
AcknowledgeCommand
| Name | Type | Required | Description |
|---|
target_system | string | yes | |
outcome | "acknowledged" | "failed" | yes | |
response | string | yes | |
RedriveCommand
| Name | Type | Required | Description |
|---|
reason | string | yes | |
AuthorityCommand
| Name | Type | Required | Description |
|---|
code | string | yes | |
display_name | string | yes | |
facility_ids | array of string (uuid) | no | |
AuthorityRetireCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
PolicyConfig
| Name | Type | Required | Description |
|---|
propagation_targets | array of string | yes | |
propagation_ack_sla_hours | integer | yes | |
merge_approvals_required | 2 | 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 | |
ReconstructionCommand.assignments.item defined inline
| Name | Type | Required | Description |
|---|
mapping_id | string (uuid) | yes | |
belongs_to | "survivor" | "retiring" | yes | |
ExportCommand.filters defined inline
| Name | Type | Required | Description |
|---|
jurisdiction | string (uuid) | no | |
status | string | no | |
issuer | string (uuid) | no | |
system | string | no | |
age_hours | string | no | |
period_from | string | no | |
period_to | string | no | |
cursor | string | no | |
PolicyDraftCommand.config defined inline
| Name | Type | Required | Description |
|---|
propagation_targets | array of string | yes | |
propagation_ack_sla_hours | integer | yes | |
merge_approvals_required | 2 | yes | |