GSoC 2021 : OpenMRS Android Client Project 3.0.x

Primary mentor

Backup mentor

Juliet Wamalwa

Assigned to

Saurabh Kumar

Abstract

The goal of the Android client is to provide an alternative to access a hospital's OpenMRS instance by just using the provider's Android devices. See the full Android client guide for more info.

Considering the services offered by a hospital, an Android application can help doctors, patients, and other staff a lot with its mobility and ease of use, without them having to start the OpenMRS web app on a desktop computer. This will improve the productivity and efficiency of the hospital workflow.

This year, we will work on making the Android client more extendable and implementing the offline first architecture in the app, the Android app must be extendable and easy for the implementers to deploy and implement by encapsulating common functionalities of the app using Jitpack library, so that the android client is properly utilized and really solves some heathcare problems. 

The offline-first solution needs to be developed and extended further, where a provider cannot connect to the internet and needs to work offline temporarily. Data should be synced again when back online.

Moreover, the Android app should integrate more of the features of the refapp so that doctors and staff can expect to see the same functionalities in the web app implemented in the client (To be discussed further). An additional request is to migrate the Java source code to Android's now recommended Kotlin, to increase readability and reduce a thousand lines of code present in the GitHub repository.

Project Champions

Objectives

  1. Making the app easily extendable, i.e. Abstracting out common functionalities which almost all implementers would require into a jitpack library, for detailed information this Talk post might be useful which presents the problem which we want to solve by making the app more easily extendable for the implementers.
  2. Creating a small module ( lets say hello world module ), Using the encapsulated library depicting clearly how to use that jitapack library from scratch, for e.g. the module could be anything like fetching the list of patients or providers.  
  3. Implementing a robust offline structure for the various functionalities of the app (which covers currently only the provider module).
  4. Make the app more stable and reduce crashes checking backward compatibility issues testing on lower API devices.
  5. Integrate more components of the web app to the client (to be discussed further).

Extra Credits

  1. Additional : Continue Migrating the remaining 80% codebase to kotlin.
  2. Additional : Start converting MVP pattern to MVVM as it follows the new standard guideline brought by Google.
  3. Additional : Re-design Home screen with a better UI.

Examples

  1. A doctor does not have access to a PC, but his Android phone is available to use during office hours.
  2. No internet connectivity and a doctor needs to work offline temporarily.

Skills Needed

  1. Android 
  2. Java
  3. Kotlin
  4. Jitpack libraries
  5. MVVM Architecture

Documentation

  1. The features added or modified must be documented in the hosted at OpenMRS client user guide with the github repository here.
  2. Getting Started with openmrs-android-sdk - documentation created for openmrs-android-sdk introduction.

Detailed Project Report

Weekly Reports

Outstanding work 

  1. Integrating more modules into the client.
  2. UI overhaul (Need some work on the already opened PR here)

Final Presentation

  1. Talk post - Link
  2. Presentation Video - Link

Resources