careplancontributor

package
v0.0.0-...-310d36a Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const CarePlanServiceOAuth2Scope = "careplanservice"

Variables

This section is empty.

Functions

This section is empty.

Types

type CarePlanServiceConfig

type CarePlanServiceConfig struct {
	// URL is the base URL of the CarePlanService at which the CarePlanContributor creates/reads CarePlans.
	URL string `koanf:"url"`
}

type Config

type Config struct {
	CarePlanService CarePlanServiceConfig `koanf:"careplanservice"`
	FrontendConfig  FrontendConfig        `koanf:"frontend"`
	AppLaunch       applaunch.Config      `koanf:"applaunch"`
	// FHIR contains the configuration to connect to the FHIR API holding EHR data,
	// to be made available through the CarePlanContributor.
	FHIR                          coolfhir.ClientConfig `koanf:"fhir"`
	TaskFiller                    TaskFillerConfig      `koanf:"taskfiller"`
	ServiceBusConfig              ehr.ServiceBusConfig  `koanf:"servicebus"`
	Enabled                       bool                  `koanf:"enabled"`
	HealthDataViewEndpointEnabled bool                  `koanf:"healthdataviewendpointenabled"`
	SessionTimeout                time.Duration         `koanf:"sessiontimeout"`
	StaticBearerToken             string
}

func DefaultConfig

func DefaultConfig() Config

func (Config) Validate

func (c Config) Validate() error

type FrontendConfig

type FrontendConfig struct {
	// URL is the base URL of the frontend for ORCA
	URL string `koanf:"url"`
}

type ScpValidationResult

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

type Service

type Service struct {
	SessionManager *user.SessionManager
	// contains filtered or unexported fields
}

func New

func New(
	config Config,
	profile profile.Provider,
	orcaPublicURL *url.URL,
	sessionManager *user.SessionManager,
	ehrFhirProxy coolfhir.HttpProxy) (*Service, error)

func (*Service) RegisterHandlers

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

type TaskFillerConfig

type TaskFillerConfig struct {
	// QuestionnaireFHIR contains the configuration to connect to the FHIR API holding Questionnaires and HealthcareServices,
	// used to negotiate FHIR Tasks. It might be a different FHIR API than the one holding EHR data,
	// also because HAPI doesn't allow storing Questionnaires in partitions.
	QuestionnaireFHIR     coolfhir.ClientConfig `koanf:"questionnairefhir"`
	QuestionnaireSyncURLs []string              `koanf:"questionnairesyncurls"`
}

func (TaskFillerConfig) Validate

func (c TaskFillerConfig) Validate() error

type TaskRejection

type TaskRejection struct {
	Reason       string
	ReasonDetail error
}

TaskRejection is an error type that is used when a Task can't be processed by the Task Filler, and isn't retryable. Reasons are: invalid Task, missing Task.partOf, unsupported service or condition code, etc. It should NOT be used for transient errors, like network issues: in that case, the Task should be retried.

func (TaskRejection) Error

func (t TaskRejection) Error() string

func (TaskRejection) FormatReason

func (t TaskRejection) FormatReason() string

Directories

Path Synopsis
Package ehr is a generated GoMock package.
Package ehr is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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