0.1.27 • Published 2 years ago

@elsa-health/model-runtime v0.1.27

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Elsa Model Interpreter (WIP)

A simple library to evaulate Elsa Open Health Models for use in any environment.

Badges

Apache-2.0 License

Model Interpreter

Coverage Status

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

  • 80% Test coverage
  • Support for more random variables in symptom natures
    • Support Weibul Variables
    • Support Changing Variables - size, color, elevatedness, etc
  • 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
  • Support for age differences in model definitions
  • 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

License

Apache 2.0

0.1.27

2 years ago

0.1.21

2 years ago

0.1.2

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago