<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="OperationOutcome" />
  <meta>
    <lastUpdated value="2018-11-08T12:30:35.312+00:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir" />
  </extension>
  <url value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Response-OperationOutcome-1" />
  <version value="1.2.0" />
  <name value="ITK-Response-OperationOutcome-1" />
  <status value="active" />
  <date value="2024-01-22T11:39:06.3872207+00:00" />
  <publisher value="NHS Digital" />
  <contact>
    <name value="Interoperability Team" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="This constrained OperationOutcome resource has one code system containing all the ITK response codes, as part of a single ITK response message.  These ITK response codes can either be positive or negative, where all negative response codes are deemed to be fatal and no further processing will be carried out on the message." />
  <purpose value="There is a requirement to carry ITK response codes, as part of a single ITK response message." />
  <copyright value="Copyright © 2018 NHS Digital" />
  <fhirVersion value="3.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">
      <path value="OperationOutcome" />
      <definition value="A collection of responses that result from a system action." />
    </element>
    <element id="OperationOutcome.issue">
      <path value="OperationOutcome.issue" />
      <definition value="A response that results from a system action." />
    </element>
    <element id="OperationOutcome.issue.details">
      <path value="OperationOutcome.issue.details" />
      <short value="Additional details about the response" />
      <definition value="Additional details about the response. This may be a text description of the response, or a system code that identifies the response." />
      <comment value="A human readable description of the response issue SHOULD be placed in details.text." />
      <min value="1" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IssueDetails" />
        </extension>
        <strength value="required" />
        <description value="A ValueSet that provides details as to the exact issue." />
        <valueSetReference>
          <reference value="https://fhir.nhs.uk/STU3/ValueSet/ITK-ResponseCodes-1" />
        </valueSetReference>
      </binding>
    </element>
    <element id="OperationOutcome.issue.details.coding">
      <path value="OperationOutcome.issue.details.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="OperationOutcome.issue.details.coding.system">
      <path value="OperationOutcome.issue.details.coding.system" />
      <min value="1" />
      <fixedUri value="https://fhir.nhs.uk/STU3/CodeSystem/ITK-ResponseCodes-1" />
    </element>
    <element id="OperationOutcome.issue.details.coding.version">
      <path value="OperationOutcome.issue.details.coding.version" />
      <max value="0" />
    </element>
    <element id="OperationOutcome.issue.details.coding.code">
      <path value="OperationOutcome.issue.details.coding.code" />
      <min value="1" />
    </element>
    <element id="OperationOutcome.issue.details.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="OperationOutcome.issue.details.coding.display" />
      <min value="1" />
    </element>
    <element id="OperationOutcome.issue.details.coding.userSelected">
      <path value="OperationOutcome.issue.details.coding.userSelected" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>