# Representing HbA1c result (mmol/mol) in AE

**URL:** https://discourse.openehr.org/t/representing-hba1c-result-mmol-mol-in-ae/15290
**Category:** Clinical (archive)
**Created:** [13 February 2014 03:30 UTC](https://discourse.openehr.org/t/representing-hba1c-result-mmol-mol-in-ae/15290 "2014-02-13T03:30:48Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Koray\_Atalag](https://discourse.openehr.org/user_avatar/discourse.openehr.org/koray_atalag/32/70_2.png) [@Koray\_Atalag](https://discourse.openehr.org/u/Koray_Atalag)
#### Post date: [13 February 2014 03:30 UTC](https://discourse.openehr.org/t/representing-hba1c-result-mmol-mol-in-ae/15290/1 "2014-02-13T03:30:48Z")

</div>

Hi,

Any idea how to choose mmol/mol for HbA1c result using DV\_QUANTITY in Archetype Editor?

It used to be a proportion (%) but now the international agreement is to use this unit which does not come as an option. Wonder if I exists in UCUM?

This is such a commonly used Lab item – I’m sure someone else must have hit the issue.

Cheers,

-koray

---

<div class="post-metadata">

### Author: ![yampeku](https://discourse.openehr.org/user_avatar/discourse.openehr.org/yampeku/32/25_2.png) [@yampeku](https://discourse.openehr.org/u/yampeku)
#### Post date: [13 February 2014 09:16 UTC](https://discourse.openehr.org/t/representing-hba1c-result-mmol-mol-in-ae/15290/2 "2014-02-13T09:16:39Z")

</div>

Hi Koray,

UCUM is extensible, you can define new units as long as you follow its syntax. In this case you are lucky, as mmol/mol (MilliMolesPerMole) is already used as UCUM unit. You can check it here:  
[http://www.hl7.de/download/documents/ucum/ucumdata.html](http://www.hl7.de/download/documents/ucum/ucumdata.html)

I think I also added all these units as valid UCUM units on LinkEHR

![Imágenes integradas 1](http://i.imgur.com/QVlOkAg.png)

Which is represented in ADL as:

C\_DV\_QUANTITY \<  
property = \<[openehr::507]\>  
list = \<  
[“1”] = \<  
units = \<“mmol/mol”\>  
magnitude = \<|0.0..200.0|\>  
precision = \<|0|\>

> 

Hope this helps 🙂

---

<div class="post-metadata">

### Author: ![Peter\_Gummer1](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/p/258eb7/32.png) [@Peter\_Gummer1](https://discourse.openehr.org/u/Peter_Gummer1)
#### Post date: [13 February 2014 12:14 UTC](https://discourse.openehr.org/t/representing-hba1c-result-mmol-mol-in-ae/15290/3 "2014-02-13T12:14:26Z")

</div>

Hi,

Any idea how to choose mmol/mol for HbA1c result using DV\_QUANTITY in Archetype Editor?

It used to be a proportion (%) but now the international agreement is to use this unit which does not come as an option. Wonder if I exists in UCUM?

This is such a commonly used Lab item – I’m sure someone else must have hit the issue.

Cheers,

-koray

---

<div class="post-metadata">

### Author: ![siljelb](https://discourse.openehr.org/user_avatar/discourse.openehr.org/siljelb/32/12_2.png) [@siljelb](https://discourse.openehr.org/u/siljelb)
#### Post date: [13 February 2014 12:28 UTC](https://discourse.openehr.org/t/representing-hba1c-result-mmol-mol-in-ae/15290/4 "2014-02-13T12:28:38Z")

</div>

Hi,

Would it be possible to do a general update of the units used in the Archetype Editor? There are some symbols (like “°”) which apparently are not UCUM compatible and aren’t recognised by the CKM. Also, some unit symbols (like “gm” for gram) aren’t compatible with correct SI symbol use (in this case should be just “g”), and some groups/units like “µmol/L” (amount/volume) or “g/L” (mass/volume) aren’t there at all.

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [13 February 2014 13:01 UTC](https://discourse.openehr.org/t/representing-hba1c-result-mmol-mol-in-ae/15290/5 "2014-02-13T13:01:17Z")

</div>

Hi,

Just to put some context to this:  
I have implemented a UCUM units validator in CKM and also discovered that some of the units in AE should be updated.  
This will be deployed with the next release of the openEHR CKM instance as well.

The units file in AE that Peter mentioned can have two entries for a unit: The one used in AE for display purposes (which could be Â°) and the corresponding expression in UCUM.  
But I see two problems:

1. The UCUM units are not set everywhere where it is required in this file.
2. Unfortunately, even if a UCUM expression exists, it doesn’t seem to be used when AE serialises the ADL (e.g. still uses Â° )

BTW: Âµmol/L is umol/L in UCUM

Cheers  
Sebastian

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [18 February 2014 17:43 UTC](https://discourse.openehr.org/t/representing-hba1c-result-mmol-mol-in-ae/15290/6 "2014-02-18T17:43:30Z")

</div>

Hi Koray / Peter,

I have created an Issue for this  
[http://www.openehr.org/issues/browse/AEPR-30](http://www.openehr.org/issues/browse/AEPR-30) and have attached an  
updated PropertyUnits file which allows for Amount (mole) / Amount  
(mole) and also changes the 'unit' for Quntified real numbers which  
have an empty unit from "" to "1", inline with UCUM and the java  
parser.

Ian

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [18 February 2014 18:52 UTC](https://discourse.openehr.org/t/representing-hba1c-result-mmol-mol-in-ae/15290/7 "2014-02-18T18:52:42Z")

</div>

Hi Sebastian,

I have looked a bit further into the AE code and I can't see the 'UCUM  
override' attribute being picked up anywhere and I can see this as  
being tricky to change and maintain.

My suggestion is that rather than trying to implement the 'UCUM  
override' that we simply edit the propertyUnits.xml 'Text' attributes  
to use official UCUM units. I think this will be much quicker to  
correct and maintain.

Ian

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [18 February 2014 19:47 UTC](https://discourse.openehr.org/t/representing-hba1c-result-mmol-mol-in-ae/15290/8 "2014-02-18T19:47:54Z")

</div>

Hi Ian,

That may be the best way, but it increases the problem of how you deal with the old units when an archetype is loaded in AE that has these units.  
Ideally, they would be automatically converted, but of course that is trickier.

Cheers  
Sebastian

---

<div class="post-metadata">

### Author: ![Koray\_Atalag](https://discourse.openehr.org/user_avatar/discourse.openehr.org/koray_atalag/32/70_2.png) [@Koray\_Atalag](https://discourse.openehr.org/u/Koray_Atalag)
#### Post date: [22 February 2014 23:45 UTC](https://discourse.openehr.org/t/representing-hba1c-result-mmol-mol-in-ae/15290/9 "2014-02-22T23:45:47Z")

</div>

Fantastic Ian - works for me now.  
Many thanks

Cheers,

-koray
