FHIR Chat · UCUM · implementers

Stream: implementers

Topic: UCUM


view this post on Zulip Howard Strasberg (Jul 27 2021 at 22:50):

The HL7 UCUM value set at https://www.hl7.org/fhir/valueset-ucum-units.html lists only 1000 codes on that page. Where can the entire value set be found? The page references unitsofmeasure.org, which redirects to ucum.org, but even on a page like https://ucum.org/ucum.html, I cannot find a full list of units that is analogous to what is in the HL7 value set. For example, the HL7 value set includes {Capsule}, but this item cannot be found at https://ucum.org/ucum.html.

view this post on Zulip Lloyd McKenzie (Jul 27 2021 at 23:12):

The list of UCUM codes is infinite. That's because cm^2, cm^3, cm^4, cm^28759917, etc. are all valid UCUM codes. (There are other combination approaches that are also essentially infinite.) A terminology server that understands UCUM can parse a code and evaluate whether it's valid and determine its relationship to other codes. But no-one can enumerate all the possible codes. Terminology services download the UCUM 'part' codes from the source of truth and then implement the algorithm.

view this post on Zulip Lloyd McKenzie (Jul 27 2021 at 23:13):

Note that this limitation is true of most post-coordinating code systems. Post-coordinated SNOMED is also essentially infinite.

view this post on Zulip Lloyd McKenzie (Jul 27 2021 at 23:13):

(And non-post-coordinated SNOMED is exceptionally large - and isn't even all published in a single place)

view this post on Zulip Howard Strasberg (Jul 28 2021 at 02:00):

Thanks. I understand that the list is infinite, but among the 1000 members listed in the HL7 value set, there are items such as {Capsule}, which as far as I can tell are not enumerated in UCUM. Where did HL7 get these items, if not from UCUM?

view this post on Zulip Lloyd McKenzie (Jul 28 2021 at 02:20):

That's a question for @Grahame Grieve, but he's on extended vacation at the moment, so may take a while to get the answer. (@Rob Hausam might also know?)

view this post on Zulip Rob Hausam (Jul 28 2021 at 02:58):

The FHIR build terminology server (tx.fhir.org) uses the ucum-essence.xml file in its UCUM implementation, but that file doesn't contain any term such as "Capsule" (or similar). So I don't actually know what the source of this specific expansion content set of the UCUM value set is.

view this post on Zulip Daniel Venton (Jul 28 2021 at 12:13):

{Capsule} is a UCUM annotation. It's for all intents a comment. In UCUM you put words inside {}, no spaces, and UCUM ignores them. They are not part of the measurement, they are hints to the user.

Quote from the UCUM page "§6 curly braces ■1 The full range of characters 33–126 can be used within a pair of curly braces (‘{’ and ‘}’). The material enclosed in curly braces is called annotation. ■2 Annotations do not contribute to the semantics of the unit but are meaningless by definition. Therefore, any fully conformant parser must discard all annotations. Parsers of limited conformace should not value annotations in comparison of units. ■3 Annotations do, however, signify the end of a unit symbol. ■4 An annotation without a leading symbol implies the default unit 1 (the unity)."

view this post on Zulip Daniel Venton (Jul 28 2021 at 12:18):

The real valueset of UCUM is infinite, but some validators don't parse the value, they compare the value against a list of "most common" UOM. A quick and dirty validation method. But since we are in the medical domain and most of the actual values are used repeatedly, it works most of the time. Meds are measured in mg, people are measured in kg rarely is something measured in dg.

view this post on Zulip John Silva (Jul 30 2021 at 11:51):

FYI: if you want to learn more about the history of UCUM and the thought process behind it, you might find this JAMIA article very informative: https://academic.oup.com/jamia/article/6/2/151/770093

The authors of this article are some of the 'fathers of UCUM' (and healthcare informatics), e.g. Gunther Schadow, MD, Clement J. McDonald MD, etc.

view this post on Zulip Grahame Grieve (Aug 17 2021 at 04:49):

it just lists the first 1000 codes it knows about, and says that it's just some of them


Last updated: Apr 12 2022 at 19:14 UTC