PackagesCanonicalsLogsProblems
    Packages
    uk.nhsdigital.r4@2.1.28-discovery
    https://fhir.nhs.uk/StructureDefinition/NHSDigital-Practitioner
description: null
package_name: uk.nhsdigital.r4
derivation: constraint
name: NHSDigitalPractitioner
type: Practitioner
elements:
  identifier:
    constraint:
      prac-nmc: {human: NMC must be of the format NNANNNNA, severity: warning, expression: 'identifier.where(system=''https://fhir.hl7.org.uk/Id/nmc-number'').exists().not() or (identifier.where(system=''https://fhir.hl7.org.uk/Id/nmc-number'').exists()  and identifier.where(system=''https://fhir.hl7.org.uk/Id/nmc-number'').value.matches(''^[0-9]{2}[A-Z]{1}[0-9]{4}[A-Z]{1}$''))'}
      prac-gmp: {human: GMP must be of the format GNNNNNNN, severity: warning, expression: 'identifier.where(system=''https://fhir.hl7.org.uk/Id/gmp-number'').exists().not() or (identifier.where(system=''https://fhir.hl7.org.uk/Id/gmp-number'').exists()  and identifier.where(system=''https://fhir.hl7.org.uk/Id/gmp-number'').value.matches(''^[G]{1}[0-9]{7}$''))'}
      prac-gmc: {human: GMC must be of the format CNNNNNNN, severity: warning, expression: 'identifier.where(system=''https://fhir.hl7.org.uk/Id/gmc-number'').exists().not() or (identifier.where(system=''https://fhir.hl7.org.uk/Id/gmc-number'').exists()  and identifier.where(system=''https://fhir.hl7.org.uk/Id/gmc-number'').value.matches(''^[C]{1}[0-9]{7}$''))'}
      prac-gphc: {human: GPHC must be of the format NNNNNNN, severity: warning, expression: 'identifier.where(system=''https://fhir.hl7.org.uk/Id/gphc-number'').exists().not() or (identifier.where(system=''https://fhir.hl7.org.uk/Id/gphc-number'').exists()  and identifier.where(system=''https://fhir.hl7.org.uk/Id/gphc-number'').value.matches(''^[0-9]{7}$''))'}
      prac-hcpc: {human: HCPC must be of the format AANNNNNN, severity: warning, expression: 'identifier.where(system=''https://fhir.hl7.org.uk/Id/hcpc-number'').exists().not() or (identifier.where(system=''https://fhir.hl7.org.uk/Id/hcpc-number'').exists()  and identifier.where(system=''https://fhir.hl7.org.uk/Id/hcpc-number'').value.matches(''^[A-Z]{2}[0-9]{6}$''))'}
      prac-din: {human: DIN format must be NNNNNN, severity: warning, expression: 'identifier.where(system=''https://fhir.hl7.org.uk/Id/din-number'').exists().not() or (identifier.where(system=''https://fhir.hl7.org.uk/Id/din-number'').exists()  and identifier.where(system=''https://fhir.hl7.org.uk/Id/din-number'').value.matches(''^[0-9]{6}$''))'}
    mustSupport: true
    index: 0
    slicing:
      slices:
        sdsUserID:
          match: {}
          schema: {_required: true, index: 1}
          min: 1
        gmcCode:
          match: {}
          schema:
            index: 2
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/Id/gmc-number'}
                index: 3
              value: {index: 4}
            required: [value]
        gmpCode:
          match: {}
          schema:
            index: 5
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/Id/gmp-number'}
                index: 6
              value: {index: 7}
            required: [value]
        dinCode:
          match: {}
          schema:
            index: 8
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/Id/din-number'}
                index: 9
              value: {index: 10}
            required: [value]
        gphcCode:
          match: {}
          schema:
            index: 11
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/Id/gphc-number'}
                index: 12
              value: {index: 13}
            required: [value]
        hcpcNumber:
          match: {}
          schema:
            index: 14
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/Id/hcpc-number'}
                index: 15
              value: {index: 16}
            required: [value]
        nmcNumber:
          match: {}
          schema:
            index: 17
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/Id/nmc-number'}
                index: 18
              value: {index: 19}
            required: [value]
  name: {mustSupport: true, index: 20}
  telecom:
    elements:
      value: {index: 21}
      use: {index: 22}
    required: [value, use]
package_version: 2.1.28-discovery
class: profile
kind: resource
url: https://fhir.nhs.uk/StructureDefinition/NHSDigital-Practitioner
base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner
version: null
required: [name, identifier]