| Package | Description |
|---|---|
| org.hl7.fhir.utilities.ucum | |
| org.hl7.fhir.utilities.ucum.tests |
| Modifier and Type | Method and Description |
|---|---|
String |
UcumEssenceService.analyse(String unit)
given a unit, return a formal description of what the units stand for using
full names
|
String |
UcumService.analyse(String unit)
given a unit, return a formal description of what the units stand for using
full names
|
int |
Decimal.asInteger() |
void |
Lexer.consume() |
Decimal |
UcumEssenceService.convert(Decimal value,
String sourceUnit,
String destUnit) |
Decimal |
UcumService.convert(Decimal 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
|
Canonical |
Converter.convert(Term term) |
Decimal |
Decimal.divide(Decimal other) |
void |
Canonical.divideValue(Decimal divisor) |
void |
Canonical.divideValue(int divisor) |
Decimal |
Decimal.divInt(Decimal other) |
void |
Lexer.error(String errMsg) |
Pair |
UcumEssenceService.getCanonicalForm(Pair value) |
Pair |
UcumService.getCanonicalForm(Pair value)
given a value/unit pair, return the canonical form as a value/unit pair
1 mm -> 1e-3 m
|
String |
UcumEssenceService.getCanonicalUnits(String unit) |
String |
UcumService.getCanonicalUnits(String unit)
given a set of units, return their canonical form
|
List<DefinedUnit> |
UcumEssenceService.getDefinedForms(String code) |
List<DefinedUnit> |
UcumService.getDefinedForms(String code)
for a given canonical unit, return all the defined units that have the
same canonical unit.
|
boolean |
UcumEssenceService.isComparable(String units1,
String units2) |
boolean |
UcumService.isComparable(String units1,
String units2)
given two pairs of units, return true if they sahre the same canonical base
|
Decimal |
Decimal.modulo(Decimal other) |
Pair |
UcumEssenceService.multiply(Pair o1,
Pair o2) |
Pair |
UcumService.multiply(Pair o1,
Pair o2)
multiply two value/units pairs together and return the result in canonical units
Note: since the units returned are canonical,
|
UcumModel |
DefinitionParser.parse(InputStream stream) |
UcumModel |
DefinitionParser.parse(String filename) |
Term |
ExpressionParser.parse(String code) |
| Constructor and Description |
|---|
Decimal(String value) |
Decimal(String value,
int precision)
There are a few circumstances where a simple value is known to be correct to a high
precision.
|
Lexer(String source) |
UcumEssenceService(InputStream stream)
Create an instance of Ucum services.
|
UcumEssenceService(String filename)
Create an instance of Ucum services.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
UcumTester.main(String[] args) |
Copyright © 2014–2019 University Health Network. All rights reserved.