What do the access details you sent us mean?

John Wade -

Short answer: Your access details give you what you need for the token exchange (client ID, ODS code, meta endpoint and service ID) and for API calls (API key and endpoint URLs). Every API call needs an access token, your API key and your practitioner role ID together.

What each detail is for

Detail What it's for
Config service, for example https://config.core-beta.blackpear.com/core-configuration Lists the URL of every Core service in the environment. Treat it as the source of truth for URLs.
Client ID The iss and sub of your client assertion.
ODS code The organization claim in your subject token.
Meta endpoint and service ID The service value in the token exchange, joined by a pipe: <meta endpoint>|<service ID>.
API key The x-api-key header on every API call. It identifies your application and applies your usage plan.
EMIS Web, SystmOne and Command API endpoints A base URL plus an endpoint code, for example <base>/A28579 or <base>/clinical.
Postman collections Example requests for the token exchange and each API.

Every API call needs three things

  • Authorization: Bearer <access token> from the token exchange
  • x-api-key: <your API key>
  • x-fhir-practitionerrole-id: <practitioner role ID> from the token exchange

The API key can't be used on its own. It doesn't say who's making the request, so it can't be used to check permissions or audit access to patient data. All requests must come from a UK IP address.

Beta and production

Beta and production are registered separately. Each has its own client ID, API key, signing keys and issuer, and Beta details never work in production. Production practices are connected as agreed with you. When we connect a practice, we can link its ODS code to your service, so you can use that code in the organization claim.

More than one deployment

If you run separate deployments against Beta, such as staging and training, ask us for a separate client ID for each. Each can then be managed and switched off on its own.

API keys

We can issue a new API key on request. It's applied in our next scheduled release, or straight away if the key has been exposed.

Usage alerts

We email the group address you gave us when you reach 70% and 90% of your usage plan. See How do usage plans, rate limits and response times work?

Connecting your own test systems

In some cases, we are able to link your test systems to our services. Please contact us with the details (clinical system type, ODS/CDB/Unit number) and we'll let you know if this is possible.

More information

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk