Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fhir/ucum-java

FHIR Java library providing UCUM Services
https://github.com/fhir/ucum-java

Last synced: 6 days ago
JSON representation

FHIR Java library providing UCUM Services

Awesome Lists containing this project

README

        

# Ucum-java

[![Build Status](https://dev.azure.com/fhir-pipelines/ucum-java/_apis/build/status%2FMaster%20Branch%20Pipeline?branchName=master)](https://dev.azure.com/fhir-pipelines/ucum-java/_build/latest?definitionId=51&branchName=master)

FHIR Java library providing UCUM Services

The library provides a set of services around UCUM:

- validate a UCUM unit (and also against a particular base unit)
- decide whether one unit can be converted/compared to another
- translate a quantity from one unit to another
- prepare a human readable display of a unit
- multiply 2 quantities together

To use the library, download ucum-essence from http://unitsofmeasure.org, and then create a UCUMEssenceService:

UcumService ucumSvc = new UcumEssenceService(definitionFile);