#
Search codes for a service date
GET
/api/v1/terminology/codes
Staff-only, audited and tenant-scoped. Searches code prefixes or publisher description word prefixes. Selects the latest effective release unless release_id is supplied. Applies release/code dates and active status; active=false selects inactive entries. Empty results with release=null mean no effective authorized release. Cursor fixes the release and binds the canonical system, normalized query, service date, billable filter and active filter; reuse those filters on the next page. Unknown query fields are rejected.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
system
required
|
query |
string |
|
q
|
query |
string |
|
service_date
|
query |
string (date) |
Defaults to current UTC date; use the returned value for subsequent pages. |
billable
|
query |
boolean |
Omit to include both billable entries and category headings. |
active
|
query |
boolean |
|
release_id
|
query |
string (uuid) |
|
limit
|
query |
integer |
|
after
|
query |
string |
Opaque next_cursor from the same search. |
Responses
-
200
Success; tenant-scoped data with Cache-Control: no-store
application/json
-
Fields object · 18
| Field |
Type |
Details |
items
required
|
array of TerminologyCode |
items ≤ 100
|
active
required
|
boolean |
|
billable
required
|
boolean |
|
code
required
|
string |
length ≤ 8
|
display
required
|
string |
Publisher description, bounded to 10000 UTF-8 bytes.
|
edition
required
|
string |
|
effective_end
required
|
string or null |
|
effective_start
required
|
string (date) |
|
metadata
required
|
object |
Publisher metadata, at most 4096 serialized UTF-8 bytes.
|
release_id
required
|
string (uuid) |
|
short_display
required
|
string or null |
|
source_name
required
|
string |
|
source_sha256
required
|
string |
pattern ^[0-9a-f]{64}$
|
source_url
required
|
string (uri) |
|
system
required
|
string |
one of ICD-10-CM, ICD-10-PCS, HCPCS, CPT
|
next_cursor
required
|
string or null |
|
release
required
|
TerminologyRelease or null |
|
service_date
required
|
string (date) |
|
Example response placeholder values
{
"items": [
{
"active": true,
"billable": true,
"code": "string",
"display": "string",
"edition": "string",
"effective_end": "2026-01-15",
"effective_start": "2026-01-15",
"metadata": {},
"release_id": "00000000-0000-4000-8000-000000000000",
"short_display": "string",
"source_name": "string",
"source_sha256": "string",
"source_url": "https://app.example.test/callback",
"system": "ICD-10-CM"
}
],
"next_cursor": "string",
"release": {
"code_count": 1,
"created_at": "2026-01-15T15:30:00Z",
"edition": "string",
"effective_end": "2026-01-15",
"effective_start": "2026-01-15",
"id": "00000000-0000-4000-8000-000000000000",
"license_valid_until": "2026-01-15",
"rights": "public_use",
"source_name": "string",
"source_sha256": "string",
"source_url": "https://app.example.test/callback",
"system": "ICD-10-CM"
},
"service_date": "2026-01-15"
}
-
400
Invalid input, bounds, code syntax or cursor context
-
401
Authentication required
-
403
Role or scope denied
-
404
Resource not found in this tenant or catalog license expired
Example call
curl "$EHR_URL/api/v1/terminology/codes" -H "Authorization: Bearer $ACCESS_TOKEN"
#
List authorized tenant terminology releases
GET
/api/v1/terminology/releases
Staff-only, audited and tenant-scoped. Excludes expired licenses. Ordered by release UUID; unknown query fields are rejected.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
system
|
query |
string |
|
after
|
query |
string (uuid) |
Previous next_cursor. |
limit
|
query |
integer |
|
Responses
-
200
Success; tenant-scoped data with Cache-Control: no-store
application/json
-
Fields object · 14
| Field |
Type |
Details |
items
required
|
array of TerminologyRelease |
items ≤ 100
|
code_count
required
|
integer |
value 1–150000
|
created_at
required
|
string (date-time) |
|
edition
required
|
string |
|
effective_end
required
|
string or null |
|
effective_start
required
|
string (date) |
|
id
required
|
string (uuid) |
|
license_valid_until
required
|
string or null |
|
rights
required
|
any |
one of public_use, licensed
|
source_name
required
|
string |
|
source_sha256
required
|
string |
pattern ^[0-9a-f]{64}$
|
source_url
required
|
string (uri) |
|
system
required
|
string |
one of ICD-10-CM, ICD-10-PCS, HCPCS, CPT
|
next_cursor
required
|
string or null |
|
Example response placeholder values
{
"items": [
{
"code_count": 1,
"created_at": "2026-01-15T15:30:00Z",
"edition": "string",
"effective_end": "2026-01-15",
"effective_start": "2026-01-15",
"id": "00000000-0000-4000-8000-000000000000",
"license_valid_until": "2026-01-15",
"rights": "public_use",
"source_name": "string",
"source_sha256": "string",
"source_url": "https://app.example.test/callback",
"system": "ICD-10-CM"
}
],
"next_cursor": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid input, bounds, code syntax or cursor context
-
401
Authentication required
-
403
Role or scope denied
-
404
Resource not found in this tenant or catalog license expired
Example call
curl "$EHR_URL/api/v1/terminology/releases" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Import an immutable tenant terminology release
POST
/api/v1/terminology/releases
Owner-only. Imports supplied records atomically with an audit event; does not fetch the source URL. Enforces syntax, unique canonical codes, dates and rights attestation. Identical normalized content under the same request ID or system/edition is an idempotent replay; changed content conflicts. Source SHA-256 records owner-supplied provenance and is not an independently verified publisher signature.
Access
OAuth 2.0 access tokenclinical.read
Request body
application/json · required
Fields TerminologyImport · 22
| Field |
Type |
Details |
codes
required
|
array of TerminologyCodeInput |
items 1–150000
|
billable
required
|
boolean |
|
code
required
|
string |
Trimmed and uppercased. ICD-10-CM: letter plus 2 to 6 alphanumerics; optional decimal only after character 3, canonicalized on import. ICD-10-PCS: 7 alphanumerics excluding I and O. HCPCS: letter plus 4 digits. CPT: 4 digits followed by a digit or F, T, U or M. Duplicate canonical codes are rejected.
|
display
required
|
string |
Required nonblank description; at most 10000 UTF-8 bytes after trimming; control characters rejected.
length ≥ 1
|
active
|
boolean |
default true
|
effective_end
|
string or null |
Defaults to release end; must not precede code start.
|
effective_start
|
string or null |
Defaults to release start.
|
metadata
|
object |
At most 4096 serialized UTF-8 bytes.
default {}
|
short_display
|
string or null |
Optional nonblank description, at most 256 UTF-8 bytes.
|
edition
required
|
string |
Nonblank, at most 120 UTF-8 bytes after trimming.
length ≥ 1
|
effective_start
required
|
string (date) |
|
reason
required
|
string |
Attributed import reason, at most 1000 UTF-8 bytes.
length ≥ 1
|
request_id
required
|
string (uuid) |
|
rights
required
|
string |
one of public_use, licensed
|
rights_attested
required
|
constant |
always true
|
source_name
required
|
string |
Nonblank, at most 200 UTF-8 bytes after trimming.
length ≥ 1
|
source_sha256
required
|
string |
64 hexadecimal characters; normalized to lowercase.
|
source_url
required
|
string (uri) |
HTTPS source URL, at most 2000 UTF-8 bytes; no credentials, query or fragment.
|
system
required
|
string |
Canonical system: ICD-10-CM, ICD-10-PCS, HCPCS or CPT. Matching is case-insensitive; documented system URI and compact ICD aliases are also accepted.
|
effective_end
|
string or null |
Inclusive; must not precede start.
|
license_reference
|
string or null |
Required for licensed datasets, including CPT; nonblank and at most 500 UTF-8 bytes.
|
license_valid_until
|
string or null |
Inclusive; cannot be earlier than current UTC date. Expired releases are excluded from subsequent catalog reads and new selections.
|
Example request body placeholder values
{
"codes": [
{
"billable": true,
"code": "string",
"display": "string",
"active": true,
"effective_end": "2026-01-15",
"effective_start": "2026-01-15",
"metadata": {},
"short_display": "string"
}
],
"edition": "string",
"effective_start": "2026-01-15",
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000",
"rights": "public_use",
"rights_attested": true,
"source_name": "string",
"source_sha256": "string",
"source_url": "https://app.example.test/callback",
"system": "string"
}
Responses
-
200
Success; tenant-scoped data with Cache-Control: no-store
application/json
-
Fields object · 14
| Field |
Type |
Details |
created
required
|
boolean |
|
release
required
|
TerminologyRelease |
Immutable tenant-owned release metadata. License agreement reference and importing owner identity are not exposed by reference reads.
|
code_count
required
|
integer |
value 1–150000
|
created_at
required
|
string (date-time) |
|
edition
required
|
string |
|
effective_end
required
|
string or null |
|
effective_start
required
|
string (date) |
|
id
required
|
string (uuid) |
|
license_valid_until
required
|
string or null |
|
rights
required
|
any |
one of public_use, licensed
|
source_name
required
|
string |
|
source_sha256
required
|
string |
pattern ^[0-9a-f]{64}$
|
source_url
required
|
string (uri) |
|
system
required
|
string |
one of ICD-10-CM, ICD-10-PCS, HCPCS, CPT
|
Example response placeholder values
{
"created": true,
"release": {
"code_count": 1,
"created_at": "2026-01-15T15:30:00Z",
"edition": "string",
"effective_end": "2026-01-15",
"effective_start": "2026-01-15",
"id": "00000000-0000-4000-8000-000000000000",
"license_valid_until": "2026-01-15",
"rights": "public_use",
"source_name": "string",
"source_sha256": "string",
"source_url": "https://app.example.test/callback",
"system": "ICD-10-CM"
}
}
-
400
Invalid input, bounds, code syntax or cursor context
-
401
Authentication required
-
403
Role or scope denied
-
404
Resource not found in this tenant or catalog license expired
-
409
Request ID or system/edition already exists with different content
-
413
Request exceeds 64 MiB
Example call
curl -X POST "$EHR_URL/api/v1/terminology/releases" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read one code from an authorized tenant release
GET
/api/v1/terminology/releases/{release}/codes/{code}
Staff-only and audited. Case-insensitive exact code lookup ignores decimal punctuation. May return inactive or historical entries; clinical selection separately enforces active, billable and service-date requirements. Expired licenses are unavailable.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
release
required
|
path |
string (uuid) |
|
code
required
|
path |
string |
|
Responses
-
200
Success; tenant-scoped data with Cache-Control: no-store
application/json
-
Fields TerminologyCode · 14
| Field |
Type |
Details |
active
required
|
boolean |
|
billable
required
|
boolean |
|
code
required
|
string |
length ≤ 8
|
display
required
|
string |
Publisher description, bounded to 10000 UTF-8 bytes.
|
edition
required
|
string |
|
effective_end
required
|
string or null |
|
effective_start
required
|
string (date) |
|
metadata
required
|
object |
Publisher metadata, at most 4096 serialized UTF-8 bytes.
|
release_id
required
|
string (uuid) |
|
short_display
required
|
string or null |
|
source_name
required
|
string |
|
source_sha256
required
|
string |
pattern ^[0-9a-f]{64}$
|
source_url
required
|
string (uri) |
|
system
required
|
string |
one of ICD-10-CM, ICD-10-PCS, HCPCS, CPT
|
Example response placeholder values
{
"active": true,
"billable": true,
"code": "string",
"display": "string",
"edition": "string",
"effective_end": "2026-01-15",
"effective_start": "2026-01-15",
"metadata": {},
"release_id": "00000000-0000-4000-8000-000000000000",
"short_display": "string",
"source_name": "string",
"source_sha256": "string",
"source_url": "https://app.example.test/callback",
"system": "ICD-10-CM"
}
-
400
Invalid input, bounds, code syntax or cursor context
-
401
Authentication required
-
403
Role or scope denied
-
404
Resource not found in this tenant or catalog license expired
Example call
curl "$EHR_URL/api/v1/terminology/releases/{release}/codes/{code}" -H "Authorization: Bearer $ACCESS_TOKEN"
No endpoint matches that filter.