<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="England-Flag-PatientFlag" />
  <url value="https://fhir.nhs.uk/England/StructureDefinition/England-Flag-PatientFlag" />
  <version value="0.3.0" />
  <name value="EnglandFlagPatientFlag" />
  <title value="England Flag Patient Flag" />
  <status value="draft" />
  <date value="2024-09-27" />
  <publisher value="NHS England" />
  <contact>
    <name value="NHS England" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="Record whether a Patient Flags exists" />
  <purpose value="This profile is made available to Record whether a Patient Flags exists ." />
  <copyright value="Copyright © 2023+ NHS England Licensed under the Apache License, Version 2.0 (the \&amp;quot;License\&amp;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 \&amp;quot;AS IS\&amp;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" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Flag" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Flag" />
  <derivation value="constraint" />
  <differential>
    <element id="Flag.contained">
      <path value="Flag.contained" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <mustSupport value="true" />
    </element>
    <element id="Flag.contained:provenance">
      <path value="Flag.contained" />
      <sliceName value="provenance" />
      <max value="1" />
      <type>
        <code value="Provenance" />
        <profile value="https://fhir.nhs.uk/England/StructureDefinition/England-Provenance-Flag" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Flag.status">
      <path value="Flag.status" />
      <mustSupport value="true" />
    </element>
    <element id="Flag.category">
      <path value="Flag.category" />
      <mustSupport value="true" />
    </element>
    <element id="Flag.code">
      <path value="Flag.code" />
      <mustSupport value="true" />
    </element>
    <element id="Flag.subject">
      <path value="Flag.subject" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>