Hi There,
I’m integrating my diabetes systems into HA, and noticed that International Unit (IU), Millimoles Per Litre (mmol/L) and Milligrams Per Decilitre (mg/dL) as a units of measure are missing.
IU is a unit of measure for certain types of supplements or drugs like insulin - Converting Units Of Insulin To Milligrams And Milliliters | HelloPharmacist.
Millimoles Per Litre (mmol/L) is the measure used to understand a blood glucose reading values used in the EU and AU. This is also used for other pathology based results like cholesterol levels etc so may benefit others trying to integrate health systems. - Millimoles Per Liter(mmol/L) - Concentration of Mass Conversion - Unit Converter
Milligrams Per Decilitre (mg/dL) is the measure used to understand a blood glucose reading values used in primarily in the USA . This is also used for other pathology based results like cholesterol levels etc. - Milligrams Per Deciliter(mg/dL) - Concentration of Mass Conversion - Unit Converter
My understanding is that these units of measure are defined in this file - core/homeassistant/const.py at d7ac4bd65379e11461c7ce0893d3533d8d8b8cbf · home-assistant/core · GitHub
However I’m unsure if it’s as simple as adding this:
# Medical units
INTERNATIONAL_UNIT = "unit" #unit is the measure generally used for insulin instead of IU even though IU is the correct way to represent it.
MILLIMOLES_PER_LITRE = "mmol/L"
MILLIGRAMS_PER_DECILITRE = "mg/dL"