These results demonstrate the possibility of constructing an algorithmic diagnosis for study-defined delirium using data from the GMS schedule , with predictive criterion validity for mortality and dementia risk .