smartonfhir

package
v0.0.0-...-25571b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientID     string `koanf:"clientid"`
	ClientSecret string `koanf:"clientsecret"`
	RedirectURI  string `koanf:"redirecturi"`
	Scope        string `koanf:"scope"`
}

type Configuration

type Configuration struct {
	TokenEndpoint         string `json:"token_endpoint"`
	AuthorizationEndpoint string `json:"authorization_endpoint"`
}

Configuration represents the discovered SMART on FHIR configuration for the SMART on FHIR client. See https://build.fhir.org/ig/HL7/smart-app-launch/conformance.html#metadata

func DiscoverConfiguration

func DiscoverConfiguration(fhirBaseURL *url.URL) (*Configuration, error)

DiscoverConfiguration retrieves the SMART on FHIR configuration from the given FHIR base URL. It is expected to be found at `/.well-known/smart-configuration`. See https://build.fhir.org/ig/HL7/smart-app-launch/app-launch.html#retrieve-well-knownsmart-configuration

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(config Config, manager *user.SessionManager, landingUrlPath string) *Service

func (*Service) RegisterHandlers

func (s *Service) RegisterHandlers(mux *http.ServeMux)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL