clincalc 0.2.0

Open, auditable clinical calculators: a pure scoring engine plus the `calc` CLI in one crate. The engine is a serde-only leaf (build with default-features = false); the default `cli` feature adds the `calc` binary.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Example inputs

Ready-to-run JSON inputs for the `calc` CLI, one per file. They exist so you never have to invent your own test data: clone the repo and pipe a file straight in.

```bash
calc feverpain --input examples/feverpain.json   # from the file
cat examples/auditc.json | calc auditc --input -  # or over a pipe
```

| File | Calculator | What it shows |
|---|---|---|
| `feverpain.json` | `feverpain` | Five yes/no criteria (booleans) - a sore-throat case scoring 3 (delayed antibiotic). |
| `gad7.json` | `gad7` | A questionnaire: seven 0-3 responses summing to 11 (moderate anxiety). |
| `auditc.json` | `auditc` | An array plus an enum (`sex`) - an alcohol screen scoring 7 (positive). |
| `news2.json` | `news2` | Mixed vitals with enums - an acutely unwell patient scoring 7 (high). |

These are also the worked examples in the [Walkthrough](https://pacharanero.github.io/calc/walkthrough/). Each calculator's full input contract is `calc <name> --schema`; a fillable template is `calc <name>`.