Is this module of help? OpenHMIS - Patient Lists Module - Documentation - OpenMRS Wiki
Just in case you find these links useful:
cc @BandaHealth