Documentation
¶
Index ¶
- Variables
- func Execute(i Interface) error
- func GetActiveWorkflowNames() map[string]string
- func GetTaskNotes(pwy string, nhsid string, taskid int, ver int) string
- func GetWorkflowDefinitionNames(user string) map[string]string
- func GetWorkflowXDSMetaNames() []string
- func IsLatestTaskEvent(i WorkflowDocument, task int, taskEventName string) bool
- type AssignedAuthor
- type AssignedPerson
- type AttachmentInfo
- type Author
- type ConfidentialityCode
- type Dashboard
- type DocumentEvent
- type DocumentEvents
- type EffectiveTime
- type ID
- type Input
- type Interface
- type Name
- type Output
- type Part
- type ServiceURL
- type TaskData
- type TaskDetails
- type TaskEvent
- type TaskEventHistory
- type TaskList
- type Transaction
- func (i *Transaction) ContentConsumer() error
- func (i *Transaction) ContentCreator() error
- func (i *Transaction) ContentUpdater() error
- func (i *Transaction) GetLatestWorkflowEventTime() time.Time
- func (i *Transaction) GetRegisteredWorkflows() map[string]string
- func (i *Transaction) GetTaskCompleteByDate() time.Time
- func (i *Transaction) GetTaskDuration() string
- func (i *Transaction) GetTaskTimeRemaining() string
- func (i *Transaction) GetWorkflowCompleteByDate() time.Time
- func (i *Transaction) GetWorkflowDuration() string
- func (i *Transaction) GetWorkflowTimeRemaining() string
- func (i *Transaction) IsTaskCompleteBehaviorMet() bool
- func (i *Transaction) IsTaskOverdue() bool
- func (i *Transaction) IsWorkflowCompleteBehaviorMet() (bool, string)
- func (i *Transaction) IsWorkflowEscalated() bool
- func (i *Transaction) IsWorkflowOverdue() bool
- func (i *Transaction) PersistXDWDefinition() error
- func (i *Transaction) RegisterWorkflowDefinition(ismeta bool) error
- func (i *Transaction) SetXDWStates() error
- func (i *Transaction) UpdateWorkflowDocument() error
- type WorkflowDefinition
- type WorkflowDocument
- type WorkflowStatusHistory
- type XDSDocumentMeta
- type XDWTask
Constants ¶
This section is empty.
Variables ¶
View Source
var Regional_OID = os.Getenv(tukcnst.ENV_REG_OID)
Functions ¶
func GetActiveWorkflowNames ¶
func GetWorkflowXDSMetaNames ¶
func GetWorkflowXDSMetaNames() []string
func IsLatestTaskEvent ¶
func IsLatestTaskEvent(i WorkflowDocument, task int, taskEventName string) bool
Types ¶
type AssignedAuthor ¶
type AssignedAuthor struct {
ID ID `xml:"id" json:"ID"`
AssignedPerson AssignedPerson `xml:"assignedPerson" json:"AssignedPerson"`
}
type AssignedPerson ¶
type AssignedPerson struct {
Name Name `xml:"name" json:"Name"`
}
type AttachmentInfo ¶
type AttachmentInfo struct {
Identifier string `xml:"identifier" json:"Identifier"`
Name string `xml:"name" json:"Name"`
AccessType string `xml:"accessType" json:"AccessType"`
ContentType string `xml:"contentType" json:"ContentType"`
ContentCategory string `xml:"contentCategory" json:"ContentCategory"`
AttachedTime string `xml:"attachedTime" json:"AttachedTime"`
AttachedBy string `xml:"attachedBy" json:"AttachedBy"`
HomeCommunityId string `xml:"homeCommunityId" json:"HomeCommunityId"`
}
type Author ¶
type Author struct {
AssignedAuthor AssignedAuthor `xml:"assignedAuthor" json:"AssignedAuthor"`
}
type ConfidentialityCode ¶
type ConfidentialityCode struct {
Code string `xml:"code,attr" json:"Code"`
}
type DocumentEvent ¶
type DocumentEvent struct {
EventTime string `xml:"eventTime" json:"EventTime"`
EventType string `xml:"eventType" json:"EventType"`
TaskEventIdentifier string `xml:"taskEventIdentifier" json:"TaskEventIdentifier"`
Author string `xml:"author" json:"Author"`
PreviousStatus string `xml:"previousStatus" json:"PreviousStatus"`
ActualStatus string `xml:"actualStatus" json:"ActualStatus"`
}
type DocumentEvents ¶
type DocumentEvents []DocumentEvent
sort interface
func (DocumentEvents) Len ¶
func (e DocumentEvents) Len() int
func (DocumentEvents) Less ¶
func (e DocumentEvents) Less(i, j int) bool
func (DocumentEvents) Swap ¶
func (e DocumentEvents) Swap(i, j int)
type EffectiveTime ¶
type EffectiveTime struct {
Value string `xml:"value,attr" json:"Value"`
}
type Part ¶
type Part struct {
Name string `xml:"name,attr" json:"Name"`
AttachmentInfo AttachmentInfo `xml:"attachmentInfo" json:"AttachmentInfo"`
}
type ServiceURL ¶ added in v1.3.39
type TaskData ¶
type TaskData struct {
TaskDetails TaskDetails `xml:"taskDetails" json:"TaskDetails"`
Description string `xml:"description" json:"Description"`
Input []Input `xml:"input" json:"Input"`
Output []Output `xml:"output" json:"Output"`
}
type TaskDetails ¶
type TaskDetails struct {
ID string `xml:"id" json:"ID"`
TaskType string `xml:"taskType" json:"TaskType"`
Name string `xml:"name" json:"Name"`
Status string `xml:"status" json:"Status"`
ActualOwner string `xml:"actualOwner" json:"ActualOwner"`
CreatedTime string `xml:"createdTime" json:"CreatedTime"`
CreatedBy string `xml:"createdBy" json:"CreatedBy"`
ActivationTime string `xml:"activationTime" json:"ActivationTime"`
LastModifiedTime string `xml:"lastModifiedTime" json:"LastModifiedTime"`
RenderingMethodExists string `xml:"renderingMethodExists" json:"RenderingMethodExists"`
}
type TaskEventHistory ¶
type TaskEventHistory struct {
TaskEvent []TaskEvent `xml:"taskEvent" json:"TaskEvent"`
}
func (TaskEventHistory) Len ¶ added in v1.3.61
func (e TaskEventHistory) Len() int
func (TaskEventHistory) Less ¶ added in v1.3.61
func (e TaskEventHistory) Less(i, j int) bool
func (TaskEventHistory) Swap ¶ added in v1.3.61
func (e TaskEventHistory) Swap(i, j int)
type Transaction ¶
type Transaction struct {
Actor string
User string
Org string
Role string
Pathway string
Expression string
NHS_ID string
XDS_ID string
Task_ID int
XDWVersion int
Status string
AttachmentInfo string
Request []byte
Response []byte
ServiceURL ServiceURL
Dashboard Dashboard
WorkflowDefinition WorkflowDefinition
XDSDocumentMeta XDSDocumentMeta
WorkflowDocument WorkflowDocument
XDWState tukdbint.WorkflowStates
Workflows tukdbint.Workflows
OpenWorkflows tukdbint.Workflows
ClosedWorkflows tukdbint.Workflows
MetWorkflows tukdbint.Workflows
OverdueWorkflows tukdbint.Workflows
EscalatedWorkflows tukdbint.Workflows
XDWEvents tukdbint.Events
Subscriptions tukdbint.Subscriptions
}
func (*Transaction) ContentConsumer ¶ added in v1.3.27
func (i *Transaction) ContentConsumer() error
IHE XDW Content Consumer
func (*Transaction) ContentCreator ¶ added in v1.3.27
func (i *Transaction) ContentCreator() error
IHE XDW Content Creator
func (*Transaction) ContentUpdater ¶ added in v1.3.27
func (i *Transaction) ContentUpdater() error
func (*Transaction) GetLatestWorkflowEventTime ¶ added in v1.3.27
func (i *Transaction) GetLatestWorkflowEventTime() time.Time
func (*Transaction) GetRegisteredWorkflows ¶ added in v1.3.52
func (i *Transaction) GetRegisteredWorkflows() map[string]string
func (*Transaction) GetTaskCompleteByDate ¶
func (i *Transaction) GetTaskCompleteByDate() time.Time
func (*Transaction) GetTaskDuration ¶
func (i *Transaction) GetTaskDuration() string
func (*Transaction) GetTaskTimeRemaining ¶
func (i *Transaction) GetTaskTimeRemaining() string
func (*Transaction) GetWorkflowCompleteByDate ¶
func (i *Transaction) GetWorkflowCompleteByDate() time.Time
func (*Transaction) GetWorkflowDuration ¶ added in v1.3.27
func (i *Transaction) GetWorkflowDuration() string
func (*Transaction) GetWorkflowTimeRemaining ¶
func (i *Transaction) GetWorkflowTimeRemaining() string
func (*Transaction) IsTaskCompleteBehaviorMet ¶
func (i *Transaction) IsTaskCompleteBehaviorMet() bool
func (*Transaction) IsTaskOverdue ¶
func (i *Transaction) IsTaskOverdue() bool
func (*Transaction) IsWorkflowCompleteBehaviorMet ¶
func (i *Transaction) IsWorkflowCompleteBehaviorMet() (bool, string)
func (*Transaction) IsWorkflowEscalated ¶
func (i *Transaction) IsWorkflowEscalated() bool
func (*Transaction) IsWorkflowOverdue ¶ added in v1.3.27
func (i *Transaction) IsWorkflowOverdue() bool
func (*Transaction) PersistXDWDefinition ¶
func (i *Transaction) PersistXDWDefinition() error
func (*Transaction) RegisterWorkflowDefinition ¶
func (i *Transaction) RegisterWorkflowDefinition(ismeta bool) error
func (*Transaction) SetXDWStates ¶ added in v1.3.27
func (i *Transaction) SetXDWStates() error
func (*Transaction) UpdateWorkflowDocument ¶ added in v1.3.73
func (i *Transaction) UpdateWorkflowDocument() error
type WorkflowDefinition ¶
type WorkflowDefinition struct {
Ref string `json:"ref"`
Name string `json:"name"`
Confidentialitycode string `json:"confidentialitycode"`
StartByTime string `json:"startbytime"`
CompleteByTime string `json:"completebytime"`
ExpirationTime string `json:"expirationtime"`
CompletionBehavior []struct {
Completion struct {
Condition string `json:"condition"`
} `json:"completion"`
} `json:"completionBehavior"`
Tasks []struct {
ID string `json:"id"`
Tasktype string `json:"tasktype"`
Name string `json:"name"`
Description string `json:"description"`
ActualOwner string `json:"actualowner"`
ExpirationTime string `json:"expirationtime,omitempty"`
StartByTime string `json:"startbytime,omitempty"`
CompleteByTime string `json:"completebytime"`
IsSkipable bool `json:"isskipable,omitempty"`
PotentialOwners []struct {
OrganizationalEntity struct {
User string `json:"user"`
} `json:"organizationalEntity"`
} `json:"potentialOwners,omitempty"`
CompletionBehavior []struct {
Completion struct {
Condition string `json:"condition"`
} `json:"completion"`
} `json:"completionBehavior"`
Input []struct {
Name string `json:"name"`
Contenttype string `json:"contenttype"`
AccessType string `json:"accesstype"`
} `json:"input,omitempty"`
Output []struct {
Name string `json:"name"`
Contenttype string `json:"contenttype"`
AccessType string `json:"accesstype"`
} `json:"output,omitempty"`
} `json:"tasks"`
}
type WorkflowDocument ¶ added in v1.3.40
type WorkflowDocument struct {
XMLName xml.Name `xml:"XDW.WorkflowDocument" json:"XMLName"`
Hl7 string `xml:"hl7,attr" json:"Hl7"`
WsHt string `xml:"ws-ht,attr" json:"WsHt"`
Xdw string `xml:"xdw,attr" json:"Xdw"`
Xsi string `xml:"xsi,attr" json:"Xsi"`
SchemaLocation string `xml:"schemaLocation,attr" json:"SchemaLocation"`
ID ID `xml:"id" json:"ID"`
EffectiveTime EffectiveTime `xml:"effectiveTime" json:"EffectiveTime"`
ConfidentialityCode ConfidentialityCode `xml:"confidentialityCode" json:"ConfidentialityCode"`
Patient ID `xml:"patient" json:"Patient"`
Author Author `xml:"author" json:"Author"`
WorkflowInstanceId string `xml:"workflowInstanceId" json:"WorkflowInstanceId"`
WorkflowDocumentSequenceNumber string `xml:"workflowDocumentSequenceNumber" json:"WorkflowDocumentSequenceNumber"`
WorkflowStatus string `xml:"workflowStatus" json:"WorkflowStatus"`
WorkflowStatusHistory WorkflowStatusHistory `xml:"workflowStatusHistory" json:"WorkflowStatusHistory"`
WorkflowDefinitionReference string `xml:"workflowDefinitionReference" json:"WorkflowDefinitionReference"`
TaskList TaskList `xml:"TaskList" json:"TaskList"`
}
type WorkflowStatusHistory ¶
type WorkflowStatusHistory struct {
DocumentEvent []DocumentEvent `xml:"documentEvent" json:"DocumentEvent"`
}
func (WorkflowStatusHistory) Len ¶ added in v1.3.61
func (e WorkflowStatusHistory) Len() int
func (WorkflowStatusHistory) Less ¶ added in v1.3.61
func (e WorkflowStatusHistory) Less(i, j int) bool
func (WorkflowStatusHistory) Swap ¶ added in v1.3.61
func (e WorkflowStatusHistory) Swap(i, j int)
type XDSDocumentMeta ¶
type XDSDocumentMeta struct {
ID string `json:"id"`
DateUtc string `json:"dateUtc"`
BinaryId string `json:"binaryId"`
Data string `json:"data"`
NhsId string `json:"nhsId"`
Pid string `json:"pid"`
PidOid string `json:"pidOid"`
RegId string `json:"regId"`
RegOid string `json:"regOid"`
PatientFamily string `json:"patientFamily"`
PatientGiven string `json:"patientGiven"`
Gender string `json:"gender"`
Dob string `json:"dob"`
PractitionerFamily string `json:"practitionerFamily"`
PractitionerGiven string `json:"practitionerGiven"`
Organization string `json:"organization"`
Repositoryuniqueid string `json:"repositoryuniqueid"`
Registryoid string `json:"registryoid"`
Languagecode string `json:"languagecode"`
Docname string `json:"docname"`
Docdesc string `json:"docdesc"`
DocID string `json:"docid"`
Authorinstitution string `json:"authorinstitution"`
Authorperson string `json:"authorperson"`
Classcode string `json:"classcode"`
Classcodescheme string `json:"classcodescheme"`
Classcodevalue string `json:"classcodevalue"`
Typecode string `json:"typecode"`
Typecodescheme string `json:"typecodescheme"`
Typecodevalue string `json:"typecodevalue"`
Practicesettingcode string `json:"practicesettingcode"`
Practicesettingscheme string `json:"practicesettingscheme"`
Practicesettingvalue string `json:"practicesettingvalue"`
Confcode string `json:"confcode"`
Confcodescheme string `json:"confcodescheme"`
Confcodevalue string `json:"confcodevalue"`
Facilitycode string `json:"facilitycode"`
Facilitycodescheme string `json:"facilitycodescheme"`
Facilitycodevalue string `json:"facilitycodevalue"`
Formatcode string `json:"formatcode"`
Formatcodescheme string `json:"formatcodescheme"`
Formatcodevalue string `json:"formatcodevalue"`
Mimetype string `json:"mimetype"`
Objecttype string `json:"objecttype"`
}
type XDWTask ¶
type XDWTask struct {
TaskData TaskData `xml:"taskData" json:"TaskData"`
TaskEventHistory TaskEventHistory `xml:"taskEventHistory" json:"TaskEventHistory"`
}
Click to show internal directories.
Click to hide internal directories.