Units
Overview
All biomarker values submitted to the API must include a unit expressed in UCUM (Unified Code for Units of Measure) format. The platform stores and returns values using the unit you provide. Some implicit normalization occurs on the response, but this is best-effort and cannot be guaranteed. Internally, units are converted to a preferred canonical unit for validation and QA processing, but this is intentionally transparent to the caller.
Preferred Units
Each biomarker has a preferred canonical unit. The preferred unit is listed in the full on the Biomarkers page. A subset is shown below for reference:
| LOINC Code | Biomarker | Preferred Unit |
|---|---|---|
1742-6 | ALT (Alanine aminotransferase) | U/L |
17861-6 | Calcium | mg/dL |
2885-2 | Protein | g/dL |
8867-4 | Pulse Rate | {beats}/min |
13967-5 | SHBG (Sex Hormone-Binding Globulin) | nmol/L |
3016-3 | Thyrotropin | m[IU]/L |
Compatible Units
You are not required to submit values in the preferred unit. Any unit that is dimensionally compatible with the preferred unit is accepted.
What "dimensionally compatible" means
Two units are dimensionally compatible if they measure the same physical quantity and can be converted to one another using a fixed conversion factor (they share the same dimension, such as mass/volume, length, or time).
For example, the preferred unit for IGF-1 is ng/mL. All of the following are dimensionally compatible and will be accepted:
ug/dL(mass/volume, same dimension)ng/dL(mass/volume, same dimension)ug/mL(mass/volume, same dimension)nmol/L(molar, converted using IGF-1's molar mass; see Molar Conversions)
The following would not be accepted:
IU/mL: biological activity units are not dimensionally interchangeable with mass/volume units without analyte-specific factors
Rule of thumb: if the conversion requires anything beyond a fixed numeric factor (such as analyte-specific activity), the unit is not compatible. The one exception is molar units for the biomarkers listed under Molar Conversions, where the platform supplies a fixed molar mass.
Molar Conversions
Some labs report biomarkers in molar units (mmol/L, umol/L, nmol/L, pmol/L) rather than mass units (mg/dL, ng/mL). Converting between the two requires the analyte's molar mass. For the biomarkers listed below, the platform uses a fixed molar mass so that both molar and mass units are accepted, whichever one is the preferred unit.
As with any other compatible unit, the conversion is internal. The response returns the value in the unit you submitted.
How the conversion works
mass concentration = molar concentration × molar mass
For example, an LDL cholesterol result of 3.1 mmol/L converts as:
3.1 mmol/L × 386.65 g/mol = 1198.6 mg/L = 119.86 mg/dL
Molar masses used
| Biomarker | Molar mass (g/mol) | Basis | Common SI factor | Source |
|---|---|---|---|---|
| Total Cholesterol | 386.65 | Cholesterol | 1 mmol/L = 38.67 mg/dL | PubChem CID 5997 |
| HDL Cholesterol | 386.65 | Cholesterol carried in HDL | 1 mmol/L = 38.67 mg/dL | PubChem CID 5997 |
| LDL Cholesterol | 386.65 | Cholesterol carried in LDL | 1 mmol/L = 38.67 mg/dL | PubChem CID 5997 |
| Triglycerides | 885.7 | Clinical convention (≈ triolein) | 1 mmol/L = 88.57 mg/dL | DOI 10.7326/0003-4819-106-1-114 |
| Glucose | 180.16 | Glucose | 1 mmol/L = 18.02 mg/dL | PubChem CID 5793 |
| Creatinine | 113.12 | Creatinine | 88.4 umol/L = 1 mg/dL | PubChem CID 588 |
| Urate | 168.11 | Uric acid | 59.48 umol/L = 1 mg/dL | PubChem CID 1175 |
| Urea nitrogen (BUN) | 28.014 | Nitrogen (N₂), not urea (60.06) | 1 mmol/L = 2.80 mg/dL | CIAAW atomic weight |
| Bilirubin, total | 584.66 | Bilirubin | 17.1 umol/L = 1 mg/dL | PubChem CID 5280352 |
| Calcium | 40.078 | Calcium (atomic weight) | 1 mmol/L = 4.01 mg/dL | CIAAW atomic weight |
| Testosterone | 288.42 | Testosterone | 1 nmol/L = 28.84 ng/dL | PubChem CID 6013 |
| Vitamin D (25-OH) | 400.64 | 25-hydroxyvitamin D3, applied to total 25-OH D by convention | 1 nmol/L = 0.401 ng/mL | PubChem CID 5283731 |
| IGF-1 | 7649 | Mature IGF-1 chain (residues 49–118) | 1 nmol/L = 7.65 ng/mL | UniProt P05019 |
| Hemoglobin | 16114.5 | Hemoglobin monomer convention | 1 mmol/L = 1.611 g/dL | DOI 10.1136/jcp.49.4.271 |
| MCH | 16114.5 | Hemoglobin monomer convention | 1 fmol = 16.11 pg | DOI 10.1136/jcp.49.4.271 |
| MCHC | 16114.5 | Hemoglobin monomer convention | 1 mmol/L = 1.611 g/dL | DOI 10.1136/jcp.49.4.271 |
Note on BUN: BUN is reported as the nitrogen content of urea, so the conversion uses the mass of two nitrogen atoms (28.014 g/mol), not the mass of urea (60.06 g/mol). Each urea molecule carries two nitrogen atoms, so a urea result in
mmol/Lis the same number as urea nitrogen inmmol/Land can be submitted as-is. Do not submit urea inmg/dLas BUN.
Biomarkers without molar conversion
Any biomarker not listed above has no molar conversion. A molar unit submitted for one of them fails as an incompatible dimension. Some are excluded on purpose:
- Lipoprotein(a): the molar mass of apo(a) varies from person to person with isoform size, so
nmol/Landmg/dLcannot be converted with a fixed factor. Lp(a) (43583-4) must be submitted innmol/L. - SHBG: variable glycosylation means it has no single molar mass.
- Calcium in
mEq/L: equivalent-based units are not supported. Submit calcium inmg/dLormmol/L.
UCUM Formatting Requirements
Submitted units must be valid UCUM expressions. A few common pitfalls:
Use UCUM annotations for non-standard quantities
Some biomarkers are measured in quantities that have no standard UCUM dimension (e.g. specific gravity, index values, cell counts). These must be expressed using UCUM annotations, which are curly-brace-delimited labels appended to the expression.
| Non-UCUM | Valid UCUM |
|---|---|
cells/uL | {cells}/uL |
Spec grav | {Spec grav} |
Index | {Index_val} |
Graceful annotation handling
The platform will attempt to apply annotations automatically if a submitted unit is not recognized as valid UCUM. This is a best-effort conversion; there is no guarantee it will succeed. If the annotation-corrected unit still does not resolve to a compatible dimension, the entry will fail. It is strongly recommended to submit correctly annotated UCUM expressions rather than relying on this fallback.
International Units (IU) vs. Enzyme Units (U)
For enzyme biomarkers such as AST, ALT, GGT, and ALP, both U/L and IU/L appear in real lab data and are equivalent in the context of enzyme activity. In UCUM, however, IU formally denotes International Units, a biological activity measure used for vitamins, hormones, and vaccines, while U is the more precisely defined term for enzyme activity. Because the platform must canonicalize one, U/L is the preferred unit for enzyme biomarkers.
Some laboratory sources, notably Labcorp, report enzyme results as IU/L. The platform will attempt to interpret IU/L as U/L for enzyme biomarkers where this equivalence is known to apply. This is a best-effort correction. Clients should normalize IU/L to U/L for enzyme biomarkers before submitting, particularly when ingesting data from sources known to use this convention.
| Lab Source | Reported Unit | Submit As |
|---|---|---|
| Quest | U/L | U/L |
| Labcorp | IU/L | U/L |
Unit Validation Failures
If a submitted unit is invalid or incompatible, the affected entry is marked as failed in the response payload. The failure is scoped to that entry only; the rest of the request is processed normally.
Failed entries will include a failure reason in the response. Common causes:
- Unit is not a valid UCUM expression and could not be resolved via annotation fallback
- Unit is dimensionally incompatible with the preferred unit for that biomarker (e.g. a molar concentration submitted for a biomarker with no fixed molar mass)
- Unit is unrecognized entirely
Note: The exact structure of the failure payload is documented in the timeseries scoring reference.
Examples
Accepted: compatible mass/volume unit
{
"code": "33863-3",
"value": 0.112,
"unit": "mg/dL"
}mg/dL is dimensionally compatible with the preferred mg/L. The platform converts internally and returns the value in mg/dL as submitted.
Accepted: preferred unit
{
"code": "29463-7",
"value": 88.0,
"unit": "kg"
}Potentially Rejected: non-UCUM unit without annotation
{
"code": "751-8",
"value": 8000,
"unit": "cells/uL"
}cells/uL is not a valid UCUM expression, but is often returned from labs like Quest or Labcorp for cell count measurements. The platform will attempt to resolve it as {cells}/uL, but this is not guaranteed. Submit {cells}/uL directly to avoid failure.
Accepted: molar unit with a fixed molar mass
{
"code": "13457-7",
"value": 3.1,
"unit": "mmol/L"
}LDL cholesterol has a fixed molar mass (386.65 g/mol), so mmol/L is converted internally to the preferred mg/dL. The response returns the value in mmol/L as submitted.
Rejected: molar unit with no fixed molar mass
{
"code": "43583-4",
"value": 45,
"unit": "mg/dL"
}Lipoprotein(a) has no fixed molar mass, so mg/dL cannot be converted to the preferred nmol/L. This entry will fail.
Updated 28 days ago

