change labnotes to use patterns and event types instead of resource relationships.