<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="UKCore-List" />
  <url value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-List" />
  <version value="2.4.0" />
  <name value="UKCoreList" />
  <title value="UK Core List" />
  <status value="active" />
  <date value="2023-12-12" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="HL7 UK" />
    <telecom>
      <system value="email" />
      <value value="ukcore@hl7.org.uk" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="This profile defines the UK constraints and extensions on the International FHIR resource [List](https://hl7.org/fhir/R4/List.html)." />
  <purpose value="This profile allows exchange of a flat, possibly ordered collection of records. &#xD;&#xA;&#xD;&#xA;The list profile can be used in many places, including allergies, medications, alerts, family history, medical history, etc. This list profile can be used to support individual-specific clinical lists as well as lists that manage workflows such as tracking patients, managing teaching cases, etc. &#xD;&#xA;&#xD;&#xA;The list profile supports lists that are homogeneous – consisting of only one type of resource (e.g. Allergy lists) as well as heterogeneous – containing a variety of resources (e.g. a problem list including Condition, AllergyIntolerance, Procedure, etc.)." />
  <copyright value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="List" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/List" />
  <derivation value="constraint" />
  <differential>
    <element id="List.extension:careSettingType">
      <path value="List.extension" />
      <sliceName value="careSettingType" />
      <short value="An extension to support the type of care setting associated with a composition or a list." />
      <definition value="An extension to carry the Care setting type." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-CareSettingType" />
      </type>
    </element>
    <element id="List.extension:listWarningCode">
      <path value="List.extension" />
      <sliceName value="listWarningCode" />
      <short value="To support warnings that a list may be incomplete as data has been excluded due to confidentiality or may be missing due to data being in transit." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ListWarningCode" />
      </type>
    </element>
    <element id="List.status">
      <path value="List.status" />
      <short value="Indicates the current state of this list." />
      <mustSupport value="true" />
    </element>
    <element id="List.mode">
      <path value="List.mode" />
      <short value="Indicates how this list was prepared: working | snapshot | changes" />
      <mustSupport value="true" />
    </element>
    <element id="List.code">
      <path value="List.code" />
      <short value="This code defines the purpose of the list - why it was created." />
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-ListCode" />
      </binding>
    </element>
    <element id="List.subject">
      <path value="List.subject" />
      <short value="The common subject (or patient) of the resources that are in the list if there is one." />
      <mustSupport value="true" />
    </element>
    <element id="List.emptyReason">
      <path value="List.emptyReason" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-ListEmptyReasonCode" />
      </binding>
    </element>
  </differential>
</StructureDefinition>