Temporal reasoning in medical expert systems