<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="MessageHeaderABeOrderLab" />
  <url value="https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/MessageHeaderABeOrderLab" />
  <version value="1.1.0" />
  <name value="MessageHeaderABeOrderLab" />
  <title value="MessageHeader (AB:eOrder-Lab)" />
  <status value="draft" />
  <description value="This profile defines a set of constraints to the FHIR MessageHeader resource for use in Alberta eOrder Laboratory (AB:eOrder-Lab). It re-profiles the CA-eReC MessageHeader profile and it includes constraints that represent the minimum expectations for the MessageHeader resource when used in the AB:eOrder-Lab." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="MessageHeader" />
  <baseDefinition value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-MessageHeader" />
  <derivation value="constraint" />
  <differential>
    <element id="MessageHeader">
      <path value="MessageHeader" />
      <comment value="MessageHeader resources included in Alberta eOrder Laboratory Bundles have rules that certain attributes are not to be contained in MessageHeader resources. These are mechanically enforced through invariants at the AB:eOrder-Lab Bundle level." />
    </element>
    <element id="MessageHeader.destination.receiver">
      <path value="MessageHeader.destination.receiver" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/PractitionerABeOrderLab" />
        <targetProfile value="https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/PractitionerRoleABeOrderLab" />
      </type>
    </element>
    <element id="MessageHeader.sender">
      <path value="MessageHeader.sender" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/PractitionerABeOrderLab" />
        <targetProfile value="https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/PractitionerRoleABeOrderLab" />
      </type>
    </element>
    <element id="MessageHeader.enterer">
      <path value="MessageHeader.enterer" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/PractitionerABeOrderLab" />
        <targetProfile value="https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/PractitionerRoleABeOrderLab" />
      </type>
    </element>
    <element id="MessageHeader.author">
      <path value="MessageHeader.author" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/PractitionerRoleABeOrderLab" />
      </type>
    </element>
    <element id="MessageHeader.responsible">
      <path value="MessageHeader.responsible" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/PractitionerABeOrderLab" />
        <targetProfile value="https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/PractitionerRoleABeOrderLab" />
      </type>
    </element>
    <element id="MessageHeader.focus">
      <path value="MessageHeader.focus" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/ServiceRequestABeOrderLab" />
      </type>
    </element>
  </differential>
</StructureDefinition>