( It's probably better to use the Kenya EMR developers mailing list for questions relating specifically to the Kenya EMR )
I'd guess this is due to MetadataConstants not being accessible in your GSPs. The MetadataConstants class in Kenya EMR is accessible in our GSPs because we use a configurator class to "inject" it into all uiframework managed pages and fragments...
You could have your own configurator to make your own class of constants accessible in your GSPs.
Btw I made a lot of changes yesterday to extract all the re-usable UI components into a separate library module (
Kenya EMR UI) and updated the
example add-on module accordingly. This should make things easier for you as you can rely on things in the UI module not changing so often. We hadn't planned on the Kenya EMR module being something that would be built on by other groups, so it's been a bit of scramble over the last week to get it into a state where someone can easily do so without making their own fork. But I think we're there now.
The Kenya EMR UI module completely replaces uilibrary for this project so in your development environment you should replace the uilibrary omod with the latest
Kenya UI omod, and then you'll need to update your widgets accordingly, e.g.
${ ui.includeFragment("uilibrary", "widget/button", [ .. ]) ... becomes ... ${ ui.includeFragment("kenyaui", "widget/button", [ .. ])
-Rowan