OHN-59 Medication Safety Knowledge
- Version
- 1.1.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-59/api/openapi.json- Serveurs
https://opeshealthnetwork.com/api/ohn/v1/medication-safety- Authentification
bearer: http bearer
Les contrats sont rédigés en anglais.
Server paths are under /api/ohn/v1/medication-safety. Reconciled to the observed TypeScript behaviour (docs/program/java/ohn-59-contract-changes.md). Default deny: role AND purpose of use must match. Request bodies are strict (unknown fields are 422); the service validates them and answers 422 domain_validation_failed with details.
Opérations
- OHN-59 (26)
OHN-59
GET/knowledge/activeActive knowledge version of the jurisdiction (configured:false when none)
Identifiant d’opération: getActiveKnowledge
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/knowledge/versionsKnowledge versions, newest first
Identifiant d’opération: listVersions
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
state | query | "draft" | "in_review" | "active" | "retired" | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
POST/knowledge/versionsCreate a draft knowledge version from a document (F001)
Identifiant d’opération: createVersion
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête
Strict JSON object, documented by components.schemas.CreateVersionCommand; validated by the service (unknown fields are 422).
application/json:object
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
POST/knowledge/versions/load-demoLoad the labelled synthetic demo set as a draft (non-production only, OHN59_ALLOW_DEMO_KNOWLEDGE)
Identifiant d’opération: loadDemoKnowledge
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête
Strict JSON object, documented by components.schemas.EmptyCommand; validated by the service (unknown fields are 422).
application/json:object
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/knowledge/versions/{id}One version with settings and next actions
Identifiant d’opération: getVersion
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/knowledge/versions/{id}/entriesBrowse and search a section of a version
Identifiant d’opération: listEntries
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
section | query | "medications" | "classes" | "memberships" | "allergy_cross_reactivity" | "interactions" | "dose_ranges" | "pregnancy" | "duplicate_groups" | "lab_contraindications" | oui | |
q | query | string | non | |
offset | query | integer | non | |
limit | query | integer | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/knowledge/versions/{id}/diffDifference to the previous (or a chosen) version
Identifiant d’opération: diffVersion
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
against | query | string (uuid) | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/knowledge/versions/{id}/historyState change history of a version
Identifiant d’opération: versionHistory
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
POST/knowledge/versions/{id}/submitSubmit a draft for review (needs a clean validation report)
Identifiant d’opération: submitVersion
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête
Strict JSON object, documented by components.schemas.SubmitCommand; validated by the service (unknown fields are 422).
application/json:object
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
POST/knowledge/versions/{id}/approveSecond-person approval and activation
Identifiant d’opération: approveVersion
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête
Strict JSON object, documented by components.schemas.ApproveCommand; validated by the service (unknown fields are 422).
application/json:object
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
POST/knowledge/versions/{id}/rejectSend an in-review version back to draft
Identifiant d’opération: rejectVersion
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête
Strict JSON object, documented by components.schemas.ReasonCommand; validated by the service (unknown fields are 422).
application/json:object
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
POST/knowledge/versions/{id}/retireRetire the active version
Identifiant d’opération: retireVersion
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête
Strict JSON object, documented by components.schemas.ReasonCommand; validated by the service (unknown fields are 422).
application/json:object
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/knowledge/importersImport formats and the CSV column contract
Identifiant d’opération: listImporters
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/knowledge/importsImports of the jurisdiction (latest 100)
Identifiant d’opération: listImports
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
POST/knowledge/importsImport a licensed knowledge export as a draft version
Identifiant d’opération: runImport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête
Strict JSON object, documented by components.schemas.ImportCommand; validated by the service (unknown fields are 422).
application/json:object
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/knowledge/imports/{id}One import with its validation report
Identifiant d’opération: getImport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
POST/checks/evaluateMedication safety check for a patient (live)
Identifiant d’opération: evaluateCheck
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête
Strict JSON object, documented by components.schemas.EvaluateCommand; validated by the service (unknown fields are 422).
application/json:object
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
POST/checks/simulateCheck with typed hypothetical facts on any version (no patient read)
Identifiant d’opération: simulateCheck
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête
Strict JSON object, documented by components.schemas.SimulateCommand; validated by the service (unknown fields are 422).
application/json:object
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/checks/evaluationsStored evaluations of the jurisdiction
Identifiant d’opération: listEvaluations
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
mode | query | "live" | "simulation" | non | |
limit | query | integer | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/checks/evaluations/{id}One stored evaluation and its outcome
Identifiant d’opération: getEvaluation
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
POST/checks/evaluations/{id}/outcomeRecord what the prescriber did with a live evaluation (once)
Identifiant d’opération: recordOutcome
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête
Strict JSON object, documented by components.schemas.OutcomeCommand; validated by the service (unknown fields are 422).
application/json:object
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/reportsReport catalog
Identifiant d’opération: listReports
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/reports/{reportId}Run a report (R001 coverage, R002 warnings, R003 change ledger)
Identifiant d’opération: runReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
reportId | path | "OHN-59-R001" | "OHN-59-R002" | "OHN-59-R003" | oui | |
version_id | query | string (uuid) | non | |
from | query | string | non | |
to | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/reports/{reportId}/exportSigned CSV export (HMAC-SHA256 in X-OHN59-Signature)
Identifiant d’opération: exportReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
reportId | path | "OHN-59-R001" | "OHN-59-R002" | "OHN-59-R003" | oui | |
version_id | query | string (uuid) | non | |
from | query | string | non | |
to | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | text/csv: string |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
GET/auditLatest 200 audit records of the jurisdiction
Identifiant d’opération: listAudit
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
POST/admin/outbox/relayReport the pending outbox (delivery is done by the platform relay)
Identifiant d’opération: relayOutbox
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête
Strict JSON object, documented by components.schemas.EmptyCommand; validated by the service (unknown fields are 422).
application/json:object
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success | application/json: Result |
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy (role, purpose, second person, test checks disabled) | — |
404 | Not found in the caller's jurisdiction | — |
409 | Version conflict, invalid transition, validation failed or idempotency mismatch | — |
413 | Payload too large | — |
422 | Domain validation failed | application/json: Error |
429 | Rate limited | — |
503 | Not configured or dependency unavailable (fail closed) | — |
Schémas
Result
object
Error
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
error | string | oui | |
message | string | non | |
details | object | non |
EmptyCommand
object
CreateVersionCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
document | KnowledgeDocument | oui | Sections are arrays of strict objects, validated by the service (see docs/program/java/ohn-59-analysis.md and modules/OHN-59/docs/import-contract.md). source.kind synthetic_demo is refused here. |
KnowledgeDocument
Sections are arrays of strict objects, validated by the service (see docs/program/java/ohn-59-analysis.md and modules/OHN-59/docs/import-contract.md). source.kind synthetic_demo is refused here.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
label | string | oui | |
notice | string | oui | |
source | object | oui | |
settings | object | oui | |
medications | array of object | oui | |
classes | array of object | oui | |
memberships | array of object | oui | |
allergy_cross_reactivity | array of object | oui | |
interactions | array of object | oui | |
dose_ranges | array of object | oui | |
pregnancy | array of object | oui | |
duplicate_groups | array of object | oui | |
lab_contraindications | array of object | oui |
SubmitCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_row_version | integer | oui | |
note | string | non |
ApproveCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_row_version | integer | oui | |
approval_ref | string | oui | |
note | string | non |
ReasonCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_row_version | integer | oui | |
reason | string | oui |
ImportCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
format | "ohn59.csv.v1" | "ohn59.json.v1" | oui | |
label | string | oui | |
notice | string | non | |
source | ImportCommand.source | oui | |
settings | object | non | |
files | object | non | ohn59.csv.v1: one CSV text per section |
document | any | non | ohn59.json.v1: knowledge sections |
EvaluateCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
patient_id | string (uuid) | oui | |
proposed | array of object | oui | |
context | object | non | |
checks | array of "knowledge_coverage" | "allergy" | "interaction" | "dose" | "pregnancy" | "breastfeeding" | "duplicate_therapy" | "lab_contraindication" | non | |
caller | object | non | |
acting_for | EvaluateCommand.acting_for | non |
SimulateCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
version_id | string (uuid) | oui | |
facts | object | oui | |
proposed | array of object | oui | |
checks | array of string | non |
OutcomeCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
action | "signed" | "abandoned" | "changed" | oui | |
overrides | array of OutcomeCommand.overrides.item | non |
ImportCommand.source défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
name | string | oui | |
version | string | oui | |
licence_ref | string | oui |
EvaluateCommand.acting_for défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
principal_id | string (uuid) | oui | |
organization_id | string (uuid) | oui |
OutcomeCommand.overrides.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
warning_id | string | oui | |
reason | string | oui |