<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="operationoutcome-ab-core" />
  <url value="https://www.alberta.ca/fhir/abcore/StructureDefinition/operationoutcome-ab-core" />
  <version value="1.1.0" />
  <name value="OperationOutcomeABCore" />
  <title value="OperationOutcome (AB-Core)" />
  <status value="draft" />
  <description value="This profile defines a set of constraints to the FHIR OperationOutcome resource for use in Alberta eOrder Laboratory (AB:eOrder-Lab). It re-profiles the R4 Core OperationOutcome resource and it includes constraints that represent the minimum expectations for the OperationOutcome resource when used in the AB:eOrder-Lab. &#xA;Note: When AB Core is published in the future, remove this profile and the ResourceIdentifier extension from this project and set a dependency to AB Core package" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="OperationOutcome" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/OperationOutcome" />
  <derivation value="constraint" />
  <differential>
    <element id="OperationOutcome.issue">
      <path value="OperationOutcome.issue" />
      <mustSupport value="true" />
    </element>
    <element id="OperationOutcome.issue.extension">
      <path value="OperationOutcome.issue.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="OperationOutcome.issue.extension:line">
      <path value="OperationOutcome.issue.extension" />
      <sliceName value="line" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line" />
      </type>
    </element>
    <element id="OperationOutcome.issue.extension:column">
      <path value="OperationOutcome.issue.extension" />
      <sliceName value="column" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col" />
      </type>
    </element>
    <element id="OperationOutcome.issue.extension:source">
      <path value="OperationOutcome.issue.extension" />
      <sliceName value="source" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-source" />
      </type>
    </element>
    <element id="OperationOutcome.issue.extension:messageId">
      <path value="OperationOutcome.issue.extension" />
      <sliceName value="messageId" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/operationoutcome-message-id" />
      </type>
    </element>
    <element id="OperationOutcome.issue.extension:resourceId">
      <path value="OperationOutcome.issue.extension" />
      <sliceName value="resourceId" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://www.alberta.ca/fhir/abcore/StructureDefinition/ext-ResourceIdentifier" />
      </type>
    </element>
    <element id="OperationOutcome.issue.severity">
      <path value="OperationOutcome.issue.severity" />
      <mustSupport value="true" />
    </element>
    <element id="OperationOutcome.issue.code">
      <path value="OperationOutcome.issue.code" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>