FHIR Chat · ucum · dotnet

Stream: dotnet

Topic: ucum


view this post on Zulip Brian Postlethwaite (Jul 23 2021 at 06:39):

@Alexander Zautke / @Martijn Harthoorn the ucum Fhir.Metrics package, does that have a method to easily work out if a provided string is a valid ucum unit, and also to produce the standard ucum unit String?
(not the internal processing string)
e.g. the metric type has the symbol value of mmol.L-1 and wanting the ToString() that makes this into mmol/L

view this post on Zulip Alexander Zautke (Jul 23 2021 at 18:53):

@Brian Postlethwaite No, unfortunately. In Firely Server we always use the internal processing string, but I like the idea of having such a method. A good starting point would be the "Reduced" method on Metrics object. It already merges axes together. That could be extended to simplify the multiplication part of the expression.

view this post on Zulip Brian Postlethwaite (Jul 23 2021 at 22:45):

Great, I might have a go at it. Wanted to be sure I wasn't missing anything.


Last updated: Apr 12 2022 at 19:14 UTC