Skip to content

A custom made medical rule builder which allows for defining and executing rules for diseases detected in a patient based on clinical data

Notifications You must be signed in to change notification settings

jugu/medical-rule-builder

Repository files navigation

medical-rule-builder

Demo available at https://jugu.github.io/medical-rule-builder/

To run the code locally

  1. Install Node (https://nodejs.org/en/)
  2. Run the command: node ruleserver.js
  3. Open the application in browser at: http://localhost:3000/medical-rule-builder/index.html (port may vary)

(The only libraries/plugins used are JQuery and select2) This is an online rule builder tool. Currently customized for dynamically creating/editing rules for illnesses/diseases. This can be used to create any kind of rule definitions and/or for building queries.

The interpreter is inspired by Douglas Crockford's Top Down Operator Precedence parser http://javascript.crockford.com/tdop/tdop.html


Features

  • Build rules with AND and OR associations
  • Build rules of the type Any 2/Any 3/.../Any k , where only a particular number of conditions may be true
  • Build rules using previously defined subconditions
  • Build rules using previously defined rules
  • Test the rules
  • Export the rules with the interpreter text in JSON format

Also in the pipeline is an easy way to import your own set of query parameters, then build rules on top of them, and finally execute the rules based on parameter values to view the results.

About

A custom made medical rule builder which allows for defining and executing rules for diseases detected in a patient based on clinical data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published