LHNCBC / ucum-lhc

LHC implementation of UCUM validation and conversion services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UCUM_LHC allows multiple prefixes that are invalid

andrey-hssc opened this issue · comments

The UCUM LHC demo interprets mcg as

mcg (millicentigram) is a valid unit expression.

This interpretation is based on multiple prefixes m and c combined with a single base unit g. Multiple prefixes are not allowed per UCUM section 4.2:

The unit symbol to be combined with the prefix must not itself contain a prefix. Such a prefix-less unit symbol is called unit atom.

Confirmed. Thanks for the report. Interestingly, it does not accept mmcg, nor mmJ.

Fixed in version 4.1.7, but it is not yet on the demo site.

The demo site at https://ucum.nlm.nih.gov/ucum-lhc/demo.html has been updated with fix (version 4.1.7).