<?xml version="1.0" encoding="UTF-8"?><EventDefinition xmlns="http://hl7.org/fhir"><id value="EventDefinition-example"/><meta><versionId value="24"/><lastUpdated value="2022-02-18T00:39:17.639+08:00"/></meta><status value="draft"/><purpose value="Monitor all admissions to Emergency"/><trigger><type value="named-event"/><name value="Jodi Lemke"/><data><type value="Encounter"/></data><condition><description value="Encounter Location = emergency (active/completed encounters, current or previous)"/><language value="text/fhirpath"/><expression value="(this | %previous).location.where(location = 'Location/emergency' and status in {'active', 'completed'}).exists()"/></condition></trigger></EventDefinition>