DIGI-UW/OpenELIS-Global-2
About
OpenELIS Global — open-source Laboratory Information System (LIS/LIMS) for clinical and public-health labs in 25+ countries. Java/Spring + React (Carbon), FHIR R4 native, Docker.
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- +5
- in 15 days
- +9
- in 1 month
- +18
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalOpenELIS Global 2
OpenELIS Global is open enterprise-level laboratory information system software tailored for public health laboratories. OpenELIS is used at a national scale in a variety of settings, from small general hospital labs, all the way up to national reference labs, and all sizes in between.
Thousands of users use OpenELIS daily to make their laboratory jobs easier by automating work plans, importing results from clinical analyzers, and supporting complex workflows like pathology and cytology, reducing turnaround times, and increasing result accuracy for better patient care.
OpenELIS Global meets all relevant ISO and SLIPTA requirements for the accreditation of labs.
OpenELIS adheres to the strictest of security standards to keep your data safe and supports fully featured, standards-based interoperability to make it easy to receive lab orders and send results to other systems
Please visit our website for more information.
You can find more information on how to set up OpenELIS at our docs page
CI Status
All badges report the status of the latest merge to develop
(event=push), not per-PR runs.
CI Architecture
For the current fork/non-fork E2E validation design, artifact contracts, and
checkpoint/status model, see
specs/plans/ci-e2e-architecture-spec.md.
For operational troubleshooting of the E2E wrapper and downstream execution, see
specs/plans/e2e-ci-operator-model.md.
Contributing
We welcome community contributions to help improve OpenELIS Global!
- Read our Dev Environment Setup Instructions on the project wiki.
- Check out our CONTRIBUTING guide for detailed contribution practices and pull request tips.
- To report a security vulnerability, follow SECURITY.md (private reporting — not public issues).
Requirements
You need to install Docker and Docker compose
For development , you need to install Java 21
Install a published release
Use a
released default distribution
and follow the README at that release tag. Manifest-enabled distributions select
the exact images tested together by OE2 and generate installation-owned keys at
first start. Configure private credentials, then use docker compose pull,
docker compose up -d --no-build, and docker compose ps.
See installation guidance and release policy.
Do not use development tags for production. Historical offline packages retain
their own tagged instructions. Current offline packages bundle the same release
configuration and images; load them with docker image load, then start with
docker compose up -d --pull never --no-build.
For running a light OpenELIS Global2 without the FHIR server and the Analyzer Bridge
The FHIR server and the Analyzer Bridge are only needed for exchanges with other systems: analyzers, electronic orders from an EMR or a consolidated server, referrals to and results from other laboratories, EQA exchange, sample shipments and the client registry. Every lab workflow (patients, orders, sample preparation and labels, results, validation, reports, non-conformities, storage, administration) runs from the OpenELIS database alone, and questionnaires are kept in the database when there is no FHIR store.
With openelis-docker, remove the # in front of the COMPOSE_FILE line in its
.env and run docker compose up -d; see its
light installation
section. In any other deployment, leave org.openelisglobal.fhirstore.uri empty
in common.properties (or set the webapp's ORG_OPENELISGLOBAL_FHIRSTORE_URI
environment variable to an empty value, which overrides the file), leave
ANALYZER_BRIDGE_URL empty, and do not start the two services.
For Running OpenELIS Global2 from Source Code
Run every scripts/dev-stack command from the root of this repository (the
OpenELIS core checkout). Install the
development prerequisites first; up
installs mkcert itself when it is missing. Each clone or worktree gets its own
containers, ports and data.
Quick start
bash scripts/setup-workspace.sh # once per clone or worktree
scripts/dev-stack up # build the backend and start the stack
scripts/dev-stack url # print the address to open in the browser
up sets up trusted local HTTPS itself. If mkcert is missing (it is not
installed by default on macOS or Linux), up installs it: with Homebrew when
the machine has it, otherwise by downloading the official mkcert binary into
~/.cache/openelis-dev-stack/bin. On the first start on a machine it then asks
once for your administrator password to trust the local certificates, so run it
in an interactive terminal. Open the address that url prints and log in as
admin / adminADMIN!.
A certificate problem never stops up: if mkcert cannot be installed, trusted
or run on a machine, up warns and finishes with a self-signed certificate, and
the browser then shows a certificate warning to click through. To skip mkcert
entirely, use the self-signed certificate from the start:
DEV_STACK_TLS=self-signed scripts/dev-stack up # or add DEV_STACK_TLS=self-signed to .env
Commands
Every command has the form scripts/dev-stack <command> [options]. The command
names are literal words: url is the command that prints the address, not a
placeholder for one.
| Command | What it does |
|---|---|
scripts/dev-stack up [options] |
Builds a fresh backend WAR from this checkout (mvn clean package) and starts the stack. See Options of up. |
scripts/dev-stack url |
Prints the address of the running stack, for example https://localhost:55095. |
scripts/dev-stack env |
Prints every address of the stack (application, backend, database port and more) as shell export lines. |
scripts/dev-stack status |
Lists the stack's containers and its addresses. |
scripts/dev-stack logs [services] [-f] |
Shows container logs; -f follows them. Example: scripts/dev-stack logs -f oe.openelis.org. |
scripts/dev-stack down |
Stops and removes the stack's containers and module dev servers. The data is kept. |
scripts/dev-stack down --volumes --yes |
Same, and also deletes the stack's data (database and other volumes). Both flags are required. |
scripts/dev-stack doctor |
Checks the prerequisites without starting anything. |
scripts/dev-stack config |
Prints the stack's merged Docker Compose configuration. |
scripts/dev-stack playwright [args] |
Runs the Playwright tests against this stack; args go to Playwright. |
Options of up
An option's value follows it after a space, as in --setup light and
--module ../my-module (--setup=light works too).
| Option | Default | What it does |
|---|---|---|
--setup full |
yes | Starts the whole stack: database, webapp, frontend, proxy, FHIR server, Analyzer Bridge and analyzer simulator. |
--setup light |
Starts only the database, webapp, frontend and proxy. Every lab workflow runs without the other three (see the light setup above). Switching setups keeps the same database. | |
--module <folder> |
Builds the module in <folder> and deploys it into the stack. Repeat it for several modules. See Running a module from its source. |
|
--build |
Builds the container images from this checkout instead of pulling the published ones. Needed after changes to frontend dependencies, Dockerfiles, the Analyzer Bridge or the mock. | |
--skip-build |
Builds and pulls nothing: reuses this checkout's last WAR and the images the last up ran. Cannot be combined with --build. |
|
--pull |
Pulls the latest published images now. Without it, up pulls them on its first run in each terminal and when an image is missing, and later runs in that terminal reuse the local images. Cannot be combined with --build or --skip-build. |
|
--no-wait |
Returns without waiting for the login page. | |
--no-scenarios |
Does not create the analyzer test scenarios (the light setup never creates them). |
status, env and down follow the setup of the last up.
Settings
Set these in front of the command for one run, or as lines in the .env file at
the root of this repository to keep them:
| Setting | Default | What it does |
|---|---|---|
DEV_STACK_IMAGE_TAG |
develop |
Tag of the published development images up runs (pulled on the first run in each terminal, when missing, or with --pull), for example a release such as DEV_STACK_IMAGE_TAG=3.4.0. up --skip-build keeps the images of the last up instead. |
DEV_STACK_IMAGE_NAMESPACE |
itechuw |
Docker Hub namespace of those images. |
DEV_STACK_TLS |
local-ca on localhost |
HTTPS mode: local-ca (trusted local certificates, needs mkcert), self-signed (no mkcert, the browser warns), or letsencrypt (a public domain). |
DEV_STACK_HTTPS_PORT |
a free port, picked by Docker | Port the stack answers HTTPS on. Set 443 to open it at https://localhost; it must be free, so only one stack at a time can use it. scripts/dev-stack url always prints the address in use. |
DEV_STACK_HTTP_PORT |
a free port, picked by Docker | Port for plain HTTP, which redirects to HTTPS. Set 80 together with DEV_STACK_HTTPS_PORT=443. |
LETSENCRYPT_DOMAIN |
localhost |
Domain the stack answers on; see the development guide for domain setups. |
For example, for one run: DEV_STACK_IMAGE_TAG=3.4.0 scripts/dev-stack up, or
to keep it, add the line DEV_STACK_IMAGE_TAG=3.4.0 to .env. To open the
stack at https://localhost, add these two lines to .env:
DEV_STACK_HTTPS_PORT=443
DEV_STACK_HTTP_PORT=80
Common commands
scripts/dev-stack up # full stack, from this checkout's source
scripts/dev-stack up --setup light # database, webapp, frontend, proxy only
scripts/dev-stack up --skip-build # restart quickly with the last build
scripts/dev-stack up --pull # get the latest published images
scripts/dev-stack up --module ../my-module # also build and deploy a module
scripts/dev-stack up --setup light --module ../my-module
scripts/dev-stack url # print the address
scripts/dev-stack logs -f oe.openelis.org # follow the webapp log
scripts/dev-stack down # stop, keep the data
While you work, frontend edits hot reload in the browser. After a backend
change, run scripts/dev-stack up again. Native builds, focused tests, domain
setup and published-image deployment are described in
the development guide.
Running a module from its source
Run scripts/dev-stack up from this repository, not from the module's
folder, and pass the module's folder with --module:
cd OpenELIS-Global-2 # the core checkout
scripts/dev-stack up --module /path/to/my-module # the module's source folder
The module folder is any module source checkout: a folder
with a pom.xml and src/main/resources/META-INF/openelis-module.json. A
relative path is resolved from the current directory. Every run builds and
deploys both halves of each module again:
- Backend: builds the module JAR against this checkout, installs it as
volume/modules/<id>.jar(replacing any other copy of that module) and restarts the webapp, which migrates the module's tables and registers its permissions, menus and pages. - Frontend: starts the module's Vite dev server (
npm run devin itsfrontend/, log in.dev-stack/modules/<id>-vite.log) and routes the module's pages to it, so page edits hot reload in the browser. This needs Node.js on the host; without it the pages are served from the JAR.
| To | Do |
|---|---|
| Apply a Java, Liquibase or manifest change | Run the same up --module ... command again. |
| Recover after the dev server stopped | Run the same up --module ... command again. |
| Use the pages built into the JAR | Run scripts/dev-stack up without --module; the JAR stays installed. |
| Remove the module | Delete volume/modules/<id>.jar and run scripts/dev-stack up. |
Opening the application
| Instance | Address | Credentials (user : password) |
|---|---|---|
| New React UI | the address printed by scripts/dev-stack url |
admin : adminADMIN! |
| Legacy UI | that address followed by /api/OpenELIS-Global/ |
admin : adminADMIN! |
If the browser shows a certificate warning, check that you opened the address
printed by scripts/dev-stack url and that scripts/dev-stack up finished its
trust setup, then restart the browser. If the warning stays, follow
the development guide; do not bypass it.
Formating the Source code after making changes
After making UI changes to the frontend directory , run the formatter to properly format the Frontend code
cd frontend npm run formatAfter making changes to the backend directory, run the formatter to properly format the Java code
mvn spotless:apply
Run the local CI test package
scripts/run-ci-checks.sh
scripts/run-ci-checks.sh --list-jobs
scripts/run-ci-checks.sh --job frontend-static
The default runs the complete local code-check package on committed source in
isolated environments. --job is repeatable and includes each selected job's
setup; its result is labeled partial. Run the full command after a push while
GitHub runs. Publishing and GitHub administration remain hosted operations. See
the development guide for job mapping and evidence.
Environmental & Compliance-Scoped Result Evaluation
Environmental orders support multi-standard compliance evaluation. When an order is placed with one or more compliance standards selected (e.g. PP No. 22/2021, WHO-DWG-4), the result entry screen shows per-standard PASS/FAIL pills inline with each test result under a Status — Per Regulation column.
How it works:
Admin configures compliance standards and their per-test thresholds under Administration → Compliance Standards. Each standard has parameter groups with thresholds (RANGE, MINIMUM, MAXIMUM, etc.) linked to specific tests.
When placing an environmental order, select the applicable compliance standards in the Applicable Compliance Standards section. These are stored in the
sample_compliance_standardsjoin table.On result entry, the system evaluates each entered value against the
compliance_thresholdrows for that test + standard combination and returnscomplianceStatuses(array of{standardId, standardName, pass}) alongside each result row.The result entry screen renders green
PASS — <standard>or redFAIL — <standard>pills. The column is hidden when no compliance standards are attached to the loaded result set.
Key entities:
compliance_standard— the regulatory standard (e.g. PP No. 22/2021)parameter_group— groups thresholds within a standardcompliance_threshold— per-test threshold with type and boundssample_compliance_standards— join table linking a sample to its standards
Non-environmental and non-compliance orders are unaffected; the existing normal/abnormal background-colour logic is unchanged.
AI-Assisted Development (SpecKit)
This project uses GitHub SpecKit for Spec-Driven Development (SDD). AI coding agents can use slash commands to create specifications, plans, and tasks.
Available Commands:
/speckit.specify- Create feature specification/speckit.plan- Generate implementation plan/speckit.tasks- Generate task breakdown/speckit.implement- Execute implementation/speckit.analyze- Validate consistency
Reference Documentation:
- AGENTS.md - Comprehensive guide for AI coding agents
- Constitution:
.specify/memory/constitution.md- Governance principles - Feature Example:
specs/001-sample-storage/- Complete SDD example
Testing Resources
For comprehensive testing guidance, see:
- Testing Roadmap:
.specify/guides/testing-roadmap.md- Complete testing guide for both agents and humans - Test Templates:
.specify/templates/testing/- Standardized test templates - AGENTS.md: Testing Strategy section - Overview of testing approach
- Test Data Strategy:
.specify/guides/test-data-strategy.md- Unified test data management guide
Test Data Setup
scripts/dev-stack up creates development scenarios through application
services. The local CI runner prepares the workflow's fixtures in fresh,
isolated test databases. Do not run fixture resets against the interactive
development stack. For fixture maintenance and backend integration datasets, see
the test data guide.
Pull request guidelines
Please follow the pull request tips in order to make life easy for the code reviewers by having a well defined and clean pull request.
code of conduct
Please see our Contributor Code of Conduct
Explore related projects
Loading…