System and method for identifying a pattern. A method of the invention
compiles a pattern description where the pattern description defines a
series of a first event and a second event relating to the first event.
The first event is received and includes a type parameter data, a time
parameter data, and a substance parameter data. A system of the invention
includes a script component for associating or attaching a first script
to the first event. The first script defines the type, time, and
substance parameters of the second event as a function of the parameters
of the first event according to the pattern description. A pattern
recognition engine executes the attached first script and the executed
script identifies the second event and thereby identifies the pattern.