OHN-37 Patient Identity Proofing and Assurance
- Version
- 1.1.0
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-37/api/openapi.yaml- Servers
https://opeshealthnetwork.com/api/ohn/v1/proofing- Authentication
bearer: http bearer (JWT)
Contracts are written in English.
Identity proofing cases, evidence review, identity disputes, impersonation investigation and assurance management. Reconciled with the observed behaviour of the TypeScript reference (20 operations; the legacy dev token endpoint is not part of the contract). Base path /api/ohn/v1/proofing. Every mutation requires an Idempotency-Key (1-255 characters). Routes default-deny on role. Assurance policy (which evidence and channels may reach which level) is configuration and fails closed to the claimed level. Synthetic-ready; real-patient use requires accepted OHN-01/OHN-38/OHN-45/OHN-16 integrations and legal authorization.
Operations
- Other operations (20)
Other operations
GET/casesProofing cases of the caller's jurisdiction and organization, cursor paged.
Operation ID: listCases
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page_size | query | string | no | |
cursor | query | string | no | |
state | query | string | no | |
channel | query | string | no | |
evidence_type | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
401 | Problem document: error, message, details | application/json: Error |
403 | Problem document: error, message, details | application/json: Error |
422 | Problem document: error, message, details | application/json: Error |
429 | Problem document: error, message, details | application/json: Error |
POST/casesRegister a proofing case (OHN-37-F001, API-001).
Operation ID: createCase
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict. |
Request body (required)
application/json:ProofingCaseCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Created; the body carries the committed receipt | application/json: object |
400 | Problem document: error, message, details | application/json: Error |
401 | Problem document: error, message, details | application/json: Error |
403 | Problem document: error, message, details | application/json: Error |
409 | Problem document: error, message, details | application/json: Error |
422 | Problem document: error, message, details | application/json: Error |
429 | Problem document: error, message, details | application/json: Error |
503 | Problem document: error, message, details | application/json: Error |
GET/cases/{id}One case with its evidence (redacted unless an identity supervisor reveals it) and history.
Operation ID: getCase
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
reveal | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
401 | Problem document: error, message, details | application/json: Error |
403 | Problem document: error, message, details | application/json: Error |
404 | Problem document: error, message, details | application/json: Error |
429 | Problem document: error, message, details | application/json: Error |
POST/cases/{id}/evidenceAdd an evidence artifact to an undecided case (OHN-37-F002).
Operation ID: submitEvidence
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 replays the original answer; same key with another payload is 409 idempotency_conflict. |
Request body (required)
application/json:EvidenceArtifactCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Created; the body carries the committed receipt | application/json: object |
400 | Problem document: error, message, details | application/json: Error |
401 | Problem document: error, message, details | application/json: Error |
403 | Problem document: error, message, details | application/json: Error |
404 | Problem document: error, message, details | application/json: Error |
409 | Problem document: error, message, details | application/json: Error |
422 | Problem document: error, message, details | application/json: Error |
429 | Problem document: error, message, details | application/json: Error |
POST/cases/{id}/decideApprove, reject or send a case to manual review; approval issues the assurance badge and events.
Operation ID: decideCase
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 replays the original answer; same key with another payload is 409 idempotency_conflict. |
Request body (required)
application/json:DecideCaseCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Problem document: error, message, details | application/json: Error |
401 | Problem document: error, message, details | application/json: Error |
403 | Problem document: error, message, details | application/json: Error |
404 | Problem document: error, message, details | application/json: Error |
409 | Problem document: error, message, details | application/json: Error |
422 | Problem document: error, message, details | application/json: Error |
429 | Problem document: error, message, details | application/json: Error |
POST/cases/{id}/transitionsMove a case one step along its lifecycle (claim_created -> evidence_collected -> fraud_screened -> verified_or_rejected -> assurance_recorded).
Operation ID: transitionCase
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 replays the original answer; same key with another payload is 409 idempotency_conflict. |
Request body (required)
application/json:CaseTransitionCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Problem document: error, message, details | application/json: Error |
401 | Problem document: error, message, details | application/json: Error |
403 | Problem document: error, message, details | application/json: Error |
404 | Problem document: error, message, details | application/json: Error |
409 | Problem document: error, message, details | application/json: Error |
422 | Problem document: error, message, details | application/json: Error |
429 | Problem document: error, message, details | application/json: Error |
GET/policyThe active assurance policy, or the fail-closed notice (status not_configured, cap claimed).
GET/evidence-reviewUndecided cases with their evidence; text is redacted unless an identity supervisor passes reveal=1.
Operation ID: evidenceReview
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
reveal | query | string | no |
Responses
GET/disputesIdentity disputes of the caller's scope, newest first.
POST/disputesSubmit an identity dispute; fraudulent use opens an impersonation investigation (OHN-37-F003).
Operation ID: submitDispute
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict. |
Request body (required)
application/json:DisputeCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Created; the body carries the committed receipt | application/json: object |
400 | Problem document: error, message, details | application/json: Error |
401 | Problem document: error, message, details | application/json: Error |
403 | Problem document: error, message, details | application/json: Error |
422 | Problem document: error, message, details | application/json: Error |
429 | Problem document: error, message, details | application/json: Error |
GET/disputes/{id}One dispute with its full description, the investigation it opened and its steps.
Operation ID: getDispute
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
POST/disputes/{id}/transitionsTake a dispute into review (open -> under_review) or resolve it (under_review -> resolved, supervisor only, resolution required).
Operation ID: transitionDispute
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 replays the original answer; same key with another payload is 409 idempotency_conflict. |
Request body (required)
application/json:DisputeTransitionCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Problem document: error, message, details | application/json: Error |
401 | Problem document: error, message, details | application/json: Error |
403 | Problem document: error, message, details | application/json: Error |
404 | Problem document: error, message, details | application/json: Error |
409 | Problem document: error, message, details | application/json: Error |
422 | Problem document: error, message, details | application/json: Error |
429 | Problem document: error, message, details | application/json: Error |
GET/assurance-reviewsAssurance escalation and downgrade reviews, newest first.
POST/assurance-reviewsRegister an assurance review (identity supervisor only; OHN-37-F004).
Operation ID: submitAssuranceReview
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict. |
Request body (required)
application/json:AssuranceReviewCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Created; the body carries the committed receipt | application/json: object |
400 | Problem document: error, message, details | application/json: Error |
401 | Problem document: error, message, details | application/json: Error |
403 | Problem document: error, message, details | application/json: Error |
422 | Problem document: error, message, details | application/json: Error |
429 | Problem document: error, message, details | application/json: Error |
GET/assurance-badgesIssued assurance badges, cursor paged.
Operation ID: listAssuranceBadges
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page_size | query | string | no | |
cursor | query | string | no | |
assurance_level | query | string | no | |
channel | query | string | no |
Responses
GET/workflowsProofing, impersonation and escalation workflows with the latest 250 history rows.
POST/workflows/{id}/transitionsMove an impersonation case or an assurance review one step (identity supervisor only).
Operation ID: transitionWorkflow
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 replays the original answer; same key with another payload is 409 idempotency_conflict. |
Request body (required)
application/json:WorkflowTransitionCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Problem document: error, message, details | application/json: Error |
401 | Problem document: error, message, details | application/json: Error |
403 | Problem document: error, message, details | application/json: Error |
404 | Problem document: error, message, details | application/json: Error |
409 | Problem document: error, message, details | application/json: Error |
422 | Problem document: error, message, details | application/json: Error |
429 | Problem document: error, message, details | application/json: Error |
GET/reports/{id}Run report OHN-37-R001 (proofing outcomes), R002 (impersonation and disputes) or R003 (evidence retention).
Operation ID: runReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
period_from | query | string | no | |
period_to | query | string | no | |
channel | query | string | no | |
evidence_type | query | string | no | |
severity | query | string | no | |
source | query | string | no |
Responses
POST/reports/{id}/exportExport a report as a signed, single-use, five-minute CSV or PDF.
Operation ID: exportReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | One key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict. |
Request body (required)
application/json:ExportCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | Created; the body carries the committed receipt | application/json: object |
400 | Problem document: error, message, details | application/json: Error |
401 | Problem document: error, message, details | application/json: Error |
403 | Problem document: error, message, details | application/json: Error |
404 | Problem document: error, message, details | application/json: Error |
422 | Problem document: error, message, details | application/json: Error |
429 | Problem document: error, message, details | application/json: Error |
503 | Problem document: error, message, details | application/json: Error |
GET/exports/{token}Download an export once (bound to the requesting principal).
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, with X-OHN-Export-Signature and X-OHN-Receipt-Id headers | application/octet-stream: string (binary) |
401 | Problem document: error, message, details | application/json: Error |
403 | Problem document: error, message, details | application/json: Error |
404 | Problem document: error, message, details | application/json: Error |
503 | Problem document: error, message, details | application/json: Error |
Schemas
Error
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes | |
message | string | no | |
details | any | no |
ProofingChannel
"in_person" | "remote_video" | "remote_document" | "assisted_enrollment"
EvidenceType
"national_id" | "passport" | "birth_certificate" | "residence_permit" | "driving_license" | "biometric_collection" | "community_attestation" | "guardian_attestation"
AssuranceLevel
"claimed" | "partial" | "verified" | "high"
BiographicMatch
"match" | "partial_match" | "mismatch" | "not_checked"
LivenessResult
"passed" | "failed" | "inconclusive" | "not_performed"
ReviewDecision
"approve" | "reject" | "manual_review"
ProofingCaseCommand
| Name | Type | Required | Description |
|---|---|---|---|
jurisdiction_id | string (uuid) | yes | |
person_claim_ref | string (uuid) | yes | |
proofing_channel | ProofingChannel | yes | |
evidence_type | EvidenceType | yes | |
evidence_reference | string (uuid) | yes | |
assurance_target | AssuranceLevel | yes |
EvidenceArtifactCommand
| Name | Type | Required | Description |
|---|---|---|---|
case_id | string (uuid) | yes | |
document_checks | string | yes | |
biographic_match | BiographicMatch | yes | |
liveness_result | LivenessResult | no | |
review_decision | ReviewDecision | yes | |
reviewer | string (uuid) | yes |
DecideCaseCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
review_decision | ReviewDecision | yes | |
document_checks | string | yes | |
biographic_match | BiographicMatch | yes | |
liveness_result | LivenessResult | no | |
reason | string | yes |
CaseTransitionCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
to_state | string | yes | |
evidence_ref | string (uuid) | yes | |
reason | string | yes |
DisputeCommand
| Name | Type | Required | Description |
|---|---|---|---|
person_ref | string (uuid) | yes | |
dispute_type | "not_my_record" | "duplicate_record" | "wrong_demographics" | "fraudulent_use" | "other" | yes | |
claim_description | string | yes | |
supporting_evidence_ref | string (uuid) | yes | |
contact_channel | "phone" | "email" | "sms" | "in_person" | "guardian" | yes |
DisputeTransitionCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
to_state | "under_review" | "resolved" | yes | |
reason | string | yes | |
resolution | "upheld_record_corrected" | "upheld_referred" | "not_upheld" | "withdrawn" | no |
AssuranceReviewCommand
current_assurance and target_assurance must differ (422, detail on target_assurance).
| Name | Type | Required | Description |
|---|---|---|---|
patient_ref | string (uuid) | yes | |
current_assurance | AssuranceLevel | yes | |
target_assurance | AssuranceLevel | yes | |
evidence_refs | string | yes | |
reviewer | string (uuid) | yes |
WorkflowTransitionCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
to_state | string | yes | |
evidence_ref | string (uuid) | yes | |
reason | string | yes | |
resolution | "confirmed_impersonation" | "cleared" | "inconclusive" | no |
ExportCommand
| Name | Type | Required | Description |
|---|---|---|---|
format | "csv" | "pdf" | yes | |
period_from | string (date-time) | no | |
period_to | string (date-time) | no | |
channel | ProofingChannel | no | |
country | string (uuid) | no | |
jurisdiction_id | string (uuid) | no | |
evidence_type | EvidenceType | no | |
severity | "low" | "medium" | "high" | "critical" | no | |
source | string | no |