This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions
Example of an EventDefinition using the periodic approach.
{
"resourceType" : "EventDefinition",
"id" : "example-periodic",
"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"
}],
"url" : "http://hl7.org/fhir/EventDefinition/example-periodic",
"name" : "PeriodicEventDefinitionExample",
"title" : "Periodic EventDefinition Example",
"status" : "draft",
"experimental" : true,
"publisher" : "HL7 International / Clinical Decision Support",
"contact" : [{
"telecom" : [{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/dss"
}]
}],
"description" : "Example of an EventDefinition using the periodic event approach.",
"purpose" : "Monitor when 3 consecutive negative stick tests have occurred using a periodic event.",
"trigger" : [{
"type" : "periodic",
"timingTiming" : {
"repeat" : {
"frequency" : 1,
"period" : 3,
"periodUnit" : "h"
}
},
"condition" : {
"language" : "text/cql-expression",
"expression" : "StickTest.within(3 hours).consecutively.take(3).negative().count() = 3"
}
}]
}
Usage note: every effort has been made to ensure that the
examples are correct and useful, but they are not a normative part
of the specification.