npm.io
0.2.4 • Published yesterday

@reasonhealth/vcl

Licence
MIT OR Apache-2.0
Version
0.2.4
Deps
0
Size
721 kB
Vulns
0
Weekly
0
Stars
13

@reasonhealth/vcl

Typed TypeScript wrapper for the Reason Health VCL WebAssembly build.

import { translateExpression } from "@reasonhealth/vcl/node";

const result = translateExpression("123456", {
  defaultSystem: "http://snomed.info/sct"
});

Exports:

  • @reasonhealth/vcl/node for Node.js.
  • @reasonhealth/vcl/web for direct browser loading. Call initVcl() before invoking wrapper functions.
  • @reasonhealth/vcl/bundler for Vite, webpack, Rollup, and similar bundlers.