Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 2.35 KB

File metadata and controls

27 lines (19 loc) · 2.35 KB

Ucum-java

OpenSSF Scorecard CodeQL OWASP Security Scans Trivy Security Scans

CI Status (master) Current Release Latest SNAPSHOT
Build Status Badge-MavenCentralReleases Badge-SonatypeSnapshots

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);