My primary mentor Jeremy Keiper always guide me with the project. This week I have setup my module.
In a openmrs module, there are two major packages are inside a openmrs module. They are known as "api" and the "omod". Module is more like a web application. "api" packages is the location which module contains non-web java classes. Mostly "api" package contains, data access classes of hibernate and spring bean services. "omod" package contains web related jsp files and controller classes. Controller classes use services expose from the "api" to build the presentation logic.
There are two major ways of building a openmrs module.
- Using maven module archetype
Openmrs has extention for maven to create the structure of a module.Using this way,user can quickly build a openmrs module. Please refer to [1].
2. Using basic module at openmrs git repository
Basic module available at openmrs repositories gives a structure of a module.User can clone the basic module and do necessary changes to the configurations to built their own module.(I use this way)
Please find basic module at github in [2]
You can see the following structure in a module as in figure 1;
Finally I have created my module at it's working. Busy days comes ahead.
My module is available at [3].
No comments:
Post a Comment