{
"resourceType": "EventDefinition",
"id": "example",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n </div>"
},
"status": "draft",
"purpose": "Monitor all admissions to Emergency",
"trigger": [
{
"type": "named-event",
"name": "monitor-emergency-admissions",
"data": [
{
"type": "Encounter"
}
],
"condition": {
"description": "Encounter Location = emergency (active/completed encounters, current or previous)",
"language": "text/fhirpath",
"expression": "(this | %previous).location.where(location = 'Location/emergency' and status in {'active', 'completed'}).exists()"
}
}
]
}
EventDefinition Structure
{
"resourceType" : "EventDefinition",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"url" : "<uri>", // Canonical identifier for this event definition, represented as a URI (globally unique)
"identifier" : [{ Identifier }], // Additional identifier for the event definition
"version" : "<string>", // Business version of the event definition
"name" : "<string>", // C? Name for this event definition (computer friendly)
"title" : "<string>", // Name for this event definition (human friendly)
"subtitle" : "<string>", // Subordinate title of the event definition
"status" : "<code>", // R! draft | active | retired | unknown
"experimental" : <boolean>, // For testing purposes, not real usage
// subject[x]: Type of individual the event definition is focused on. One of these 2:
"subjectCodeableConcept" : { CodeableConcept },
"subjectReference" : { Reference(Group) },
"date" : "<dateTime>", // Date last changed
"publisher" : "<string>", // Name of the publisher (organization or individual)
"contact" : [{ ContactDetail }], // Contact details for the publisher
"description" : "<markdown>", // Natural language description of the event definition
"useContext" : [{ UsageContext }], // The context that the content is intended to support
"jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for event definition (if applicable)
"purpose" : "<markdown>", // Why this event definition is defined
"usage" : "<string>", // Describes the clinical usage of the event definition
"copyright" : "<markdown>", // Use and/or publishing restrictions
"approvalDate" : "<date>", // When the event definition was approved by publisher
"lastReviewDate" : "<date>", // When the event definition was last reviewed
"effectivePeriod" : { Period }, // When the event definition is expected to be used
"topic" : [{ CodeableConcept }], // E.g. Education, Treatment, Assessment, etc.
"author" : [{ ContactDetail }], // Who authored the content
"editor" : [{ ContactDetail }], // Who edited the content
"reviewer" : [{ ContactDetail }], // Who reviewed the content
"endorser" : [{ ContactDetail }], // Who endorsed the content
"relatedArtifact" : [{ RelatedArtifact }], // Additional documentation, citations, etc.
"trigger" : [{ TriggerDefinition }] // R! "when" the event occurs (multiple = 'or')
}
EventDefinition Search Parameters
The following search parameters can be used to query EventDefinition resources. Just submit them like so: