Skip to main content

Plasma+

The Plasma+ APIs enhance the core APIs by providing additional functionality that is useful when building out healthcare applications.

Identity /api/plasma/sof/whoami

This API is used to get information about the currently logged-in user.

Query Parameters

  • readFhirUser: (Optional) If set to 1, will return the FHIR resource representation of the logged-in user

Headers

  • x-plasma-state

Returns

{
idToken?: any;
fhirUser?: any;
error?: string;
}

Example

const headers = {
"x-plasma-state": "your-state",
}

const { idToken, fhirUser, error } = await fetch("https://plasma-base-url/api/plasma/sof/whoami?readFhirUser=1", {
{ method: 'GET', headers: headers }
});