OHN-59 Medication Safety Knowledge
- Version
- 1.1.0
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-59/api/openapi.json- Servers
https://opeshealthnetwork.com/api/ohn/v1/medication-safety- Authentication
bearer: http bearer
Contracts are written in English.
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.
Operations
- OHN-59 (26)
OHN-59
GET/knowledge/activeActive knowledge version of the jurisdiction (configured:false when none)
Operation ID: getActiveKnowledge
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: listVersions
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
state | query | "draft" | "in_review" | "active" | "retired" | no |
Responses
| Code | Description | Media type |
|---|---|---|
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)
Operation ID: createVersion
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body
Strict JSON object, documented by components.schemas.CreateVersionCommand; validated by the service (unknown fields are 422).
application/json:object
Responses
| Code | Description | Media type |
|---|---|---|
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)
Operation ID: loadDemoKnowledge
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body
Strict JSON object, documented by components.schemas.EmptyCommand; validated by the service (unknown fields are 422).
application/json:object
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: getVersion
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: listEntries
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
section | query | "medications" | "classes" | "memberships" | "allergy_cross_reactivity" | "interactions" | "dose_ranges" | "pregnancy" | "duplicate_groups" | "lab_contraindications" | yes | |
q | query | string | no | |
offset | query | integer | no | |
limit | query | integer | no |
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: diffVersion
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
against | query | string (uuid) | no |
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: versionHistory
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
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)
Operation ID: submitVersion
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body
Strict JSON object, documented by components.schemas.SubmitCommand; validated by the service (unknown fields are 422).
application/json:object
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: approveVersion
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body
Strict JSON object, documented by components.schemas.ApproveCommand; validated by the service (unknown fields are 422).
application/json:object
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: rejectVersion
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body
Strict JSON object, documented by components.schemas.ReasonCommand; validated by the service (unknown fields are 422).
application/json:object
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: retireVersion
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body
Strict JSON object, documented by components.schemas.ReasonCommand; validated by the service (unknown fields are 422).
application/json:object
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: listImporters
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
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)
Operation ID: listImports
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: runImport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body
Strict JSON object, documented by components.schemas.ImportCommand; validated by the service (unknown fields are 422).
application/json:object
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: getImport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
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)
Operation ID: evaluateCheck
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body
Strict JSON object, documented by components.schemas.EvaluateCommand; validated by the service (unknown fields are 422).
application/json:object
Responses
| Code | Description | Media type |
|---|---|---|
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)
Operation ID: simulateCheck
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body
Strict JSON object, documented by components.schemas.SimulateCommand; validated by the service (unknown fields are 422).
application/json:object
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: listEvaluations
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
mode | query | "live" | "simulation" | no | |
limit | query | integer | no |
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: getEvaluation
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
| Code | Description | Media type |
|---|---|---|
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)
Operation ID: recordOutcome
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body
Strict JSON object, documented by components.schemas.OutcomeCommand; validated by the service (unknown fields are 422).
application/json:object
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: listReports
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
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)
Operation ID: runReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
reportId | path | "OHN-59-R001" | "OHN-59-R002" | "OHN-59-R003" | yes | |
version_id | query | string (uuid) | no | |
from | query | string | no | |
to | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
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)
Operation ID: exportReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
reportId | path | "OHN-59-R001" | "OHN-59-R002" | "OHN-59-R003" | yes | |
version_id | query | string (uuid) | no | |
from | query | string | no | |
to | query | string | no |
Responses
| Code | Description | Media type |
|---|---|---|
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
Operation ID: listAudit
Authentication: bearer
Responses
| Code | Description | Media type |
|---|---|---|
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)
Operation ID: relayOutbox
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body
Strict JSON object, documented by components.schemas.EmptyCommand; validated by the service (unknown fields are 422).
application/json:object
Responses
| Code | Description | Media type |
|---|---|---|
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) | — |
Schemas
Result
object
Error
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes | |
message | string | no | |
details | object | no |
EmptyCommand
object
CreateVersionCommand
| Name | Type | Required | Description |
|---|---|---|---|
document | KnowledgeDocument | yes | 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.
| Name | Type | Required | Description |
|---|---|---|---|
label | string | yes | |
notice | string | yes | |
source | object | yes | |
settings | object | yes | |
medications | array of object | yes | |
classes | array of object | yes | |
memberships | array of object | yes | |
allergy_cross_reactivity | array of object | yes | |
interactions | array of object | yes | |
dose_ranges | array of object | yes | |
pregnancy | array of object | yes | |
duplicate_groups | array of object | yes | |
lab_contraindications | array of object | yes |
SubmitCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_row_version | integer | yes | |
note | string | no |
ApproveCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_row_version | integer | yes | |
approval_ref | string | yes | |
note | string | no |
ReasonCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_row_version | integer | yes | |
reason | string | yes |
ImportCommand
| Name | Type | Required | Description |
|---|---|---|---|
format | "ohn59.csv.v1" | "ohn59.json.v1" | yes | |
label | string | yes | |
notice | string | no | |
source | ImportCommand.source | yes | |
settings | object | no | |
files | object | no | ohn59.csv.v1: one CSV text per section |
document | any | no | ohn59.json.v1: knowledge sections |
EvaluateCommand
| Name | Type | Required | Description |
|---|---|---|---|
patient_id | string (uuid) | yes | |
proposed | array of object | yes | |
context | object | no | |
checks | array of "knowledge_coverage" | "allergy" | "interaction" | "dose" | "pregnancy" | "breastfeeding" | "duplicate_therapy" | "lab_contraindication" | no | |
caller | object | no | |
acting_for | EvaluateCommand.acting_for | no |
SimulateCommand
| Name | Type | Required | Description |
|---|---|---|---|
version_id | string (uuid) | yes | |
facts | object | yes | |
proposed | array of object | yes | |
checks | array of string | no |
OutcomeCommand
| Name | Type | Required | Description |
|---|---|---|---|
action | "signed" | "abandoned" | "changed" | yes | |
overrides | array of OutcomeCommand.overrides.item | no |
ImportCommand.source defined inline
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
version | string | yes | |
licence_ref | string | yes |
EvaluateCommand.acting_for defined inline
| Name | Type | Required | Description |
|---|---|---|---|
principal_id | string (uuid) | yes | |
organization_id | string (uuid) | yes |
OutcomeCommand.overrides.item defined inline
| Name | Type | Required | Description |
|---|---|---|---|
warning_id | string | yes | |
reason | string | yes |