Direct interviews by pharmacists, combined with application of an algorithm for matching medications with indications, improved the accuracy of the medication reconciliation process for elderly inpatients.