The UCUM-LHC Validator and Converter
UCUM Unit Conversions
=
decimal digits.
Molecular weight of the substance being converted:
advanced options
- UCUM codes are case-sensitive.
- You can enter other commensurate units that are not on the UCUM Code lists.
- syntax rules
Disclaimer: Conversion results are for demonstration purposes only. Before relying on the unit conversions produced by this tool it is your obligation to perform your own tests to verify that the results are sufficiently accurate for your purposes.
UCUM Unit Expression Validation
Validate unit expressions one at a time
advanced options
syntax rules
Validate all unit expressions in a CSV file
We can validate unit expressions in a comma separated values file on your system.
- Use the browse button below to select the file.
- Your file must meet the following requirements:
- a comma is used to separate values;
- the first row must be column headers;
- if the value in the cell contains commas, double quotes
or newlines characters, you will need to enclose the value in double
quotes and where you want to use double quotes, repeat them twice.
(Example: A cell value ofSay "Hi"
would become"Say ""Hi"""
.)
- You will then be asked for the name of the column that contains the expressions to be validated.
- A copy of your file will be created that includes three additional columns at the end, confirming what expression was validated, the validation results, and any relevant notes.
- You will be asked where you want the file saved. You may change the name of the output file at that time.
- Note that this will only validate unit expressions. Although prefixes used with a unit code, e.g., "kL" (kiloliter), are recognized as prefixes ("k" for kilo) modifying a unit code ("L" for liter), a prefix submitted by itself, e.g., "E" (exa) will result in an "invalid unit code" return.
About the UCUM-LHC Library
- Here is a description of the UCUM-LHC Software Library.
- The code is available from the GitHub code repository.
- The UCUM-LHC code uses unit definitions from the Unified Code for Units Of Measure ucum-essence.xml file, version 2.1, revision 442, dated 2017-11-21 19:04:52 -0500 (Tue, 21 Nov 2017), with minor content changes.
- The ucum-essence.xml file has also been extended with commonly used combinations of UCUM units found in LOINC, and LOINC properties have been added to UCUM records.