<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ca-on-seris-profile-MessageHeader" />
  <url value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-MessageHeader" />
  <version value="1.0.1" />
  <name value="MessageHeader" />
  <title value="MessageHeader" />
  <status value="draft" />
  <date value="2023-03-02" />
  <publisher value="Ontario Health" />
  <contact>
    <name value="Ontario Health" />
    <telecom>
      <system value="url" />
      <value value="http://ontariohealth.ca/fhir/" />
    </telecom>
    <telecom>
      <system value="email" />
      <value value="some.email@ontariohealth.ca" />
    </telecom>
  </contact>
  <description value="The header for a message exchange that is submitting data." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="MessageHeader" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MessageHeader" />
  <derivation value="constraint" />
  <differential>
    <element id="MessageHeader.meta">
      <path value="MessageHeader.meta" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MessageHeader.meta.profile">
      <path value="MessageHeader.meta.profile" />
      <comment value="#### **_` FOR SERIS USAGE: The meta.profile = http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-MessageHeader|1.0.1 `_**&#xD;&#xA;&#xD;&#xA;It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MessageHeader.event[x]">
      <path value="MessageHeader.event[x]" />
      <type>
        <code value="Coding" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <description value="Code that identifies the event this message represents and connects it with its definition" />
        <valueSet value="http://ontariohealth.ca/fhir/ValueSet/message-event-code" />
      </binding>
    </element>
    <element id="MessageHeader.event[x].system">
      <path value="MessageHeader.event[x].system" />
      <min value="1" />
      <fixedUri value="http://ontariohealth.ca/fhir/CodeSystem/message-event-code" />
      <mustSupport value="true" />
    </element>
    <element id="MessageHeader.event[x].code">
      <path value="MessageHeader.event[x].code" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <description value="Code that identifies the event this message represents and connects it with its definition." />
        <valueSet value="http://ontariohealth.ca/fhir/ValueSet/message-event-code" />
      </binding>
    </element>
    <element id="MessageHeader.event[x].display">
      <path value="MessageHeader.event[x].display" />
      <mustSupport value="true" />
    </element>
    <element id="MessageHeader.source">
      <path value="MessageHeader.source" />
      <mustSupport value="true" />
    </element>
    <element id="MessageHeader.source.endpoint">
      <path value="MessageHeader.source.endpoint" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>