Module to assist Platform upgrades from pre-1.10 versions

Yes it does, I have actually not tried out that module since i think all it does is help the user to do the mapping himself, my module does the mapping, it goes through all the drug order frequencies and dose units in the database and creates new concepts for them and writes the required mapping file for the user (the other option would be, update the concept dictionary to use added concepts as it has evolved but this the module is not supporting).

@wyclif, @dkayiwa: are the dose units for all other orders and not only drug orders, i had in the first place interpreted it to mean that frequencies and dose units for only drug orders, however in Rwanda we have more dose-units for other orders, are those also meant to mapped?

Dosing instructions (dose, units, route, and frequency) are specific to dosing of medications (i.e., drug orders). The base properties shared by all orders (i.e., in the orders table) apply not only to drugs, but also tests, procedures, referrals, activities, call orders, nursing orders, etc. For example, when you refer someone to a cardiologist, “dosing instructions” are not relevant.

What other types of orders (other than medications) are being dosed in Rwanda?

1 Like

They have units for lab-orders for-example, however i have confirmed that these are managed as concepts which makes me worry not about them. Thanks

I am getting this error when installing the module:

Error while trying to start module
Unable to update data model using liquibase.xml. Module: MoH Before One Eleven Upgrade Module
 ** org.openmrs.module.ModuleFactory.runLiquibase(ModuleFactory.java:776)
 ** org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:549)
 ** org.openmrs.api.context.Daemon$1.run(Daemon.java:58)

I am using OpenMRS Platform 1.9.3

1 Like

can you find the full stack trace from tomcat logs, i can help resolve this for 1.9.x, i had not yet tested in on 1.9.x

could be relevant also for this :slight_smile:

The module was unable to run on 1.6.3 (says it required at least 1.6.7), 1.6.6 (cant recall error but error was not the 1.6.7 requirement) and 1.8.4(error while trying to start module).

You can change the openmrs version to 1.6.3 at:

Please share the log so that i can help you fix the failure

How then would I build the omod file?

Here is the error from installing on 1.8.4

Error while trying to start module
mohbeforeoneelevenupgrade.failedToStart
 ** org.openmrs.module.mohbeforeoneelevenupgrade.MoHBeforeOneElevenUpgradeActivator.startup(MoHBeforeOneElevenUpgradeActivator.java:38)
 ** org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:561)
 ** org.openmrs.api.context.Daemon$1.run(Daemon.java:56)

As you would build any openmrs module omod. fork and clone the repo to make the above change. compile and build omod by running;

mvn clean install

on command line

Please share the whole log, check tomcat logs

