Understanding the PropertyUnitData.xml file

I am trying to make sense of the PropertyUnitData.xml file, specifically the ‘Unit’ element.

My confusion is around the use of curly braces (i.e {} )

I see them in the’ UCUM’ attribute - and assume these are just standard UCUM annotations

image

I also see them in the ‘Text’ attribute and assume these should be replaced with openEHR terms.

image

But I’m a little puzzled when I see them in the ‘name’ attribute. What is their purpose there?

Is there documentation on this file somewhere - I have looked and have not found any.

Thanks

Correctly assumed.

Again correct, these are for guiding tools like Archetype Designer when the user needs to construct less common unit expressions from atomic units.

I don’t know of any real purpose here. As you can see in Archetype Designer, they’re not interpreted in any way for the user interface:


Maybe some of the original creators of Ocean’s Archetype Editor are around and can explain the original thinking?

I don’t know of any either. This file has a long history at least from Ocean’s Archetype Editor, and has been adopted as a pragmatic measure to allow simple unit construction in modelling tools to continue, even if maintaining such a file at all by no means is ideal.

1 Like

Name is also used on archetype preview in CKM, which caused me to believe that some UCUM units were wrong in the past. I’m not seeing any benefit of having an additional pseudo-UCUM syntax, as it will cause confusion in the long run

2 Likes