Basic UCUM services

Properties


Methods

HL7Connect.Ucum.QDecimal CreateDecimalFromString(string value);
   Create a Decimal from a string representation. You can provide any valid number, either in decimal or scientific form. There is no limit to the value or number of significant figures

HL7Connect.Ucum.QDecimal CreateDecimalFromInteger(long value);
   Create a Decimal from an integer. You can provide any valid number, either in decimal or scientific form. There is no limit to the value or number of significant figures

HL7Connect.Ucum.QDecimal CreateDecimalFromReal(double value);
   Create a Decimal from a string representation. You can provide any valid number, either in decimal or scientific form. There is no limit to the value or number of significant figures

HL7Connect.Ucum.QDecimal CreateDecimalFromCOMDecimal(decimal value);
   Create a Decimal from a string representation. You can provide any valid number, either in decimal or scientific form. There is no limit to the value or number of significant figures

string Version();
   The current version of UCUM that is in use.

string Properties();
   return a list of the defined types of units in this UCUM version (csv strings)

string Analyse(string code);
   given a unit, return a formal description of what the units stand for using full names

string Validate(string code);
   validate whether a unit code is a valid UCUM unit. returns a blank string/null if valid, or an error message describing the problem

string ValidateInProperty(string code, string propertyType);
   validate whether a units are valid UCUM units and additionally require that the units from a particular property. blank/null if valid, or an error message describing the problem

string ValidateCanonicalUnits(string code, string canonical);
   validate whether a units are valid UCUM units and additionally require that the units match a particular base canonical unit. blank/null if valid, or an error message describing the problem. You can get the canonical units using CanonicalUnits

string CanonicalUnits(string code);
   given a set of units, return their canonical form. The canonical unit is a private construct that is used in ValidateCanonicalUnits, it might change in future releases.

string DefinedForms(string code);
   For a given canonical unit, return all the defined units that have the same canonical unit. Note that the list of possible units is usually infinite - this returns the any base units defined in UCUM. (csv strings)

HL7Connect.Ucum.QDecimal Convert(HL7Connect.Ucum.QDecimal value, string sourceUnit, string destUnit);
   given a value and source unit, return the value in the given dest unit. An exception is thrown if the conversion is not possible


© Kestral Computing P/L 2000 - 2003. HL7Connect v2.00-063 generated on 30-Nov 2015.
Keywords: Manager, Version, CreateDecimalFromCOMDecimal, CreateDecimalFromInteger, CreateDecimalFromReal, CreateDecimalFromString, Analyse, CanonicalUnits, Convert, DefinedForms, Properties, Validate, ValidateCanonicalUnits, ValidateInProperty, HL7Connect.Ucum.Manager