Skip to contents

Lee [base]/.well-known/smart-configuration y, si el servidor no lo publica, busca las extensiones oauth-uris en la seguridad del CapabilityStatement ([base]/metadata), como en SMART v1. Así se obtienen las URL del servidor de autorización que usa fhir_conectar() con fhir_auth_cliente(), fhir_auth_backend() o fhir_auth_interactiva().

Usage

fhir_smart_configuracion(url, tiempo = 30)

Arguments

url

Dirección base del servidor FHIR.

tiempo

Segundos de espera máxima por petición.

Value

Una lista con token_endpoint, authorization_endpoint (o NULL), fuente ("smart-configuration" o "CapabilityStatement") y configuracion (el documento completo leído).

See also

Examples

if (FALSE) { # interactive()
cfg <- fhir_smart_configuracion("https://launch.smarthealthit.org/v/r4/fhir")
cfg$token_endpoint
}