Generated patient model.
Implemented patient index.