Has anyone worked on adding support for UCUM(Unified Code for Units of Measure) and its APIs?

UCUM

So there is a fair amount of overlap between UCUM and LOINC. So we may also want to make it so it can interpret/map to LOINC as well later on.

So say you got something like the below
image

and let’s pretend we don’t know it’s grams. Note that this is case sensitive. G is gauss.

https://clinicaltables.nlm.nih.gov/api/ucum/v3/search?terms=g

This API will allow you to give a searchbar functionality by narrowing down the field as you type.
It returns a list of codes that start with g

To the maxList setting which is configurable but is set to 7 by default.

I think if you set it to 1 and if you’re sure it should be an exact match you should get just the one result you want.
https://clinicaltables.nlm.nih.gov/api/ucum/v3/search?terms=g&maxList=1
image