Install GNU Health on openSUSE Leap 42.2

Today, i'll post about installing GNUHealth on openSUSE Leap 42.2. This topic was presented by me when openSUSE Leap 42.2 release party @Mozilla Community Space, Jakarta, Indonesia

GNU Health is a Free/Libre project for health practitioners, health
institutions and governments. (health.gnu.org)
If you're Indonesian, the simple way to tell about GNU Health is that its a SIM RS (Sistem Informasi Manajemen Rumah Sakit).
GNU Health covers Electronic Medical Records (EMR), Hospital Management and Health Information System (HIS).







GNU Health is run on top of Tryton App and PostgreSQL Database.

The core of Tryton (also called Tryton kernel) provides all the necessary functionalities for a complete application framework: data persistence, extensive modularity, users management (authentication, fine grained control for data access, handling of concurrent access of resources), workflow and report engines, web services and internationalisation. Thus constituting a complete application platform which can be used for any relevant purpose. (http://www.tryton.org/)

PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness. It runs on all major operating systems, including Linux, UNIX (AIX, BSD, HP-UX, SGI IRIX, Mac OS X, Solaris, Tru64), and Windows. It is fully ACID compliant, has full support for foreign keys, joins, views, triggers, and stored procedures (in multiple languages). It includes most SQL:2008 data types, including INTEGER, NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and TIMESTAMP. It also supports storage of binary large objects, including pictures, sounds, or video. It has native programming interfaces for C/C++, Java, .Net, Perl, Python, Ruby, Tcl, ODBC, among others, and exceptional documentation. (https://www.postgresql.org/about/)

In openSUSE Leap 42.2, GNU Health officially included in openSUSE Leap 42.2 's repo. It will make this installation easier. We dont need any compiling process :))

Okay, lets we do the steps :
  1. Install GNU Health with command :
    # zypper install gnuhealth
    That command will install GNUhealth, tryton server, postgreSQL and other dependencies
  2. Start postgreSQL to create any directory that needed :
    # systemctl start postgresql
  3. Login as user postgres
    # su - postgres
  4. Edit login auth di PostgreSQL
    $ vim /var/lib/pgsql/pg_hba.conf

    edit text with : local    all    all    trust 
  5. Exit from user postgreSQL and restart PostgreSQL
    # systemctl restart postgresql
  6. Login as user postgres again
    # su - postgres 
  7. Create user on postgresql to handle
    $ psql -c "CREATE USER tryton WITH CREATEDB;" Create database for tryton $ psql -c "create database gnuhealth --encoding='UTF8' --owner=tryton;"
  8. Initialize database with tryton server
    # su - tryton -s /bin/bash $ trytond -c /etc/tryton/trytond.conf -u res -d gnuhealth
  9. Start Trytond service
    # systemctl start trytond.service

Done, GNU Health finally installed. Now access it with tryton client

  1. Install tryton client in client side (if you use the server as the client too, install with zypper install tryton) then open it.
  2. Enter server's IP (use localhost if you use the server as the client too), the username (default admin), and the password (password you've entered in step 8)
  3. After login, install module GNU Health Click Administration -> Modules -> Modules Search health profile -> mark for installation Click Action->Perform Pending Installation/Upgrade Start Upgrade

Done, everything should work well.
You also can download my presentation in this link

Komentar

Postingan populer dari blog ini

Monitoring Suhu dan Kelembaban Menggunakan DHT11, NodeMCU, MQTT, Node-Red dan MySQL

[Termux] Nginx sebagai Load Balancer dan Web Server

Bagian-Bagian Motherboard(Mainboard) dan Fungsinya