Skip to content

← All contracts

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)

Download the contract (YAML)

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

GET/casesProofing cases of the caller's jurisdiction and organization, cursor paged.

Operation ID: listCases

Authentication: bearer

Parameters

NameInTypeRequiredDescription
page_sizequerystringno
cursorquerystringno
statequerystringno
channelquerystringno
evidence_typequerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
422Problem document: error, message, details
application/json: Error
429Problem document: error, message, details
application/json: Error
POST/casesRegister a proofing case (OHN-37-F001, API-001).

Operation ID: createCase

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-KeyheaderstringyesOne key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict.

Request body (required)

Responses

CodeDescriptionMedia type
201Created; the body carries the committed receipt
application/json: object
400Problem document: error, message, details
application/json: Error
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
409Problem document: error, message, details
application/json: Error
422Problem document: error, message, details
application/json: Error
429Problem document: error, message, details
application/json: Error
503Problem 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

NameInTypeRequiredDescription
idpathstring (uuid)yes
revealquerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
404Problem document: error, message, details
application/json: Error
429Problem 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

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-KeyheaderstringyesOne key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict.

Request body (required)

Responses

CodeDescriptionMedia type
201Created; the body carries the committed receipt
application/json: object
400Problem document: error, message, details
application/json: Error
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
404Problem document: error, message, details
application/json: Error
409Problem document: error, message, details
application/json: Error
422Problem document: error, message, details
application/json: Error
429Problem 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

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-KeyheaderstringyesOne key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict.

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Problem document: error, message, details
application/json: Error
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
404Problem document: error, message, details
application/json: Error
409Problem document: error, message, details
application/json: Error
422Problem document: error, message, details
application/json: Error
429Problem 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

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-KeyheaderstringyesOne key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict.

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Problem document: error, message, details
application/json: Error
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
404Problem document: error, message, details
application/json: Error
409Problem document: error, message, details
application/json: Error
422Problem document: error, message, details
application/json: Error
429Problem document: error, message, details
application/json: Error
GET/policyThe active assurance policy, or the fail-closed notice (status not_configured, cap claimed).

Operation ID: getAssurancePolicy

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
GET/evidence-reviewUndecided cases with their evidence; text is redacted unless an identity supervisor passes reveal=1.

Operation ID: evidenceReview

Authentication: bearer

Parameters

NameInTypeRequiredDescription
revealquerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
GET/disputesIdentity disputes of the caller's scope, newest first.

Operation ID: listDisputes

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
POST/disputesSubmit an identity dispute; fraudulent use opens an impersonation investigation (OHN-37-F003).

Operation ID: submitDispute

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-KeyheaderstringyesOne key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict.

Request body (required)

Responses

CodeDescriptionMedia type
201Created; the body carries the committed receipt
application/json: object
400Problem document: error, message, details
application/json: Error
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
422Problem document: error, message, details
application/json: Error
429Problem 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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
404Problem document: error, message, details
application/json: Error
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

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-KeyheaderstringyesOne key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict.

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Problem document: error, message, details
application/json: Error
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
404Problem document: error, message, details
application/json: Error
409Problem document: error, message, details
application/json: Error
422Problem document: error, message, details
application/json: Error
429Problem document: error, message, details
application/json: Error
GET/assurance-reviewsAssurance escalation and downgrade reviews, newest first.

Operation ID: listAssuranceReviews

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
POST/assurance-reviewsRegister an assurance review (identity supervisor only; OHN-37-F004).

Operation ID: submitAssuranceReview

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-KeyheaderstringyesOne key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict.

Request body (required)

Responses

CodeDescriptionMedia type
201Created; the body carries the committed receipt
application/json: object
400Problem document: error, message, details
application/json: Error
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
422Problem document: error, message, details
application/json: Error
429Problem document: error, message, details
application/json: Error
GET/assurance-badgesIssued assurance badges, cursor paged.

Operation ID: listAssuranceBadges

Authentication: bearer

Parameters

NameInTypeRequiredDescription
page_sizequerystringno
cursorquerystringno
assurance_levelquerystringno
channelquerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
422Problem document: error, message, details
application/json: Error
GET/workflowsProofing, impersonation and escalation workflows with the latest 250 history rows.

