OHN-10 Clinical Summary
- Version
- 1.1.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-10/api/openapi.json- Serveurs
https://opeshealthnetwork.com/api/ohn/v1/clinical-summary- Authentification
bearer: http bearer
Les contrats sont rédigés en anglais.
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).
Opérations
- Autres opérations (24)
Autres opérations
GET/patients/{id}/summaryCurrent clinical summary with staleness and warnings
Identifiant d’opération: getCurrentSummary
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
max_staleness_minutes | query | integer | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: getCriticalInfo
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: getPatientEntries
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: generateSummary
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:GenerateCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: listSummaries
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
patient_id | query | string (uuid) | non | |
cursor | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: getSummary
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: reconcileSummaryCase
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ReconcileCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: listAssertions
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
patient_id | query | string (uuid) | oui | |
kind | query | "problem" | "allergy" | "medication" | non | |
cursor | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: addAssertion
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:AssertionCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: listCases
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
state | query | string | non | |
kind | query | "problem" | "allergy" | "medication" | non | |
patient_id | query | string (uuid) | non | |
cursor | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: getCase
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: stepCase
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:CaseStepCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: listRevocations
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
state | query | string | non | |
cursor | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: openRevocation
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:RevocationOpenCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: stepRevocation
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:RevocationStepCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: getPolicy
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: setPolicy
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:PolicyCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: drainOutbox
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: reportCatalog
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: runReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
reportId | path | "OHN-10-R001" | "OHN-10-R002" | "OHN-10-R003" | oui | |
facility | query | string (uuid) | non | |
cohort | query | string | non | |
section | query | "problems" | "allergies" | "medications" | non | |
severity | query | "low" | "moderate" | "high" | non | |
status | query | string | non | |
jurisdiction | query | string (uuid) | non | |
period_from | query | string | non | |
period_to | query | string | non | |
cursor | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: exportReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
reportId | path | "OHN-10-R001" | "OHN-10-R002" | "OHN-10-R003" | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ExportCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
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
Identifiant d’opération: downloadReportExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
token | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
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).
Identifiant d’opération: recordObservations
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ObservationBatchCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
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)
Identifiant d’opération: listObservations
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
patient_id | path | string (uuid) | oui | |
code | query | string | non | |
cursor | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
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) | — |
Schémas
GenerateCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
purpose | "continuity_of_care" | "emergency" | "referral" | "discharge" | oui | |
encounter_context | string (uuid) | oui | |
sections | array of "problems" | "allergies" | "medications" | oui | Distinct sections (duplicates are refused with 422 duplicate_sections) |
maximum_staleness_minutes | integer | non |
AssertionCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
kind | "problem" | "allergy" | "medication" | oui | |
patient_id | string (uuid) | oui | |
code_system | "snomed_ct" | "rxnorm" | "atc" | "local" | oui | |
code | string | oui | |
display | string | oui | |
status | "active" | "inactive" | "resolved" | "stopped" | "on_hold" | "unknown" | oui | |
verification_state | "unconfirmed" | "confirmed" | "refuted" | "entered_in_error" | oui | |
reaction | string | non | |
source_facility | string (uuid) | oui | |
evidence_ref | string (uuid) | oui | |
reason | string | non | |
supersedes | string (uuid) | non |
CaseStepCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
to_state | "clinician_review" | "source_update_requested" | "acknowledged" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
risk | "low" | "moderate" | "high" | non | |
resolution | "accept_a" | "accept_b" | "both_valid" | "source_update" | non |
ReconcileCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
case_id | string (uuid) | oui | |
resolution | "accept_a" | "accept_b" | "both_valid" | "source_update" | oui | |
risk | "low" | "moderate" | "high" | oui | |
reason | string | oui | |
expected_version | integer | oui |
RevocationOpenCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
patient_id | string (uuid) | oui | |
consent_ref | string (uuid) | oui | |
revoked_facility | string (uuid) | oui |
RevocationStepCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
to_state | "invalidated" | "recomputed" | "redaction_verified" | oui | |
expected_version | integer | oui | |
reason | string | oui |
PolicyCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
required_sections | array of "problems" | "allergies" | "medications" | oui | Distinct sections (duplicates are refused with 422 duplicate_sections) |
default_max_staleness_minutes | integer | oui | |
approval_reference | string | oui | |
expected_version | integer | non |
ExportCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
format | "csv" | "pdf" | oui | |
filters | object | non | Report filters (facility, cohort, section, severity, status, jurisdiction, period_from, period_to); unknown keys and invalid values are refused with 422 |
Error
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
error | string | oui | |
message | string | non | |
details | object | non |
ObservationValue
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
code_system | "loinc" | oui | |
code | string | oui | LOINC code, validated with OHN-23 |
value | number | oui | |
unit | string | oui | UCUM unit, e.g. Cel, /min, mm[Hg], %, kg, cm, mmol/L, {score} |
ObservationBatchCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
patient_id | string (uuid) | oui | |
encounter_id | string (uuid) | non | OHN-09 encounter the measurements belong to (the triage encounter for OHN-61) |
effective_at | string (date-time) | oui | when measured; not in the future |
performer | string (uuid) | oui | who measured |
source_facility | string (uuid) | oui | |
source | string | oui | the sending system, e.g. ohn-61 |
source_ref | string (uuid) | non | 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) | non | an earlier batch of the same patient and source that this one corrects |
observations | array of ObservationValue | oui |
Observation
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | non | |
batch_id | string (uuid) | non | |
patient_id | string (uuid) | non | |
encounter_id | string | null (uuid) | non | |
status | "final" | non | |
category | "vital-signs" | non | |
code_system | string | non | |
code | string | non | |
display | string | null | non | |
value | number | non | |
unit | string | non | |
effective_at | string (date-time) | non | |
performer | string (uuid) | non | |
source_facility | string (uuid) | non | |
source | string | non | |
source_ref | string | null (uuid) | non | |
superseded | boolean | non | |
terminology_version | string | null | non | |
recorded_at | string (date-time) | non |
ObservationBatchResult
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
batch_id | string (uuid) | oui | |
items | array of Observation | oui | |
receipt | object | oui |
ObservationPage
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
items | array of Observation | oui | |
next_cursor | string | null | non |