What is JSON Schema?
JSON Schema is a standard for defining the structure of JSON data. Think of it as a “mold” or “template” that you tell the API to fill with data extracted from clinical text. Analogy: If clinical text is shapeless clay, JSON Schema is the mold you define for the API to give it the exact shape you need.Requirements
- Version: Must use JSON Schema Draft-07
- Mandatory indicator: Include
"$schema": "http://json-schema.org/draft-07/schema#" - Supported types:
object,array,string,number,boolean,null
Basic schema
Special annotation: source
Standard and custom nomenclatures
You can annotate fields with"source" to indicate the specific dataset or version you want to use:
Supported standard sources
| Source | Description | Typical usage |
|---|---|---|
ICD-10-CM-US-2026 | ICD-10 Clinical Modification US 2026 | Diagnoses (billing, reporting) |
ICD-10-PCS-US-2026 | ICD-10 Procedures US 2026 | Surgical and diagnostic procedures |
ICD-9-CM-US | ICD-9 Clinical Modification US | Legacy systems, transition |
SNOMED-CT-US | SNOMED Clinical Terms US | Interoperability, clinical records |
LOINC | Logical Observation Identifiers | Laboratory tests |
Custom sources by hospital center
Does your HIS/EHR use proprietary codes?
We can train specialized models with your internal nomenclatures.Real use cases
1. Medication codes
Pharmacy system with NDC codes, RxNorm, or internal nomenclature:2. Diagnostic test codes
Codes from your radiology system (RIS) or internal laboratory:3. Custom center templates
Specific fields from your medical record or internal registries:How to activate custom sources?
-
Share your catalog/nomenclature:
- Excel file, CSV, or database dump
- Include: code, description, synonyms if applicable
-
Our team trains the model:
- Estimated time: 2-4 weeks
- Validation with test cases from your center
-
Specify your custom
source:- Use the identifier we provide
-
The API returns codes in your nomenclature:
- No post-processing
- Ready for your system
Tips for effective schemas
Best practices
1. Be specific in descriptionsrequired for mandatory fields
enum for predefined values
Common errors
1. Vague schemassource for codes
Complete examples
Example 1: Minimum Basic Dataset (MDS)
Example 2: Structured consultation note
Example 3: ICU record
Schema validation
Online tools
Validate your schema before using it:Code validation
Python:Next steps
View practical examples
Complete schemas with requests and responses
Request structure
How to send the schema
Error handling
422 errors for invalid schemas