Querying Clinical Workflows by Temporal Similarity