OHN-23 Clinical Terminology Service
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-23/api/openapi.json- Servers
https://opeshealthnetwork.com/api/ohn/v1/terminology- Authentication
bearer: http bearer
Contracts are written in English.
Code systems, concept maps, value sets, licences, FHIR-style terminology operations and reports. Default deny; bearer authentication; every mutating request needs an Idempotency-Key header. Terminology content is served only for an exact published version whose licence is valid in the caller's country. No licensed terminology content ships with this module.
Operations
- Other operations (27)
Other operations
GET/codesBrowse concepts of one exact published version
Operation ID: ohn-23_get_codes
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
system | query | string | yes | |
version | query | string | no | Required when several versions are published (422 ambiguous_version) |
code | query | string | no | |
q | query | string | no | |
language | query | string | no | |
include_deprecated | query | boolean | no | |
page | query | integer | no |
Responses
POST/validate-codeValidate a code (and optionally its display)
Operation ID: ohn-23_post_validate-code
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ValidateCodeCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | result true/false with reason, deprecation and display warnings | — |
400 | Typed error | application/json: Error |
401 | Typed error | application/json: Error |
403 | Typed error | application/json: Error |
404 | Typed error | application/json: Error |
409 | Typed error | application/json: Error |
422 | Typed error | application/json: Error |
429 | Typed error | application/json: Error |
503 | Typed error | application/json: Error |
POST/expandExpand an ACTIVE value set (pinned versions; licence re-checked at serve time)
Operation ID: ohn-23_post_expand
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ExpandCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | Expansion with hash and drift flag | — |
400 | Typed error | application/json: Error |
401 | Typed error | application/json: Error |
403 | Typed error | application/json: Error |
404 | Typed error | application/json: Error |
409 | Typed error | application/json: Error |
422 | Typed error | application/json: Error |
429 | Typed error | application/json: Error |
503 | Typed error | application/json: Error |
POST/conceptmap/translateTranslate through current, accepted, undisputed mappings only
Operation ID: ohn-23_post_conceptmap-translate
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:TranslateCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | matches, with counts withheld for disputed and licence-restricted targets | — |
400 | Typed error | application/json: Error |
401 | Typed error | application/json: Error |
403 | Typed error | application/json: Error |
404 | Typed error | application/json: Error |
409 | Typed error | application/json: Error |
422 | Typed error | application/json: Error |
429 | Typed error | application/json: Error |
503 | Typed error | application/json: Error |
GET/deprecation-impactDependants of deprecated concepts in one version
Operation ID: ohn-23_get_deprecation-impact
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
system | query | string | yes | |
version | query | string | no |
Responses
POST/artifactsStage a terminology or evidence artifact (malware-scanned, content-referenced)
Operation ID: ohn-23_post_artifacts
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Responses
GET/licenses
Operation ID: ohn-23_get_licenses
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
license_state | query | "valid" | "revoked" | "expired" | "country_out_of_scope" | no | |
page | query | integer | no |
Responses
POST/licensesRegister licence evidence (F004; steward)
Operation ID: ohn-23_post_licenses
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:LicenseCommand
Responses
GET/licenses/{id}
Operation ID: ohn-23_get_licenses-id
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
POST/licenses/{id}/revokeRevoke: content under this licence is withheld immediately
Operation ID: ohn-23_post_licenses-id-revoke
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Revoked | — |
400 | Typed error | application/json: Error |
401 | Typed error | application/json: Error |
403 | Typed error | application/json: Error |
404 | Typed error | application/json: Error |
409 | Typed error | application/json: Error |
422 | Typed error | application/json: Error |
429 | Typed error | application/json: Error |
503 | Typed error | application/json: Error |
POST/licenses/{id}/renew
Operation ID: ohn-23_post_licenses-id-renew
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Renewed | — |
400 | Typed error | application/json: Error |
401 | Typed error | application/json: Error |
403 | Typed error | application/json: Error |
404 | Typed error | application/json: Error |
409 | Typed error | application/json: Error |
422 | Typed error | application/json: Error |
429 | Typed error | application/json: Error |
503 | Typed error | application/json: Error |
GET/code-systems
Operation ID: ohn-23_get_code-systems
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status | query | string | no | |
page | query | integer | no |
Responses
POST/code-systemsRegister a code set import (F001; steward). State: uploaded
Operation ID: ohn-23_post_code-systems
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:CodeSystemImportCommand
Responses
GET/code-systems/{id}
Operation ID: ohn-23_get_code-systems-id
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
POST/code-systems/{id}/transitionsW001 one gate at a time: checksum_verified, license_validated, concepts_indexed, published (emits terminology.version.published)
Operation ID: ohn-23_post_code-systems-id-transitions
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:TransitionCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | Advanced | — |
400 | Typed error | application/json: Error |
401 | Typed error | application/json: Error |
403 | Typed error | application/json: Error |
404 | Typed error | application/json: Error |
409 | Typed error | application/json: Error |
422 | Typed error | application/json: Error |
429 | Typed error | application/json: Error |
503 | Typed error | application/json: Error |
GET/concept-maps
Operation ID: ohn-23_get_concept-maps
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status | query | string | no | |
disputed | query | boolean | no | |
page | query | integer | no |
Responses
POST/concept-mapsPropose a mapping (F002). The reviewer must differ from the proposer
Operation ID: ohn-23_post_concept-maps
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ConceptMapCommand
Responses
GET/concept-maps/{id}
Operation ID: ohn-23_get_concept-maps-id
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
POST/concept-maps/{id}/transitionsW002: clinical_review, accepted_or_rejected (named reviewer only; rejected is final), versioned (supersedes the previous mapping)
Operation ID: ohn-23_post_concept-maps-id-transitions
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:TransitionCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | Advanced | — |
400 | Typed error | application/json: Error |
401 | Typed error | application/json: Error |
403 | Typed error | application/json: Error |
404 | Typed error | application/json: Error |
409 | Typed error | application/json: Error |
422 | Typed error | application/json: Error |
429 | Typed error | application/json: Error |
503 | Typed error | application/json: Error |
POST/concept-maps/{id}/disputeDispute a versioned mapping (emits terminology.mapping.disputed; withheld from translation)
Operation ID: ohn-23_post_concept-maps-id-dispute
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
200 | Disputed | — |
400 | Typed error | application/json: Error |
401 | Typed error | application/json: Error |
403 | Typed error | application/json: Error |
404 | Typed error | application/json: Error |
409 | Typed error | application/json: Error |
422 | Typed error | application/json: Error |
429 | Typed error | application/json: Error |
503 | Typed error | application/json: Error |
GET/value-sets
Operation ID: ohn-23_get_value-sets
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status | query | string | no | |
page | query | integer | no |
Responses
POST/value-setsSubmit a value set (F003; steward). The approver must differ from the author
Operation ID: ohn-23_post_value-sets
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | yes |
Request body (required)
application/json:ValueSetCommand
Responses
GET/value-sets/{id}
Operation ID: ohn-23_get_value-sets-id
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
POST/value-sets/{id}/transitionsW003: expanded, tested (drift, empty and deprecated gates), approved (named approver), active
Operation ID: ohn-23_post_value-sets-id-transitions
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes |
Request body (required)
application/json:TransitionCommand
Responses
| Code | Description | Media type |
|---|---|---|
200 | Advanced | — |
400 | Typed error | application/json: Error |
401 | Typed error | application/json: Error |
403 | Typed error | application/json: Error |
404 | Typed error | application/json: Error |
409 | Typed error | application/json: Error |
422 | Typed error | application/json: Error |
429 | Typed error | application/json: Error |
503 | Typed error | application/json: Error |
GET/reports/{reportId}
Operation ID: ohn-23_get_reports-reportid
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
reportId | path | "OHN-23-R001" | "OHN-23-R002" | "OHN-23-R003" | yes |
Responses
POST/reports/{reportId}/exportSigned, owner-only, single-use, five-minute export (csv|pdf)
Operation ID: ohn-23_post_reports-reportid-export
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
reportId | path | string | yes | |
Idempotency-Key | header | string | yes |
Responses
| Code | Description | Media type |
|---|---|---|
201 | download_path | — |
400 | Typed error | application/json: Error |
401 | Typed error | application/json: Error |
403 | Typed error | application/json: Error |
404 | Typed error | application/json: Error |
409 | Typed error | application/json: Error |
422 | Typed error | application/json: Error |
429 | Typed error | application/json: Error |
503 | Typed error | application/json: Error |
GET/exports/{id}/download
Operation ID: ohn-23_get_exports-id-download
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Responses
Schemas
Error
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes | e.g. unknown_system, unknown_version, ambiguous_version, license_restricted, checksum_mismatch, expansion_drift, rejected_is_final |
message | string | no | |
fields | object | no | |
form | array of string | no | Validation messages that belong to no single field (unrecognized keys, a body that is not an object). |
current_version | integer | no | On stale_version: the version now stored. |
candidates | array of string | no | On ambiguous_version: the published versions to choose from. |
details | object | no | On expansion refusals: the system, version and unknown codes. |
state | string | no | |
next_state | string | null | no | |
codes | array of string | no | |
type | string | no | |
title | string | no | |
status | integer | no | |
detail | string | no | |
trace_id | string | no |
ValidateCodeCommand
| Name | Type | Required | Description |
|---|---|---|---|
system | string (uri) | yes | |
code | string | yes | |
version | string | no | |
display | string | no | |
language | string | no |
ExpandCommand
| Name | Type | Required | Description |
|---|---|---|---|
value_set_uri | string (uri) | yes | |
version | string | no | |
filter | string | no | |
offset | integer | no | |
count | integer | no |
TranslateCommand
| Name | Type | Required | Description |
|---|---|---|---|
source_system | string (uri) | yes | |
source_code | string | yes | |
source_version | string | no | |
target_system | string (uri) | yes |
LicenseCommand
| Name | Type | Required | Description |
|---|---|---|---|
licensor | string (uuid) | yes | |
license_scope | string | yes | |
country_scope | string | yes | ISO 3166-1 alpha-2 codes separated by commas or spaces |
expires_at | string (date) | no | |
evidence | string (uuid) | yes |
CodeSystemImportCommand
| Name | Type | Required | Description |
|---|---|---|---|
code_system_uri | string (uri) | yes | |
version | string | yes | |
licensed_source | string (uuid) | yes | |
effective_at | string (date) | yes | |
artifact | string (uuid) | yes | |
checksum | string | yes | SHA-256 hex, optional sha256: prefix |
ConceptMapCommand
| Name | Type | Required | Description |
|---|---|---|---|
source_code | string | yes | |
source_system | string (uri) | yes | |
source_version | string | no | |
target_code | string | yes | |
target_system | string (uri) | yes | |
target_version | string | no | |
equivalence | "equivalent" | "equal" | "wider" | "subsumes" | "narrower" | "specializes" | "inexact" | "relatedto" | "disjoint" | yes | |
reviewer | string (uuid) | yes | |
clinical_rationale | string | yes |
ValueSetCommand
| Name | Type | Required | Description |
|---|---|---|---|
value_set_uri | string (uri) | yes | |
version | string | yes | |
expansion_policy | "pinned_snapshot" | "pinned_recompute" | yes | |
effective_at | string (date) | yes | |
approver | string (uuid) | yes | |
compose | array of ValueSetCommand.compose.item | yes |
TransitionCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
to_state | string | yes | |
decision | "accepted" | "rejected" | no | |
reason | string | no |
ArtifactCommand
| Name | Type | Required | Description |
|---|---|---|---|
kind | "terminology" | "evidence" | yes | |
media_type | string | yes | |
content_base64 | string | yes |
LicenseRevokeCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
reason | string | yes |
LicenseRenewCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
expires_at | string | null (date) | yes | |
evidence | string (uuid) | yes |
DisputeCommand
| Name | Type | Required | Description |
|---|---|---|---|
expected_version | integer | yes | |
reason | string | yes |
ExportCommand
| Name | Type | Required | Description |
|---|---|---|---|
format | "csv" | "pdf" | yes | |
filters | object | no |
ValueSetCommand.compose.item defined inline
| Name | Type | Required | Description |
|---|---|---|---|
system | string | yes | |
version | string | yes | |
codes | array of string | no | |
descendants_of | string | no |