Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openmrs/openmrs-core
OpenMRS API and web application code
https://github.com/openmrs/openmrs-core
ehr emr health healthcare hospital java medical-records openmrs openmrs-community
Last synced: 25 days ago
JSON representation
OpenMRS API and web application code
- Host: GitHub
- URL: https://github.com/openmrs/openmrs-core
- Owner: openmrs
- License: other
- Created: 2012-07-26T04:54:29.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T13:24:16.000Z (5 months ago)
- Last Synced: 2024-05-29T00:18:11.011Z (5 months ago)
- Topics: ehr, emr, health, healthcare, hospital, java, medical-records, openmrs, openmrs-community
- Language: Java
- Homepage: http://openmrs.org
- Size: 226 MB
- Stars: 1,348
- Watchers: 149
- Forks: 3,584
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-starred - openmrs/openmrs-core - OpenMRS API and web application code (java)
README
[![Build Status](https://travis-ci.org/openmrs/openmrs-core.svg?branch=master)](https://travis-ci.org/openmrs/openmrs-core) [![Coverage Status](https://coveralls.io/repos/github/openmrs/openmrs-core/badge.svg?branch=master)](https://coveralls.io/github/openmrs/openmrs-core?branch=master) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/a51303ee46c34775a7c31c8d6016da6b)](https://www.codacy.com/app/openmrs/openmrs-core?utm_source=github.com&utm_medium=referral&utm_content=openmrs/openmrs-core&utm_campaign=Badge_Grade)
api: [![API](https://snyk.io/test/github/openmrs/openmrs-core/badge.svg?targetFile=api%2Fpom.xml)](https://snyk.io/test/github/openmrs/openmrs-core?targetFile=api%2Fpom.xml)
test: [![test](https://snyk.io/test/github/openmrs/openmrs-core/badge.svg?targetFile=test%2Fpom.xml)](https://snyk.io/test/github/openmrs/openmrs-core?targetFile=test%2Fpom.xml)
tools: [![tools](https://snyk.io/test/github/openmrs/openmrs-core/badge.svg?targetFile=tools%2Fpom.xml)](https://snyk.io/test/github/openmrs/openmrs-core?targetFile=tools%2Fpom.xml)
web: [![web](https://snyk.io/test/github/openmrs/openmrs-core/badge.svg?targetFile=web%2Fpom.xml)](https://snyk.io/test/github/openmrs/openmrs-core?targetFile=web%2Fpom.xml)
webapp: [![webapp](https://snyk.io/test/github/openmrs/openmrs-core/badge.svg?targetFile=webapp%2Fpom.xml)](https://snyk.io/test/github/openmrs/openmrs-core?targetFile=webapp%2Fpom.xml)OpenMRS is a patient-based medical record system focusing on giving providers a free customizable electronic medical record system (EMR).
The mission of OpenMRS is to improve health care delivery in resource-constrained environments by coordinating a global community that creates a robust, scalable, user-driven, open source medical record system platform.
#### Table of Contents
1. [Build](#build)
1. [Prerequisites](#prerequisites)
2. [Build Command](#build-command)
3. [Deploy](#deploy)
2. [Docker build](#docker-build)
3. [Navigating the repository](#navigating-the-repository)
4. [Software Development Kit](#software-development-kit)
5. [Extending OpenMRS with Modules](#extending-openmrs-with-modules)
6. [Documentation](#documentation)
1. [Developer guides](#developer-guides)
2. [Wiki](#wiki)
3. [Website](#website)
7. [Contributing](#contributing)
1. [Code](#code)
2. [Code Reviews](#code-reviews)
3. [Translation](#translation)
8. [Issues](#issues)
9. [Community](#community)
10. [Support](#support)
11. [License](#license)## Build
### Prerequisites
#### Java
OpenMRS is a Java application which is why you need to install a Java JDK.
If you want to build the master branch you will need a Java JDK of minimum version 8.
#### Maven
Install the build tool [Maven](https://maven.apache.org/).
You need to ensure that Maven uses the Java JDK needed for the branch you want to build.
To do so execute
```bash
mvn -version
```which will tell you what version Maven is using. Refer to the [Maven docs](https://maven.apache.org/configure.html) if you need to configure Maven.
#### Git
Install the version control tool [git](https://git-scm.com/) and clone this repository with
```bash
git clone https://github.com/openmrs/openmrs-core.git
```### Build Command
After you have taken care of the [Prerequisites](#prerequisites)
Execute the following
```bash
cd openmrs-core
mvn clean package
```This will generate the OpenMRS application in `webapp/target/openmrs.war` which you will have to deploy into an application server like for example [tomcat](https://tomcat.apache.org/) or [jetty](http://www.eclipse.org/jetty/).
### Deploy
For development purposes you can simply deploy the `openmrs.war` into the application server jetty via
```bash
cd openmrs-core/webapp
mvn jetty:run
```If all goes well (check the console output) you can access the OpenMRS application at `localhost:8080/openmrs`.
Refer to [Getting Started as a Developer - Maven](https://wiki.openmrs.org/display/docs/Maven) for some more information
on useful Maven commands and build options.## Docker build
Docker builds are still work in progress. We appreciate any feedback and improvements to the process.
The only prerequisite needed is Docker.
In order to build a development version run:
```bash
docker-compose build
```
It calls `mvn install` by default. If you would like to customize mvn build arguments you can do so by running:
```bash
docker-compose build --build-arg MVN_ARGS='install -DskipTests'
```
It is also possible to use the built dev image to run jetty:
```bash
docker-compose up
```In order to build a production version run:
```bash
docker-compose -f docker-compose.yml build
```
It first builds the dev image and then an image with Tomcat and openmrs.war.
It has no dev dependencies.The production version can be run with:
```bash
docker-compose -f docker-compose.yml up
```
If you want to debug, you need to run a development version and connect your debugger to port 8000, which is exposed by default.Unfortunately, at this point any code changes require full restart and rebuild of the docker container. To speed up the process,
please use:
```bash
docker-compose build --build-arg MVN_ARGS='install -DskipTests'
docker-compose up
```
We are working towards providing support for Spring Boot auto-reload feature, which will be documented here once ready.It is also possible to deploy an image built by our CI, which is published at
https://hub.docker.com/r/openmrs/openmrs-coreYou can run any tag available with:
```bash
TAG=nightly docker-compose -f docker-compose.yml up
```
It is also possible to run a development version of an image with:
```bash
TAG=dev docker-compose up
```
All development versions contain dev suffix. The cache suffix is for use by our CI.## Navigating the repository
The project tree is set up as follows:
api/
Java and resource files for building the java api jar file.
tools/
Meta code used during compiling and testing. Does not go into any released binary (like doclets).
web/
Java and resource files that are used in the webapp/war file.
webapp/
files used in building the war file (contains JSP files on older versions).
pom.xml
The main maven file used to build and package OpenMRS.
## Software Development Kit
For rapid development of modules and the OpenMRS Platform code check out the
awesome SDK athttps://wiki.openmrs.org/display/docs/OpenMRS+SDK
## Extending OpenMRS with Modules
OpenMRS has a modular architecture that allows developers to extend the OpenMRS core functionality by creating modules that can easily be added or removed to meet the needs of a specific implementation.
Before creating your own module go to the [OpenMRS Module Repository](https://addons.openmrs.org/) and see if there is already a module for your specific use case. If so deploy and try it and if a functionality is missing join the developers of the module to add a feature.
If you haven't found what you were looking for refer to the [Module - wiki](https://wiki.openmrs.org/display/docs/Modules) to learn how you can create a new module.
## Documentation
### Developer guides
If you want to contribute please refer to these resources
* [Getting Started as a Developer](https://wiki.openmrs.org/display/docs/Get+Started+as+a+Developer)
* [How To Configure Your IDE](https://wiki.openmrs.org/display/docs/How-To+Setup+And+Use+Your+IDE)
* [How To Make a Pull Request](https://wiki.openmrs.org/display/docs/Pull+Request+Tips)### Wiki
If you are looking for detailed guides on how to install, configure, contribute and
extend OpenMRS visithttp://wiki.openmrs.org
### Website
If you are looking for more information regarding OpenMRS as an organization
checkhttp://openmrs.org
## Contributing
Contributions are very welcome, we can definitely use your help!
OpenMRS organizes the privileges of its contributors in developer stages which
are documented [here](https://wiki.openmrs.org/display/RES/OpenMRS+Developer+Stages).Read the following sections to find out where you could help.
### Code
Check out our [contributing guidelines](CONTRIBUTING.md), read through the [Developer guides](#developer-guides).
After you've read up :eyeglasses: [grab an introductory issue](https://wiki.openmrs.org/display/docs/Contribute+as+a+Developer#ContributeasaDeveloper-Workonanissue) that is `Ready For Work`.
### Code Reviews
You might not have the time to develop yourself but enough experience with
OpenMRS and/or reviewing code, your help on code reviews will be much
appreciated!Read
https://wiki.openmrs.org/display/docs/Code+Review
and get started with re-:eyes: pull requests!
### Translation
We use
https://www.transifex.com/openmrs/OpenMRS/
to manage our translations.
The `messages.properties` file in this repository is our single source of
truth. It contains key, value pairs for the English language which is the
default.Transifex fetches updates to this file every night which can then be translated
by you and me on transifex website itself. At any time we can pull new translations from transifex
back into this repository. Other languages like for ex. Spanish will then be in
the `messages_es.properties` file.If you would like to know how to help with translations see
http://openmrs.org/join-the-community/translate/
## Issues
If you want help fix existing issues or you found a bug and want to tell us please go to
https://issues.openmrs.org
## Community
[![OpenMRS Talk](https://omrs-shields.psbrandt.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uMjUyLTEuMjYgMC0xLjg0LTEuNTQtMy4xNi0zLjE0LTMuMTYtMS4zMyAwLTUuMS4zOS0xMS41OS4zOWgtLjA1Yy02LjUgMC0xMC4yNy0uMzktMTEuNTktLjM5LTEuNjEgMC0zLjE0IDEuMzEtMy4xNCAzLjE1IDAgLjUzLjEzLjkyLjI1IDEuMjYuODYgMi4zIDQuNzkgMTAuNTkgMTIuMSAxNy43eiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg%3D%3D)](https://wiki.openmrs.org)## Support
Talk to us on [OpenMRS Talk](https://talk.openmrs.org/)
## License
[MPL 2.0 w/ HD](http://openmrs.org/license/) © [OpenMRS Inc.](http://www.openmrs.org/)