--- type: "example" title: "EventDefinition Example: eventdefinition-example-data" resource: "EventDefinition" example: "eventdefinition-example-data" --- # EventDefinition Example: eventdefinition-example-data ## Example XML ```xml <status value="draft"/> <experimental value="true"/> <description value="Example of an EventDefinition using the data event approach."/> <purpose value="Monitor when 3 consecutive negative stick tests have occurred using a data change event."/> <trigger> <type value="data-changed"/> <data> <type value="Observation"/> <codeFilter> <path value="code"/> <valueSet value="http://example.org/ValueSet/stick-test-codes"/> </codeFilter> </data> <condition> <language value="text/cql-expression"/> <expression value="StickTest.consecutivelyAfter(%context).take(3).negative().count() = 3"/> </condition> </trigger> </EventDefinition> ```