An eletronic patient record built on rails