<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="England-Identifier-NHS-Number" />
  <url value="https://fhir.nhs.uk/England/StructureDefinition/England-Identifier-NHS-Number" />
  <version value="0.2.0" />
  <name value="EnglandIdentifierNHSNumber" />
  <title value="England Identifier NHS Number" />
  <status value="draft" />
  <date value="2026-04-20T13:58:19+00:00" />
  <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="Only traced NHS Number **SHOULD** be used, un-traced NHS Numbers **MUST** be clearly indicated. NHS Data Dictionary: [NHS NUMBER](https://www.datadictionary.nhs.uk/data_elements/nhs_number.html).Format: ^[0-9]{10}$ (400 000 000 to 499 999 999, and 600 000 000 to 799 999) FHIR Naming System: [nhs-number](https://simplifier.net/ukfhircommunityassets/namingsystem-nhs-number)" />
  <purpose value="This documents NHS England Data Dictionary and HL7 definitions" />
  <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" />
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Identifier" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Identifier" />
  <derivation value="constraint" />
  <differential>
    <element id="Identifier.type.coding">
      <path value="Identifier.type.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Identifier.type.coding.system">
      <path value="Identifier.type.coding.system" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/v2-0203" />
    </element>
    <element id="Identifier.type.coding.code">
      <path value="Identifier.type.coding.code" />
      <fixedCode value="NH" />
    </element>
    <element id="Identifier.type.coding.display">
      <path value="Identifier.type.coding.display" />
      <short value="National Health Plan Identifier" />
      <definition value="Class: Insurance Used for the UK NHS national identifier." />
      <fixedString value="National Health Plan Identifier" />
    </element>
    <element id="Identifier.system">
      <path value="Identifier.system" />
      <min value="1" />
      <fixedUri value="https://fhir.nhs.uk/Id/nhs-number" />
    </element>
    <element id="Identifier.value">
      <path value="Identifier.value" />
      <min value="1" />
      <constraint>
        <key value="nhs-1" />
        <severity value="error" />
        <human value="NHS Number must be 10 digits. Valid allocation ranges include 400000000–499999999 and 600000000–799999999." />
        <expression value="matches('^[0-9]{10}$')" />
      </constraint>
    </element>
  </differential>
</StructureDefinition>