{
"resourceType": "MessageDefinition",
"id": "example",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Message definition base example</div>"
},
"url": "http://hl7.org/fhir/MessageDefinition/example",
"name": "EXAMPLE",
"title": "Message definition base example",
"status": "draft",
"experimental": true,
"date": "2016-11-09",
"publisher": "Health Level Seven, Int'l",
"contact": [
{
"telecom": [
{
"system": "url",
"value": "http://hl7.org"
}
]
}
],
"purpose": "Defines a base example for other MessageDefinition instances.",
"eventCoding": {
"system": "http://example.org/fhir/message-events",
"code": "admin-notify"
},
"category": "notification"
}
MessageDefinition Structure
{
"resourceType" : "MessageDefinition",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"url" : "<uri>", // Business Identifier for a given MessageDefinition
"identifier" : [{ Identifier }], // Primary key for the message definition on a given server
"version" : "<string>", // Business version of the message definition
"name" : "<string>", // C? Name for this message definition (computer friendly)
"title" : "<string>", // Name for this message definition (human friendly)
"replaces" : [{ canonical(MessageDefinition) }], // Takes the place of
"status" : "<code>", // R! draft | active | retired | unknown
"experimental" : <boolean>, // For testing purposes, not real usage
"date" : "<dateTime>", // R! 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 message definition
"useContext" : [{ UsageContext }], // The context that the content is intended to support
"jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for message definition (if applicable)
"purpose" : "<markdown>", // Why this message definition is defined
"copyright" : "<markdown>", // Use and/or publishing restrictions
"base" : { canonical(MessageDefinition) }, // Definition this one is based on
"parent" : [{ canonical(ActivityDefinition|PlanDefinition) }], // Protocol/workflow this is part of
// event[x]: Event code or link to the EventDefinition. One of these 2:
"eventCoding" : { Coding },
"eventUri" : "<uri>",
"category" : "<code>", // consequence | currency | notification
"focus" : [{ // Resource(s) that are the subject of the event
"code" : "<code>", // R! Type of resource
"profile" : { canonical(StructureDefinition) }, // Profile that must be adhered to by focus
"min" : "<unsignedInt>", // R! Minimum number of focuses of this type
"max" : "<string>" // C? Maximum number of focuses of this type
}],
"responseRequired" : "<code>", // always | on-error | never | on-success
"allowedResponse" : [{ // Responses to this message
"message" : { canonical(MessageDefinition) }, // R! Reference to allowed message definition response
"situation" : "<markdown>" // When should this response be used
}],
"graph" : [{ canonical(GraphDefinition) }] // Canonical reference to a GraphDefinition
}
MessageDefinition Search Parameters
The following search parameters can be used to query MessageDefinition resources. Just submit them like so: