API Hub
Explore and Make use of Nationally Defined Messaging APIs
This is a HL7 FHIR server, and as you appear to be accessing this page from a web browser you are seeing a HTML version of the requested resource(s). You can also access this URL from a FHIR client as a ReSTful API call. For more details please see the HL7 FHIR specification.
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="ITK-MessageHeader-2"></id>
<meta>
<lastUpdated value="2018-08-17T12:12:30.86+01:00"></lastUpdated>
</meta>
<text>
<status value="generated"></status>
</text>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
<valueCode value="inm"></valueCode>
</extension>
<url value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-MessageHeader-2"></url>
<version value="2.1.0"></version>
<name value="ITK-MessageHeader-2"></name>
<status value="active"></status>
<date value="2018-08-17"></date>
<publisher value="NHS Digital"></publisher>
<contact>
<name value="Interoperability Team"></name>
<telecom>
<system value="email"></system>
<value value="interoperabilityteam@nhs.net"></value>
<use value="work"></use>
</telecom>
</contact>
<description value="This is a constrained MessageHeader resource represents the header for a message exchange that is either requesting or responding to an action. "></description>
<purpose value="This is the header for a message exchange that is either requesting or responding to an action. "></purpose>
<copyright value="Copyright © 2018 NHS Digital"></copyright>
<fhirVersion value="3.0.1"></fhirVersion>
<kind value="resource"></kind>
<abstract value="false"></abstract>
<type value="MessageHeader"></type>
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/MessageHeader"></baseDefinition>
<derivation value="constraint"></derivation>
<snapshot>
<element id="MessageHeader">
<path value="MessageHeader"></path>
<short value="A resource that describes a message that is exchanged between systems"></short>
<definition value="The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle."></definition>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Resource"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<constraint>
<key value="dom-2"></key>
<severity value="error"></severity>
<human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"></human>
<expression value="contained.contained.empty()"></expression>
<xpath value="not(parent::f:contained and f:contained)"></xpath>
</constraint>
<constraint>
<key value="dom-1"></key>
<severity value="error"></severity>
<human value="If the resource is contained in another resource, it SHALL NOT contain any narrative"></human>
<expression value="contained.text.empty()"></expression>
<xpath value="not(parent::f:contained and f:text)"></xpath>
</constraint>
<constraint>
<key value="dom-4"></key>
<severity value="error"></severity>
<human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"></human>
<expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"></expression>
<xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"></xpath>
</constraint>
<constraint>
<key value="dom-3"></key>
<severity value="error"></severity>
<human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource"></human>
<expression value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()"></expression>
<xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="Entity. Role, or Act"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="MSH / MSA / ERR"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Message"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="infrastructure.exchange"></map>
</mapping>
</element>
<element id="MessageHeader.id">
<path value="MessageHeader.id"></path>
<short value="Logical id of this artifact"></short>
<definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."></definition>
<comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Resource.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="id"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.meta">
<path value="MessageHeader.meta"></path>
<short value="Metadata about the resource"></short>
<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."></definition>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Resource.meta"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Meta"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.implicitRules">
<path value="MessageHeader.implicitRules"></path>
<short value="A set of rules under which this content was created"></short>
<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."></definition>
<comment 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. This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Resource.implicitRules"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.language">
<path value="MessageHeader.language"></path>
<short value="Language of the resource content"></short>
<definition value="The base language in which the resource is written."></definition>
<comment 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)."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Resource.language"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
<valueReference>
<reference value="http://hl7.org/fhir/ValueSet/all-languages"></reference>
</valueReference>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="Language"></valueString>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
<valueBoolean value="true"></valueBoolean>
</extension>
<strength value="extensible"></strength>
<description value="A human language."></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/languages"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.text">
<path value="MessageHeader.text"></path>
<short value="Text summary of the resource, for human interpretation"></short>
<definition value="A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."></definition>
<comment value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded in formation is added later."></comment>
<alias value="narrative"></alias>
<alias value="html"></alias>
<alias value="xhtml"></alias>
<alias value="display"></alias>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="DomainResource.text"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Narrative"></code>
</type>
<condition value="ele-1"></condition>
<condition value="dom-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Act.text?"></map>
</mapping>
</element>
<element id="MessageHeader.contained">
<path value="MessageHeader.contained"></path>
<short value="Contained, inline Resources"></short>
<definition value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."></definition>
<comment value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again."></comment>
<alias value="inline resources"></alias>
<alias value="anonymous resources"></alias>
<alias value="contained resources"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="DomainResource.contained"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Resource"></code>
</type>
<mapping>
<identity value="rim"></identity>
<map value="Entity. Role, or Act"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.extension">
<path value="MessageHeader.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<definition value="May be used to represent additional information that is not part of the basic definition of the resource. 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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="DomainResource.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.extension:ITKMessageHandling">
<path value="MessageHeader.extension"></path>
<sliceName value="ITKMessageHandling"></sliceName>
<short value="An extension to support ITK message handling"></short>
<definition value="Optional Extension Element - found in all resources."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="DomainResource.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ITK-MessageHandling-2"></profile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.modifierExtension">
<path value="MessageHeader.modifierExtension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Extensions that cannot be ignored"></short>
<definition value="May be used to represent additional information that is not part of the basic definition of the resource, 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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="DomainResource.modifierExtension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.event">
<path value="MessageHeader.event"></path>
<short value="Code for the event this message represents"></short>
<definition value="Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://hl7.org/fhir/message-events"."></definition>
<comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information."></comment>
<requirements value="Drives the behavior associated with this message."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.event"></path>
<min value="1"></min>
<max value="1"></max>
</base>
<type>
<code value="Coding"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MessageEvent"></valueString>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
<valueBoolean value="true"></valueBoolean>
</extension>
<strength value="extensible"></strength>
<description value="A set of codes to classify the type of event."></description>
<valueSetReference>
<reference value="https://fhir.nhs.uk/STU3/ValueSet/ITK-MessageEvent-2"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CV"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding rdfs:subClassOf dt:CDCoding"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="MSH-9.2"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./payload[classCode="CACT" and moodCode="EVN" and isNormalAct()]/code[isNormalDatatype()]/code"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="what"></map>
</mapping>
</element>
<element id="MessageHeader.event.id">
<path value="MessageHeader.event.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.event.extension">
<path value="MessageHeader.event.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.event.system">
<path value="MessageHeader.event.system"></path>
<short value="Identity of the terminology system"></short>
<definition value="The identification of the code system that defines the meaning of the symbol in the code."></definition>
<comment value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously."></comment>
<requirements value="Need to be unambiguous about the source of the definition of the symbol."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Coding.system"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<fixedUri value="https://fhir.nhs.uk/STU3/CodeSystem/ITK-MessageEvent-2"></fixedUri>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.3"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./codeSystem"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"></map>
</mapping>
</element>
<element id="MessageHeader.event.version">
<path value="MessageHeader.event.version"></path>
<short value="Version of the system - if relevant"></short>
<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."></definition>
<comment 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."></comment>
<min value="0"></min>
<max value="0"></max>
<base>
<path value="Coding.version"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.7"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./codeSystemVersion"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"></map>
</mapping>
</element>
<element id="MessageHeader.event.code">
<path value="MessageHeader.event.code"></path>
<short value="Symbol in syntax defined by the system"></short>
<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)."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<requirements value="Need to refer to a particular code in the system."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Coding.code"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.1"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./code"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"></map>
</mapping>
</element>
<element id="MessageHeader.event.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.event.display"></path>
<short value="Representation defined by the system"></short>
<definition value="A representation of the meaning of the code in the system, following the rules of the system."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Coding.display"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.2 - but note this is not well followed"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CV.displayName"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"></map>
</mapping>
</element>
<element id="MessageHeader.event.userSelected">
<path value="MessageHeader.event.userSelected"></path>
<short value="If this coding was chosen directly by the user"></short>
<definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."></definition>
<comment 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."></comment>
<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."></requirements>
<min value="0"></min>
<max value="0"></max>
<base>
<path value="Coding.userSelected"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="boolean"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="Sometimes implied by being first"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD.codingRationale"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<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 ]"></map>
</mapping>
</element>
<element id="MessageHeader.destination">
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
<valueString value="MessageDestination"></valueString>
</extension>
<path value="MessageHeader.destination"></path>
<short value="Message destination application(s)"></short>
<definition value="The destination application which the message is intended for."></definition>
<comment value="There SHOULD be at least one destination, but in some circumstances, the source system is unaware of any particular destination system."></comment>
<requirements value="Indicates where message is to be sent for routing purposes. Allows verification of "am I the intended recipient"."></requirements>
<min value="0"></min>
<max value="0"></max>
<base>
<path value="MessageHeader.destination"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="BackboneElement"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./communicationFunction[typeCode="RCV"]"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="who.focus"></map>
</mapping>
</element>
<element id="MessageHeader.destination.id">
<path value="MessageHeader.destination.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.destination.extension">
<path value="MessageHeader.destination.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.destination.modifierExtension">
<path value="MessageHeader.destination.modifierExtension"></path>
<short value="Extensions that cannot be ignored"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<alias value="modifiers"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="BackboneElement.modifierExtension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.destination.name">
<path value="MessageHeader.destination.name"></path>
<short value="Name of system"></short>
<definition value="Human-readable name for the target system."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<requirements value="May be used for routing of response and/or to support audit."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.destination.name"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="MSH-5"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="unique(./entity[determinerCode="INST" and (classCode=("DEV", "PSN", "ORG"]/name[type='ST' and isNormalDatatype()])"></map>
</mapping>
</element>
<element id="MessageHeader.destination.target">
<path value="MessageHeader.destination.target"></path>
<short value="Particular delivery destination within the destination"></short>
<definition value="Identifies the target end system in situations where the initial message transmission is to an intermediary system."></definition>
<comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."></comment>
<requirements value="Supports multi-hop routing."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.destination.target"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Device-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="unique(./entity[determinerCode="INST" and (classCode=("DEV", "PSN", "ORG"]"></map>
</mapping>
</element>
<element id="MessageHeader.destination.target.id">
<path value="MessageHeader.destination.target.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.destination.target.extension">
<path value="MessageHeader.destination.target.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.destination.target.reference">
<path value="MessageHeader.destination.target.reference"></path>
<short value="Literal reference, Relative, internal or absolute URL"></short>
<definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."></definition>
<comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Reference.reference"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<condition value="ref-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.destination.target.identifier">
<path value="MessageHeader.destination.target.identifier"></path>
<short value="Logical reference, when literal reference is not known"></short>
<definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."></definition>
<comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.identifier"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Identifier"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="Identifier"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".identifier"></map>
</mapping>
</element>
<element id="MessageHeader.destination.target.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.destination.target.display"></path>
<short value="Text alternative for the resource"></short>
<definition value="Plain text narrative that identifies the resource in addition to the resource reference."></definition>
<comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.display"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.destination.endpoint">
<path value="MessageHeader.destination.endpoint"></path>
<short value="Actual destination address or id"></short>
<definition value="Indicates where the message should be routed to."></definition>
<comment value="The id may be a non-resolvable URI for systems that do not use standard network-based addresses."></comment>
<requirements value="Identifies where to route the message."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.destination.endpoint"></path>
<min value="1"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="MSH-25 (or MSH-6)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./telecom"></map>
</mapping>
</element>
<element id="MessageHeader.receiver">
<path value="MessageHeader.receiver"></path>
<short value="Intended "real-world" recipient for the data"></short>
<definition value="Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient."></definition>
<comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."></comment>
<requirements value="Allows routing beyond just the application level."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.receiver"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Organization-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="PRT-5:PRT-4='WAYR' / PRT-8:PRT-4='WAYR'"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Not directly supported. Could be shared using attentionLine.value with an appropriate keyWordText"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="who.focus"></map>
</mapping>
</element>
<element id="MessageHeader.receiver.id">
<path value="MessageHeader.receiver.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.receiver.extension">
<path value="MessageHeader.receiver.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.receiver.reference">
<path value="MessageHeader.receiver.reference"></path>
<short value="Literal reference, Relative, internal or absolute URL"></short>
<definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."></definition>
<comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Reference.reference"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<condition value="ref-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.receiver.identifier">
<path value="MessageHeader.receiver.identifier"></path>
<short value="Logical reference, when literal reference is not known"></short>
<definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."></definition>
<comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.identifier"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Identifier"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="Identifier"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".identifier"></map>
</mapping>
</element>
<element id="MessageHeader.receiver.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.receiver.display"></path>
<short value="Text alternative for the resource"></short>
<definition value="Plain text narrative that identifies the resource in addition to the resource reference."></definition>
<comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.display"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.sender">
<path value="MessageHeader.sender"></path>
<short value="Real world sender of the message"></short>
<definition value="Identifies the sending system to allow the use of a trust relationship."></definition>
<comment value="Use case is for where a (trusted) sending system is responsible for multiple organizations, and therefore cannot differentiate based on source endpoint / authentication alone."></comment>
<requirements value="Allows routing beyond just the application level."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.sender"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Organization-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="PRT-5:PRT-4='WAYR' / PRT-8:PRT-4='WAYR'"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Not directly supported. Could be shared using attentionLine.value with an appropriate keyWordText"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="who.focus"></map>
</mapping>
</element>
<element id="MessageHeader.sender.id">
<path value="MessageHeader.sender.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.sender.extension">
<path value="MessageHeader.sender.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.sender.reference">
<path value="MessageHeader.sender.reference"></path>
<short value="Literal reference, Relative, internal or absolute URL"></short>
<definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."></definition>
<comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Reference.reference"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<condition value="ref-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.sender.identifier">
<path value="MessageHeader.sender.identifier"></path>
<short value="Logical reference, when literal reference is not known"></short>
<definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."></definition>
<comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.identifier"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Identifier"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="Identifier"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".identifier"></map>
</mapping>
</element>
<element id="MessageHeader.sender.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.sender.display"></path>
<short value="Text alternative for the resource"></short>
<definition value="Plain text narrative that identifies the resource in addition to the resource reference."></definition>
<comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.display"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.timestamp">
<path value="MessageHeader.timestamp"></path>
<short value="Time that the message was sent"></short>
<definition value="The time that the message was sent."></definition>
<comment value="Note: This is intended for precisely observed times, typically system logs etc., and not human-reported times - for them, see date and dateTime below. Time zone is always required"></comment>
<requirements value="Allows limited detection of out-of-order and delayed transmission. Also supports audit."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.timestamp"></path>
<min value="1"></min>
<max value="1"></max>
</base>
<type>
<code value="instant"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="MSH-7"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./creationTime[isNormalDatatype()]"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="when.init"></map>
</mapping>
</element>
<element id="MessageHeader.enterer">
<path value="MessageHeader.enterer"></path>
<short value="The source of the data entry"></short>
<definition value="The person or device that performed the data entry leading to this message. When there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions."></definition>
<comment value="Usually only for the request, but can be used in a response."></comment>
<requirements value="Need to know for audit/traceback requirements and possibly for authorization."></requirements>
<min value="0"></min>
<max value="0"></max>
<base>
<path value="MessageHeader.enterer"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="EVN-5 / ORC-10 / PRT-5:PRT-4='EP' / ROL where ROL.3 is EP or ORC.10"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="unique(./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/participation[typeCode="ENT" and isNormalParticipation]/role[classCode="ASSIGNED" and isNormalRole()]/player[isNormalEntity() and classCode=("DEV", "PSN") and determinerCode="INST"])"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="who.author"></map>
</mapping>
</element>
<element id="MessageHeader.enterer.id">
<path value="MessageHeader.enterer.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.enterer.extension">
<path value="MessageHeader.enterer.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.enterer.reference">
<path value="MessageHeader.enterer.reference"></path>
<short value="Literal reference, Relative, internal or absolute URL"></short>
<definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."></definition>
<comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Reference.reference"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<condition value="ref-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.enterer.identifier">
<path value="MessageHeader.enterer.identifier"></path>
<short value="Logical reference, when literal reference is not known"></short>
<definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."></definition>
<comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.identifier"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Identifier"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="Identifier"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".identifier"></map>
</mapping>
</element>
<element id="MessageHeader.enterer.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.enterer.display"></path>
<short value="Text alternative for the resource"></short>
<definition value="Plain text narrative that identifies the resource in addition to the resource reference."></definition>
<comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.display"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.author">
<path value="MessageHeader.author"></path>
<short value="The source of the decision"></short>
<definition value="The logical author of the message - the person or device that decided the described event should happen. When there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions."></definition>
<comment value="Usually only for the request, but can be used in a response."></comment>
<requirements value="Need to know for audit/traceback requirements and possibly for authorization."></requirements>
<min value="0"></min>
<max value="0"></max>
<base>
<path value="MessageHeader.author"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="ORC-19 / PRT-5:PRT-4='AUT' / ROL where ROL.3 is IP or ORC.12"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="unique(./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/participation[isHighest(priorityCode) and typeCode="AUT" and isNormalParticipation]/role[classCode="ASSIGNED" and isNormalRole()]/player[isNormalEntity() and classCode=("DEV", "PSN") and determinerCode="INST"])"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="who.author"></map>
</mapping>
</element>
<element id="MessageHeader.author.id">
<path value="MessageHeader.author.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.author.extension">
<path value="MessageHeader.author.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.author.reference">
<path value="MessageHeader.author.reference"></path>
<short value="Literal reference, Relative, internal or absolute URL"></short>
<definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."></definition>
<comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Reference.reference"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<condition value="ref-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.author.identifier">
<path value="MessageHeader.author.identifier"></path>
<short value="Logical reference, when literal reference is not known"></short>
<definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."></definition>
<comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.identifier"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Identifier"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="Identifier"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".identifier"></map>
</mapping>
</element>
<element id="MessageHeader.author.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.author.display"></path>
<short value="Text alternative for the resource"></short>
<definition value="Plain text narrative that identifies the resource in addition to the resource reference."></definition>
<comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.display"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.source">
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
<valueString value="MessageSource"></valueString>
</extension>
<path value="MessageHeader.source"></path>
<short value="Message source application"></short>
<definition value="The source application from which this message originated."></definition>
<requirements value="Allows replies, supports audit."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.source"></path>
<min value="1"></min>
<max value="1"></max>
</base>
<type>
<code value="BackboneElement"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="unique(./communicationFunction[typeCode="SND"])"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="who.actor"></map>
</mapping>
</element>
<element id="MessageHeader.source.id">
<path value="MessageHeader.source.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.source.extension">
<path value="MessageHeader.source.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.source.modifierExtension">
<path value="MessageHeader.source.modifierExtension"></path>
<short value="Extensions that cannot be ignored"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<alias value="modifiers"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="BackboneElement.modifierExtension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.source.name">
<path value="MessageHeader.source.name"></path>
<short value="Name of system"></short>
<definition value="Human-readable name for the source system."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<requirements value="May be used to support audit."></requirements>
<min value="0"></min>
<max value="0"></max>
<base>
<path value="MessageHeader.source.name"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="MSH-3"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="unique(./entity[determinerCode="INST" and classCode="DEV"]/name[type='ST' and isNormalDatatype()])"></map>
</mapping>
</element>
<element id="MessageHeader.source.software">
<path value="MessageHeader.source.software"></path>
<short value="Name of software running the system"></short>
<definition value="May include configuration or other information useful in debugging."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<requirements value="Supports audit and possibly interface engine behavior."></requirements>
<min value="0"></min>
<max value="0"></max>
<base>
<path value="MessageHeader.source.software"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SFT-3 ( +SFT-1)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="unique(./entity[determinerCode="INST" and classCode="DEV"]/softwareName[isNormalDatatype()])"></map>
</mapping>
</element>
<element id="MessageHeader.source.version">
<path value="MessageHeader.source.version"></path>
<short value="Version of software running"></short>
<definition value="Can convey versions of multiple systems in situations where a message passes through multiple hands."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<requirements value="Supports audit and possibly interface engine behavior."></requirements>
<min value="0"></min>
<max value="0"></max>
<base>
<path value="MessageHeader.source.version"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SFT-2"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="(Not supported)"></map>
</mapping>
</element>
<element id="MessageHeader.source.contact">
<path value="MessageHeader.source.contact"></path>
<short value="Human contact for problems"></short>
<definition value="An e-mail, phone, website or other contact point to use to resolve issues with message communications."></definition>
<requirements value="Allows escalation of technical issues."></requirements>
<min value="0"></min>
<max value="0"></max>
<base>
<path value="MessageHeader.source.contact"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="ContactPoint"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="cpt-2"></key>
<severity value="error"></severity>
<human value="A system is required if a value is provided."></human>
<expression value="value.empty() or system.exists()"></expression>
<xpath value="not(exists(f:value)) or exists(f:system)"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="XTN"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="TEL"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="ContactPoint"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="(MSH-22?)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="unique(./entity[determinerCode="INST" and classCode="DEV"]/scopesRole[normalRole() and classCode="CON" and layer[classCode="PSN"]/telecom[isNormalDatatype()])"></map>
</mapping>
</element>
<element id="MessageHeader.source.contact.id">
<path value="MessageHeader.source.contact.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.source.contact.extension">
<path value="MessageHeader.source.contact.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.source.contact.system">
<path value="MessageHeader.source.contact.system"></path>
<short value="phone | fax | email | pager | url | sms | other"></short>
<definition value="Telecommunications form for contact point - what communications system is required to make use of the contact."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="ContactPoint.system"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<condition value="cpt-2"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="ContactPointSystem"></valueString>
</extension>
<strength value="required"></strength>
<description value="Telecommunications form for contact point"></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/contact-point-system"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="XTN.3"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./scheme"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./ContactPointType"></map>
</mapping>
</element>
<element id="MessageHeader.source.contact.value">
<path value="MessageHeader.source.contact.value"></path>
<short value="The actual contact point details"></short>
<definition value="The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address)."></definition>
<comment value="Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value."></comment>
<requirements value="Need to support legacy numbers that are not in a tightly controlled format."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="ContactPoint.value"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="XTN.1 (or XTN.12)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./url"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./Value"></map>
</mapping>
</element>
<element id="MessageHeader.source.contact.use">
<path value="MessageHeader.source.contact.use"></path>
<short value="home | work | temp | old | mobile - purpose of this contact point"></short>
<definition value="Identifies the purpose for the contact point."></definition>
<comment value="This is labeled as "Is Modifier" because applications should not mistake a temporary or old contact etc.for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old."></comment>
<requirements value="Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="ContactPoint.use"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="ContactPointUse"></valueString>
</extension>
<strength value="required"></strength>
<description value="Use of contact point"></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/contact-point-use"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="XTN.2 - but often indicated by field"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="unique(./use)"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./ContactPointPurpose"></map>
</mapping>
</element>
<element id="MessageHeader.source.contact.rank">
<path value="MessageHeader.source.contact.rank"></path>
<short value="Specify preferred order of use (1 = highest)"></short>
<definition value="Specifies a preferred order in which to use a set of contacts. Contacts are ranked with lower values coming before higher values."></definition>
<comment value="Note that rank does not necessarily follow the order in which the contacts are represented in the instance."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="ContactPoint.rank"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="positiveInt"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.source.contact.period">
<path value="MessageHeader.source.contact.period"></path>
<short value="Time period when the contact point was/is in use"></short>
<definition value="Time period when the contact point was/is in use."></definition>
<comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="ContactPoint.period"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Period"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="per-1"></key>
<severity value="error"></severity>
<human value="If present, start SHALL have a lower value than end"></human>
<expression value="start.empty() or end.empty() or (start <= end)"></expression>
<xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="DR"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="N/A"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./usablePeriod[type="IVL<TS>"]"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./StartDate and ./EndDate"></map>
</mapping>
</element>
<element id="MessageHeader.source.contact.period.id">
<path value="MessageHeader.source.contact.period.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.source.contact.period.extension">
<path value="MessageHeader.source.contact.period.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.source.contact.period.start">
<path value="MessageHeader.source.contact.period.start"></path>
<short value="Starting time with inclusive boundary"></short>
<definition value="The start of the period. The boundary is inclusive."></definition>
<comment value="If the low element is missing, the meaning is that the low boundary is not known."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Period.start"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="dateTime"></code>
</type>
<condition value="ele-1"></condition>
<condition value="per-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="DR.1"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./low"></map>
</mapping>
</element>
<element id="MessageHeader.source.contact.period.end">
<path value="MessageHeader.source.contact.period.end"></path>
<short value="End time with inclusive boundary, if not ongoing"></short>
<definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."></definition>
<comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Period.end"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="dateTime"></code>
</type>
<meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"></meaningWhenMissing>
<condition value="ele-1"></condition>
<condition value="per-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="DR.2"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./high"></map>
</mapping>
</element>
<element id="MessageHeader.source.endpoint">
<path value="MessageHeader.source.endpoint"></path>
<short value="The sending systems's MESH mailbox ID"></short>
<definition value="Identifies the routing target to send acknowledgements to."></definition>
<comment value="The id may be a non-resolvable URI for systems that do not use standard network-based addresses."></comment>
<requirements value="Identifies where to send responses, may influence security permissions."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.source.endpoint"></path>
<min value="1"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="MSH-24"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./telecom[isNormalDatatype()]"></map>
</mapping>
</element>
<element id="MessageHeader.responsible">
<path value="MessageHeader.responsible"></path>
<short value="Final responsibility for event"></short>
<definition value="The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party."></definition>
<comment value="Usually only for the request, but can be used in a response."></comment>
<requirements value="Need to know for audit/traceback requirements and possibly for authorization."></requirements>
<min value="0"></min>
<max value="0"></max>
<base>
<path value="MessageHeader.responsible"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Organization-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="ORC-12 / PRT-5:PRT-4='OP' / PRT-8:PRT-4='OP' / ROL where ROL.3 is RO or ORC.11"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="unique(./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/participation[isHighest(priorityCode) and typeCode="RESP" and isNormalParticipation]/role[classCode="ASSIGNED" and isNormalRole()]/player[isNormalEntity() and classCode="PSN" and determinerCode="INST"] or ./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/participation[isHighest(priorityCode) and typeCode="RESP" and isNormalParticipation]/role[classCode="ASSIGNED" and isNormalRole()]/scoper[isNormalEntity() and classCode="ORG" and determinerCode="INST"])"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="who.witness"></map>
</mapping>
</element>
<element id="MessageHeader.responsible.id">
<path value="MessageHeader.responsible.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.responsible.extension">
<path value="MessageHeader.responsible.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.responsible.reference">
<path value="MessageHeader.responsible.reference"></path>
<short value="Literal reference, Relative, internal or absolute URL"></short>
<definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."></definition>
<comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Reference.reference"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<condition value="ref-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.responsible.identifier">
<path value="MessageHeader.responsible.identifier"></path>
<short value="Logical reference, when literal reference is not known"></short>
<definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."></definition>
<comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.identifier"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Identifier"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="Identifier"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".identifier"></map>
</mapping>
</element>
<element id="MessageHeader.responsible.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.responsible.display"></path>
<short value="Text alternative for the resource"></short>
<definition value="Plain text narrative that identifies the resource in addition to the resource reference."></definition>
<comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.display"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.reason">
<path value="MessageHeader.reason"></path>
<short value="Cause of event"></short>
<definition value="Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message."></definition>
<comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."></comment>
<requirements value="Need to be able to track why resources are being changed and report in the audit log/history of the resource. May affect authorization."></requirements>
<min value="0"></min>
<max value="0"></max>
<base>
<path value="MessageHeader.reason"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="CodeableConcept"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="EventReason"></valueString>
</extension>
<strength value="example"></strength>
<description value="Reason for event occurrence"></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/message-reason-encounter"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="EVN.4 / ORC.16 / OBR-31-reason for study / BPO-13-BP indication for use / RXO-20-indication / RXE-27-give indication / RXD-21-indication / RXG-22-indication / RXA-19-indication"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="unique(./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/reasonCode[isNormalDatatype()])"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="why"></map>
</mapping>
</element>
<element id="MessageHeader.reason.id">
<path value="MessageHeader.reason.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.reason.extension">
<path value="MessageHeader.reason.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.reason.coding">
<path value="MessageHeader.reason.coding"></path>
<short value="Code defined by a terminology system"></short>
<definition value="A reference to a code defined by a terminology system."></definition>
<comment value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."></comment>
<requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."></requirements>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="CodeableConcept.coding"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Coding"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CV"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding rdfs:subClassOf dt:CDCoding"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.1-8, C*E.10-22"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="union(., ./translation)"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"></map>
</mapping>
</element>
<element id="MessageHeader.reason.coding.id">
<path value="MessageHeader.reason.coding.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.reason.coding.extension">
<path value="MessageHeader.reason.coding.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.reason.coding.system">
<path value="MessageHeader.reason.coding.system"></path>
<short value="Identity of the terminology system"></short>
<definition value="The identification of the code system that defines the meaning of the symbol in the code."></definition>
<comment value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously."></comment>
<requirements value="Need to be unambiguous about the source of the definition of the symbol."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Coding.system"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.3"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./codeSystem"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"></map>
</mapping>
</element>
<element id="MessageHeader.reason.coding.version">
<path value="MessageHeader.reason.coding.version"></path>
<short value="Version of the system - if relevant"></short>
<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."></definition>
<comment 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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Coding.version"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.7"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./codeSystemVersion"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"></map>
</mapping>
</element>
<element id="MessageHeader.reason.coding.code">
<path value="MessageHeader.reason.coding.code"></path>
<short value="Symbol in syntax defined by the system"></short>
<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)."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<requirements value="Need to refer to a particular code in the system."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Coding.code"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.1"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./code"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"></map>
</mapping>
</element>
<element id="MessageHeader.reason.coding.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.reason.coding.display"></path>
<short value="Representation defined by the system"></short>
<definition value="A representation of the meaning of the code in the system, following the rules of the system."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Coding.display"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.2 - but note this is not well followed"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CV.displayName"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"></map>
</mapping>
</element>
<element id="MessageHeader.reason.coding.userSelected">
<path value="MessageHeader.reason.coding.userSelected"></path>
<short value="If this coding was chosen directly by the user"></short>
<definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."></definition>
<comment 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."></comment>
<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."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Coding.userSelected"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="boolean"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="Sometimes implied by being first"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD.codingRationale"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<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 ]"></map>
</mapping>
</element>
<element id="MessageHeader.reason.text">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.reason.text"></path>
<short value="Plain text representation of the concept"></short>
<definition value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user."></definition>
<comment value="Very often the text is the same as a displayName of one of the codings."></comment>
<requirements value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="CodeableConcept.text"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.9. But note many systems use C*E.2 for this"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./originalText[mediaType/code="text/plain"]/data"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"></map>
</mapping>
</element>
<element id="MessageHeader.response">
<path value="MessageHeader.response"></path>
<short value="If this is a reply to prior message"></short>
<definition value="Information about the message that this message is a response to. Only present if this message is a response."></definition>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.response"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="BackboneElement"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="MSA"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./conveyedAcknowledgement"></map>
</mapping>
</element>
<element id="MessageHeader.response.id">
<path value="MessageHeader.response.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.response.extension">
<path value="MessageHeader.response.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.response.modifierExtension">
<path value="MessageHeader.response.modifierExtension"></path>
<short value="Extensions that cannot be ignored"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<alias value="modifiers"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="BackboneElement.modifierExtension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.response.identifier">
<path value="MessageHeader.response.identifier"></path>
<short value="Id of original message"></short>
<definition value="The MessageHeader.id of the message to which this message is a response."></definition>
<comment value="RFC 4122"></comment>
<requirements value="Allows receiver to know what message is being responded to."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.response.identifier"></path>
<min value="1"></min>
<max value="1"></max>
</base>
<type>
<code value="id"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="MSA-2"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./acknowledges.id[isNormalDatatype()]"></map>
</mapping>
</element>
<element id="MessageHeader.response.code">
<path value="MessageHeader.response.code"></path>
<short value="ok | transient-error | fatal-error"></short>
<definition value="Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not."></definition>
<comment value="This is a generic response to the request message. Specific data for the response will be found in MessageHeader.focus."></comment>
<requirements value="Allows the sender of the acknowledge message to know if the request was successful or if action is needed."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.response.code"></path>
<min value="1"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="ResponseType"></valueString>
</extension>
<strength value="required"></strength>
<description value="The kind of response to a message"></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/response-code"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="MSA-1"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./typeCode[isNormalDatatype()]"></map>
</mapping>
</element>
<element id="MessageHeader.response.details">
<path value="MessageHeader.response.details"></path>
<short value="Specific list of hints/warnings/errors. ITK-Response-OperationOutcome-1 is referenced."></short>
<definition value="Full details of any issues found in the message."></definition>
<comment value="This SHALL be contained in the bundle. If any of the issues are errors, the response code SHALL be an error."></comment>
<requirements value="Allows the sender of the message to determine what the specific issues are."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.response.details"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Response-OperationOutcome-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="ERR"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="AcknowledgementDetail or Observation[classCode="ALRT" and moodCode="EVN"]"></map>
</mapping>
</element>
<element id="MessageHeader.response.details.id">
<path value="MessageHeader.response.details.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.response.details.extension">
<path value="MessageHeader.response.details.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.response.details.reference">
<path value="MessageHeader.response.details.reference"></path>
<short value="Literal reference, Relative, internal or absolute URL"></short>
<definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."></definition>
<comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Reference.reference"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<condition value="ref-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.response.details.identifier">
<path value="MessageHeader.response.details.identifier"></path>
<short value="Logical reference, when literal reference is not known"></short>
<definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."></definition>
<comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.identifier"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Identifier"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="Identifier"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".identifier"></map>
</mapping>
</element>
<element id="MessageHeader.response.details.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.response.details.display"></path>
<short value="Text alternative for the resource"></short>
<definition value="Plain text narrative that identifies the resource in addition to the resource reference."></definition>
<comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.display"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.focus">
<path value="MessageHeader.focus"></path>
<short value="The actual content of the message"></short>
<definition value="The actual data of the message - a reference to the root/focus class of the event."></definition>
<comment value="The data is defined where the transaction type is defined. The transaction data is always included in the bundle that is the full message. Only the root resource is specified. The resources it references should be contained in the bundle but are not also listed here. Multiple repetitions are allowed to cater for merges and other situations with multiple focal targets."></comment>
<requirements value="Every message event is about actual data, a single resource, that is identified in the definition of the event, and perhaps some or all linked resources."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="MessageHeader.focus"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="unique(./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/participation[typeCode="SUBJ" and isNormalParticipation]/role or ./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/outboundRelationship[typeCode="SBJ" and isNormalActRelatoinship]/target)"></map>
</mapping>
</element>
<element id="MessageHeader.focus.id">
<path value="MessageHeader.focus.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="MessageHeader.focus.extension">
<path value="MessageHeader.focus.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<comment 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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.focus.reference">
<path value="MessageHeader.focus.reference"></path>
<short value="Literal reference, Relative, internal or absolute URL"></short>
<definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."></definition>
<comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server."></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Reference.reference"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<condition value="ref-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="MessageHeader.focus.identifier">
<path value="MessageHeader.focus.identifier"></path>
<short value="Logical reference, when literal reference is not known"></short>
<definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."></definition>
<comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.identifier"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Identifier"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="Identifier"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".identifier"></map>
</mapping>
</element>
<element id="MessageHeader.focus.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.focus.display"></path>
<short value="Text alternative for the resource"></short>
<definition value="Plain text narrative that identifies the resource in addition to the resource reference."></definition>
<comment value="This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Reference.display"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
</snapshot>
<differential>
<element id="MessageHeader.extension">
<path value="MessageHeader.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<rules value="open"></rules>
</slicing>
</element>
<element id="MessageHeader.extension:ITKMessageHandling">
<path value="MessageHeader.extension"></path>
<sliceName value="ITKMessageHandling"></sliceName>
<min value="1"></min>
<max value="1"></max>
<type>
<code value="Extension"></code>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ITK-MessageHandling-2"></profile>
</type>
</element>
<element id="MessageHeader.event">
<path value="MessageHeader.event"></path>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MessageEvent"></valueString>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
<valueBoolean value="true"></valueBoolean>
</extension>
<strength value="extensible"></strength>
<description value="A set of codes to classify the type of event."></description>
<valueSetReference>
<reference value="https://fhir.nhs.uk/STU3/ValueSet/ITK-MessageEvent-2"></reference>
</valueSetReference>
</binding>
</element>
<element id="MessageHeader.event.system">
<path value="MessageHeader.event.system"></path>
<min value="1"></min>
<fixedUri value="https://fhir.nhs.uk/STU3/CodeSystem/ITK-MessageEvent-2"></fixedUri>
</element>
<element id="MessageHeader.event.version">
<path value="MessageHeader.event.version"></path>
<max value="0"></max>
</element>
<element id="MessageHeader.event.code">
<path value="MessageHeader.event.code"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.event.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.event.display"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.event.userSelected">
<path value="MessageHeader.event.userSelected"></path>
<max value="0"></max>
</element>
<element id="MessageHeader.destination">
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
<valueString value="MessageDestination"></valueString>
</extension>
<path value="MessageHeader.destination"></path>
<max value="0"></max>
</element>
<element id="MessageHeader.destination.target">
<path value="MessageHeader.destination.target"></path>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Device-1"></targetProfile>
</type>
</element>
<element id="MessageHeader.destination.target.reference">
<path value="MessageHeader.destination.target.reference"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.receiver">
<path value="MessageHeader.receiver"></path>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Organization-1"></targetProfile>
</type>
</element>
<element id="MessageHeader.receiver.reference">
<path value="MessageHeader.receiver.reference"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.sender">
<path value="MessageHeader.sender"></path>
<min value="1"></min>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Organization-1"></targetProfile>
</type>
</element>
<element id="MessageHeader.sender.reference">
<path value="MessageHeader.sender.reference"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.enterer">
<path value="MessageHeader.enterer"></path>
<max value="0"></max>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"></targetProfile>
</type>
</element>
<element id="MessageHeader.enterer.reference">
<path value="MessageHeader.enterer.reference"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.author">
<path value="MessageHeader.author"></path>
<max value="0"></max>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"></targetProfile>
</type>
</element>
<element id="MessageHeader.author.reference">
<path value="MessageHeader.author.reference"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.source.name">
<path value="MessageHeader.source.name"></path>
<max value="0"></max>
</element>
<element id="MessageHeader.source.software">
<path value="MessageHeader.source.software"></path>
<max value="0"></max>
</element>
<element id="MessageHeader.source.version">
<path value="MessageHeader.source.version"></path>
<max value="0"></max>
</element>
<element id="MessageHeader.source.contact">
<path value="MessageHeader.source.contact"></path>
<max value="0"></max>
</element>
<element id="MessageHeader.source.contact.system">
<path value="MessageHeader.source.contact.system"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.source.contact.value">
<path value="MessageHeader.source.contact.value"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.source.endpoint">
<path value="MessageHeader.source.endpoint"></path>
<short value="The sending systems's MESH mailbox ID"></short>
</element>
<element id="MessageHeader.responsible">
<path value="MessageHeader.responsible"></path>
<max value="0"></max>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Organization-1"></targetProfile>
</type>
</element>
<element id="MessageHeader.responsible.reference">
<path value="MessageHeader.responsible.reference"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.reason">
<path value="MessageHeader.reason"></path>
<max value="0"></max>
</element>
<element id="MessageHeader.reason.coding.system">
<path value="MessageHeader.reason.coding.system"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.reason.coding.code">
<path value="MessageHeader.reason.coding.code"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.reason.coding.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="MessageHeader.reason.coding.display"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.response.details">
<path value="MessageHeader.response.details"></path>
<short value="Specific list of hints/warnings/errors. ITK-Response-OperationOutcome-1 is referenced."></short>
<min value="1"></min>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Response-OperationOutcome-1"></targetProfile>
</type>
</element>
<element id="MessageHeader.response.details.reference">
<path value="MessageHeader.response.details.reference"></path>
<min value="1"></min>
</element>
<element id="MessageHeader.focus">
<path value="MessageHeader.focus"></path>
<max value="1"></max>
</element>
<element id="MessageHeader.focus.reference">
<path value="MessageHeader.focus.reference"></path>
<min value="1"></min>
</element>
</differential>
</StructureDefinition>