Creating a matching plugin in MirthMatch is fairly simple. Just follow these steps:
- Implement the
BaseMatchingModulePluginclass as shown in theSimpleMatcherexample below. - The matching module depends on MirthMatch-lib.jar, kana-lib.jar, and javax.persistence_1.0.0.jar. You can get these from MirthMatch.ear. Just rename it to MirthMatch.zip and you'll find them in the lib directory.
- Create a jar out of your plugin.
- Make sure the jar includes a file called "com.mirth.match.lib.search.MatchingModulePlugin" in a directory called "META-INF/services". The file should contain just one line: the fully qualified name of your matcher class (e.g. "com.mirth.match.simpleMatcher.SimpleMatcher"). The META-INF folder should be in the same folder as the source code.
- When naming the package for the plugin, use the convention: com.mirth.match.XXXXX where XXXXX is a unique name for the package.
- Place the jar into the plugins (e.g., C:\opt\mirthmatch\plugins) directory discussed in Installation Notes.
- Restart glassfish and log into MirthMatch: http://localhost:8080/MirthMatch.
- You should now see your matching module listed under Administration -> Setup -> Matching Modules.
- If you encounter any problems, please check your server.log for any errors.
Labels:


