--- type: "example" title: "EventDefinition Example: eventdefinition-example-periodic" resource: "EventDefinition" example: "eventdefinition-example-periodic" --- # EventDefinition Example: eventdefinition-example-periodic ## Example XML ```xml <status value="draft"/> <experimental value="true"/> <description value="Example of an EventDefinition using the periodic event approach."/> <purpose value="Monitor when 3 consecutive negative stick tests have occurred using a periodic event."/> <trigger> <type value="periodic"/> <timingTiming> <repeat> <frequency value="1"/> <period value="3"/> <periodUnit value="h"/> </repeat> </timingTiming> <condition> <language value="text/cql-expression"/> <expression value="StickTest.within(3 hours).consecutively.take(3).negative().count() = 3"/> </condition> </trigger> </EventDefinition> ```