refactoring
implement charts for patients