taskengine

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWorkflowNotFound = errors.New("workflow not found")

Functions

This section is empty.

Types

type EmbeddedQuestionnaireLoader

type EmbeddedQuestionnaireLoader struct {
}

func (EmbeddedQuestionnaireLoader) Load

type QuestionnaireLoader

type QuestionnaireLoader interface {
	// Load a questionnaire from a URL. It returns nil if the URL can't be handled by the loader (e.g. file does not exist), or an error if something went wrong (e.g. read or unmarshal error).
	Load(url string) (*fhir.Questionnaire, error)
}

type Workflow

type Workflow struct {
	Steps []WorkflowStep
}

func (Workflow) Proceed

func (w Workflow) Proceed(previousQuestionnaireUrl string) (*WorkflowStep, error)

func (Workflow) Start

func (w Workflow) Start() WorkflowStep

type WorkflowStep

type WorkflowStep struct {
	QuestionnaireUrl string
}

type Workflows

type Workflows map[string]map[string]Workflow

Workflows is a map of workflow IDs to workflows. It's a map of a care service (e.g. Telemonitoring, http://snomed.info/sct|719858009), to conditions (e.g. COPD, http://snomed.info/sct|13645005) and their workflows.

func DefaultWorkflows

func DefaultWorkflows() Workflows

DefaultWorkflows returns a set of default, embedded workflows.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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