Dockerized OSCAR EMR for developers

Docker is the world’s leading software container platform, used mostly for DevOps. Docker is also useful for developers to setup a development environment in few easy steps.

 

OSCAR EMR and OpenMRS EHR

Image credit USDA @ Flikr (Image altered and text added)

OSCAR EMR (1) is an open-source Electronic Medical Record (EMR) for the Canadian family physicians. The OSCAR EMR team has recently moved its repository from Gerrit to bitbucket making it readily accessible to everyone. The official OSCAR repository is now available here: https://bitbucket.org/oscaremr/

OSCAR is a spring java application deployed in a tomcat container with MySQL database backend. I have created a simple docker-compose script to set up Oscar for developers. The script checks out the master branch from OSCAR repo, compile with maven, create Docker containers and deploy them. This is for OSCAR developers. If you want just to use OSCAR try this.

Prerequisites

  • GIT
  • Maven
  • Docker
  • Docker-compose
  • USE THE LATEST DATABASE DUMP. You may have to add all update SQL too.

How to Use this script

  • Clone this repo:  

    oscar-docker

  • Add database dump (Oscar15ON.sql) to dbdump folder.
  • ./install.sh
  • Access Tomcat at http://localhost:8091/ (oscar/oscar) and start oscar_mcmaster service.
  • Access oscar at http://localhost:8091/oscar_mcmaster/
  • You can setup your development environment such as IntelliJ to auto-deploy into the container.

Please comment below, if you find this useful.

References:

1.
Aminpour F, Sadoughi F, Ahamdi M. Utilization of open source electronic health record around the world: A systematic review. J Res Med Sci. 2014 Jan 1;19(1):57–64. [PMC]
Follow Me

Bell Eapen

Dermatologist, programmer geek,information systems Ph.D. student, OpenMRS supporter, armchair philosopher, loves Canadian wine and beer,believes in coding to save lives. [Resume]
Follow Me

One thought on “Dockerized OSCAR EMR for developers

Leave a Reply

Your email address will not be published. Required fields are marked *