MessageDefinition - FHIR Resource (stu3) This MessageDefinition Resource uses the
FHIR API standard for access and structure.
Validate an MessageDefinition FHIR Resource (stu3)
MessageDefinition Attributes Attribute Field is list Type Description
allowedResponse
true
Data Type
Responses to this message
Description: Responses to this message
Attribute Type : Data Type
Required: N/A
Countability: Array
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "allowedResponse":
jurisdiction
true
CodeableConcept
Intended jurisdiction for message definition (if applicable)
Description: Intended jurisdiction for message definition (if applicable)
Attribute Type : CodeableConcept
Required: N/A
Countability: Array
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
focus
true
Data Type
Resource(s) that are the subject of the event
Description: Resource(s) that are the subject of the event
Attribute Type : Data Type
Required: N/A
Countability: Array
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
event
false
Coding
Event type
Description: Event type
Attribute Type : Coding
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "event": {
"code": "communication-request",
"system": "http://hl7.org/fhir/message-events"
}
category
false
code
Consequence | Currency | Notification
Description: Consequence | Currency | Notification
Attribute Type : code
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "category": "Notification"
copyright
false
markdown
Use and/or publishing restrictions
Description: Use and/or publishing restrictions
Attribute Type : markdown
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
title
false
string
Name for this message definition (human friendly)
Description: Name for this message definition (human friendly)
Attribute Type : string
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "title": "Message definition base example"
version
false
string
Business version of the message definition
Description: Business version of the message definition
Attribute Type : string
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
status
false
code
draft | active | retired | unknown
Description: draft | active | retired | unknown
Attribute Type : code
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "status": "draft"
description
false
markdown
Natural language description of the message definition
Description: Natural language description of the message definition
Attribute Type : markdown
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
parent
true
Reference
Protocol/workflow this is part of
Description: Protocol/workflow this is part of
Attribute Type : Reference
Required: N/A
Countability: Array
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
base
false
Reference
Definition this one is based on
Description: Definition this one is based on
Attribute Type : Reference
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
useContext
true
UsageContext
Context the content is intended to support
Description: Context the content is intended to support
Attribute Type : UsageContext
Required: N/A
Countability: Array
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
purpose
false
markdown
Why this message definition is defined
Description: Why this message definition is defined
Attribute Type : markdown
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "purpose": "Defines a base example for other MessageDefintion instances."
date
false
dateTime
Date this was last changed
Description: Date this was last changed
Attribute Type : dateTime
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "date": "2016-11-09"
publisher
false
string
Name of the publisher (organization or individual)
Description: Name of the publisher (organization or individual)
Attribute Type : string
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "publisher": "Health Level Seven, Int'l"
replaces
true
Reference
Takes the place of
Description: Takes the place of
Attribute Type : Reference
Required: N/A
Countability: Array
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
name
false
string
Name for this message definition (computer friendly)
Description: Name for this message definition (computer friendly)
Attribute Type : string
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "name": "EXAMPLE"
url
false
uri
Logical URI to reference this message definition (globally unique)
Description: Logical URI to reference this message definition (globally unique)
Attribute Type : uri
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "url": "http://hl7.org/fhir/MessageDefinition/example"
contact
true
ContactDetail
Contact details for the publisher
Description: Contact details for the publisher
Attribute Type : ContactDetail
Required: N/A
Countability: Array
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "contact": [
{
"telecom": [
{
"system": "url",
"value": "http://hl7.org"
}
]
}
]
experimental
false
boolean
For testing purposes, not real usage
Description: For testing purposes, not real usage
Attribute Type : boolean
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "experimental": true
identifier
false
Identifier
Additional identifier for the message definition
Description: Additional identifier for the message definition
Attribute Type : Identifier
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
responseRequired
false
boolean
Is a response required?
Description: Is a response required?
Attribute Type : boolean
Required: N/A
Countability: Singleton
Flags: N/A
Terminology bindings: N/A
Requirements: N/A
Comments: N/A
Example: "responseRequired": false
MessageDefinition Example {
"status": "draft",
"publisher": "Health Level Seven, Int'l",
"name": "EXAMPLE",
"title": "Message definition base example",
"resourceType": "MessageDefinition",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Message definition base example</div>"
},
"event": {
"code": "communication-request",
"system": "http://hl7.org/fhir/message-events"
},
"url": "http://hl7.org/fhir/MessageDefinition/example",
"contact": [
{
"telecom": [
{
"system": "url",
"value": "http://hl7.org"
}
]
}
],
"purpose": "Defines a base example for other MessageDefintion instances.",
"responseRequired": false,
"date": "2016-11-09",
"category": "Notification",
"id": "example",
"experimental": true
}
MessageDefinition Structure
{
"resourceType" : "MessageDefinition",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"url" : "<uri>", // Logical URI to reference this message definition (globally unique)
"identifier" : { Identifier }, // Additional identifier for the message definition
"version" : "<string>", // Business version of the message definition
"name" : "<string>", // Name for this message definition (computer friendly)
"title" : "<string>", // Name for this message definition (human friendly)
"status" : "<code>", // R! draft | active | retired | unknown
"experimental" : <boolean>, // For testing purposes, not real usage
"date" : "<dateTime>", // R! Date this was 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 }], // Context 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" : { Reference(MessageDefinition) }, // Definition this one is based on
"parent" : [{ Reference(ActivityDefinition|PlanDefinition) }], // Protocol/workflow this is part of
"replaces" : [{ Reference(MessageDefinition) }], // Takes the place of
"event" : { Coding }, // R! Event type
"category" : "<code>", // Consequence | Currency | Notification
"focus" : [{ // Resource(s) that are the subject of the event
"code" : "<code>", // R! Type of resource
"profile" : { Reference(StructureDefinition) }, // Profile that must be adhered to by focus
"min" : "<unsignedInt>", // Minimum number of focuses of this type
"max" : "<string>" // C? Maximum number of focuses of this type
}],
"responseRequired" : <boolean>, // Is a response required?
"allowedResponse" : [{ // Responses to this message
"message" : { Reference(MessageDefinition) }, // R! Reference to allowed message definition response
"situation" : "<markdown>" // When should this response be used
}]
}
MessageDefinition Search Parameters The following search parameters can be used to query MessageDefinition resources. Just submit them like so:
https://api.1up.health/fhir/stu3/MessageDefinition?query-param=queryvalue
Search Parameter Field Type Resource Fields Searched category
text
category
date
date
date
description
text
description
event
text
event
focus
text
focus.code
identifier
text
identifier
jurisdiction
text
jurisdiction
name
text
name
publisher
text
publisher
status
text
status
title
text
title
url
uri
url
version
text
version