OHN-10 Clinical Summary
- Version
- 1.1.0
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-10/api/openapi.json- Servers
https://opeshealthnetwork.com/api/ohn/v1/clinical-summary- Authentication
bearer: http bearer
Contracts are written in English.
Server paths are under /api/ohn/v1/clinical-summary. Default deny: role AND purpose must match. Inventory paths OHN-10-API-001..002 are mapped to this disjoint prefix (see ADR-0001).
Operations
- Other operations (24)
Other operations
GET/patients/{id}/summaryCurrent clinical summary with staleness and warnings
Operation ID: getCurrentSummary
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
max_staleness_minutes | query | integer | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{id}/critical-infoCritical health information: blood group (LOINC 883-9), Rh (LOINC 10331-7) and configured haemoglobin genotype from OHN-11 verified results with provenance and conflicts, plus active allergies and problems
Operation ID: getCriticalInfo
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{id}/entriesCurrent problems, allergies and medication statements of one patient with their verification state (also patient self-access for OHN-31; audited)
Operation ID: getPatientEntries
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/patients/{id}/summary/generateProject a new summary version (F001, W001)
Operation ID: generateSummary
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:GenerateCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/summariesSummary versions
Operation ID: listSummaries
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
patient_id | query | string (uuid) | no | |
cursor | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/summaries/{id}Summary version with section-level provenance
Operation ID: getSummary
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/summaries/{id}/reconcileDecide a discrepancy of the summary's patient
Operation ID: reconcileSummaryCase
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ReconcileCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/assertionsClaims for a patient
Operation ID: listAssertions
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
patient_id | query | string (uuid) | yes | |
kind | query | "problem" | "allergy" | "medication" | no | |
cursor | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/assertionsRecord a source claim: problem, allergy review (F003) or medication reconciliation (F002)
Operation ID: addAssertion
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:AssertionCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/casesExceptions queue
Operation ID: listCases
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
state | query | string | no | |
kind | query | "problem" | "allergy" | "medication" | no | |
patient_id | query | string (uuid) | no | |
cursor | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/cases/{id}Case with both claims
Operation ID: getCase
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/cases/{id}/transitionsAdvance reconciliation (W002)
Operation ID: stepCase
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:CaseStepCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/revocationsRevocation cases
Operation ID: listRevocations
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
state | query | string | no | |
cursor | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/revocationsRecord a consent revocation (W003)
Operation ID: openRevocation
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:RevocationOpenCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/revocations/{id}/transitionsAdvance a revocation case
Operation ID: stepRevocation
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:RevocationStepCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/policyJurisdiction summary policy
Operation ID: getPolicy
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/policySet the jurisdiction summary policy
Operation ID: setPolicy
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:PolicyCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/maintenance/drain-outboxReport pending outbox events (no sink: nothing claimed delivered)
Operation ID: drainOutbox
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/report-catalogAvailable reports
Operation ID: reportCatalog
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/reports/{reportId}Run report R001..R003
Operation ID: runReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
reportId | path | "OHN-10-R001" | "OHN-10-R002" | "OHN-10-R003" | yes | |
facility | query | string (uuid) | no | |
cohort | query | string | no | |
section | query | "problems" | "allergies" | "medications" | no | |
severity | query | "low" | "moderate" | "high" | no | |
status | query | string | no | |
jurisdiction | query | string (uuid) | no | |
period_from | query | string | no | |
period_to | query | string | no | |
cursor | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/reports/{reportId}/exportCreate a signed single-use report export
Operation ID: exportReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
reportId | path | "OHN-10-R001" | "OHN-10-R002" | "OHN-10-R003" | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ExportCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/report-exports/{token}Download a report export once
Operation ID: downloadReportExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | path | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/observationsRecord vital-sign observations (LOINC codes, UCUM units) from a source such as OHN-61 triage (F004, contract 1.1.0)
Every code is validated with OHN-23 (system LOINC); the caller must be permitted by OHN-16 for the patient and the source facility must hold consent (OHN-15). One call is one batch measured together: append-only, never updated (a correction is a new batch that supersedes the earlier one). 503 when a dependency is unavailable (fail closed).
Operation ID: recordObservations
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ObservationBatchCommand
Responses
| Code | Description | Media type |
|---|---|---|
201 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{patient_id}/observationsVital-sign observations of a patient, newest first (contract 1.1.0)
Operation ID: listObservations
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
patient_id | path | string (uuid) | yes | |
code | query | string | no | |
cursor | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
200 | OK | application/json: object |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | application/json: Error |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
Schemas
GenerateCommand
| Name | Type | Required | Description |
|---|---|---|---|
purpose | "continuity_of_care" | "emergency" | "referral" | "discharge" | yes | |
encounter_context | string (uuid) | yes | |
sections | array of "problems" | "allergies" | "medications" | yes | Distinct sections (duplicates are refused with 422 duplicate_sections) |
maximum_staleness_minutes | integer | no |
AssertionCommand
| Name | Type | Required | Description |
|---|---|---|---|
kind | "problem" | "allergy" | "medication" | yes | |
patient_id | string (uuid) | yes | |
code_system | "snomed_ct" | "rxnorm" | "atc" | "local" | yes | |
code | string | yes | |
display | string | yes | |
status | "active" | "inactive" | "resolved" | "stopped" | "on_hold" | "unknown" | yes | |
verification_state | "unconfirmed" | "confirmed" | "refuted" | "entered_in_error" | yes | |
reaction | string | no | |
source_facility | string (uuid) | yes | |
evidence_ref | string (uuid) | yes | |
reason | string | no | |
supersedes | string (uuid) | no |
CaseStepCommand
| Name | Type | Required | Description |
|---|---|---|---|
to_state | "clinician_review" | "source_update_requested" | "acknowledged" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
risk | "low" | "moderate" | "high" | no | |
resolution | "accept_a" | "accept_b" | "both_valid" | "source_update" | no |
ReconcileCommand
| Name | Type | Required | Description |
|---|---|---|---|
case_id | string (uuid) | yes | |
resolution | "accept_a" | "accept_b" | "both_valid" | "source_update" | yes | |
risk | "low" | "moderate" | "high" | yes | |
reason | string | yes | |
expected_version | integer | yes |
RevocationOpenCommand
| Name | Type | Required | Description |
|---|---|---|---|
patient_id | string (uuid) | yes | |
consent_ref | string (uuid) | yes | |
revoked_facility | string (uuid) | yes |
RevocationStepCommand
| Name | Type | Required | Description |
|---|---|---|---|
to_state | "invalidated" | "recomputed" | "redaction_verified" | yes | |
expected_version | integer | yes | |
reason | string | yes |
PolicyCommand
| Name | Type | Required | Description |
|---|---|---|---|
required_sections | array of "problems" | "allergies" | "medications" | yes | Distinct sections (duplicates are refused with 422 duplicate_sections) |
default_max_staleness_minutes | integer | yes | |
approval_reference | string | yes | |
expected_version | integer | no |
ExportCommand
| Name | Type | Required | Description |
|---|---|---|---|
format | "csv" | "pdf" | yes | |
filters | object | no | Report filters (facility, cohort, section, severity, status, jurisdiction, period_from, period_to); unknown keys and invalid values are refused with 422 |
Error
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes | |
message | string | no | |
details | object | no |
ObservationValue
| Name | Type | Required | Description |
|---|---|---|---|
code_system | "loinc" | yes | |
code | string | yes | LOINC code, validated with OHN-23 |
value | number | yes | |
unit | string | yes | UCUM unit, e.g. Cel, /min, mm[Hg], %, kg, cm, mmol/L, {score} |
ObservationBatchCommand
| Name | Type | Required | Description |
|---|---|---|---|
patient_id | string (uuid) | yes | |
encounter_id | string (uuid) | no | OHN-09 encounter the measurements belong to (the triage encounter for OHN-61) |
effective_at | string (date-time) | yes | when measured; not in the future |
performer | string (uuid) | yes | who measured |
source_facility | string (uuid) | yes | |
source | string | yes | the sending system, e.g. ohn-61 |
source_ref | string (uuid) | no | the sender's own record id (OHN-61 vital set id); a second batch with the same source and source_ref is 409 |
supersedes | string (uuid) | no | an earlier batch of the same patient and source that this one corrects |
observations | array of ObservationValue | yes |
Observation
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | no | |
batch_id | string (uuid) | no | |
patient_id | string (uuid) | no | |
encounter_id | string | null (uuid) | no | |
status | "final" | no | |
category | "vital-signs" | no | |
code_system | string | no | |
code | string | no | |
display | string | null | no | |
value | number | no | |
unit | string | no | |
effective_at | string (date-time) | no | |
performer | string (uuid) | no | |
source_facility | string (uuid) | no | |
source | string | no | |
source_ref | string | null (uuid) | no | |
superseded | boolean | no | |
terminology_version | string | null | no | |
recorded_at | string (date-time) | no |
ObservationBatchResult
| Name | Type | Required | Description |
|---|---|---|---|
batch_id | string (uuid) | yes | |
items | array of Observation | yes | |
receipt | object | yes |
ObservationPage
| Name | Type | Required | Description |
|---|---|---|---|
items | array of Observation | yes | |
next_cursor | string | null | no |