Setting up OpenMRS development environment

Posted May 20, 2008 by upulgodage
Categories: OpenMRS

Tags: ,

I have run OpenMRS in a couple of machines in Linux as well as in Windows over the past month. Today I set it up in my desktop machine which I am planning to use these days. I have Kubuntu 8.04 with MySQL server 5.0, JDK 1.6, Apache Ant 1.7 and Apache Tomcat 6.

Checked out the source from http://svn.openmrs.org/openmrs/trunk

Added Tomcat user account with the manager role: <user username=”openmrs” password=”openmrs” roles=”admin,manager,tomcat”/>

Started Tomcat server.

Logged in to MySQL server as root.

Ran the SQL scripts, 1.3.0-createdb-from-scratch-with-demo-data.sql and update-to-latest-db.mysqldiff.sql, in that order.

Created the MySQL user account openmrs:

create user openmrs@localhost identified by ‘openmrs’; set password for openmrs@localhost=PASSWORD(‘openmrs’);
grant ALL on openmrs.* to openmrs;

Created the .OpenMRS directory in the home directory and created the build and runtime properties files with the following contents.

openmrs-build.properties:
### name of generated war file
webapp.name=openmrs
webapp.display.name=OpenMRS
webapp.description=Open-Source EMR for Developing Countries

###Properties for running unit tests with tomcat###
tomcat.home=/home/upul/tomcat
tomcat.server=localhost
tomcat.port=8080
tomcat.manager.url=http://${tomcat.server}:${tomcat.port}/manager
tomcat.username=openmrs
tomcat.password=openmrs

openmrs-runtime.properties:
### Database connection properties
connection.username=openmrs
connection.password=openmrs
connection.url=jdbc:mysql://localhost:3306/openmrs?autoReconnect=true

Ran ant install in OpenMRS project directory.

That’s it. http://localhost:8080/openmrs/ (admin/test)

OpenMRS High Level Architecture

Posted April 28, 2008 by upulgodage
Categories: OpenMRS

Tags: , , , ,

OpenMRS project is an open-source electronic medical record system — a system which keeps track of patient records. Mainly the project can be divided into the following layers. They can be identified with the three-tier architecture: data, logic and presentation tiers.

  • A flexible data model which holds the medical records. OpenMRS supersedes the work of AMRS project led by Regenstrief Institute.
  • An Application Programming Interface (API) which encapsulates the data model.
  • A Web application which represents the user interface to the whole system. It accesses the data model through the API layer.

The base project can be extended using OpenMRS modules to satisfy specific requirements. These modules plug in to the base system in two ways.

  • Aspect Oriented Programming (AOP) provides access to the events of the API calls.
  • Extension points provide access to the user interface layer which is similar to the Eclipse plug in extension points.

I am in Google Summer of Code 2008

Posted April 23, 2008 by upulgodage
Categories: OpenMRS

Tags: , ,

I am happy and proud to announce that I have been accepted for a project in Google Summer of Code 2008 for OpenMRS. OpenMRS is an open source medical record system framework for developing countries led by Regenstrief Institute and Partners In Health. I am looking forward to join the OpenMRS community and contribute to the core system of the OpenMRS, and continue the development work for years to come.