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 ¶
func (e EmbeddedQuestionnaireLoader) Load(targetUrl string) (*fhir.Questionnaire, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.