Operation ID: listWorkflows

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
POST/workflows/{id}/transitionsMove an impersonation case or an assurance review one step (identity supervisor only).

Operation ID: transitionWorkflow

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-KeyheaderstringyesOne key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict.

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Problem document: error, message, details
application/json: Error
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
404Problem document: error, message, details
application/json: Error
409Problem document: error, message, details
application/json: Error
422Problem document: error, message, details
application/json: Error
429Problem 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

NameInTypeRequiredDescription
idpathstringyes
period_fromquerystringno
period_toquerystringno
channelquerystringno
evidence_typequerystringno
severityquerystringno
sourcequerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: object
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
404Problem document: error, message, details
application/json: Error
POST/reports/{id}/exportExport a report as a signed, single-use, five-minute CSV or PDF.

Operation ID: exportReport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstringyes
Idempotency-KeyheaderstringyesOne key per user intent. Same key and payload replays the original answer; same key with another payload is 409 idempotency_conflict.

Request body (required)

Responses

CodeDescriptionMedia type
201Created; the body carries the committed receipt
application/json: object
400Problem document: error, message, details
application/json: Error
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
404Problem document: error, message, details
application/json: Error
422Problem document: error, message, details
application/json: Error
429Problem document: error, message, details
application/json: Error
503Problem 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

NameInTypeRequiredDescription
tokenpathstringyes

Responses

CodeDescriptionMedia type
200The 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)
401Problem document: error, message, details
application/json: Error
403Problem document: error, message, details
application/json: Error
404Problem document: error, message, details
application/json: Error
503Problem document: error, message, details
application/json: Error

Schemas

Error

NameTypeRequiredDescription
errorstringyes
messagestringno
detailsanyno

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

NameTypeRequiredDescription
jurisdiction_idstring (uuid)yes
person_claim_refstring (uuid)yes
proofing_channelProofingChannelyes
evidence_typeEvidenceTypeyes
evidence_referencestring (uuid)yes
assurance_targetAssuranceLevelyes

EvidenceArtifactCommand

NameTypeRequiredDescription
case_idstring (uuid)yes
document_checksstringyes
biographic_matchBiographicMatchyes
liveness_resultLivenessResultno
review_decisionReviewDecisionyes
reviewerstring (uuid)yes

DecideCaseCommand

NameTypeRequiredDescription
expected_versionintegeryes
review_decisionReviewDecisionyes
document_checksstringyes
biographic_matchBiographicMatchyes
liveness_resultLivenessResultno
reasonstringyes

CaseTransitionCommand

NameTypeRequiredDescription
expected_versionintegeryes
to_statestringyes
evidence_refstring (uuid)yes
reasonstringyes

DisputeCommand

NameTypeRequiredDescription
person_refstring (uuid)yes
dispute_type"not_my_record" | "duplicate_record" | "wrong_demographics" | "fraudulent_use" | "other"yes
claim_descriptionstringyes
supporting_evidence_refstring (uuid)yes
contact_channel"phone" | "email" | "sms" | "in_person" | "guardian"yes

DisputeTransitionCommand

NameTypeRequiredDescription
expected_versionintegeryes
to_state"under_review" | "resolved"yes
reasonstringyes
resolution"upheld_record_corrected" | "upheld_referred" | "not_upheld" | "withdrawn"no

AssuranceReviewCommand

current_assurance and target_assurance must differ (422, detail on target_assurance).

NameTypeRequiredDescription
patient_refstring (uuid)yes
current_assuranceAssuranceLevelyes
target_assuranceAssuranceLevelyes
evidence_refsstringyes
reviewerstring (uuid)yes

WorkflowTransitionCommand

NameTypeRequiredDescription
expected_versionintegeryes
to_statestringyes
evidence_refstring (uuid)yes
reasonstringyes
resolution"confirmed_impersonation" | "cleared" | "inconclusive"no

ExportCommand

NameTypeRequiredDescription
format"csv" | "pdf"yes
period_fromstring (date-time)no
period_tostring (date-time)no
channelProofingChannelno
countrystring (uuid)no
jurisdiction_idstring (uuid)no
evidence_typeEvidenceTypeno
severity"low" | "medium" | "high" | "critical"no
sourcestringno