Short answer: Yes, using a dedicated system user, as long as you can still say which person authorised each request, and you tell the organisations that use your identity provider that you work this way.
Conditions
- A person behind every request. Keep your own audit trail that links each request made by the system user to the individual who authorised it. For example, if a patient makes a subject access request asking who accessed their record, you must be able to answer it.
- Transparency. Tell the organisations that use your identity provider, such as GP practices, that access to Core works through a shared system user. They need this to meet their own obligations as data controllers.
The token exchange
The token exchange is the same as for any other client. Your service signs both the client assertion and the subject token. In the subject token, use a stable sub for the system user and a clear name, with the usual role and organization claims. Use the same sub every time: a new one on each request creates a new user record each time.
What it can be used for
Core APIs are for direct care, requested patient by patient with the directcare scope. If you're planning bulk or population-level extracts, talk to us first: that's a different use and needs its own agreements.
Write-backs
Entries written to a clinical system are recorded against the practice's API user, whoever made the request. If the authorising clinician must appear in the record, include their name in the note. See Why entries written back are recorded against the API user.
To set up a system user, contact us and tell us how your process will work.
0 Comments