- OpenMRS Android Client
- Description - Key Features
- Screenshots
- GSoC 2019
- Development - Code Style - Model pattern - HTTP call debugging
- Quick Start - Steps to set up:
- Demo Server - Demo Username: admin - Demo Password: Admin123
- Releasing [Collaborators only]
- Release Notes - Version 2.8.1 - Version 2.8.0 - Version 2.7.4 - Summary: - Version 2.7.3 - Summary: - Version 2.7.2 - Summary: - Version 2.7.1 - Summary: - Version 2.7.0 - Summary: - Version 2.6.2 - Summary: - Version 2.6.1 - Summary: - Version 2.6.0 - Summary: - Version 2.5 - Summary: - Version 2.4 - Summary:
- Objectives - Goals:
- User Manual
- License
- Resources
The purpose of this project is to provide an OpenMRS 2.x client for Android devices. The app is designed to cover most of the functionality currently on the web application. The app communicates with OpenMRS instances using REST. It supports working offline (without network connection). The database on the device is encrypted and password protected to secure patient data. For more information on the client, visit https://wiki.openmrs.org/display/projects/OpenMRS+2.x+Android+Client
- Connect to OpenMRS server and sync all data
- Register and Edit patients
- Record Visits and Encounters
- View patient data (Details, Diagnoses, Visits, and Vitals)
- Offline access
This project was also selected for Google Summer of Code 2019. More details can be found on the Project Wiki Page.
It was been selected as a candidate for Google Summer of Code 2017. Please visit the Project Wiki Page for more details.
The project was also a part of GSoC 2016, the details of which can be seen in the GSoC_2016.md file.
We use JIRA to track issues and monitor project development. Refer to this link to view all issues and project summary: Android Client JIRA. To get started contributing, try working on introductory issues in JIRA and check out OpenMRS Pull Request Tips. Also, before creating a pull request, please run code review tools (Lint) and all tests.
The coding conventions used by OpenMRS are outlined here. These can be applied to Android Studio by following the steps given below.
- Install Eclipse Code Formatter plugin in Android studio
I. Go to
Settings
>Preferences
>Plugins
II. Select Marketplace and searh for the plugin by name. Then install it - Copy the required XML
- Go to
Settings
>Eclipse Code Formatter
and import the XML created in previous step - Now go to
Editor
>Code Style
in the same window - Select
Java
in the menu on left and update values inImports
as shown in below picture - Now select
XML
in the menu on left and update values inTabs and Indents
tab as shown in below picture
Please follow the below instructions while contributing:
- When project is opened with Android Studio, go to
File
>Settings
>Editor
>Code Style
- Select Project from the Scheme dropdown
- Make sure that hard wrap is set to 125 for Java and XML language settings.
We are following Google's MVP sample for this application's development.
In order to debug HTTP calls, we have integrated Android Snooper (a GUI based open source library) to track network calls. To use Android snooper, all you have to do is shake your device and snooper will present list of network calls made by OpenMRS app.
As of February 2016, this project has been migrated to gradle to work successfully with Android Studio.
- Fork the repository and clone your fork.
- From the Android Studio menu select
File
>New
>Import Project
. Alternatively, from theWelcome screen
, selectImport project
. - Navigate to the folder where you have cloned this repo and select the
build.gradle
file inside. SelectImport
. - Done! Wait for dependencies to load and download from Maven, then you're ready to go!
- Make sure that you have the latest SDK and build tools downloaded, as we always build against the latest release.
Note:
- If you are working behind a proxy, check this to get things working.
- To start development on a local server, type http://10.0.2.2:8080/openmrs (for Android Studio AVD) or http://10.0.3.2:8080/openmrs (for Genymotion) as URL.
The demo test server dedicated to the client is (https://demo.openmrs.org/openmrs/).
We follow the sprint model for development. Read more about it here: OpenMRS Sprints.
To release the application, make sure to do these steps in order:
- Update the version variable in build.gradle prior to the release.
- Update the Release notes section.
- Update the release notes text file to publish in the Play store. Ideally change the wording so that normal end users understand.
- Now commit with the title
Release <version number here>
to the master branch. - Tag the commit, using the version as the tag name. Make sure CI is green!
- Go to the releases page and click the Draft a new release button. It will create a new version tag in the repository and build the app. The tag name will be used as the version number for this. Be sure to bump unfinished issues to the next due version.
- Go to JIRA's releases page, click on the three-dots on the right, and hit Release.
- [Optional] Post a new Talk thread and describe what is changed or improved in the release.
- Fix window leakage error when viewing patient details
- Fix various performance issues
- Integrate leak canary for debug builds
- Add a splash screen
- Add intro slides for first time users
- Set a code style
- Fix broken unit tests
- Add Dark mode to the app
- Provider management: admins can now find, add, edit and delete providers
- Refactor Repository names.
- Fix details not showing when searching patients
- Make UI more consistent and follow more of the material design specs
- Implement Initial Provider Management
- Remove redundant type cast
- Add Floating Action Button in patient's details tab
- Remove Apache HTTP API Client library
- Patient now extends Person
- Make Search primary function for Find Patients
- Revamp Settings Page (new material design!)
- Integrated android snooper for debugging purpose
- Added Kotlin dependency to app level build.gradle file
- Added release folder to gitignore
- Initialized SQLCipher, made app 64-bit compliant
- Changed Gradle to latest version
- Fixed Play Publisher not publishing to Play store
- Fixed bug on showing/hiding the password during login
- Visit Notes can now correctly show details
- Use Codecov as the code coverage tool
- Add privacy policy link to Settings page
- Re-developed OpenMRSLogger - faster loading times
- Most buttons now follow the material design guideline
- User is now taken back to the completed form on clicking cancel during registration
- Replace country selection with a country picker
- Setup Android Room and create entities
- Add Contextual Action Bar in Synced Patients to delete multiple patients at once
- Implement RxJava in DAOs and migration to AndroidX
- Pick patient photo when registering
- Login form improved and doesn't require login locations when no locations are configured
- Add data validation when registering patients
- Encrypted the database with BCrypt, derived from username and password
- Show toasts when toggling sync button and fixed crash when updating non-synced patient
- Saving user input when device is rotated, or when app instance is lost
- Added a Privacy Policy
- Renewed GitHub API Key
- Set a Custom Path to look for the Release APK
- Add patient picture
- Bug Fixes
- Handle camera and storage permissions manually
- Bug Fixes
- Fixed patient selection when changing orientation
- More user-friendly register form
- Added unit tests
- Filter patients by given/middle/family names at the same time
- Get data from DB in background task
- Lint check to GitHub Pull Requests
- Log in offline
- Coded fields in forms
- Edit forms
- Edit patients
- Lots of bug fixes
- Added merging patients registered offline
- Find Patient storyboard refactoring
- Fixed bugs
- Forgot Password
- Provider Relationship Module
- UI Improvements
- Analytics
Check this link for the manual: Version 2.x
This project is licensed under the OpenMRS Public License, see the copyright file for details.