I am trying to match a result to a hospital episode. I would like to match the result that occurs after the attendance datetime but before the discharge datetime, the ID to