add conditional logic for generate case dossier