{
"description": null,
"_filename": "NHSDigital-Practitioner.StructureDefinition.json",
"package_name": "uk.nhsdigital.r4",
"date": null,
"derivation": "constraint",
"publisher": null,
"fhirVersion": "4.0.1",
"name": "NHSDigitalPractitioner",
"mapping": [ {
"uri": "http://hl7.org/v2",
"name": "HL7 v2 Mapping",
"identity": "v2"
}, {
"uri": "http://hl7.org/v3",
"name": "RIM Mapping",
"identity": "rim"
}, {
"uri": "http://www.omg.org/spec/ServD/1.0/",
"name": "ServD",
"identity": "servd"
}, {
"uri": "http://hl7.org/fhir/fivews",
"name": "FiveWs Pattern Mapping",
"identity": "w5"
} ],
"abstract": false,
"type": "Practitioner",
"experimental": null,
"resourceType": "StructureDefinition",
"title": null,
"package_version": "2.1.28-discovery",
"status": "draft",
"id": "934ffb9a-385e-4545-99c6-9b523248306a",
"kind": "resource",
"url": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Practitioner",
"version": null,
"differential": {
"element": [ {
"id": "Practitioner.identifier",
"min": 1,
"path": "Practitioner.identifier",
"comment": "SHOULD contain a professional code and SDS-user-id.",
"constraint": [ {
"key": "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}$'))"
}, {
"key": "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}$'))"
}, {
"key": "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}$'))"
}, {
"key": "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}$'))"
}, {
"key": "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}$'))"
}, {
"key": "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
}, {
"id": "Practitioner.identifier:sdsUserID",
"min": 1,
"path": "Practitioner.identifier",
"sliceName": "sdsUserID"
}, {
"id": "Practitioner.identifier:gmcCode",
"max": "1",
"path": "Practitioner.identifier",
"sliceName": "gmcCode"
}, {
"id": "Practitioner.identifier:gmcCode.system",
"path": "Practitioner.identifier.system",
"fixedUri": "https://fhir.hl7.org.uk/Id/gmc-number"
}, {
"id": "Practitioner.identifier:gmcCode.value",
"min": 1,
"path": "Practitioner.identifier.value"
}, {
"id": "Practitioner.identifier:gmpCode",
"max": "1",
"path": "Practitioner.identifier",
"sliceName": "gmpCode"
}, {
"id": "Practitioner.identifier:gmpCode.system",
"path": "Practitioner.identifier.system",
"fixedUri": "https://fhir.hl7.org.uk/Id/gmp-number"
}, {
"id": "Practitioner.identifier:gmpCode.value",
"min": 1,
"path": "Practitioner.identifier.value"
}, {
"id": "Practitioner.identifier:dinCode",
"path": "Practitioner.identifier",
"sliceName": "dinCode"
}, {
"id": "Practitioner.identifier:dinCode.system",
"path": "Practitioner.identifier.system",
"fixedUri": "https://fhir.hl7.org.uk/Id/din-number"
}, {
"id": "Practitioner.identifier:dinCode.value",
"min": 1,
"path": "Practitioner.identifier.value"
}, {
"id": "Practitioner.identifier:gphcCode",
"path": "Practitioner.identifier",
"sliceName": "gphcCode"
}, {
"id": "Practitioner.identifier:gphcCode.system",
"path": "Practitioner.identifier.system",
"fixedUri": "https://fhir.hl7.org.uk/Id/gphc-number"
}, {
"id": "Practitioner.identifier:gphcCode.value",
"min": 1,
"path": "Practitioner.identifier.value"
}, {
"id": "Practitioner.identifier:hcpcNumber",
"path": "Practitioner.identifier",
"sliceName": "hcpcNumber"
}, {
"id": "Practitioner.identifier:hcpcNumber.system",
"path": "Practitioner.identifier.system",
"fixedUri": "https://fhir.hl7.org.uk/Id/hcpc-number"
}, {
"id": "Practitioner.identifier:hcpcNumber.value",
"min": 1,
"path": "Practitioner.identifier.value"
}, {
"id": "Practitioner.identifier:nmcNumber",
"path": "Practitioner.identifier",
"sliceName": "nmcNumber"
}, {
"id": "Practitioner.identifier:nmcNumber.system",
"path": "Practitioner.identifier.system",
"fixedUri": "https://fhir.hl7.org.uk/Id/nmc-number"
}, {
"id": "Practitioner.identifier:nmcNumber.value",
"min": 1,
"path": "Practitioner.identifier.value"
}, {
"id": "Practitioner.name",
"min": 1,
"path": "Practitioner.name",
"mustSupport": true
}, {
"id": "Practitioner.telecom.value",
"min": 1,
"path": "Practitioner.telecom.value"
}, {
"id": "Practitioner.telecom.use",
"min": 1,
"path": "Practitioner.telecom.use"
} ]
},
"baseDefinition": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner"
}