Skip to content

This repository is an OpenRefine extension that adds some of the functionality provided by the UCUM-Java library as GREL functions.

License

Notifications You must be signed in to change notification settings

MaastrichtU-IDS/ucum-fhir-openrefine-extension

Repository files navigation

UCUM-FHIR OpenRefine GREL functions

This repository is an OpenRefine extension that adds some of the functionality provided by the UCUM-Java library as GREL functions.

Added GREL functions

ucumConvert(value: string, from: string, to: string)

Converts a value from one unit to another.

Returns the converted value as a string.

ucumConvert("1.0", "mol/L", "mmol/L")

ucumSearch(concept: prefix|base|unit|null, search: string, isRegex: true|false(string))

Searches for a UCUM concept.

Returns most relevant UCUM concept as a string. If no concept is found, returns null.

ucumSearch("unit", "mol", "false")

ucumValidate(unit: string)

Validates a UCUM unit.

Returns true if the unit is valid, false otherwise.

ucumValidate("mol/L")

How to install

  1. Download the latest release from the releases page.
  2. Drop the folder inside the zip file into the extensions folder of your OpenRefine installation. See this page
  3. Restart/Start OpenRefine.

About

This repository is an OpenRefine extension that adds some of the functionality provided by the UCUM-Java library as GREL functions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published