dossiers: printing each patient record tab with filtering past and future appointments by dates
Closes #3109