Skip to content

← All contracts

OHN-30 Insurance Coverage and Eligibility Exchange

Version
1.0.1
OpenAPI
3.1.0
Source in the repository
modules/OHN-30/api/openapi.json
Servers
https://opeshealthnetwork.com/api/ohn/v1
Authentication
bearer: http bearer

Download the contract (JSON)

Contracts are written in English.

Base path /api/ohn/v1. Every POST requires Idempotency-Key; mutations use expected_version. Routes default-deny on role AND purpose (coverage_eligibility). Coverage is advisory and never blocks care. Strict bodies: unknown keys are 422 (unrecognized_keys, reported under "_"); only the first path segment of a failing field is reported. Policy identifiers are encrypted at rest, masked in views, and never placed in events. The TypeScript-only synthetic sign-in is not served; the gateway issues tokens.

Operations

OHN-30

GET/coverage/eligibility-inquiriesList inquiries (outcome, status, payer)

Operation ID: listInquiries

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/coverage/eligibility-inquiriesRun an eligibility inquiry (API-001; F001; W001)

Operation ID: createInquiry

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/coverage/eligibility-inquiries/{id}Inquiry with freshness, disputes and history (API-002)

Operation ID: getInquiry

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: InquiryView
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/coverage/eligibility-inquiries/{id}/disputesDispute a recorded payer response (F003)

Operation ID: openDispute

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/coverage/disputesDispute ledger

Operation ID: listDisputes

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/coverage/disputes/{id}/resolveResolve a dispute (opener cannot resolve)

Operation ID: resolveDispute

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/coverage/endpointsInsurer connection status

Operation ID: listEndpoints

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/coverage/endpointsConfigure an insurer endpoint (F002)

Operation ID: configureEndpoint

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/coverage/certificatesCertificates the insurer endpoint form may offer (from OHN-45 /crypto/certificates with the certificate_reader service token; caller organisation only; usable = not expired and not rotation-due). Audited. 503 when OHN-45 is unavailable.

Operation ID: listCertificates

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
401Unauthenticated—
403Role/purpose denied—
503OHN-45 unavailable—
POST/coverage/endpoints/{id}/verifyVerify endpoint trust (configurer cannot verify)

Operation ID: verifyEndpoint

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/coverage/endpoints/{id}/suspendSuspend a verified endpoint

Operation ID: suspendEndpoint

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/coverage/policyRead policy (unset = fail closed)

Operation ID: readPolicy

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/coverage/policyWrite policy

Operation ID: writePolicy

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/coverage/code-lists/{list}Read code list

Operation ID: listCodes

Authentication: bearer

Parameters

NameInTypeRequiredDescription
listpath"purpose" | "supported_standard" | "resolution_status"yes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/coverage/code-lists/{list}Upsert code list entries

Operation ID: upsertCodes

Authentication: bearer

Parameters

NameInTypeRequiredDescription
listpath"purpose" | "supported_standard" | "resolution_status"yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/coverage/maintenance/retry-sweepRetry queued unknown inquiries (needs retry policy)

Operation ID: retrySweep

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/coverage/maintenance/drain-outboxDrain outbox (no sink => nothing marked delivered)

Operation ID: drainOutbox

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/coverage/report-catalogReport catalog

Operation ID: reportCatalog

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/coverage/reports/{reportId}Run report

Operation ID: runReport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
reportIdpath"OHN-30-R001" | "OHN-30-R002" | "OHN-30-R003"yes

Responses

CodeDescriptionMedia type
200OK
application/json: Report
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/coverage/reports/{reportId}/exportCreate signed single-use export

Operation ID: createExport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
reportIdpath"OHN-30-R001" | "OHN-30-R002" | "OHN-30-R003"yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/coverage/exports/{token}Download export (owner only, single use, 5 min)

Operation ID: fetchExport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
tokenpathstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/coverage/eligibility-inquiries/{id}/answerInsurer answers an in-network eligibility inquiry addressed to it: eligible, ineligible or limited, with validity and benefit notes (F004). Outcomes must be configured in the answer_outcome code list. Role partner_reviewer of the payer organisation.

Operation ID: answerInquiry

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient not authorized, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—

Other operations

GET/health/ohn-30Liveness incl. DB and dependency modes

Operation ID: health

Responses

CodeDescriptionMedia type
200ok—
503unavailable—

Schemas

Error

NameTypeRequiredDescription
errorstringyes
messagestringno
detailsanyno

Inquiry

NameTypeRequiredDescription
patient_refstring (uuid)yes
payer_orgstring (uuid)yes
policy_identifierstringyesSent to the payer; stored encrypted; only a masked form is ever returned
service_codestringyes
date_of_servicestring (date)yes
purposestringyesMust exist in the jurisdiction purpose code list

InquiryView

NameTypeRequiredDescription
idstring (uuid)no
outcome"eligible" | "ineligible" | "unknown"nounknown means no verdict was obtained; it is never an ineligible result
unknown_reason"timeout" | "endpoint_error" | nullno
status"recorded" | "retry_queued" | "retry_exhausted" | "resolved"no
freshness"current" | "expired" | "not_applicable"noExpired results must not be presented as current
valid_untilstring | null (date-time)no
ttl_configuredbooleanno
policy_identifier_maskedstringno
coverage_is_advisorytrueno
blocks_carefalseno

Endpoint

NameTypeRequiredDescription
insurer_orgstring (uuid)yes
endpoint_urlstring (uri)yeshttps only, public host, no credentials, port 443
certificate_refstring (uuid)yes
supported_standardstringyes
timeout_msintegeryes

EndpointDecision

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringyes

Dispute

NameTypeRequiredDescription
source_response_refstring (uuid)yes
dispute_reasonstringyes

DisputeResolve

NameTypeRequiredDescription
resolution_statusstringyes
reasonstringyes
expected_versionintegeryes

Policy

NameTypeRequiredDescription
eligibility_ttl_minutesinteger | nullyes
max_retry_attemptsinteger | nullyes
retry_delay_secondsinteger | nullyes
availability_slo_bpinteger | nullyes
approval_referencestringyes

CodeListUpsert

NameTypeRequiredDescription
entriesarray of CodeListUpsert.entries.itemyes

ExportCommand

NameTypeRequiredDescription
format"csv" | "pdf"yes
filtersobjectno

Report

NameTypeRequiredDescription
report_id"OHN-30-R001" | "OHN-30-R002" | "OHN-30-R003"no
titlestringno
columnsarray of anyno
rowsarray of anyno
summaryobjectno
state"rendered" | "no_authorized_data"no
generated_atstring (date-time)no

PayerAnswer

NameTypeRequiredDescription
result"eligible" | "ineligible" | "limited"yes
valid_untilstring (date-time)no
benefit_notesstringnoRequired when result is limited.
expected_versionintegeryes

get-coverage-certificates.response-200 defined inline

NameTypeRequiredDescription
itemsarray of get-coverage-certificates.response-200.items.itemno

get-coverage-certificates.response-200.items.item defined inline

NameTypeRequiredDescription
idstring (uuid)no
labelstringno
key_purposestringno
expires_atstring | nullno
expiredbooleanno
rotation_duebooleanno
usablebooleanno

CodeListUpsert.entries.item defined inline

NameTypeRequiredDescription
codestringyes
label_enstringyes
label_frstringyes
activebooleanno