Skip to content

soft261/openmrs-module-apiexamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

OpenMRS Logo

API Examples Module

Purpose

This module was created to demonstrate the basic functionality of the Obs, Person, and User objects in the OpenMRS Core API.

Setup

Please make sure your server has at least one Person with the last name 'Smith' and that they have at least one Obs attached to them (available by adding a visit note to the patient, or by clicking the Manage Obs link in Advanced System Settings).

To use the Obs section, navigate here and get your person by either finding them by personId, or use the second (commented out) line to find a person within your server by UUID. This person should be a patient, and should have at least one Obs taken on them, as described above.

Deploying the Module

Open a new terminal. Enter into the openmrs-module-apiexamples folder, then enter into the apiexamples folder. Execute mvn package. This will create an OMOD file in the apiexamples/omod/target folder. Install the module in System Settings > Advanced System Settings > Manage Modules. Click Add new module..., choose the OMOD file, then click Upload.

Architecture

The module uses Groovy / Java files and Spring MVC. The pages (views) are located here, and the controllers are located here. The Java controller populates the Groovy views with data through a model, and the view displays the data as desired. More information regarding the architecture of this module can be found here. MVC Architecture

About

API Examples Module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors