<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="MessageHeader" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2022-01-10T01:58:18.487+00:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Foundation.Other" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="4" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="not-classified" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="inm" />
  </extension>
  <url value="https://fhir.kemkes.go.id/r4/StructureDefinition/MessageHeader" />
  <version value="4.0.1" />
  <name value="MessageHeader" />
  <status value="draft" />
  <date value="2022-07-08T15:10:50.6856647+00:00" />
  <publisher value="Health Level Seven International (Infrastructure And Messaging)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org/special/committees/inm/index.cfm" />
    </telecom>
  </contact>
  <description 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." />
  <purpose value="Many implementations are not prepared to use REST and need a messaging based infrastructure." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="MessageHeader" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
  <derivation value="specialization" />
  <differential>
    <element id="MessageHeader">
      <path value="MessageHeader" />
      <short value="A resource that describes a message that is exchanged between systems" />
      <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." />
      <mapping>
        <identity value="v2" />
        <map value="MSH / MSA / ERR" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Message" />
      </mapping>
    </element>
    <element id="MessageHeader.event[x]">
      <path value="MessageHeader.event[x]" />
      <short value="Code for the event this message represents or link to event definition" />
      <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 &quot;http://terminology.hl7.org/CodeSystem/message-events&quot;.  Alternatively uri to the EventDefinition." />
      <comment value="The time of the event will be found in the focus resource. The time of the message will be found in [Bundle.timestamp](bundle-definitions.html#Bundle.timestamp)." />
      <requirements value="Drives the behavior associated with this message." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <type>
        <code value="uri" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MessageEvent" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="example" />
        <description value="One of the message events defined as part of this version of FHIR." />
        <valueSet value="http://hl7.org/fhir/ValueSet/message-events" />
      </binding>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.what[x]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="MSH-9.2" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./payload[classCode=&quot;CACT&quot; and moodCode=&quot;EVN&quot; and isNormalAct()]/code[isNormalDatatype()]/code" />
      </mapping>
    </element>
    <element id="MessageHeader.destination">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="MessageDestination" />
      </extension>
      <path value="MessageHeader.destination" />
      <short value="Message destination application(s)" />
      <definition value="The destination application which the message is intended for." />
      <comment value="There SHOULD be at least one destination, but in some circumstances, the source system is unaware of any particular destination system." />
      <requirements value="Indicates where message is to be sent for routing purposes.  Allows verification of &quot;am I the intended recipient&quot;." />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject[x]" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./communicationFunction[typeCode=&quot;RCV&quot;]" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject" />
      </mapping>
    </element>
    <element id="MessageHeader.destination.name">
      <path value="MessageHeader.destination.name" />
      <short value="Name of system" />
      <definition value="Human-readable name for the target system." />
      <requirements value="May be used for routing of response and/or to support audit." />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="MSH-5" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./entity[determinerCode=&quot;INST&quot; and (classCode=(&quot;DEV&quot;, &quot;PSN&quot;, &quot;ORG&quot;]/name[type='ST' and isNormalDatatype()])" />
      </mapping>
    </element>
    <element id="MessageHeader.destination.target">
      <path value="MessageHeader.destination.target" />
      <short value="Particular delivery destination within the destination" />
      <definition value="Identifies the target end system in situations where the initial message transmission is to an intermediary system." />
      <requirements value="Supports multi-hop routing." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="unique(./entity[determinerCode=&quot;INST&quot; and (classCode=(&quot;DEV&quot;, &quot;PSN&quot;, &quot;ORG&quot;]" />
      </mapping>
    </element>
    <element id="MessageHeader.destination.endpoint">
      <path value="MessageHeader.destination.endpoint" />
      <short value="Actual destination address or id" />
      <definition value="Indicates where the message should be routed to." />
      <comment value="The id may be a non-resolvable URI for systems that do not use standard network-based addresses." />
      <requirements value="Identifies where to route the message." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="url" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="MSH-25 (or MSH-6)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./telecom" />
      </mapping>
    </element>
    <element id="MessageHeader.destination.receiver">
      <path value="MessageHeader.destination.receiver" />
      <short value="Intended &quot;real-world&quot; recipient for the data" />
      <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." />
      <requirements value="Allows routing beyond just the application level." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject[x]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="PRT-5:PRT-4='WAYR' / PRT-8:PRT-4='WAYR'" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Not directly supported.  Could be shared using attentionLine.value with an appropriate keyWordText" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject" />
      </mapping>
    </element>
    <element id="MessageHeader.sender">
      <path value="MessageHeader.sender" />
      <short value="Real world sender of the message" />
      <definition value="Identifies the sending system to allow the use of a trust relationship." />
      <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." />
      <requirements value="Allows routing beyond just the application level." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject[x]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="PRT-5:PRT-4='WAYR' / PRT-8:PRT-4='WAYR'" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Not directly supported.  Could be shared using attentionLine.value with an appropriate keyWordText" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject" />
      </mapping>
    </element>
    <element id="MessageHeader.enterer">
      <path value="MessageHeader.enterer" />
      <short value="The source of the data entry" />
      <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." />
      <comment value="Usually only for the request but can be used in a response." />
      <requirements value="Need to know for audit/traceback requirements and possibly for authorization." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.author" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="EVN-5 / ORC-10 / PRT-5:PRT-4='EP' / ROL where ROL.3 is EP or ORC.10" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/participation[typeCode=&quot;ENT&quot; and isNormalParticipation]/role[classCode=&quot;ASSIGNED&quot; and isNormalRole()]/player[isNormalEntity() and classCode=(&quot;DEV&quot;, &quot;PSN&quot;) and determinerCode=&quot;INST&quot;])" />
      </mapping>
    </element>
    <element id="MessageHeader.author">
      <path value="MessageHeader.author" />
      <short value="The source of the decision" />
      <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." />
      <comment value="Usually only for the request but can be used in a response." />
      <requirements value="Need to know for audit/traceback requirements and possibly for authorization." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.author" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="ORC-19 / PRT-5:PRT-4='AUT' / ROL where ROL.3 is IP or ORC.12" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/participation[isHighest(priorityCode) and typeCode=&quot;AUT&quot; and isNormalParticipation]/role[classCode=&quot;ASSIGNED&quot; and isNormalRole()]/player[isNormalEntity() and classCode=(&quot;DEV&quot;, &quot;PSN&quot;) and determinerCode=&quot;INST&quot;])" />
      </mapping>
    </element>
    <element id="MessageHeader.source">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="MessageSource" />
      </extension>
      <path value="MessageHeader.source" />
      <short value="Message source application" />
      <definition value="The source application from which this message originated." />
      <requirements value="Allows replies, supports audit." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.actor" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./communicationFunction[typeCode=&quot;SND&quot;])" />
      </mapping>
    </element>
    <element id="MessageHeader.source.name">
      <path value="MessageHeader.source.name" />
      <short value="Name of system" />
      <definition value="Human-readable name for the source system." />
      <requirements value="May be used to support audit." />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="MSH-3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./entity[determinerCode=&quot;INST&quot; and classCode=&quot;DEV&quot;]/name[type='ST' and isNormalDatatype()])" />
      </mapping>
    </element>
    <element id="MessageHeader.source.software">
      <path value="MessageHeader.source.software" />
      <short value="Name of software running the system" />
      <definition value="May include configuration or other information useful in debugging." />
      <requirements value="Supports audit and possibly interface engine behavior." />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="SFT-3 ( +SFT-1)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./entity[determinerCode=&quot;INST&quot; and classCode=&quot;DEV&quot;]/softwareName[isNormalDatatype()])" />
      </mapping>
    </element>
    <element id="MessageHeader.source.version">
      <path value="MessageHeader.source.version" />
      <short value="Version of software running" />
      <definition value="Can convey versions of multiple systems in situations where a message passes through multiple hands." />
      <requirements value="Supports audit and possibly interface engine behavior." />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="SFT-2" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="(Not supported)" />
      </mapping>
    </element>
    <element id="MessageHeader.source.contact">
      <path value="MessageHeader.source.contact" />
      <short value="Human contact for problems" />
      <definition value="An e-mail, phone, website or other contact point to use to resolve issues with message communications." />
      <requirements value="Allows escalation of technical issues." />
      <max value="1" />
      <type>
        <code value="ContactPoint" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="(MSH-22?)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./entity[determinerCode=&quot;INST&quot; and classCode=&quot;DEV&quot;]/scopesRole[normalRole() and classCode=&quot;CON&quot; and layer[classCode=&quot;PSN&quot;]/telecom[isNormalDatatype()])" />
      </mapping>
    </element>
    <element id="MessageHeader.source.endpoint">
      <path value="MessageHeader.source.endpoint" />
      <short value="Actual message source address or id" />
      <definition value="Identifies the routing target to send acknowledgements to." />
      <comment value="The id may be a non-resolvable URI for systems that do not use standard network-based addresses." />
      <requirements value="Identifies where to send responses, may influence security permissions." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="url" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="MSH-24" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./telecom[isNormalDatatype()]" />
      </mapping>
    </element>
    <element id="MessageHeader.responsible">
      <path value="MessageHeader.responsible" />
      <short value="Final responsibility for event" />
      <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." />
      <comment value="Usually only for the request but can be used in a response." />
      <requirements value="Need to know for audit/traceback requirements and possibly for authorization." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.witness" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="ORC-12 /  PRT-5:PRT-4='OP' /  PRT-8:PRT-4='OP' / ROL where ROL.3 is RO or ORC.11" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/participation[isHighest(priorityCode) and typeCode=&quot;RESP&quot; and isNormalParticipation]/role[classCode=&quot;ASSIGNED&quot; and isNormalRole()]/player[isNormalEntity() and classCode=&quot;PSN&quot; and determinerCode=&quot;INST&quot;] or ./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/participation[isHighest(priorityCode) and typeCode=&quot;RESP&quot; and isNormalParticipation]/role[classCode=&quot;ASSIGNED&quot; and isNormalRole()]/scoper[isNormalEntity() and classCode=&quot;ORG&quot; and determinerCode=&quot;INST&quot;])" />
      </mapping>
    </element>
    <element id="MessageHeader.reason">
      <path value="MessageHeader.reason" />
      <short value="Cause of event" />
      <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." />
      <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." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EventReason" />
        </extension>
        <strength value="example" />
        <description value="Reason for event occurrence." />
        <valueSet value="http://hl7.org/fhir/ValueSet/message-reason-encounter" />
      </binding>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.why[x]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <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" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/reasonCode[isNormalDatatype()])" />
      </mapping>
    </element>
    <element id="MessageHeader.response">
      <path value="MessageHeader.response" />
      <short value="If this is a reply to prior message" />
      <definition value="Information about the message that this message is a response to.  Only present if this message is a response." />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="MSA" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./conveyedAcknowledgement" />
      </mapping>
    </element>
    <element id="MessageHeader.response.identifier">
      <path value="MessageHeader.response.identifier" />
      <short value="Id of original message" />
      <definition value="The MessageHeader.id of the message to which this message is a response." />
      <requirements value="Allows receiver to know what message is being responded to." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="id" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="MSA-2" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./acknowledges.id[isNormalDatatype()]" />
      </mapping>
    </element>
    <element id="MessageHeader.response.code">
      <path value="MessageHeader.response.code" />
      <short value="ok | transient-error | fatal-error" />
      <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." />
      <comment value="This is a generic response to the request message. Specific data for the response will be found in MessageHeader.focus." />
      <requirements value="Allows the sender of the acknowledge message to know if the request was successful or if action is needed." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ResponseType" />
        </extension>
        <strength value="required" />
        <description value="The kind of response to a message." />
        <valueSet value="http://hl7.org/fhir/ValueSet/response-code|4.0.1" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="MSA-1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./typeCode[isNormalDatatype()]" />
      </mapping>
    </element>
    <element id="MessageHeader.response.details">
      <path value="MessageHeader.response.details" />
      <short value="Specific list of hints/warnings/errors" />
      <definition value="Full details of any issues found in the message." />
      <comment value="This SHALL be contained in the bundle. If any of the issues are errors, the response code SHALL be an error." />
      <requirements value="Allows the sender of the message to determine what the specific issues are." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/OperationOutcome" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="ERR" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AcknowledgementDetail or Observation[classCode=&quot;ALRT&quot; and moodCode=&quot;EVN&quot;]" />
      </mapping>
    </element>
    <element id="MessageHeader.focus">
      <path value="MessageHeader.focus" />
      <short value="The actual content of the message" />
      <definition value="The actual data of the message - a reference to the root/focus class of the event." />
      <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." />
      <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." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="unique(./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/participation[typeCode=&quot;SUBJ&quot; and isNormalParticipation]/role or ./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/outboundRelationship[typeCode=&quot;SBJ&quot; and isNormalActRelatoinship]/target)" />
      </mapping>
    </element>
    <element id="MessageHeader.definition">
      <path value="MessageHeader.definition" />
      <short value="Link to the definition for this message" />
      <definition value="Permanent link to the MessageDefinition for this message." />
      <requirements value="Allows sender to define the expected contents of the message." />
      <max value="1" />
      <type>
        <code value="canonical" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MessageDefinition" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="Not directly supported." />
      </mapping>
    </element>
  </differential>
</StructureDefinition>