I can't help you with the second program but check out OpenEMR for your medicalclinic needs. It's on Sourceforge. If you need help with it, get in touch.