Skip to main content

Conversions

The Conversion module contains functions for converting to and from units.

import { Conversions } from '@plasmahealth/plasma-fhir-client';

Usage

const kgs = 3;

// Converter for kg -> lbs
const converter = Conversions.findConverter("kg", "lbs");
if (converter) {
const lbs = converter(kgs);
}

Alternatively...

const kgs = 3;
const lbs = Conversions.kgsToLbs(kgs);

Supported Conversions

Kilograms ("kg") <-> Pounds ("lbs")