The Foundations capability covers the basic API requirements and prerequisites needed to use the GP Connect APIs.
You need to be able to provide a verified NHS number to use an API. You can do this using a Spine accredited system, a Demographics Batch Service (DBS) batch-traced record (CSV), or using a Spine Mini Services Provider (HL7v3).
SDS / ODS
To resolve a given GP Practice organisation to its URI you need to be able to do a Spine SDS query (LDAP) using the practice’s ODS code to perform an SDS End Point Lookup.
In order to be a compliant FHIR server, provider systems need to expose a valid FHIR CapabilityStatement profile.
Refer to Development Guidance - FHIR API Guidance - Common API Guidance for full details on the common FHIR API patterns used throughout all the GP Connect APIs.
- Search for a patient by
- Search for an organisation by
- Search for a practitioner by
API use cases
The following individual API calls make up the Foundations capability and support the other capability packs:
Consumer code examples
Consumer side code examples are available for each of GP Connect interactions within the following GitHub repositories. The repositories contain a different branch for each release of the specification, the code within these branches matches the requirements of the specification within that release.
The Foundations capability message set includes the following set of Spine interactions:
The Register Patient API use case, which is included in the Foundations capability, has a separate “Register Patient” message set:
Implementation and testing
Below is the suggested order in which the foundation capabilities should be implemented. The specified order has been recommended around the functionality of the GP Connect Automated Test Suite and any internal dependencies between the test scenarios for the different foundation endpoints.
It is advisable to develop against the Automated Test Suite as this will assist with creating a GP Connect compliant product. By implementing the endpoints in the order below, this means that the automated test suite set of tests for that endpoint can be run during development without the developer seeing errors due to pre-test API calls or post test validation API calls relevant to the test being run and failing as they have not been developed yet.
1. Foundation endpoints
|Order||API Endpoint||Test Suite Endpoint Dependencies||Reason For Dependency|
|#1||Find an organization||-||The find an organization capability is not dependent on any other capability within the automated test suite.|
|#2||Read an Organization||Find an organization||
|#3||Find a practitioner||Read an Organization||The
|#4||Read a practitioner||Find a practitioner / Read an organization||
|#5||Find a patient||Read and organization / Read a practitioner||The
|#6||Read a patient||Find a patient / Read an organization / Read a practitioner||
|#7||Read a location||Read an organization||The
|#8||Register a patient||Find a patient / Read a patient / Read an organization||The register patient endpoint tests require a number of the foundation search and read endpoints to be implemented and therefore it is advised that this is done as the last foundation capability. The foundation endpoints are used to create rich register patient requests as well as validating the registered patient resource is valid and retrievable on the providers system.|