Documentation
¶
Index ¶
- Variables
- func CloseDBConnection()
- func GetIDMapsLocalId(user string, mid string) string
- func GetIDMapsMappedId(user string, localid string) string
- func GetPathways(user string) map[string]string
- func GetTaskNotes(pwy string, nhsid string, taskid int, ver int) (string, error)
- func GetWorkflowXDSMeta(name string) (string, error)
- func HasBrokerSub(expression string) (bool, string)
- func HasUserSub(usersub Subscription) bool
- func NewDBEvent(i DBInterface) error
- func NewSub(sub Subscription) error
- func PersistTemplate(user string, templatename string, templatestr string) error
- func PersistWorkflowDefinition(name string, config string, isxdsmeta bool) error
- type DBConnection
- type DBInterface
- type Event
- type Events
- type IdMap
- type IdMaps
- type Static
- type Statics
- type Subscription
- type Subscriptions
- type Template
- type Templates
- type Workflow
- type WorkflowStates
- type Workflows
- type Workflowstate
- type XDW
- type XDWS
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DBConn *sql.DB
)
Functions ¶
func GetIDMapsLocalId ¶ added in v1.3.0
func GetIDMapsMappedId ¶ added in v1.3.0
Idmaps
func GetTaskNotes ¶ added in v1.3.0
Events
func GetWorkflowXDSMeta ¶ added in v1.3.0
func HasBrokerSub ¶ added in v1.3.68
func HasUserSub ¶ added in v1.3.68
func HasUserSub(usersub Subscription) bool
func NewDBEvent ¶
func NewDBEvent(i DBInterface) error
func NewSub ¶ added in v1.3.68
func NewSub(sub Subscription) error
func PersistTemplate ¶ added in v1.3.67
Templates
Types ¶
type DBConnection ¶ added in v1.3.68
type DBInterface ¶ added in v1.3.68
type DBInterface interface {
// contains filtered or unexported methods
}
type Event ¶
type Event struct {
Id int `json:"id"`
Creationtime string `json:"creationtime"`
EventType string `json:"eventtype"`
DocName string `json:"docname"`
ClassCode string `json:"classcode"`
ConfCode string `json:"confcode"`
FormatCode string `json:"formatcode"`
FacilityCode string `json:"facilitycode"`
PracticeCode string `json:"practicecode"`
Expression string `json:"expression"`
Authors string `json:"authors"`
XdsPid string `json:"xdspid"`
XdsDocEntryUid string `json:"xdsdocentryuid"`
RepositoryUniqueId string `json:"repositoryuniqueid"`
NhsId string `json:"nhsid"`
User string `json:"user"`
Org string `json:"org"`
Role string `json:"role"`
Speciality string `json:"speciality"`
Topic string `json:"topic"`
Pathway string `json:"pathway"`
Comments string `json:"comments"`
Version int `json:"ver"`
TaskId int `json:"taskid"`
BrokerRef string `json:"brokerref"`
}
type Events ¶
type IdMaps ¶ added in v1.2.7
type Subscription ¶
type Subscription struct {
Id int `json:"id"`
Created string `json:"created"`
BrokerRef string `json:"brokerref"`
Pathway string `json:"pathway"`
Topic string `json:"topic"`
Expression string `json:"expression"`
Email string `json:"email"`
NhsId string `json:"nhsid"`
User string `json:"user"`
Org string `json:"org"`
Role string `json:"role"`
}
type Subscriptions ¶
type Subscriptions struct {
Action string `json:"action"`
LastInsertId int `json:"lastinsertid"`
Count int `json:"count"`
Subscriptions []Subscription `json:"subscriptions"`
}
func CancelEsub ¶ added in v1.3.68
func CancelEsub(sub Subscription) Subscriptions
func GetPathwaySubs ¶ added in v1.3.68
func GetPathwaySubs(pathway string) Subscriptions
Subscriptions
func GetSubs ¶ added in v1.3.68
func GetSubs(sub Subscription) Subscriptions
type Workflow ¶
type Workflow struct {
Id int `json:"id"`
Created string `json:"created"`
Pathway string `json:"pathway"`
NHSId string `json:"nhsid"`
XDW_Key string `json:"xdw_key"`
XDW_UID string `json:"xdw_uid"`
XDW_Doc string `json:"xdw_doc"`
XDW_Def string `json:"xdw_def"`
Version int `json:"version"`
Published bool `json:"published"`
Status string `json:"status"`
}
type WorkflowStates ¶ added in v1.3.23
type WorkflowStates struct {
Action string `json:"action"`
LastInsertId int `json:"lastinsertid"`
Count int `json:"count"`
Workflowstate []Workflowstate `json:"workflowstate"`
}
type Workflows ¶
type Workflows struct {
Action string `json:"action"`
LastInsertId int `json:"lastinsertid"`
Count int `json:"count"`
Workflows []Workflow `json:"workflows"`
}
func GetWorkflows ¶ added in v1.3.0
Workflows
type Workflowstate ¶ added in v1.3.23
type Workflowstate struct {
Id int `json:"id"`
WorkflowId int `json:"workflowid"`
Pathway string `json:"pathway"`
NHSId string `json:"nhsid"`
Version int `json:"version"`
Published bool `json:"published"`
Created string `json:"created"`
CreatedBy string `json:"createdby"`
Status string `json:"status"`
CompleteBy string `json:"completeby"`
LastUpdate string `json:"lastupdate"`
Owner string `json:"owner"`
Overdue string `json:"overdue"`
Escalated string `json:"escalated"`
TargetMet string `json:"targetmet"`
InProgress string `json:"inprogress"`
Duration string `json:"duration"`
TimeRemaining string `json:"timeremaining"`
}
Click to show internal directories.
Click to hide internal directories.