3.88.9 StructureDefinition: Interaction Bundle 901 - Message disposition notification - XML Profile
XML representation of the interaction-bundle-901 Profile.
Narrative view of the profile
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="interaction-bundle-901"/>
<text>
<status value="extensions"/>
<div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/2016may/formats.html#table" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/2016may/formats.html#table" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/2016may/formats.html#table" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="http://hl7.org/fhir/2016may/formats.html#table" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/2016may/formats.html#table" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="http://hl7.org/fhir/2016may/formats.html#table" title="Legend for this format"><img src="http://hl7.org/fhir/2016may/help16.png" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="interaction-bundle-901-definitions.html#Bundle">Bundle</a><a name="Bundle"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span><span style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element has or is affected by some invariants (messageis901, OperationOutcome2nd)">I</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="profile-bundle-message.html">Shared Health Bundle for Messages</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Contains a collection of resources</span><br/><span style="font-weight:bold">messageis901: </span>First entry must be a MessageHeader with the messageheader-901 profile<br/><span style="font-weight:bold">OperationOutcome2nd: </span>Second entry must be an OperationOutcome</td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="interaction-bundle-901-definitions.html#Bundle.meta">meta</a><a name="Bundle.meta"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/2016may/resource.html#meta">Meta</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Metadata about the resource</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck103.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: white; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="interaction-bundle-901-definitions.html#Bundle.meta.profile">profile</a><a name="Bundle.meta.profile"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red; font-style: italic" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="font-style: italic">1</span><span style="font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="font-style: italic" href="http://hl7.org/fhir/2016may/profiling.html#slicing">(Slice Definition)</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Profiles this resource claims to conform to</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by value:value</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1034.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="interaction-bundle-901-definitions.html#Bundle.meta.profile:messageProfile" title="Slice messageProfile">profile:messageProfile</a><a name="Bundle.meta.profile"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/2016may/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Profiles this resource claims to conform to</span><br/><span style="font-weight:bold">Fixed Value: </span><a style="color: darkgreen" href="interaction-bundle-901.html">http://sharedhealth.exchange/fhir/StructureDefinition/interaction-bundle-901</a></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1025.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="interaction-bundle-901-definitions.html#Bundle.meta.tag:version" title="Slice version">tag:version</a><a name="Bundle.meta.tag"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/2016may/datatypes.html#Coding">Coding</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Tags applied to this resource</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10240.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="interaction-bundle-901-definitions.html#Bundle.meta.tag:version.code">code</a><a name="Bundle.meta.tag.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/2016may/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Symbol in syntax defined by the system</span><br/><span style="font-weight:bold">Fixed Value: </span><span style="color: darkgreen">Shared5.0</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="interaction-bundle-901-definitions.html#Bundle.entry">entry</a><a name="Bundle.entry"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">3..3</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/2016may/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Entry in the bundle - will have a resource, or information</span></td></tr>
<tr><td colspan="5" class="hierarchy"><br/><a href="http://hl7.org/fhir/2016may/formats.html#table" title="Legend for this format"><img src="http://hl7.org/fhir/2016may/help16.png" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
</text>
<url
value="http://sharedhealth.exchange/fhir/StructureDefinition/interaction-bundle-901"/>
<version value="5.0"/>
<name value="Interaction Bundle 901 - Message disposition notification"/>
<status value="draft"/>
<date value="2016-03-30T17:01:25-04:00"/>
<description
value="Message Bundle to asynchronously indicate that a message has not been delivered electronically as expected (but has been delivered by other means)"/>
<fhirVersion value="1.4.0"/>
<mapping>
<identity value="v2"/>
<uri value="http://hl7.org/v2"/>
<name value="HL7 v2"/>
</mapping>
<mapping>
<identity value="rim"/>
<uri value="http://hl7.org/v3"/>
<name value="RIM"/>
</mapping>
<mapping>
<identity value="w5"/>
<uri value="http://hl7.org/fhir/w5"/>
<name value="W5 Mapping"/>
</mapping>
<kind value="resource"/>
<abstract value="false"/>
<baseType value="Bundle"/>
<baseDefinition
value="http://sharedhealth.exchange/fhir/StructureDefinition/profile-bundle-message"/>
<derivation value="constraint"/>
<snapshot>
<element id="Bundle">
<path value="Bundle"/>
<short value="Contains a collection of resources"/>
<definition value="A container for a collection of resources."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Bundle"/>
<min value="0"/>
<max value="*"/>
</base>
<maxLength value="0"/>
<constraint>
<key value="bdl-2"/>
<severity value="error"/>
<human value="entry.search only when a search"/>
<expression value="entry.search.empty() or (type = 'searchset')"/>
<xpath
value="not(f:entry/f:search) or (f:type/@value = 'searchset')"/>
</constraint>
<constraint>
<key value="bdl-1"/>
<severity value="error"/>
<human value="total only when a search or history"/>
<expression
value="total.empty() or (type = 'searchset') or (type = 'history')"/>
<xpath
value="not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')"/>
</constraint>
<constraint>
<key value="bdl-7"/>
<severity value="error"/>
<human
value="FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId"/>
<expression
value="entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).distinct()"/>
<xpath
value="count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0"/>
</constraint>
<constraint>
<key value="bdl-3"/>
<severity value="error"/>
<human value="entry.request only for some types of bundles"/>
<expression
value="entry.request.empty() or type = 'batch' or type = 'transaction' or type = 'history'"/>
<xpath
value="not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')"/>
</constraint>
<constraint>
<key value="bdl-4"/>
<severity value="error"/>
<human value="entry.response only for some types of bundles"/>
<expression
value="entry.response.empty() or type = 'batch-response' or type = 'transaction-response'"/>
<xpath
value="not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response')"/>
</constraint>
<constraint>
<key value="max1patient"/>
<severity value="error"/>
<human value="Cannot have no more than 1 patient in one message"/>
<expression value="entry.select(resource as Patient).count()<=1"/>
<xpath value="count(f:entry/f:resource/f:Patient)<=1"/>
</constraint>
<constraint>
<key value="headerExists"/>
<severity value="error"/>
<human value="First entry must be a MessageHeader"/>
<expression value="entry[0].resource.is(MessageHeader)"/>
<xpath value="exists(f:entry[1]/f:resource/f:MessageHeader)"/>
</constraint>
<constraint>
<key value="groupIdsSame"/>
<severity value="error"/>
<human
value="GroupIdentifier values must all be the same within a message"/>
<expression
value="entry.resource.extension('http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier').value.value.distinct().count()<=1"/>
<xpath
value="count(distinct(f:entry/f:resource/f:MedicationRequest/f:extension[@url='http://hl7.org/fhir/StructureDefinition/extension-Task.groupIdentifier'])/f:valueIdentifier/f:value)<=1"/>
</constraint>
<constraint>
<key value="messageis901"/>
<severity value="error"/>
<human
value="First entry must be a MessageHeader with the messageheader-901 profile"/>
<expression
value="entry[0].resource.meta.where(profile='http://sharedhealth.exchange/fhir/StructureDefinition/interaction-messageheader-901').exists()"/>
<xpath
value="exists(f:entry[1]/f:resource/f:MessageHeader/f:meta[f:profile/@value='http://sharedhealth.exchange/fhir/StructureDefinition/interaction-messageheader-901'])"/>
</constraint>
<constraint>
<key value="OperationOutcome2nd"/>
<severity value="error"/>
<human value="Second entry must be an OperationOutcome"/>
<expression value="entry[1].resource.is(OperationOutcome)"/>
<xpath value="exists(f:entry[2]/f:resource/f:OperationOutcome)"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="v2"/>
<map value="N/A"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
<mapping>
<identity value="w5"/>
<map value="infrastructure.structure"/>
</mapping>
</element>
<element id="Bundle.id">
<path value="Bundle.id"/>
<short value="Logical id of this artifact"/>
<definition
value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
<comments
value="Usage Note: This value is assigned by the PrescribeIT® system upon receipt of a bundle and returned synchronously in the response to that bundle. This ID should not be confused with the traceID that is also returned in the response and is generally used when diagnosing message failures within the PrescribeIT® system logs. The Bundle.id is also used by receiving systems to remove the bundle from their inbox after they have successfully retrieved the bundle."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Resource.id"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="id"/>
</type>
<maxLength value="0"/>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.meta">
<path value="Bundle.meta"/>
<short value="Metadata about the resource"/>
<definition
value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Resource.meta"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Meta"/>
</type>
<maxLength value="0"/>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.meta.id">
<path value="Bundle.meta.id"/>
<representation value="xmlAttr"/>
<short value="xml:id (or equivalent in JSON)"/>
<definition
value="unique id for the element within a resource (for internal references)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="id"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.meta.extension">
<path value="Bundle.meta.extension"/>
<short value="Additional Content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comments
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.meta.versionId">
<path value="Bundle.meta.versionId"/>
<short value="Version specific identifier"/>
<definition
value="The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted."/>
<comments
value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Meta.versionId"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="id"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.meta.lastUpdated">
<path value="Bundle.meta.lastUpdated"/>
<short value="When the resource version last changed"/>
<definition
value="When the resource last changed - e.g. when the version changed."/>
<comments
value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Meta.lastUpdated"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="instant"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.meta.profile">
<path value="Bundle.meta.profile"/>
<slicing>
<discriminator value="value"/>
<rules value="open"/>
</slicing>
<short value="Profiles this resource claims to conform to"/>
<definition
value="A list of profiles [[[StructureDefinition]]]s that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]]."/>
<comments
value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/>
<min value="1"/>
<max value="*"/>
<base>
<path value="Meta.profile"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="uri"/>
</type>
<maxLength value="0"/>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.meta.profile:baseProfile">
<path value="Bundle.meta.profile"/>
<name value="baseProfile"/>
<short value="Profiles this resource claims to conform to"/>
<definition
value="A list of profiles [[[StructureDefinition]]]s that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]]."/>
<comments
value="Fixed value: http://sharedhealth.exchange/fhir/StructureDefinition/profile-bundle-message"/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Meta.profile"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="uri"/>
</type>
<fixedUri
value="http://sharedhealth.exchange/fhir/StructureDefinition/profile-bundle-message"/>
<maxLength value="0"/>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.meta.profile:messageProfile">
<path value="Bundle.meta.profile"/>
<name value="messageProfile"/>
<short value="Profiles this resource claims to conform to"/>
<definition
value="A list of profiles [[[StructureDefinition]]]s that this resource claims to conform to. The URL is a reference to [[[StructureDefinition.url]]]."/>
<comments
value="Fixed value: http://sharedhealth.exchange/fhir/StructureDefinition/interaction-bundle-901"/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Meta.profile"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="uri"/>
</type>
<fixedUri
value="http://sharedhealth.exchange/fhir/StructureDefinition/interaction-bundle-901"/>
<maxLength value="0"/>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.meta.security">
<path value="Bundle.meta.security"/>
<short value="Security Labels applied to this resource"/>
<definition
value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/>
<comments
value="The security labels can be updated without changing the stated version of the resource The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Meta.security"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Coding"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<strength value="extensible"/>
<description
value="Security Labels from the Healthcare Privacy and Security Classification System."/>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/security-labels"/>
</valueSetReference>
</binding>
</element>
<element id="Bundle.meta.tag">
<path value="Bundle.meta.tag"/>
<slicing>
<discriminator value="system"/>
<rules value="open"/>
</slicing>
<short value="Tags applied to this resource"/>
<definition
value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/>
<comments
value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/>
<min value="1"/>
<max value="*"/>
<base>
<path value="Meta.tag"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Coding"/>
</type>
<maxLength value="0"/>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<strength value="example"/>
<description
value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones""/>
</binding>
</element>
<element id="Bundle.meta.tag:version">
<path value="Bundle.meta.tag"/>
<name value="version"/>
<short value="Tags applied to this resource"/>
<definition
value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/>
<comments
value="Usage Note: This the version of the specification the Bundle claims to be conformant with.
Usage Note: Only these 2 situations are not enforced by FHIR Validator:
1) Non-routed EMR/PMS Inbox messages and Clear Queue Request that is sent only to Central Switch; and
2) Synchronous messages generated by Central Switch (Errors with only OperationOutcome profile and Clear Queue Response)"/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Meta.tag"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Coding"/>
</type>
<maxLength value="0"/>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<strength value="required"/>
<valueSetReference>
<reference
value="https://fhir.infoway-inforoute.ca/ValueSet/sharedspecificationversion|20210501"/>
</valueSetReference>
</binding>
</element>
<element id="Bundle.meta.tag:version.id">
<path value="Bundle.meta.tag.id"/>
<representation value="xmlAttr"/>
<short value="xml:id (or equivalent in JSON)"/>
<definition
value="unique id for the element within a resource (for internal references)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="id"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.meta.tag:version.extension">
<path value="Bundle.meta.tag.extension"/>
<short value="Additional Content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comments
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.meta.tag:version.system">
<path value="Bundle.meta.tag.system"/>
<short value="Identity of the terminology system"/>
<definition
value="The identification of the code system that defines the meaning of the symbol in the code."/>
<comments
value="Fixed value: https://fhir.infoway-inforoute.ca/CodeSystem/sharedspecificationversion"/>
<requirements
value="Need to be unambiguous about the source of the definition of the symbol."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Coding.system"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="uri"/>
</type>
<fixedUri
value="https://fhir.infoway-inforoute.ca/CodeSystem/sharedspecificationversion"/>
<maxLength value="0"/>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="orim"/>
<map
value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/>
</mapping>
<mapping>
<identity value="v2"/>
<map value="C*E.3"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="./codeSystem"/>
</mapping>
</element>
<element id="Bundle.meta.tag:version.version">
<path value="Bundle.meta.tag.version"/>
<short value="Version of the system - if relevant"/>
<definition
value="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged."/>
<comments
value="Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Coding.version"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="orim"/>
<map
value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/>
</mapping>
<mapping>
<identity value="v2"/>
<map value="C*E.7"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="./codeSystemVersion"/>
</mapping>
</element>
<element id="Bundle.meta.tag:version.code">
<path value="Bundle.meta.tag.code"/>
<short value="Symbol in syntax defined by the system"/>
<definition
value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)."/>
<comments value="Fixed value: Shared5.0"/>
<requirements value="Need to refer to a particular code in the system."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Coding.code"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<fixedCode value="Shared5.0"/>
<maxLength value="0"/>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="orim"/>
<map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/>
</mapping>
<mapping>
<identity value="v2"/>
<map value="C*E.1"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="./code"/>
</mapping>
</element>
<element id="Bundle.meta.tag:version.display">
<path value="Bundle.meta.tag.display"/>
<short value="Representation defined by the system"/>
<definition
value="A representation of the meaning of the code in the system, following the rules of the system."/>
<requirements
value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Coding.display"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="orim"/>
<map
value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/>
</mapping>
<mapping>
<identity value="v2"/>
<map value="C*E.2 - but note this is not well followed"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="CV.displayName"/>
</mapping>
</element>
<element id="Bundle.meta.tag:version.userSelected">
<path value="Bundle.meta.tag.userSelected"/>
<short value="If this coding was chosen directly by the user"/>
<definition
value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/>
<comments
value="Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely."/>
<requirements
value="This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Coding.userSelected"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="boolean"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="orim"/>
<map
value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]"/>
</mapping>
<mapping>
<identity value="v2"/>
<map value="Sometimes implied by being first"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="CD.codingRationale"/>
</mapping>
</element>
<element id="Bundle.implicitRules">
<path value="Bundle.implicitRules"/>
<short value="A set of rules under which this content was created"/>
<definition
value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content."/>
<comments
value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Resource.implicitRules"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="uri"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="true"/>
<isSummary value="true"/>
</element>
<element id="Bundle.language">
<path value="Bundle.language"/>
<short value="Language of the resource content"/>
<definition value="The base language in which the resource is written."/>
<comments
value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Resource.language"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="code"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<binding>
<strength value="required"/>
<description value="A human language."/>
<valueSetReference>
<reference value="http://tools.ietf.org/html/bcp47"/>
</valueSetReference>
</binding>
</element>
<element id="Bundle.type">
<path value="Bundle.type"/>
<short
value="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection"/>
<definition
value="Indicates the purpose of this bundle- how it was intended to be used."/>
<comments value="Fixed value: message"/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Bundle.type"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<fixedCode value="message"/>
<maxLength value="0"/>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<strength value="required"/>
<description
value="Indicates the purpose of a bundle - how it was intended to be used."/>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/bundle-type"/>
</valueSetReference>
</binding>
<mapping>
<identity value="w5"/>
<map value="class"/>
</mapping>
</element>
<element id="Bundle.total">
<path value="Bundle.total"/>
<short value="If search, the total number of matches"/>
<definition
value="If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle)."/>
<comments value="Only used if the bundle is a search result set."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Bundle.total"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="unsignedInt"/>
</type>
<maxLength value="0"/>
<condition value="bdl-1"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.link">
<path value="Bundle.link"/>
<short value="Links related to this Bundle"/>
<definition value="A series of links that provide context to this bundle."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Bundle.link"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="BackboneElement"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.link.id">
<path value="Bundle.link.id"/>
<representation value="xmlAttr"/>
<short value="xml:id (or equivalent in JSON)"/>
<definition
value="unique id for the element within a resource (for internal references)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="id"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.link.extension">
<path value="Bundle.link.extension"/>
<short value="Additional Content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comments
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.link.modifierExtension">
<path value="Bundle.link.modifierExtension"/>
<short value="Extensions that cannot be ignored"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
<comments
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<alias value="modifiers"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="BackboneElement.modifierExtension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="true"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="Bundle.link.relation">
<path value="Bundle.link.relation"/>
<short
value="http://www.iana.org/assignments/link-relations/link-relations.xhtml"/>
<definition
value="A name which details the functional use for this link - see [[http://www.iana.org/assignments/link-relations/link-relations.xhtml]]."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Bundle.link.relation"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.link.url">
<path value="Bundle.link.url"/>
<short value="Reference details for the link"/>
<definition value="The reference details for the link."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Bundle.link.url"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="uri"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry">
<path value="Bundle.entry"/>
<short value="Entry in the bundle - will have a resource, or information"/>
<definition
value="An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only)."/>
<min value="3"/>
<max value="3"/>
<base>
<path value="Bundle.entry"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="BackboneElement"/>
</type>
<maxLength value="0"/>
<constraint>
<key value="bdl-5"/>
<severity value="error"/>
<human
value="must be a resource unless there's a request or response"/>
<expression
value="resource.exists() or request.exists() or response.exists()"/>
<xpath value="f:resource or f:request or f:response"/>
</constraint>
<constraint>
<key value="bdl-6"/>
<severity value="error"/>
<human
value="The fullUrl element must be present when a resource is present, and not present otherwise"/>
<expression value="fullUrl.empty() xor resource"/>
<xpath
value="(not(exists(f:fullUrl)) and not(exists(f:resource))) or (exists(f:fullUrl) and exists(f:resource))"/>
</constraint>
<constraint>
<key value="tbdl-1"/>
<severity value="error"/>
<human value="Full URL must end with resource id when present"/>
<expression
value="fullUrl.exists().not() or resource.id.exists().not() or fullUrl.endsWith($this.resource.id)"/>
<xpath
value="not(exists(f:fullUrl)) or not(exists(f:resource/f:id)) or starts-with(f:url/@value, f:resource/f:id/@value)"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.id">
<path value="Bundle.entry.id"/>
<representation value="xmlAttr"/>
<short value="xml:id (or equivalent in JSON)"/>
<definition
value="unique id for the element within a resource (for internal references)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="id"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.entry.extension">
<path value="Bundle.entry.extension"/>
<short value="Additional Content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comments
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.entry.modifierExtension">
<path value="Bundle.entry.modifierExtension"/>
<short value="Extensions that cannot be ignored"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
<comments
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<alias value="modifiers"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="BackboneElement.modifierExtension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="true"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="Bundle.entry.link">
<path value="Bundle.entry.link"/>
<short value="Links related to this entry"/>
<definition value="A series of links that provide context to this entry."/>
<min value="0"/>
<max value="0"/>
<base>
<path value="Bundle.entry.link"/>
<min value="0"/>
<max value="*"/>
</base>
<contentReference
value="http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"/>
<mustSupport value="false"/>
</element>
<element id="Bundle.entry.fullUrl">
<path value="Bundle.entry.fullUrl"/>
<short value="Absolute URL for resource (server address, or UUID/OID)"/>
<definition
value="The Absolute URL for the resource. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: * fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle) * Results from operations might involve resources that are not identified."/>
<comments
value="fullUrl may not be [unique in the context of a resource](http://hl7.org/fhir/2016May/bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](http://hl7.org/fhir/2016May/references.html), the absolute URL may not end with the logical id of the resource (Resource.id), but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](http://hl7.org/fhir/2016May/references.html#regex), then it SHALL end with the Resource.id."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Bundle.entry.fullUrl"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="uri"/>
</type>
<maxLength value="0"/>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.resource">
<path value="Bundle.entry.resource"/>
<short value="A resource in the bundle"/>
<definition value="The Resources for the entry."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Bundle.entry.resource"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Resource"/>
</type>
<maxLength value="0"/>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.search">
<path value="Bundle.entry.search"/>
<short value="Search related information"/>
<definition
value="Information about the search process that lead to the creation of this entry."/>
<min value="0"/>
<max value="0"/>
<base>
<path value="Bundle.entry.search"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="BackboneElement"/>
</type>
<maxLength value="0"/>
<condition value="bdl-2"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.search.id">
<path value="Bundle.entry.search.id"/>
<representation value="xmlAttr"/>
<short value="xml:id (or equivalent in JSON)"/>
<definition
value="unique id for the element within a resource (for internal references)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="id"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.entry.search.extension">
<path value="Bundle.entry.search.extension"/>
<short value="Additional Content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comments
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.entry.search.modifierExtension">
<path value="Bundle.entry.search.modifierExtension"/>
<short value="Extensions that cannot be ignored"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
<comments
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<alias value="modifiers"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="BackboneElement.modifierExtension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="true"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="Bundle.entry.search.mode">
<path value="Bundle.entry.search.mode"/>
<short value="match | include | outcome - why this is in the result set"/>
<definition
value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement."/>
<comments
value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Bundle.entry.search.mode"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<strength value="required"/>
<description
value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement."/>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/search-entry-mode"/>
</valueSetReference>
</binding>
</element>
<element id="Bundle.entry.search.score">
<path value="Bundle.entry.search.score"/>
<short value="Search ranking (between 0 and 1)"/>
<definition
value="When searching, the server's search ranking score for the entry."/>
<comments
value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Bundle.entry.search.score"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="decimal"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.request">
<path value="Bundle.entry.request"/>
<short value="Transaction Related Information"/>
<definition
value="Additional information about how this entry should be processed as part of a transaction."/>
<min value="0"/>
<max value="0"/>
<base>
<path value="Bundle.entry.request"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="BackboneElement"/>
</type>
<maxLength value="0"/>
<condition value="bdl-3"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.request.id">
<path value="Bundle.entry.request.id"/>
<representation value="xmlAttr"/>
<short value="xml:id (or equivalent in JSON)"/>
<definition
value="unique id for the element within a resource (for internal references)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="id"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.entry.request.extension">
<path value="Bundle.entry.request.extension"/>
<short value="Additional Content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comments
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.entry.request.modifierExtension">
<path value="Bundle.entry.request.modifierExtension"/>
<short value="Extensions that cannot be ignored"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
<comments
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<alias value="modifiers"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="BackboneElement.modifierExtension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="true"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="Bundle.entry.request.method">
<path value="Bundle.entry.request.method"/>
<short value="GET | POST | PUT | DELETE"/>
<definition
value="The HTTP verb for this entry in either a change history, or a transaction/ transaction response."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Bundle.entry.request.method"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<strength value="required"/>
<description value="HTTP verbs (in the HTTP command line)."/>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/http-verb"/>
</valueSetReference>
</binding>
</element>
<element id="Bundle.entry.request.url">
<path value="Bundle.entry.request.url"/>
<short value="URL for HTTP equivalent of this entry"/>
<definition
value="The URL for this entry, relative to the root (the address to which the request is posted)."/>
<comments
value="E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT, and the URL would be "Patient/[id]"."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Bundle.entry.request.url"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="uri"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.request.ifNoneMatch">
<path value="Bundle.entry.request.ifNoneMatch"/>
<short value="For managing cache currency"/>
<definition
value="If the ETag values match, return a 304 Not modified status. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/2016May/http.html#cread)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Bundle.entry.request.ifNoneMatch"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.request.ifModifiedSince">
<path value="Bundle.entry.request.ifModifiedSince"/>
<short value="For managing update contention"/>
<definition
value="Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http://hl7.org/fhir/2016May/http.html#cread)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Bundle.entry.request.ifModifiedSince"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="instant"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.request.ifMatch">
<path value="Bundle.entry.request.ifMatch"/>
<short value="For managing update contention"/>
<definition
value="Only perform the operation if the Etag value matches. For more information, see the API section ["Managing Resource Contention"](http://hl7.org/fhir/2016May/http.html#concurrency)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Bundle.entry.request.ifMatch"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.request.ifNoneExist">
<path value="Bundle.entry.request.ifNoneExist"/>
<short value="For conditional creates"/>
<definition
value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for ["Conditional Create"](http://hl7.org/fhir/2016May/http.html#ccreate). This is just the query portion of the URL - what follows the "?" (not including the "?")."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Bundle.entry.request.ifNoneExist"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.response">
<path value="Bundle.entry.response"/>
<short value="Transaction Related Information"/>
<definition
value="Additional information about how this entry should be processed as part of a transaction."/>
<min value="0"/>
<max value="0"/>
<base>
<path value="Bundle.entry.response"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="BackboneElement"/>
</type>
<maxLength value="0"/>
<condition value="bdl-4"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.response.id">
<path value="Bundle.entry.response.id"/>
<representation value="xmlAttr"/>
<short value="xml:id (or equivalent in JSON)"/>
<definition
value="unique id for the element within a resource (for internal references)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="id"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.entry.response.extension">
<path value="Bundle.entry.response.extension"/>
<short value="Additional Content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comments
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Bundle.entry.response.modifierExtension">
<path value="Bundle.entry.response.modifierExtension"/>
<short value="Extensions that cannot be ignored"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
<comments
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<alias value="modifiers"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="BackboneElement.modifierExtension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="true"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="Bundle.entry.response.status">
<path value="Bundle.entry.response.status"/>
<short value="Status response code (text optional)"/>
<definition
value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Bundle.entry.response.status"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.response.location">
<path value="Bundle.entry.response.location"/>
<short value="The location, if the operation returns a location"/>
<definition
value="The location header created by processing this operation."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Bundle.entry.response.location"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="uri"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.response.etag">
<path value="Bundle.entry.response.etag"/>
<short value="The etag for the resource (if relevant)"/>
<definition
value="The etag for the resource, it the operation for the entry produced a versioned resource."/>
<comments
value="This has to match the version id in the header if a resource is included."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Bundle.entry.response.etag"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.entry.response.lastModified">
<path value="Bundle.entry.response.lastModified"/>
<short value="Server's date time modified"/>
<definition
value="The date/time that the resource was modified on the server."/>
<comments
value="This has to match the same time in the meta header if a resource is included."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Bundle.entry.response.lastModified"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="instant"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="Bundle.signature">
<path value="Bundle.signature"/>
<short value="Digital Signature"/>
<definition
value="Digital Signature - base64 encoded. XML DigSIg or a JWT."/>
<comments
value="The signature could be created by the "author" of the bundle or by the originating device. Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific."/>
<requirements
value="This element allows capturing signatures on documents. It also allows signatures on messages, transactions or even query responses. It may support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Bundle.signature"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Signature"/>
</type>
<maxLength value="0"/>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
</snapshot>
<differential>
<element id="Bundle">
<path value="Bundle"/>
<constraint>
<key value="messageis901"/>
<severity value="error"/>
<human
value="First entry must be a MessageHeader with the messageheader-901 profile"/>
<expression
value="entry[0].resource.meta.where(profile='http://sharedhealth.exchange/fhir/StructureDefinition/interaction-messageheader-901').exists()"/>
<xpath
value="exists(f:entry[1]/f:resource/f:MessageHeader/f:meta[f:profile/@value='http://sharedhealth.exchange/fhir/StructureDefinition/interaction-messageheader-901'])"/>
</constraint>
<constraint>
<key value="OperationOutcome2nd"/>
<severity value="error"/>
<human value="Second entry must be an OperationOutcome"/>
<expression value="entry[1].resource.is(OperationOutcome)"/>
<xpath value="exists(f:entry[2]/f:resource/f:OperationOutcome)"/>
</constraint>
<mustSupport value="true"/>
</element>
<element id="Bundle.meta">
<path value="Bundle.meta"/>
<min value="1"/>
<mustSupport value="true"/>
</element>
<element id="Bundle.meta.profile">
<path value="Bundle.meta.profile"/>
<slicing>
<discriminator value="value"/>
<rules value="open"/>
</slicing>
<min value="1"/>
<mustSupport value="true"/>
</element>
<element id="Bundle.meta.profile:messageProfile">
<path value="Bundle.meta.profile"/>
<name value="messageProfile"/>
<comments
value="Fixed value: http://sharedhealth.exchange/fhir/StructureDefinition/interaction-bundle-901"/>
<min value="1"/>
<max value="1"/>
<fixedUri
value="http://sharedhealth.exchange/fhir/StructureDefinition/interaction-bundle-901"/>
<mustSupport value="true"/>
</element>
<element id="Bundle.meta.tag:version">
<path value="Bundle.meta.tag"/>
<name value="version"/>
<mustSupport value="true"/>
</element>
<element id="Bundle.meta.tag:version.code">
<path value="Bundle.meta.tag.code"/>
<comments value="Fixed value: Shared5.0"/>
<min value="1"/>
<fixedCode value="Shared5.0"/>
<mustSupport value="true"/>
</element>
<element id="Bundle.entry">
<path value="Bundle.entry"/>
<min value="3"/>
<max value="3"/>
<mustSupport value="true"/>
</element>
</differential>
</StructureDefinition>