NHS API · Schema
NHS Patient Demographics (PDS FHIR R4)
A patient demographic record as returned by the Personal Demographics Service FHIR R4 API. Based on the FHIR R4 Patient resource.
HealthcareFHIRNHSUKHL7Electronic PrescriptionsPatient DemographicsGP ConnectNHS LoginInteroperability
Properties
| Name | Type | Description |
|---|---|---|
| resourceType | string | |
| id | string | NHS Number (10-digit identifier) |
| meta | object | |
| identifier | array | |
| name | array | |
| gender | string | |
| birthDate | string | |
| deceasedBoolean | boolean | |
| deceasedDateTime | string | |
| address | array | |
| generalPractitioner | array | Patient's registered GP practice |
| extension | array | NHS-specific FHIR extensions (e.g. NHS communication preferences, nominated pharmacy, place of birth) |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://api.service.nhs.uk/schemas/patient-demographics",
"title": "NHS Patient Demographics (PDS FHIR R4)",
"description": "A patient demographic record as returned by the Personal Demographics Service FHIR R4 API. Based on the FHIR R4 Patient resource.",
"type": "object",
"required": ["resourceType", "id"],
"properties": {
"resourceType": {
"type": "string",
"const": "Patient"
},
"id": {
"type": "string",
"description": "NHS Number (10-digit identifier)"
},
"meta": {
"type": "object",
"properties": {
"versionId": { "type": "string" },
"security": {
"type": "array",
"items": {
"type": "object",
"properties": {
"system": { "type": "string" },
"code": { "type": "string" },
"display": { "type": "string" }
}
}
}
}
},
"identifier": {
"type": "array",
"items": {
"type": "object",
"properties": {
"system": {
"type": "string",
"description": "https://fhir.nhs.uk/Id/nhs-number"
},
"value": {
"type": "string",
"pattern": "^[0-9]{10}$",
"description": "10-digit NHS Number"
},
"extension": {
"type": "array",
"items": {
"type": "object",
"description": "NHS Number verification status extension"
}
}
}
}
},
"name": {
"type": "array",
"items": {
"type": "object",
"properties": {
"use": {
"type": "string",
"enum": ["usual", "official", "nickname", "old"]
},
"family": { "type": "string" },
"given": {
"type": "array",
"items": { "type": "string" }
},
"prefix": {
"type": "array",
"items": { "type": "string" }
},
"suffix": {
"type": "array",
"items": { "type": "string" }
},
"period": {
"type": "object",
"properties": {
"start": { "type": "string", "format": "date" },
"end": { "type": "string", "format": "date" }
}
}
}
}
},
"gender": {
"type": "string",
"enum": ["male", "female", "other", "unknown"]
},
"birthDate": {
"type": "string",
"format": "date"
},
"deceasedBoolean": {
"type": "boolean"
},
"deceasedDateTime": {
"type": "string",
"format": "date-time"
},
"address": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"use": { "type": "string" },
"line": {
"type": "array",
"items": { "type": "string" }
},
"city": { "type": "string" },
"district": { "type": "string" },
"postalCode": { "type": "string" }
}
}
},
"generalPractitioner": {
"type": "array",
"description": "Patient's registered GP practice",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"type": { "type": "string" },
"identifier": {
"type": "object",
"properties": {
"system": { "type": "string" },
"value": { "type": "string" }
}
}
}
}
},
"extension": {
"type": "array",
"description": "NHS-specific FHIR extensions (e.g. NHS communication preferences, nominated pharmacy, place of birth)"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/nhs-patient-demographics"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.