# @openclinical/proformajs

> PRO*forma* is a clinical decision support system (CDSS) language (see [Sutton and Fox 2003](http://www.ncbi.nlm.nih.gov/pmc/articles/PMC212780/)). This is a javascript PRO*forma* engine.

Latest version **0.27.2** (published 2026-10-06) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @openclinical/proformajs
pnpm add @openclinical/proformajs
yarn add @openclinical/proformajs
bun add @openclinical/proformajs
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.27.2 |
| Published | 2026-10-06 |
| First published | 2018-02-07 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 808.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matt South |
| Maintainers | openclinical-owner, mattsouth, srk23 |

## Links

- npm: https://www.npmjs.com/package/@openclinical/proformajs
- Repository: https://gitlab.com/openclinical/proformajs
- Homepage: https://gitlab.com/openclinical/proformajs#readme
- Issues: https://gitlab.com/openclinical/proformajs/issues
- npm.io page: https://npm.io/package/@openclinical/proformajs

## Dependencies (2)

- [moment](https://npm.io/package/moment.md) ^2.29.1
- [jse-eval](https://npm.io/package/jse-eval.md) ^1.5.2

## Recent versions

- 0.27.2 (latest) — 2026-10-06
- 0.27.1 — 2026-09-23
- 0.27.0 — 2026-08-28
- 0.26.0 — 2026-07-22
- 0.25.0 — 2026-06-04
- 0.24.0 — 2026-01-28
- 0.23.0 — 2025-08-14
- 0.22.0 — 2025-08-11
- 0.21.0 — 2025-06-19
- 0.20.3 — 2025-04-02
- 0.20.2 — 2025-03-19
- 0.20.1 — 2025-01-14
- 0.20.0 — 2024-10-03
- 0.19.0 — 2024-08-27
- 0.18.0 — 2024-05-06
- … 45 more at https://npm.io/package/@openclinical/proformajs/versions

## README

# PROformajs

PRO*forma* is a clinical decision support system (CDSS) language
(see [Sutton and Fox 2003](http://www.ncbi.nlm.nih.gov/pmc/articles/PMC212780/)).
This is a javascript PRO*forma* engine.

## Demo

A demo that allows you to try out proformajs protocols can be found at https://openclinical.gitlab.io/proformajs-demo/?_demo.

## Documentation

Documentation can be found at https://openclinical.gitlab.io/proformajs.

## Testing

This project comes with a set of unit tests in the ``test/`` directory.  To run them you'll need to have [Nodejs](https://nodejs.org) (v22+) and [Git](https://git-scm.com/) installed:

```
you@yourmachine:~$ git clone https://gitlab.com/openclinical/proformajs.git
you@yourmachine:~$ cd proformajs
you@yourmachine:~$ npm install
you@yourmachine:~$ npm test

> @openclinical/proformajs@0.7.1 test
> node node_modules/mocha/bin/mocha --exit

  When building protocols
    it should be possible to programmatically build
      ✔ a single Task
      ✔ an enquiry

...

176 passing (2s)
2 pending
```

## Packaging

proformajs is distributed as an NPM module, [@openclinical/proformajs](https://www.npmjs.com/package/@openclinical/proformajs).

Running ``npm run dist`` will generate a single file that can be included in a browser, ``proforma.browser.js`` in the dist/ folder.

## Licensing

proformajs is owned by Openclinical CIC and dual-licensed with GPLv3 and a commercial license (please email licensing@openclinical.net for more details).  Contributions to the project are very welcome, and will be recognised via the contrib file, but will need to have copyright assigned to the CIC.

---
_Source: https://npm.io/package/@openclinical/proformajs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
