-
Notifications
You must be signed in to change notification settings - Fork 2
Extending OLMIS
villagereach edited this page Sep 14, 2010
·
5 revisions
NB: The first component of openLMIS is often shorthanded as olmis.
Health centers stock various kinds of items: vaccines, syringes, drugs, etc.. Each type of item is known as product in OLMIS. One function of OLMIS is to help to track their inventory level to ensure a center always optimal amount of products in stock.
If you want to add a new product (that you want to track the inventory, e.g., another vaccine / drug):
- Define the product (name, type, etc.)
- Define how the product is being packaged for the purpose of tracking, e.g., a drug might be packaged in 100 tablets per bottle.
- For each health center where the product will be stocked, define the ideal stock amount (so that if it is below the ideal level, relevant staff members can be aware of it easily)
- In some cases, define a new product type to be used for the product. A type could by syringe, vaccine, etc.
In practice, to add a new product, you add the definition and related data into the system, a combination of configuration files and data in databases. Here are the steps:
- For product, package, and package type if necessary, edit the config/olmis.rb file
'product_types' => [ { 'code' =>'tablet', 'trackable' => true }, ] ... 'products' => [ { 'type' =>'tablet', 'code' =>'chloroquine', }, ] ... 'packages' => [ { 'code' =>'chloroquine250mg_100', 'product' =>'chloroquine', 'quantity' => 100, }, ]
- Load the above configuration to the database.
rake olmis:db:bootstrap
- Define how the text will shown in the application, potentially in various languages. For example, to add the text for English, edit config/locales/en.yml
ProductType: tablet: Tablet ... Product: chloroquine: Chloroquine ... Package: chloroquine250mg_100: Chloroquine 250mg 100 tablets
- Use OLMIS UI to define the ideal stock amount at each health center. Typically, you can access it at URL
http://<olmis-site-name>/reports/stockouts