Detecting adverse drug events during the hospital stay