"The Unified Code for Units of Measure (UCUM) is a code system intended to include all units of measures being contemporarily used in international science, engineering, and business. The purpose is to facilitate unambiguous electronic communication of quantities together with their units. The focus is on electronic communication, as opposed to communication between humans. A typical application of The Unified Code for Units of Measure are electronic data interchange (EDI) protocols, but there is nothing that prevents it from being used in other types of machine communication."
The National Library of Medicine provides several resources for working with UCUM:
- Online validation & conversion of UCUM units. Users can enter UCUM expressions on the page and validate them or convert them to other expressions.
- Batch validation of UCUM units. Users can submit a CSV (a spreadsheet format) file with a column of UCUM unit expressions, and the validator will return another CSV file with the addition of a column that reports on the validity of each unit expression.
- Examples of commonly used UCUM codes. This document is based on real-world usage of UCUM in data from Intermountain Healthcare.
- Validation and Conversion: A web service for validating and convertng UCUM units, and also for obtaining base unit information.
- Autocompletion and searching: A web service for searching the UCUM unit data. Includes synonomy.
- ucum-lhc: A library providing APIs for validating and converting UCUM units as a downloadable package. Includes a suggestion feature for incorrectly typed units.