INFO - ModuleListController.formBackingObject(266) |2016-04-03 12:51:08,943| Returning 7 modules
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:08,943| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Manage Modules, boolean=true, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:08,943| Exiting method notifyPrivilegeListeners
Apr 3, 2016 12:51:09 PM liquibase.database.template.JdbcTemplate comment
INFO: Lock Database
Apr 3, 2016 12:51:09 PM liquibase.lock.LockHandler acquireLock
INFO: Successfully acquired change log lock
Apr 3, 2016 12:51:09 PM liquibase.database.AbstractDatabase getRanChangeSetList
INFO: Reading from `liquibasechangelog`
Apr 3, 2016 12:51:09 PM liquibase.database.template.JdbcTemplate comment
INFO: Release Database Lock
Apr 3, 2016 12:51:09 PM liquibase.lock.LockHandler releaseLock
INFO: Successfully released change log lock
Apr 3, 2016 12:51:09 PM liquibase.database.template.JdbcTemplate comment
INFO: Lock Database
Apr 3, 2016 12:51:09 PM liquibase.lock.LockHandler acquireLock
INFO: Successfully acquired change log lock
Apr 3, 2016 12:51:09 PM liquibase.database.template.JdbcTemplate comment
INFO: Release Database Lock
Apr 3, 2016 12:51:09 PM liquibase.lock.LockHandler releaseLock
INFO: Successfully released change log lock
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:09,130| In method AdministrationService.saveGlobalProperty. Arguments: GlobalProperty=property: mohbeforeoneelevenupgrade.started value: true, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:09,130| Exiting method saveGlobalProperty
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:09,146| In method AdministrationService.saveGlobalProperty. Arguments: GlobalProperty=property: mohbeforeoneelevenupgrade.mandatory value: false, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:09,146| Exiting method saveGlobalProperty
INFO - MoHBeforeOneElevenUpgradeActivator.startup(36) |2016-04-03 12:51:09,161| Starting MoH Before One Eleven Upgrade Module
WARN - ModuleFactory.startModuleInternal(576) |2016-04-03 12:51:09,161| Error while trying to start module: mohbeforeoneelevenupgrade
org.openmrs.module.ModuleException: mohbeforeoneelevenupgrade.failedToStart
	at org.openmrs.module.mohbeforeoneelevenupgrade.MoHBeforeOneElevenUpgradeActivator.startup(MoHBeforeOneElevenUpgradeActivator.java:38)
	at org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:561)
	at org.openmrs.api.context.Daemon$1.run(Daemon.java:56)
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:09,161| In method AdministrationService.saveGlobalProperty. Arguments: GlobalProperty=property: mohbeforeoneelevenupgrade.started value: false, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:09,161| Exiting method saveGlobalProperty
INFO - MoHBeforeOneElevenUpgradeActivator.shutdown(46) |2016-04-03 12:51:09,177| Shutting down MoH Before One Eleven Upgrade Module
WARN - OpenmrsUtil.deleteDirectory(943) |2016-04-03 12:51:09,177|    ...could not remove directory: C:\windows\TEMP\1459676889201.openmrs-lib-cache\mohbeforeoneelevenupgrade\lib
WARN - OpenmrsUtil.deleteDirectory(943) |2016-04-03 12:51:09,177|    ...could not remove directory: C:\windows\TEMP\1459676889201.openmrs-lib-cache\mohbeforeoneelevenupgrade
INFO - ModuleListController.formBackingObject(266) |2016-04-03 12:51:09,177| Returning 7 modules
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:09,177| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Manage Modules, boolean=true, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:09,177| Exiting method notifyPrivilegeListeners
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:09,177| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=View Navigation Menu, boolean=true, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:09,193| Exiting method notifyPrivilegeListeners
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:09,193| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Add Patients, boolean=true, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:09,193| Exiting method notifyPrivilegeListeners
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:09,193| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Add Patients, boolean=true, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:09,193| Exiting method notifyPrivilegeListeners
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:09,193| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=View Concepts, boolean=true, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:09,193| Exiting method notifyPrivilegeListeners
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:09,193| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=View Administration Functions, boolean=true, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:09,193| Exiting method notifyPrivilegeListeners
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:09,193| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Manage Modules, boolean=true, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:09,193| Exiting method notifyPrivilegeListeners
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:09,193| In method UserService.notifyPrivilegeListeners. Arguments: User=admin, String=Manage Modules, boolean=true, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:09,193| Exiting method notifyPrivilegeListeners
INFO - LoggingAdvice.invoke(109) |2016-04-03 12:51:15,011| In method UserService.notifyPrivilegeListeners. Arguments: User=null, String=Manage Scheduler, boolean=true, 
INFO - LoggingAdvice.invoke(134) |2016-04-03 12:51:15,011| Exiting method notifyPrivilegeListeners

this doesn’t contain the error log please

That was from stdout.log. Let me send the entire text from that file

how about catalina.out!!! Please use http://pastebin.com for the logs and attach here the url

I am using tomcat 6.0.16 and cannot only see 3 files under the tomcat/logs folder; stdout.log, jakarta_service_20160403.log and stderr.log. stderr.log has no data while jakarta has only 2kb worth of data. I thought the error would be in stdout.log which has 93kb.

http://pastebin.com/LEzx7Xvp

Do I need an software to fork and clone? Will the command “mvn clean install” run on mac?

You need no extra software if you followed http://om.rs/new Just follow the normal process of building an openmrs module and build the omod which you will upload into openmrs, from the log, it looks like you are either using a wrong file format or have not at all installed the module