项目 / openmrs/openmrs-core

openmrs/openmrs-core

行业推荐
语言 Java标签 emrehrmedical-recordshealthhealthcarehospitalopenmrsopenmrs-communityjava数据更新 2026-11-22 06:48:52 · 仓库 2026-11-21

一段话介绍

以患者为中心的开源电子病历平台核心,面向医疗服务提供者,用来提供可定制的电子病历系统,尤其关注资源受限环境中的医疗服务。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
OpenMRS API and web application code
2,002累计星
4,499Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

电子病历与临床数据治理

适配系统:电子病历系统、临床数据中心 · 得分 2.8

围绕临床数据结构化与互操作标准实现,可作为院内数据集成与病历质控的中间件。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

特点或设计要点
本仓库是 OpenMRS 核心应用。构建主分支至少需要 Java 8 和 Maven,生成的应用为 `openmrs.war`,可部署到 Tomcat 或 Jetty。也可用模块扩展系统。安装、配置和扩展的详细说明在 OpenMRS Wiki。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-23 · 语言 Java · 贡献者 —
java

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 17,145 字节。

<img src="https://talk.openmrs.org/uploads/default/original/2X/f/f1ec579b0398cb04c80a54c56da219b2440fe249.jpg" alt="OpenMRS"/>

[![Build Status](https://github.com/openmrs/openmrs-core/actions/workflows/build.yaml/badge.svg?branch=master)](https://github.com/openmrs/openmrs-core/actions/workflows/build.yaml) [![Coverage Status](https://codecov.io/gh/openmrs/openmrs-core/branch/master/graph/badge.svg)](https://app.codecov.io/gh/openmrs/openmrs-core) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=openmrs_openmrs-core&amp;metric=alert_status)](https://sonarcloud.io/summary/new_code?id=openmrs_openmrs-core)

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)
DPGA: [![DPG Badge](https://img.shields.io/badge/Verified-DPG-3333AB?logo=data:image/svg%2bxml;base64,PHN2ZyB3aWR0aD0iMzEiIGhlaWdodD0iMzMiIHZpZXdCb3g9IjAgMCAzMSAzMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjIwMDggMjEuMzY3OEwxMC4xNzM2IDE4LjAxMjRMMTEuNTIxOSAxNi40MDAzTDEzLjk5MjggMTguNDU5TDE5LjYyNjkgMTIuMjExMUwyMS4xOTA5IDEzLjYxNkwxNC4yMDA4IDIxLjM2NzhaTTI0LjYyNDEgOS4zNTEyN0wyNC44MDcxIDMuMDcyOTdMMTguODgxIDUuMTg2NjJMMTUuMzMxNCAtMi4zMzA4MmUtMDVMMTEuNzgyMSA1LjE4NjYyTDUuODU2MDEgMy4wNzI5N0w2LjAzOTA2IDkuMzUxMjdMMCAxMS4xMTc3TDMuODQ1MjEgMTYuMDg5NUwwIDIxLjA2MTJMNi4wMzkwNiAyMi44Mjc3TDUuODU2MDEgMjkuMTA2TDExLjc4MjEgMjYuOTkyM0wxNS4zMzE0IDMyLjE3OUwxOC44ODEgMjYuOTkyM0wyNC44MDcxIDI5LjEwNkwyNC42MjQxIDIyLjgyNzdMMzAuNjYzMSAyMS4wNjEyTDI2LjgxNzYgMTYuMDg5NUwzMC42NjMxIDExLjExNzdMMjQuNjI0MSA5LjM1MTI3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==)](https://digitalpublicgoods.net/r/openmrs)

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)
   4. [Release dependency check](#release-dependency-check)
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)
   4. [Dependency Updates](#dependency-updates)
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
./mvnw clean package
```

This will generate the OpenMRS application in `webapp/target/openmrs.war`, which you will have to deploy to an application server such as [Tomcat](https://tomcat.apache.org/) or [Jetty](https://jetty.org/).

### Deploy

For development purposes you can simply deploy the `openmrs.war` into the application server jetty via

```bash
cd openmrs-core/webapp
../mvnw jetty:run
```

To run Jetty on a custom port, use the `jetty.http.port` property:

```bash
../mvnw -Djetty.http.port=8081 jetty:run
```

To run on Cargo, use the `cargo:run` command:

```bash
../mvnw cargo:run
```

To run Cargo on a custom port, use the `cargo.servlet.port` property:

```bash
../mvnw -Dcargo.servlet.port=8081 cargo: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](https://wiki.openmrs.org/display/docs/Getting+Started+as+a+Developer) for some more information
on useful Maven commands and build options.

### Release dependency check

The root `pom.xml` configures the Maven Enforcer `requireReleaseDeps` rule with `onlyWhenRelease` set to `true`. It runs on every build, with no profile or flag to remember.

- While the project version ends in `-SNAPSHOT` (as on `master`), the rule is skipped, so normal development builds are unaffected.
- Once the project version is a release version (for example after `mvn versions:set` in the release workflow), the build fails if any dependency still resolves to a `-SNAPSHOT` version.
- The rule does not check optional dependencies.
- Other pre-release qualifiers (`-M`, `-alpha`, `-beta`, `-RC`) are not checked yet. That is tracked in TRUNK-6855.

Entries in `bom/pom.xml` should be declared by at least one module. If an entry is kept for another reason, for example because a module only needs it transitively, add a comment above it explaining why.

## Docker build

Docker builds are still a 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
[OpenMRS Core on Docker Hub](https://hub.docker.com/r/openmrs/openmrs-core).

You 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.

### Running with ElasticSearch

OpenMRS can run with ElasticSearch backend instead of the in-built Lucene index. You can run it with:

```bash
docker compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.es.yml up
```

If you change backend, you need to rebuild the search index by going to Legacy UI -> Administration -> Search Index. Alternatively, you can rebuild the search index using the `searchindexupdate` REST endpoint.

### Running with Grafana

OpenMRS can run with Grafana for monitoring logs. You can run it with:

```bash
docker compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.grafana.yml up
```

Grafana will be available at http://localhost:3000. Use admin as username and see docker-compose.grafana.yml for the initial password.

### Scheduler Dashboard

The scheduler dashboard can be accessed at http://localhost:9000 by default (user: admin / password: Admin123). It is enabled by default when running `docker compose up` command. It is configured in `docker-compose.override.yml`.

If you want to enable it in other environments, you need to set the following properties in `openmrs-runtime.properties`:

```bash
jobrunr.dashboard.enabled=true
jobrunr.dashboard.password=someStrongPassword
```

## Navigating the repository

The project tree is set up as follows:

<table>
 <tr>
  <td>api/</td>
  <td>Java and resource files for building the java api jar file.</td>
 </tr>
 <tr>
  <td>tools/</td>
  <td>Meta code used during compiling and testing. Does not go into any released binary (like doclets).</td>
 </tr>
 <tr>
  <td>web/</td>
  <td>Java and resource files that are used in the webapp/war file.</td>
 </tr>
 <tr>
  <td>webapp/</td>
  <td>files used in building the war file (contains JSP files on older versions).</td>
 </tr>
 <tr>
  <td>pom.xml</td>
  <td>The main maven file used to build and package OpenMRS.</td>
 </tr>
</table>

## Software Development Kit

For rapid development of modules and the OpenMRS Platform code, see the
[OpenMRS SDK documentation](https://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. If functionality is missing, work with the module's developers to add the 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://openmrs.atlassian.net/wiki/spaces/docs/pages/25477022/Getting+Started+as+a+Developer)
* [How To Configure Your IDE](https://openmrs.atlassian.net/wiki/spaces/Archives/pages/25506949/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, visit [the OpenMRS Wiki](https://wiki.openmrs.org).

### Website

For more information about OpenMRS as an organization, check
[the OpenMRS website](https://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://openmrs.atlassian.net/wiki/x/a8GEAQ) that is `Ready For Work`.

### Code Reviews

If you do not have time to develop but have experience with OpenMRS or reviewing
code, your help with code reviews would be greatly appreciated!

Read [the code review guide](https://openmrs.atlassian.net/wiki/x/-r_EAQ) and get started reviewing pull requests!

### Translation

We use [Transifex](https://explore.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 so they can be translated
on the Transifex website. At any time, we can pull new translations from Transifex
back into this repository. Other languages, such as Spanish, will then be in
the `messages_es.properties` file.

If you would like to know how to help with translations, see
[the OpenMRS translation guide](https://om.rs/translate).

### Dependency Updates

Dependabot raises dependency update PRs against `master` and each maintained release branch. It only reads
[`.github/dependabot.yml`](.github/dependabot.yml) from `master`, so when a release branch is cut or reaches end
of life, its entries in that file need to be added or removed.

## Issues

If you want to help fix existing issues or have found a bug to report, please go to
[the OpenMRS issue tracker](https://issues.openmrs.org).

## Community

[![OpenMRS Talk](https://img.shields.io/badge/OpenMRS_Talk-F26522?logo=discourse&logoColor=white)](https://talk.openmrs.org)
[![OpenMRS Slack](https://img.shields.io/badge/OpenMRS_Slack-4A154B)](https://slack.openmrs.org/)
[![OpenMRS Wiki](https://img.shields.io/badge/openmrs-wiki-5B57A6.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAiIGhlaWdodD0iMTQyIiB2aWV3Qm94PSIwIDAgMTYwIDE0MiI%2BPHBhdGggY2xhc3M9InN0MCIgZD0iTTExMy42MTUgOTQuNDk0Yy0yLjAxNi0zLjk3NC00LjQwNS03Ljk5LTcuMi0xMi4wNzctMi0yLjkzLTQuMTQ1LTUuNzc4LTYuMzg3LTguNTY3LS45MS0xLjEzNi0uNTMtMi41NDguMTY3LTMuMjUuNjg4LS43MDUgMS4zOC0xLjQxIDIuMDc2LTIuMTIgOS41OC05Ljc3IDE5LjQ5LTE5Ljg3MyAyNy4wOS0zMC43ODcgOC4wOC0xMS42MSAxMi41Ni0yMi42MjQgMTM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9Ik03Ny44NjggMzIuNTc4Yy44Mi43OTggMS43NS45NDcgMi4zOS45NDdoLjAwNmMuNjQyIDAgMS41Ny0uMTQ4IDIuMzktLjk0NiA3LjMxMy03LjExIDExLjI0Mi0xNS40IDEyLjEwMy0xNy43MS4xMjUtLjM0LjI1Mi0uNzMuMjUyLTEuMjYgMC0xLjg0LTEuNTQtMy4xNi0zLjE0LTMuMTYtMS4zMyAwLTUuMS4zOS0xMS41OS4zOWgtLjA1Yy02LjUgMC0xMC4yNy0uMzktMTEuNTktLjM5LTEuNjEgMC0zLjE0IDEuMzEtMy4xNCAzLjE1IDAgLjUzLjEzLjkyLjI1IDEuMjYuODYgMi4zIDQuNzkgMTAuNTkgMTIuMSAxNy43eiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg%3D%3D)](https://wiki.openmrs.org)

## Support

Talk to us on [OpenMRS Talk](https://talk.openmrs.org/)

## License

[MPL 2.0 w/ HD](LICENSE) © [OpenMRS Inc.](https://openmrs.org/)
↑