Order concepts API
15 operations. Back to the API overview. Examples use synthetic data.
Lists the current order and procedure mappings with each target's status against the loaded terminology release
GET /admin/v1/order-concepts
Lists the current order and procedure mappings with each target's status against the loaded terminology release. status=all includes retired keys; sender, source and q (code or description) filter; limit and offset page.
Needs the permission: config:history.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
limit | query | string | optional | - |
offset | query | string | optional | - |
q | query | string | optional | - |
sender | query | string | optional | - |
source | query | string | optional | - |
status | query | string | optional | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
mappings | array of object (OrderMappingView) | optional | - |
mappings.[]any_description | boolean | optional | - |
mappings.[]any_sender | boolean | optional | - |
mappings.[]changed_at | string (date-time) | optional | - |
mappings.[]changed_by | string | optional | - |
mappings.[]effective_from | string (date-time) | optional | - |
mappings.[]effective_to | string (date-time) | optional | - |
mappings.[]evidence | object (OrdernormEvidence) | optional | Evidence is what an automatic mapping (default pack or AI) was based on. It holds the scrubbed description, never message content. |
mappings.[]facets | object (OrdernormFacets) | optional | Facets are the attributes of an order or procedure. |
mappings.[]key | object (OrdernormKey) | optional | Key identifies a sender's local order or procedure: sender, local coding system, local code and a hash of the normalized description. An empty Sender matches any sender and an empty DescHash any description (in a mapping); a sighting always carries the sender and the hash of what it saw. |
mappings.[]local_display | string | optional | - |
mappings.[]reason | string | optional | - |
mappings.[]reviewed_at | string (date-time) | optional | - |
mappings.[]reviewed_by | string | optional | ReviewedBy is set when a person confirmed an automatic mapping. |
mappings.[]revision | integer | optional | - |
mappings.[]source | string | optional | - |
mappings.[]status | string | optional | - |
mappings.[]target | object (OrdernormCoding) | optional | Coding is a canonical (or customer-supplied) coding. |
mappings.[]target_status | string | optional | active, inactive, unknown, not_loaded, customer |
notice | any | optional | - |
revision | any | optional | - |
total | any | optional | - |
{
"mappings": [
{
"any_description": true,
"any_sender": true,
"changed_at": "2026-01-15T14:30:00Z",
"changed_by": "example",
"effective_from": "2026-01-15T14:30:00Z",
"effective_to": "2026-01-15T14:30:00Z",
"evidence": {
"candidates": [
{}
],
"catalog": "example",
"chosen": "example",
"confidence": 1.5,
"conflict": [
"example"
],
"explanation": "example",
"method": "example",
"model": "example",
"model_confidence": "example",
"over_specific": [
"example"
],
"quote": "example",
"reason": "Example text",
"threshold": 1.5,
"under_specific": [
"example"
],
"unknown": [
"example"
]
},
"facets": {
"contrast": "example",
"laterality": "example",
"method": "example",
"regions": [
"example"
],
"specimen": "example",
"study_type": "example",
"technique": "example",
"views": "example"
},
"key": {
"code": "example",
"desc_hash": "0000000000000000000000000000000000000000000000000000000000000000",
"sender": "example",
"system": "example"
},
"local_display": "example",
"reason": "Example text",
"reviewed_at": "2026-01-15T14:30:00Z",
"reviewed_by": "example",
"revision": 1,
"source": "example",
"status": "ok",
"target": {
"code": "example",
"display": "example",
"system": "example"
},
"target_status": "ok"
}
],
"notice": {},
"revision": {},
"total": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts"Adds or changes one mapping from a sender's local code (and, unless any_description is set, its description) to a standard concept
PUT /admin/v1/order-concepts
Adds or changes one mapping from a sender's local code (and, unless any_description is set, its description) to a standard concept. The change is a new revision with who, when and why; a target in a reference system must be active in the loaded release.
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
any_description | boolean | optional | - |
effective_from | string | optional | - |
effective_to | string | optional | - |
local_code | string | optional | - |
local_display | string | optional | - |
local_system | string | optional | - |
reason | string | optional | - |
sender | string | optional | - |
target | object (OrdernormCoding) | optional | Coding is a canonical (or customer-supplied) coding. |
target.code | string | optional | - |
target.display | string | optional | - |
target.system | string | optional | System is a reference system ("loinc", "snomed", "hcpcs", "icd10pcs"), "cpt" for a customer's own CPT value, or the customer's own system name or URI as given. |
{
"any_description": true,
"effective_from": "example",
"effective_to": "example",
"local_code": "example",
"local_display": "example",
"local_system": "example",
"reason": "Example text",
"sender": "example",
"target": {
"code": "example",
"display": "example",
"system": "example"
}
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
any_description | boolean | optional | - |
any_sender | boolean | optional | - |
changed_at | string (date-time) | optional | - |
changed_by | string | optional | - |
effective_from | string (date-time) | optional | - |
effective_to | string (date-time) | optional | - |
evidence | object (OrdernormEvidence) | optional | Evidence is what an automatic mapping (default pack or AI) was based on. It holds the scrubbed description, never message content. |
evidence.candidates | array of object (OrdernormCandidateNote) | optional | - |
evidence.catalog | string | optional | - |
evidence.chosen | string | optional | - |
evidence.confidence | number | optional | - |
evidence.conflict | array of string | optional | - |
evidence.explanation | string | optional | - |
evidence.method | string | optional | default_pack, ai, specificity_fallback |
evidence.model | string | optional | - |
evidence.model_confidence | string | optional | - |
evidence.over_specific | array of string | optional | - |
evidence.quote | string | optional | - |
evidence.reason | string | optional | Reason says why a suggestion was left for review ("" when applied). |
evidence.threshold | number | optional | - |
evidence.under_specific | array of string | optional | - |
evidence.unknown | array of string | optional | - |
facets | object (OrdernormFacets) | optional | Facets are the attributes of an order or procedure. |
facets.contrast | string | optional | WO, W, WO_W |
facets.laterality | string | optional | LEFT, RIGHT, BILATERAL |
facets.method | string | optional | AUTOMATED, MANUAL, TEST_STRIP, IMMUNOASSAY, CALCULATED |
facets.regions | array of string | optional | sorted canonical region names |
facets.specimen | string | optional | BLD, SER_PLAS, SER, PLAS, URINE, CSF, STOOL, SPUTUM |
facets.study_type | string | optional | CT, MR, US, XR, MG, NM, PT, RF, DXA, ECG |
facets.technique | string | optional | ANGIO, ECHO, TEE, STRESS, HOLTER |
facets.views | string | optional | "1", "2", "3", "4", "PA_LAT" |
key | object (OrdernormKey) | optional | Key identifies a sender's local order or procedure: sender, local coding system, local code and a hash of the normalized description. An empty Sender matches any sender and an empty DescHash any description (in a mapping); a sighting always carries the sender and the hash of what it saw. |
key.code | string | optional | - |
key.desc_hash | string | optional | - |
key.sender | string | optional | - |
key.system | string | optional | - |
local_display | string | optional | - |
reason | string | optional | - |
reviewed_at | string (date-time) | optional | - |
reviewed_by | string | optional | ReviewedBy is set when a person confirmed an automatic mapping. |
revision | integer | optional | - |
source | string | optional | - |
status | string | optional | - |
target | object (OrdernormCoding) | optional | Coding is a canonical (or customer-supplied) coding. |
target.code | string | optional | - |
target.display | string | optional | - |
target.system | string | optional | System is a reference system ("loinc", "snomed", "hcpcs", "icd10pcs"), "cpt" for a customer's own CPT value, or the customer's own system name or URI as given. |
target_status | string | optional | active, inactive, unknown, not_loaded, customer |
{
"any_description": true,
"any_sender": true,
"changed_at": "2026-01-15T14:30:00Z",
"changed_by": "example",
"effective_from": "2026-01-15T14:30:00Z",
"effective_to": "2026-01-15T14:30:00Z",
"evidence": {
"candidates": [
{
"code": "example",
"comparison": {
"agree": [],
"conflict": [],
"over_specific": [],
"under_specific": [],
"unknown": []
},
"display": "example",
"id": "example-id",
"score": 1.5,
"system": "example"
}
],
"catalog": "example",
"chosen": "example",
"confidence": 1.5,
"conflict": [
"example"
],
"explanation": "example",
"method": "example",
"model": "example",
"model_confidence": "example",
"over_specific": [
"example"
],
"quote": "example",
"reason": "Example text",
"threshold": 1.5,
"under_specific": [
"example"
],
"unknown": [
"example"
]
},
"facets": {
"contrast": "example",
"laterality": "example",
"method": "example",
"regions": [
"example"
],
"specimen": "example",
"study_type": "example",
"technique": "example",
"views": "example"
},
"key": {
"code": "example",
"desc_hash": "0000000000000000000000000000000000000000000000000000000000000000",
"sender": "example",
"system": "example"
},
"local_display": "example",
"reason": "Example text",
"reviewed_at": "2026-01-15T14:30:00Z",
"reviewed_by": "example",
"revision": 1,
"source": "example",
"status": "ok",
"target": {
"code": "example",
"display": "example",
"system": "example"
},
"target_status": "ok"
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request PUT \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"any_description":true,"effective_from":"example","effective_to":"example","local_code":"example","local_display":"example","local_system":"example","reason":"Example text","sender":"example","target":{"code":"example","display":"example","system":"example"}}' \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts"Searches the loaded terminology releases for concepts that match a description (q, at most 200 characters; kind order or procedure), for choosing a target by...
GET /admin/v1/order-concepts/candidates
Searches the loaded terminology releases for concepts that match a description (q, at most 200 characters; kind order or procedure), for choosing a target by hand.
Needs the permission: config:history.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
kind | query | string | optional | - |
q | query | string | optional | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
candidates | array of object (any fields) | optional | - |
catalog | any | optional | - |
facets | any | optional | - |
{
"candidates": [
{}
],
"catalog": {},
"facets": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/candidates"Lists mappings made without a person (default pack and confident AI matches) that no one has confirmed yet, with their evidence
GET /admin/v1/order-concepts/digest
Lists mappings made without a person (default pack and confident AI matches) that no one has confirmed yet, with their evidence.
Needs the permission: config:history.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
mappings | any | optional | - |
{
"mappings": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/digest"Marks automatic mappings as confirmed by a person (at most 1,000 revisions per request)
POST /admin/v1/order-concepts/digest/confirm
Marks automatic mappings as confirmed by a person (at most 1,000 revisions per request).
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
revisions | array of integer | optional | - |
{
"revisions": [
1
]
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
confirmed | any | optional | - |
{
"confirmed": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"revisions":[1]}' \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/digest/confirm"Downloads the current mapping table as CSV (formula-safe)
GET /admin/v1/order-concepts/export.csv
Downloads the current mapping table as CSV (formula-safe).
Needs the permission: config:export.
Response 200
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/export.csv"Returns every revision of one mapping key (sender, local_system, local_code, desc_hash), newest first
GET /admin/v1/order-concepts/history
Returns every revision of one mapping key (sender, local_system, local_code, desc_hash), newest first.
Needs the permission: config:history.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
desc_hash | query | string | optional | - |
local_code | query | string | optional | - |
local_system | query | string | optional | - |
sender | query | string | optional | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
revisions | any | optional | - |
{
"revisions": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/history"Imports mappings from CSV or JSON (at most 8 MB and 50,000 rows)
POST /admin/v1/order-concepts/import
Imports mappings from CSV or JSON (at most 8 MB and 50,000 rows). dry_run previews the rows and their errors without changing anything.
Needs the permission: config:write.
Request body
{}Response 200
{
"dry_run": {},
"preview": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/import"Lists local codes waiting for a mapping, with the suggestion, its confidence and the reason it waits (status pending, review, applied, rejected or ignored)
GET /admin/v1/order-concepts/queue
Lists local codes waiting for a mapping, with the suggestion, its confidence and the reason it waits (status pending, review, applied, rejected or ignored).
Needs the permission: config:history.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
limit | query | string | optional | - |
offset | query | string | optional | - |
status | query | string | optional | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
counts | any | optional | - |
items | any | optional | - |
{
"counts": {},
"items": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/queue"Approves (the suggestion, or the target given), rejects, ignores or requeues one queue entry
POST /admin/v1/order-concepts/queue/{id}/{decision}
Approves (the suggestion, or the target given), rejects, ignores or requeues one queue entry. Approving writes a mapping revision.
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
decision | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
reason | string | optional | - |
target | object (OrdernormCoding) | optional | Coding is a canonical (or customer-supplied) coding. |
target.code | string | optional | - |
target.display | string | optional | - |
target.system | string | optional | System is a reference system ("loinc", "snomed", "hcpcs", "icd10pcs"), "cpt" for a customer's own CPT value, or the customer's own system name or URI as given. |
{
"reason": "Example text",
"target": {
"code": "example",
"display": "example",
"system": "example"
}
}Response 200
{
"status": "ok"
}Other responses
401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"reason":"Example text","target":{"code":"example","display":"example","system":"example"}}' \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/queue/example-id/example-decision"Ends a mapping with a reason
POST /admin/v1/order-concepts/revisions/{rev}/retire
Ends a mapping with a reason: a retired revision is written and the local code passes unmapped again.
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
rev | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
reason | string | optional | - |
{
"reason": "Example text"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
revision | any | optional | - |
{
"revision": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"reason":"Example text"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/revisions/example-rev/retire"Undoes one revision
POST /admin/v1/order-concepts/revisions/{rev}/revert
Undoes one revision: the key returns to the review queue and a new revision records the revert. Messages already delivered are not changed.
Needs the permission: config:rollback.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
rev | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
reason | string | optional | - |
{
"reason": "Example text"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
revision | any | optional | - |
{
"revision": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"reason":"Example text"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/revisions/example-rev/revert"Sets the whole mapping table back to the time given (at, RFC 3339) with a reason, by writing new revisions
POST /admin/v1/order-concepts/rollback
Sets the whole mapping table back to the time given (at, RFC 3339) with a reason, by writing new revisions; nothing is deleted.
Needs the permission: config:rollback.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
at | string | optional | - |
reason | string | optional | - |
{
"at": "example",
"reason": "Example text"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
changed | any | optional | - |
{
"changed": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"at":"example","reason":"Example text"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/rollback"Returns the order concept settings with this month's AI usage
GET /admin/v1/order-concepts/settings
Returns the order concept settings with this month's AI usage. The settings are the tenant's switches (auto-apply, AI, threshold, daily safeguard) and ai_usage is the model calls attempted this UTC month against the monthly ceiling in force (the edition's, lowered by configuration), reset on the first of the month. Above the ceiling a new unmapped code goes to the review queue without a model call.
Needs the permission: config:history.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
ai_usage | object (OrderAIUsage) | optional | OrderAIUsage is the month's AI suggestion count against the ceiling in force (read-only; the broker counts and enforces it). |
ai_usage.available | boolean | optional | Available is false when the counter could not be read (Used and Limit are then not meaningful). |
ai_usage.edition_limit | integer | optional | EditionLimit is the edition's own ceiling. |
ai_usage.limit | integer | optional | - |
ai_usage.month | string | optional | Month is the UTC calendar month ("2026-12"); the count resets on the first of the next month, ResetsAt (UTC). |
ai_usage.remaining | integer | optional | - |
ai_usage.resets_at | string (date-time) | optional | - |
ai_usage.used | integer | optional | Used is the model calls attempted this month; Limit is the ceiling (the edition's, lowered by order_concepts.monthly_limit); Remaining is Limit - Used, at least 0. |
default_threshold | any | optional | - |
settings | any | optional | - |
{
"ai_usage": {
"available": true,
"edition_limit": 1,
"limit": 1,
"month": "example",
"remaining": 1,
"resets_at": "2026-01-15T14:30:00Z",
"used": 1
},
"default_threshold": {},
"settings": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/settings"Changes auto-apply, AI ranking, the confidence threshold (0.80 to 0.999) and the daily AI safeguard
PUT /admin/v1/order-concepts/settings
Changes auto-apply, AI ranking, the confidence threshold (0.80 to 0.999) and the daily AI safeguard. The monthly AI ceiling is the edition's and cannot be raised here.
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
ai_enabled | boolean | optional | - |
auto_apply | boolean | optional | - |
daily_cap | integer | optional | - |
threshold | number | optional | - |
{
"ai_enabled": true,
"auto_apply": true,
"daily_cap": 1,
"threshold": 1.5
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
settings | any | optional | - |
{
"settings": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request PUT \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"ai_enabled":true,"auto_apply":true,"daily_cap":1,"threshold":1.5}' \
"https://YOUR-CONSOLE-HOST/admin/v1/order-concepts/settings"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.