Creates and returns a Client instance that can be used to query the FHIR server.
This function can be used when you want to handle everything in one page (no launch endpoint needed).
launch_uri
is the same as your redirect_uri
.
While this should be valid, we can't promise that every EHR will allow you
to register client with such settings.init()
will be called
again to complete the authorization. This is generally fine, because the
returned promise will only be resolved once, after the second execution,
but please also consider the following:This should be called on your redirect_uri
. Returns a Promise that
will eventually be resolved with a Client instance that you can use
to query the fhir server.
Generated using TypeDoc
Starts the SMART Launch Sequence.
The options that you would typically pass for an EHR launch are just
clientId
andscope
. For standalone launch you should also provide theiss
option.