Extract Patient

Extract Patient

What

Enables you to pull out the current patient demographics held against the patients PKB record. See the Validation and Business rules section for further details on what is included in the Aggregated endpoint.

Prerequisites

How to

Example

Here’s an example response for pulling all of this patient’s demographic data

GET https://aggregated-fhir.sandbox.patientsknowbest.com/fhir/Patient?identifier=https://fhir.nhs.uk/Id/nhs-number%7C9994179586

{ "resourceType": "Bundle", "meta": { "versionId": "0", "lastUpdated": "2026-02-06T11:08:15.764+00:00" }, "type": "searchset", "total": 1, "link": [ { "relation": "first", "url": "/fhir/Patient?identifier=https://fhir.nhs.uk/Id/nhs-number%7C9994179586&page=1" }, { "relation": "self", "url": "/fhir/Patient?identifier=https://fhir.nhs.uk/Id/nhs-number%7C9994179586" } ], "entry": [ { "link": [ { "relation": "self", "url": "http://fhir-server-sandboxaggregated-sandbox.sandbox.svc.cluster.local.:8080/Patient/c26c3156-9196-3fef-ae5e-357721245c91" } ], "fullUrl": "http://fhir-server-sandboxaggregated-sandbox.sandbox.svc.cluster.local.:8080/Patient/c26c3156-9196-3fef-ae5e-357721245c91", "resource": { "resourceType": "Patient", "id": "c26c3156-9196-3fef-ae5e-357721245c91", "meta": { "extension": [ { "url": "http://fhir.patientsknowbest.com/structuredefinition/version-persisted", "valueDateTime": "2026-02-06T10:10:16.057+00:00" }, { "url": "ex:createdAt", "valueInstant": "2026-02-06T10:10:18.765009Z" } ], "versionId": "9045996", "lastUpdated": "2026-02-06T10:11:44.420924Z" }, "extension": [ { "url": "http://fhir.patientsknowbest.com/structuredefinition/default-account", "valueReference": { "identifier": { "system": "urn:uuid:cd97da65-0aa4-43a6-b695-cfd0c6f3267d", "value": "0c71b08b-38f8-4973-aaff-e4103151cd42" } } }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/status", "valueString": "EMAIL_CONFIRMED" }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/registered-on", "valueDateTime": "2026-02-06T10:11:30.822+00:00" }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/language-code", "valueString": "en" }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/time-zone-id", "valueString": "Europe/London" }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/two-factor-auth-state", "valueString": "DISABLED" }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/notification-option", "valueString": "MAX_ONE_EMAIL_PER_DAY" }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/status-date", "valueDateTime": "2026-02-06T10:11:30.895+00:00" }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/user-type", "valueString": "PATIENT" }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/source-organization-time-zone-id", "valueString": "Europe/London" } ], "identifier": [ { "system": "http://fhir.patientsknowbest.com/id/pkbperson-legacy-identifier", "value": "15139023" }, { "system": "http://fhir.patientsknowbest.com/id/public-id", "value": "2f244205-96ea-4101-8944-9d4ea699bf32" }, { "extension": [ { "url": "http://fhir.patientsknowbest.com/id/nationalid-legacy-identifier", "valueDecimal": 15139026 }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/access-route", "valueCoding": { "system": "http://fhir.patientsknowbest.com/codesystem/access-route", "code": "HL7_API", "display": "Integration (HL7)" } }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/created-date", "valueDateTime": "2026-02-06T10:10:16.232+00:00" }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/entered-date", "valueDateTime": "2026-02-06T10:06:00.000+00:00" }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/version-persisted", "valueDateTime": "2026-02-06T10:10:16.232+00:00" } ], "system": "https://fhir.nhs.uk/Id/nhs-number", "value": "9994179586" } ], "name": [ { "family": "Smith", "given": [ "Joan" ], "prefix": [ "Mrs" ] } ], "telecom": [ { "extension": [ { "url": "http://fhir.patientsknowbest.com/structuredefinition/contact-confirmed", "valueBoolean": true }, { "url": "http://fhir.patientsknowbest.com/id/personcontact-legacy-identifier", "valueDecimal": 15139024 }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/access-route", "valueCoding": { "system": "http://fhir.patientsknowbest.com/codesystem/access-route", "code": "HL7_API", "display": "Integration (HL7)" } }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/created-date", "valueDateTime": "2026-02-06T10:10:16.066+00:00" }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/entered-date", "valueDateTime": "2026-02-06T10:06:00.000+00:00" }, { "url": "http://fhir.patientsknowbest.com/structuredefinition/version-persisted", "valueDateTime": "2026-02-06T10:11:30.821+00:00" } ], "system": "email", "value": "joan_smith@pkbtest.com", "rank": 1 } ], "gender": "female", "birthDate": "1980-07-08", "address": [ { "line": [ "14B Rowan Lane" ], "city": "Leeds", "state": "West Yorkshire", "postalCode": "LS19 9AD", "country": "GB-ENG" } ] }, "search": { "mode": "match" } } ] }

Patients Know Best Resource Hub | Deploy | Developer | Trust Centre | Manual | Research | Education | Release Notes

© Patients Know Best, Ltd. Registered in England and Wales Number: 6517382. VAT Number: GB 944 9739 67.

This API specification and design is licensed under a Creative Commons Attribution 4.0 International License.