Studies on complex task networks based on contextual specifics in electronic medical records