Transformations Functions
Functions to manage the Invox Dictation Transformations Repository. Transformations automatically replace spoken words with alternative text (e.g. "Electrocardiograma" → "ECG").
GetTransformationsRepository
| Function | Description | Parameters | Returns |
|---|---|---|---|
| INVOX.GetTransformationsRepository() | Returns the transformations repository object. | — | Object |
const transformations = INVOX.GetTransformationsRepository();
Repository methods
The repository returned by GetTransformationsRepository() exposes get, add, remove, and replace. Create a transformation through INVOX.TransformationFactory and pass the existing transformation object when removing or replacing it.
const transformations = INVOX.GetTransformationsRepository();
const transformation = INVOX.TransformationFactory.create("Electrocardiograma", "ECG");
await transformations.add(transformation);
const allTransformations = await transformations.get();
await transformations.remove(transformation);
await transformations.replace(
transformation,
INVOX.TransformationFactory.create("Ecodoppler", "Eco Doppler"),
);
Table of Contents