A design methodology for medical processes