refactoring fetch dossier by id