Temporal reasoning in medicine