ucum-org / ucum

https://ucum.org
Other
50 stars 10 forks source link

Question: base-unit vs. unit elements #227

Closed timbrisc closed 1 year ago

timbrisc commented 6 years ago

Issue migrated from trac ticket # 1811

component: unit definitions | priority: minor | keywords: XML, element types

2018-04-09 15:25:20: colin.evans@nhs.net created the issue


Looking at the UCUM XML definition file (ucum-essence .xml), I was surprised to find that the 7 UCUM base units are not defined as elements of type "unit" with a class of "base", but as a separate element type "base-unit".

Is there a discussion anywhere of how this design decision was arrived at?

As base units are themselves usable units (i.e. they are not abstract), it would seem more useful to include them in the set of units, and differentiate them by class. E.g. an XPath expression to return, or count "all defined units", would currently need to include patterns for two separate element types instead of one.

timbrisc commented 3 years ago

2021-01-15 19:36:10: mitchbre@regenstrief.org changed status from new to assigned

timbrisc commented 3 years ago

2021-01-15 19:36:10: mitchbre@regenstrief.org set owner to cjmcdonald

timbrisc commented 3 years ago

2021-02-17 17:42:08: mitchbre@regenstrief.org commented


Note from Clem: Would have thourhg there is an explanation Others may know it beter

timbrisc commented 1 year ago

Accidentally imported. Closing.