This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Example MessageDefinition/example (XML)

Infrastructure And Messaging Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

Raw XML (canonical form + also see XML Format Specification)

Jump past Narrative

A typical message definition (id = "example")

<?xml version="1.0" encoding="UTF-8"?>

<MessageDefinition xmlns="http://hl7.org/fhir">
  <id value="example"/> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">Message definition base example</div> 
  <url value="http://hl7.org/fhir/MessageDefinition/example"/> 
    <system value="urn:ietf:rfc:3986"/> 
    <value value="urn:oid:2.16.840.1.113883.4.642.15.3"/> 
  <name value="EXAMPLE"/> 
  <title value="Message definition base example"/> 
  <status value="draft"/> 
  <experimental value="true"/> 
  <date value="2016-11-09"/> 
  <publisher value="Health Level Seven, Int'l"/> 
      <system value="url"/> 
      <value value="http://hl7.org"/> 
  <description value="Message definition base example"/> 
  <purpose value="Defines a base example for other MessageDefinition instances."/> 
    <system value="http://example.org/fhir/message-events"/> 
    <code value="admin-notify"/> 
  <category value="notification"/> 

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.