项目作者: greg9702

项目描述 :
Expert system, which simulates online medical consultation
高级语言: JavaScript
项目地址: git://github.com/greg9702/Online-doctor.git
创建时间: 2020-10-31T11:25:40Z
项目社区:https://github.com/greg9702/Online-doctor

开源协议:

下载


Online-doctor

Expert system, which simulates online consultation with doctor.

System architecture

Project is split into three components:

  • prolog server
  • python server
  • client application

Client application is simple React application, which runs on localhost:3000.

Prolog server side contains knowledge database db.pl and server api.pl which creates HTTP server on localhost:8080.

Python server contains database in Network2.xdsl file, genereated using GeNIe Modeler. api.py which is entry point, creates a HTTP server on localhost:5000.

There are currently defined two API endpoints:

  • GET /api/symptons - used to get list of all possible symptoms from database
  • POST api/diagnose - used to make a diagnosis

How to run

  1. docker-compose up --build

Then open http://localhost:3000/ in your web browser.

Keep in mind that server side files are copied into container during the build, because of that after any changes applied to the prolog and python containers must be recreated. Using local interpreters for debugging is recommended.

Python server setup

This part is required to run a python server

Python server use package called pysmile, which is wrapper on engine SMILE Engine created by https://www.bayesfusion.com/. Academic users can download our software without cost for academic teaching and research.

Please register on this site and download pysmile.so and pysmile_license.py.

Next, put both of them in python-server directory.