redguava / cliniko-api

The API for Cliniko
73 stars 39 forks source link

Is there a way to change the author of the note with 1 API key? #361

Open laura753 opened 2 years ago

laura753 commented 2 years ago

When linking the API it seems to be linked to the email that creates it. Is there a way to separate this?

E.g we have multiple therapist accounts that work under one organisation, we want the API to push metadata into the case note and then save it as a draft. At the moment when this happens only the person who created the API key can alter/ save the note.

Not all clinicians in the clinic also have permission to create their own API. Not sure if creating multiple for the same account on our end would confuse things.

hagen commented 2 years ago

Hi there,

Unfortunately you cannot override the author of a treatment note when created via API key. API keys are linked to individual users, and so the permissions within the API are determined by the user of the API key. You'd need to use different practitioner API keys in this case, to ensure the correct author was linked to the treatment note.

Cheers, Hagen