Introduction
...
After successful authorization, retrieve the resulting SMART FHIR client. The current user's fully qualified FHIR URL is on the FHIR client at userId.
Ex: https://sandboxopen-api.hspconsortium.org/dstu2/open-hspc-reference-api/data/Practitioner/COREPRACTITIONER1
Code Block | ||||
---|---|---|---|---|
| ||||
var currentUserFhirUrl; FHIR.oauth2.ready(function(fhirClient){ currentUserFhirUrl = fhirClient.userId; }); |
...