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 CodeBiomarkerPreferred Unit
1742-6ALT (Alanine aminotransferase)U/L
17861-6Calciummg/dL
2885-2Proteing/dL
8867-4Pulse Rate{beats}/min
13967-5SHBG (Sex Hormone-Binding Globulin)nmol/L
3016-3Thyrotropinm[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

BiomarkerMolar mass (g/mol)BasisCommon SI factorSource
Total Cholesterol386.65Cholesterol1 mmol/L = 38.67 mg/dLPubChem CID 5997
HDL Cholesterol386.65Cholesterol carried in HDL1 mmol/L = 38.67 mg/dLPubChem CID 5997
LDL Cholesterol386.65Cholesterol carried in LDL1 mmol/L = 38.67 mg/dLPubChem CID 5997
Triglycerides885.7Clinical convention (≈ triolein)1 mmol/L = 88.57 mg/dLDOI 10.7326/0003-4819-106-1-114
Glucose180.16Glucose1 mmol/L = 18.02 mg/dLPubChem CID 5793
Creatinine113.12Creatinine88.4 umol/L = 1 mg/dLPubChem CID 588
Urate168.11Uric acid59.48 umol/L = 1 mg/dLPubChem CID 1175
Urea nitrogen (BUN)28.014Nitrogen (N₂), not urea (60.06)1 mmol/L = 2.80 mg/dLCIAAW atomic weight
Bilirubin, total584.66Bilirubin17.1 umol/L = 1 mg/dLPubChem CID 5280352
Calcium40.078Calcium (atomic weight)1 mmol/L = 4.01 mg/dLCIAAW atomic weight
Testosterone288.42Testosterone1 nmol/L = 28.84 ng/dLPubChem CID 6013
Vitamin D (25-OH)400.6425-hydroxyvitamin D3, applied to total 25-OH D by convention1 nmol/L = 0.401 ng/mLPubChem CID 5283731
IGF-17649Mature IGF-1 chain (residues 49–118)1 nmol/L = 7.65 ng/mLUniProt P05019
Hemoglobin16114.5Hemoglobin monomer convention1 mmol/L = 1.611 g/dLDOI 10.1136/jcp.49.4.271
MCH16114.5Hemoglobin monomer convention1 fmol = 16.11 pgDOI 10.1136/jcp.49.4.271
MCHC16114.5Hemoglobin monomer convention1 mmol/L = 1.611 g/dLDOI 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/L is the same number as urea nitrogen in mmol/L and can be submitted as-is. Do not submit urea in mg/dL as 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/L and mg/dL cannot be converted with a fixed factor. Lp(a) (43583-4) must be submitted in nmol/L.
  • SHBG: variable glycosylation means it has no single molar mass.
  • Calcium in mEq/L: equivalent-based units are not supported. Submit calcium in mg/dL or mmol/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-UCUMValid 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 SourceReported UnitSubmit As
QuestU/LU/L
LabcorpIU/LU/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.



Did this page help you?