@elsa-health/model-runtime
v0.1.27
Published
<svg xmlns="http://www.w3.org/2000/svg" style="height: 100px; width: 100px" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.871 4A17.926 17.926 0 003 12c0 2.874.673 5.59
Downloads
12
Readme
Elsa Model Interpreter (WIP)
A simple library to evaulate Elsa Open Health Models for use in any environment.
Badges
Installation
yarn add @elsa-health/model-runtime
Usage/Examples
import {
createPatient,
interpret,
formatPatient,
} from '@elsa-health/model-runtime';
const symptoms = [
{
name: 'fever',
locations: [],
duration: 3,
onset: 'sudden',
nature: 'high-grade',
periodicity: 'intermittent',
aggravators: ['bright-lights', 'crying'],
relievers: ['paracetamol'],
},
];
const signs = [];
// Define your patient
const patient = createPatient('male', 22, symptoms, signs);
// Run the assessment
const isStochastic = false; // set to true if you want to allow randomness in the results - good for error margins
const result = interpret(isStochastic)(diseaseModel)(
formatPatient(formatPatient)
);
console.log('Here is the result: ', result);
Deployment
// TODO
Roadmap
- [x] 80% Test coverage
- [ ] Support for more random variables in symptom natures
- [ ] Support Weibul Variables
- [ ] Support Changing Variables - size, color, elevatedness, etc
- [x] Optional Support for uncertainity in the results through sampling of the random variables.
- [ ] Support patient assessment results that show exactly what symptom features are not matching or are matching with different degees. (path towards explainability??)
- [ ] Support weights for each of the symptom features
- [x] Support for age differences in model definitions
- [x] Support for sex differences in model definitions
FAQ
Where do I get the disease models to run?
The disease models can be found at https://open.elsa.health