--- type: "example" title: "EventDefinition Example: eventdefinition-example-data-with-profile" resource: "EventDefinition" example: "eventdefinition-example-data-with-profile" --- # EventDefinition Example: eventdefinition-example-data-with-profile ## Example XML ```xml <status value="draft"/> <experimental value="true"/> <description value="Example of an EventDefinition using the data event approach with a profile in the data requirement."/> <purpose value="Monitor when 3 consecutive negative stick tests have occurred using a data change event and a profile."/> <trigger> <type value="data-changed"/> <data> <type value="Observation"/> <profile value="http://example.org/StructureDefinition/stick-test"/> </data> <condition> <language value="text/cql-expression"/> <expression value="[StickTestProfile].consecutivelyAfter(%context).take(3).negative().count() = 3"/> </condition> </trigger> </EventDefinition> ```