repowiseopenmrs/openmrs-core

Architecture of openmrs/openmrs-core

openmrs/openmrs-core is 1,350 source files holding 17,244 symbols across 6 modules, written mainly in Java, JavaScript, Shell. The largest module is api, with 1,198 files, and 228 files are entry points into the dependency graph.

How openmrs-core fits together

Requests and domain data enter through the API and web layers. The api/ directory holds the Java and resource files that build the API jar, and api/src/main/java/org/openmrs/api/context/Context.java gives code access to the services. The domain model is defined in classes such as api/src/main/java/org/openmrs/OpenmrsObject.java, which other parts of the code build on. The web/ directory holds the Java and resource files used in the web application, and webapp/ holds the files used to assemble the openmrs.war file. Build output is written to webapp/target/openmrs.war, which runs on an application server such as Tomcat or Jetty.

Largest modules

  • api: 1,198 files and 141,708 lines of code
  • web: 70 files and 8,677 lines of code
  • liquibase: 17 files and 1,216 lines of code
  • root: 16 files and 1,226 lines of code
  • webapp: 14 files and 2,917 lines of code
  • test-suite: 13 files and 407 lines of code
  • .github: 10 files and 436 lines of code
  • monitoring: 4 files and 462 lines of code

Languages

By file count: Java 1,282 files, JavaScript 14 files, Shell 7 files, Dockerfile 1 file.

Documentation

Repowise documents openmrs-core in 1,373 pages generated from the source, 34 of them written explanations of the repository and its modules.

More on openmrs-core: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos