GSoC 2020 - OpenMRS Should Support PostgreSQL - Final Presentation

Project Title : OpenMRS Should Run on PostgreSQL


Before work started on this project, OpenMRS only offered MySQL as its compatible database system. The main aim of this project was to extend the database support to PostgreSQL as well. This majorly involves extending the PostgreSQL support to OpenMRS Platform which forms the basis of all the different api’s and services used by different OpenMRS modules. Then subsequently extend this support to different Reference Application modules and ultimately to Reference Application itself. This is going to be a major feature to be released in the next iterations of both OpenMRS Platform as well as OpenMRS Reference Application.


  • Add PostgreSQL support for OpenMRS Platform — Done
  • Add PostgreSQL support for OpenMRS Reference Application — Done
  • Create a CI build which breaks when liquibase changesets fail to run on PostgreSQL — Done



  1. TRUNK-5751:
  2. TRUNK-5752 :
  3. TRUNK-5758 :
  4. TRUNK-5794 :
  5. TRUNK-5798 :
  6. TRUNK-5800 :
  7. TRUNK-5807 :
  8. TRUNK-5823 :
  9. TRUNK-5826 :
  10. TRUNK-5831 :
  11. TRUNK-5832 :
  12. TRUNK-5843 :
  13. TRUNK-5870 :
  14. TRUNK-5887 :
  15. TRUNK-5901 :
  16. TRUNK-5917 :
  17. TRUNK-5921 :
  18. TRUNK-5927 :

HTML Form Entry Module

  1. HTML-740 :
  2. HTML-743 :
  3. HTML-744 :

Calculation Module

  1. CALC-56 :
  2. CALC-55 :

IDGen Module

  1. IDGEN-115 :
  2. IDGEN-116 :
  3. IDGEN-117 :
  4. IDGEN-118 :
  5. IDGEN-119 :
  6. IDGEN-120 :

App Framework Module

  1. AF-65 :

Provider Management Module

  1. PROV-104 :
  2. PROV-105 :
  3. PROV-106 :

Metadata Mapping Module

  1. MAP-40 :
  2. MAP-41 :

Metadata Sharing Module

  1. META-374 :

Reporting Module

  1. REPORT-866 :
  2. REPORT-867 :
  3. REPORT-869 :

Reference Metadata Module

  1. RA-1799 :

Reference Demodata Module

  1. RA-1797 :

Appointment Scheduling Module

  1. AM-216 :
  2. AM-217 :
  3. AM-218 :
  4. AM-219 :
  5. AM-220 :
  6. AM-221 :

Address Hierarchy Module

  1. ADDR-119 :
  2. ADDR-120 :

EMR Api Module

  1. EA-159 :
  2. EA-160 :
  3. EA-161 :

Weekly Blogs


Talk Threads Initiated :


Final Project Demo Apologies for demo being a bit long but there was a lot to show :slightly_smiling_face:

Future Works

Comparing with how MySQL is deeply rooted into the OpenMRS systems, what can be done is :

  • Although, I have done one round of testing on PostgreSQL for both Reference Application as well as OpenMRS Platform to ensure that all the features are working same as they work on MySQL, still much more extensive testing can be done to test the different possible scenarios.
  • Add PostgreSQL support as a part of OpenMRS SDK. This will be of great help to developers that work on OpenMRS day and night for rapid development and testing.

Thoughts on GSoC 2020

This project is my very first contribution to an open source community. The whole process, starting from community bonding period to the entire coding period, has been a huge learning experience from me. The regular scrum meets, insightful discussion with mentors, helping others in community and many such things will always remind me how work can be made interesting. And as long as you hold a will to learn, its never an end. Numerous good habits came out of GSoC for me-being punctual, admitting when you are wrong, being meticulous in your work; are some of them. I would like to thank the entire OpenMRS community for providing me with this opportunity, my mentors Daniel Kayiwa and Juliet Wamalwa for believing in me through out the process and at last Google for making this program happen even in such harsh situations.


@aman congratulations for this far and I wish you the best in your career path! I was so blessed working with you and hopefully we shall see you more often in the community. Thanks to @dkayiwa, @ibacher and @mksd who labored to make the project more clear from the beginning.

1 Like