LabTest
Reference data for laboratory tests with standardized coding (LOINC). Defines test specifications including categories, specimen requirements, units of measurement, and normal/critical reference ranges.
Overview
LabTest provides the reference catalog of diagnostic laboratory tests available for ordering. Each test is coded using LOINC (Logical Observation Identifiers Names and Codes), with details about specimen requirements, measurement units, and reference ranges. This reference data supports test ordering, result interpretation, and clinical decision support by providing standardized test definitions.
Key Concepts
LOINC Coding
The primary coding system for laboratory tests:
code- LOINC code (e.g., "2345-7" for glucose)system- Coding system (LOINC, SNOMED-CT)label- Full LOINC long nameshortName- Display name for UI
Test Categories
The category field classifies tests by laboratory section:
| Category | Description | Examples |
|---|---|---|
chemistry | Clinical chemistry | Glucose, electrolytes, liver enzymes |
hematology | Blood cell analysis | CBC, coagulation studies |
microbiology | Infectious disease | Cultures, sensitivities |
urinalysis | Urine analysis | UA, microscopy |
immunology | Immune system | Antibodies, autoimmune markers |
pathology | Tissue analysis | Biopsies, cytology |
genetics | DNA/RNA testing | Genetic markers, mutations |
toxicology | Drug and poison testing | Drug screens, levels |
Specimen Requirements
The specimenType field specifies collection needs:
- Blood (venous, arterial, capillary)
- Serum or Plasma
- Urine (random, 24-hour, clean catch)
- CSF (cerebrospinal fluid)
- Tissue (biopsy, aspirate)
- Swabs (throat, wound, nasal)
Units of Measurement
The unit field defines result units:
- mg/dL, g/dL - mass concentrations
- mEq/L, mmol/L - molar concentrations
- cells/uL - cell counts
- %, ratio - proportions
- IU/L - enzyme activity
Reference Ranges
Normal value boundaries:
referenceRangeLow- Lower normal limitreferenceRangeHigh- Upper normal limit- May vary by age, sex, pregnancy status
- Provides baseline for interpretation
Critical Values
Life-threatening thresholds:
criticalLow- Dangerously low valuecriticalHigh- Dangerously high value- Require immediate provider notification
- Defined per laboratory policy
Use Cases
Test Catalog Management
Building laboratory menu:
- Import tests from LOINC database
- Assign to laboratory sections
- Define specimen requirements
- Set reference ranges
- Configure critical thresholds
Order Entry
When ordering tests:
- Search by name or code
- Display specimen requirements
- Show expected turnaround time
- Group into common panels
- Apply ordering rules
Result Interpretation
When reviewing results:
- Compare value to reference range
- Flag abnormal results
- Alert on critical values
- Display with appropriate units
- Support trend analysis
Quality Control
For laboratory compliance:
- Verify reference ranges
- Update critical thresholds
- Track test utilization
- Monitor turnaround times
- Maintain LOINC mappings
Clinical Decision Support
For CDS rules:
- Define alerting logic by test
- Set therapeutic ranges
- Configure reflex testing
- Support result-based protocols
- Enable population health queries
Related Entities
| Entity | Relationship | Description |
|---|---|---|
| LaboratoryOrder | Referenced by | Orders for this test |
| LaboratoryResult | Referenced by | Results of this test |
| Specimen | Referenced by | Specimens required |
Enums
system
| Value | Description |
|---|---|
LOINC | Logical Observation Identifiers Names and Codes - primary lab test terminology |
SNOMED-CT | Systematized Nomenclature of Medicine for clinical findings |
other | Other coding system not listed |
category
| Value | Description |
|---|---|
chemistry | Clinical chemistry including metabolic panels, liver function, cardiac markers |
hematology | Blood cell analysis including CBC, differential, coagulation studies |
microbiology | Infectious disease testing including cultures, sensitivities, molecular detection |
urinalysis | Urine testing including dipstick, microscopy, and chemistry |
immunology | Immune system testing including antibodies, autoimmune markers, allergies |
pathology | Tissue and cytology analysis including biopsies and surgical specimens |
genetics | DNA and RNA testing including genetic markers and mutations |
toxicology | Drug and toxin testing including screens, levels, and confirmatory tests |
other | Other laboratory category not listed |
Properties
| Property | Type | Mode | Description | Required |
|---|---|---|---|---|
| code | string | stored | LOINC code for the test Example: | Required |
| system | string | stored | Coding system used Values: Example: | Required |
| label | string | stored | Human-readable name of the test Example: | Required |
| shortName | string | stored | Short display name Example: | Optional |
| category | string | stored | Category of laboratory test Values: Example: | Optional |
| specimenType | string | stored | Type of specimen required Example: | Optional |
| unit | string | stored | Standard unit of measurement Example: | Optional |
| referenceRangeLow | number | stored | Standard lower reference range bound Example: | Optional |
| referenceRangeHigh | number | stored | Standard upper reference range bound Example: | Optional |
| criticalLow | number | stored | Critical low value threshold Example: | Optional |
| criticalHigh | number | stored | Critical high value threshold Example: | Optional |
| description | string | stored | Additional details about the test | Optional |
Examples
Example 1
{
"@type": "LabTest",
"code": "2345-7",
"system": "LOINC",
"label": "Glucose [Mass/volume] in Serum or Plasma",
"shortName": "Glucose",
"category": "chemistry",
"specimenType": "Blood",
"unit": "mg/dL",
"referenceRangeLow": 70,
"referenceRangeHigh": 100,
"criticalLow": 40,
"criticalHigh": 500
}Example 2
{
"@type": "LabTest",
"code": "2823-3",
"system": "LOINC",
"label": "Potassium [Moles/volume] in Serum or Plasma",
"shortName": "Potassium",
"category": "chemistry",
"specimenType": "Blood",
"unit": "mEq/L",
"referenceRangeLow": 3.5,
"referenceRangeHigh": 5,
"criticalLow": 2.5,
"criticalHigh": 6.5
}Example 3
{
"@type": "LabTest",
"code": "718-7",
"system": "LOINC",
"label": "Hemoglobin [Mass/volume] in Blood",
"shortName": "Hemoglobin",
"category": "hematology",
"specimenType": "Blood",
"unit": "g/dL",
"referenceRangeLow": 12,
"referenceRangeHigh": 17.5,
"criticalLow": 7,
"criticalHigh": 20
}