Acquiring temporal knowledge for making decisions in medical processes : doctor of philosophy thesis