{"contact":[{"telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/dss"}]}],"description":"Example of an EventDefinition using the data event approach.","experimental":true,"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status","valueCode":"informative"},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm","valueInteger":6},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-wg","valueCode":"cds"},{"url":"http://hl7.org/fhir/StructureDefinition/cqf-library","valueCanonical":"http://hl7.org/fhir/EventDefinition/ExampleEventDefinitionLogic"}],"id":"example-data","name":"DataEventDefinitionExample","publisher":"HL7 International / Clinical Decision Support","purpose":"Monitor when 3 consecutive negative stick tests have occurred using a data change event.","resourceType":"EventDefinition","status":"draft","title":"Data EventDefinition Example","trigger":[{"condition":{"expression":"StickTest.consecutivelyAfter(%context).take(3).negative().count() = 3","language":"text/cql-expression"},"data":[{"codeFilter":[{"path":"code","valueSet":"http://example.org/ValueSet/stick-test-codes"}],"type":"Observation"}],"type":"data-changed"}],"url":"http://hl7.org/fhir/EventDefinition/example-data"}