Git Product home page Git Product logo

vlsm's Introduction

VLSM

Lab Information System and Sample Tracking System

VLSM is a simple, open source Sample Management System for tracking samples for HIV Viral Load, EID, Covid-19, TB, Hepatitis and others.

Pre-requisites

  • Apache 2.x (Make sure apache rewrite and headers modules are enabled)
  • MySQL 5.7.x
  • PHP 8.2.x
  • Composer

Ubuntu Setup

If you are using Ubuntu 22.04 (recommended), then you can find setup instructions here : Ubuntu Setup

How do I get started?

  • Download the Source Code and put it into your server's root folder (www or htdocs).
  • Run composer update. For e.g. you might have placed the code in /var/www/vlsm path. Then you would run composer update inside /var/www/vlsm folder.
  • Open phpMyAdmin or any MySQL client and create a blank database called vlsm
  • Import the init.sql file from sql folder into the blank database.
  • Copy the file configs/config.production.dist.php to configs/config.production.php
  • Enter Database User, Password, DB Name etc.
// config.production.php
// Database Settings
$systemConfig['database']['host']     = 'localhost';
$systemConfig['database']['username'] = 'dbuser';
$systemConfig['database']['password'] = 'dbpassword';
$systemConfig['database']['db']       = 'vlsm';
$systemConfig['database']['port']     = 3306;
$systemConfig['database']['charset']  = 'utf8mb4';
  • You can enable or disable VL,EID, Covid-19 etc. modules by changing the following variables in config.production.php. If a module is disabled, then it does not appear on the User Interface.
// config.production.php
// Enable/Disable Modules
// true => Enabled
// false => Disabled
$systemConfig['modules']['vl'] = true;
$systemConfig['modules']['eid'] = true;
$systemConfig['modules']['covid19'] = false;
$systemConfig['modules']['generic-tests'] = false;
$systemConfig['modules']['hepatitis'] = false;
$systemConfig['modules']['tb'] = false;
  • Next we will set up virtual host for this application. You can find many guides online on this topic. For example to set up on Ubuntu you can follow this guide : https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-20-04
  • Before we set up the virtual host, ensure that the apache rewrite module is enabled in your Apache webserver settings.
  • Edit your computer's hosts file to make an entry for this virtual host name.
  • Next we create a virtual host pointing to the root folder of the source code. You can see an example below (assuming the full path to VLSM is /var/www/vlsm) :
<VirtualHost *:80>
   DocumentRoot "/var/www/vlsm/public"

   ServerName vlsm.example.org

    <Directory "/var/www/vlsm/public">
        AddDefaultCharset UTF-8
        Options -Indexes -MultiViews +FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Completing Setup

  • Add the following in the crontab (or equivalent scheduler for your Operating System)

    For e.g. if using Ubuntu, in the terminal type : sudo EDITOR=gedit crontab -e

    This opens the crontab file. At the end of the crontab file, type this line :

* * * * * cd /var/www/vlsm/ && ./vendor/bin/crunz schedule:run
  • Once you have the application set up, you can visit the vlsm virtualhost URL http://vlsm.example.org/ and set up the admin user.
  • Once you log in as the admin user, add the Sample Types, Reasons for Testing, Rejection Reasons etc. for each Test under the Admin menu.
  • Continue the setup by adding users, provinces, districts, facilities etc. and complete the system configuration.

Who do I talk to?

You can reach us at support (at) deforay (dot) com

vlsm's People

Contributors

amitdugar avatar deforay-thanaseelan avatar deforayguna avatar ilahir88 avatar impalpandian avatar jeyabanum avatar prasathm24 avatar sarvanjs avatar sudarmathi5 avatar vivek-1991 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.