xdw oasis datatypes voc nblock cda

Element : TXDWWorkflowDocument (XML Type: tXDW.WorkflowDocument )


Package : xdw

XML Type : tXDW.WorkflowDocument


Name Type cardinality Comment
id
Element : id
II 1...1
title
Element : title
ST 0...1
effectiveTime
Element : effectiveTime
TS 1...1
confidentialityCode
Element : confidentialityCode
CE 1...1
languageCode
Element : languageCode
CS 0...1
patient
Element : patient
TXDWpatient 1...1
author
Element : author
TXDWAuthor 1...*
workflowInstanceID
Element : workflowInstanceID
String 1...1 This identifies the workflow in general. So every version of the workflow will have the same ID value.
workflowDocumentSequenceNumber
Element : workflowDocumentSequenceNumber
Integer 1...1 Version of this particular instance of the workflow document. Starts with 1 and increments for each new version.
workflowStatus
Element : workflowStatus
WorkflowStatusType 1...1 This indicates whether future versions of this document are expected. An "OPEN" workflow is expected to have tasks changed or added. A "CLOSED" workflow is not expected to change.
workflowStatusHistory
Element : workflowStatusHistory
XDWdocumentHistoryType 1...1
workflowDefinitionReference
Element : workflowDefinitionReference
String 1...* Reference to document that defines the workflow
taskList
Element : TaskList
TaskListType 1...1
any
ElementWildcard : any
String 0...*

constraintId

  • not self.id.oclIsUndefined()
  • Document ID required (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-1)

constraintEffectiveTime

  • not self.effectiveTime.oclIsUndefined()
  • Time of most recent update is required (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-1)

constraintConfidentialityCode

  • not self.confidentialityCode.oclIsUndefined()
  • ConfidentialityCode required (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-1)

constraintPatient

  • not self.patient.oclIsUndefined()
  • Patient required (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-1)

constraintAuthor

  • not self.author->isEmpty()
  • Author required (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-1)

constraintInstanceId

  • not self.workflowInstanceID.oclIsUndefined()
  • workflowInstanceId required (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-1)

constraintSequenceNumber

  • not self.workflowDocumentSequenceNumber.oclIsUndefined()
  • workflowDocumentSequenceNumber is required (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-1)

constraintWorkflowStatus

  • not self.workflowStatus.oclIsUndefined()
  • workflowStatus required (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-1)

constraintDefinitionReference

  • not self.workflowDefinitionReference->isEmpty()
  • workflowDefinitionReference required (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-1)

constraintTaskList

  • not self.taskList.oclIsUndefined()
  • TaskList is required (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-1)

constraintDocSequenceNumberPositive

  • (not self.workflowDocumentSequenceNumber.oclIsUndefined()) and (self.workflowDocumentSequenceNumber > 0)
  • workflowDocumentSequenceNumber must be bigger or equals to 1 (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-1)

constraintWorkflowStatusHistory

  • not self.workflowStatusHistory.oclIsUndefined()
  • workflowStatusHistory Required (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-1)

constraint_taskEventIdentifier

  • self.workflowStatusHistory.oclIsUndefined() or self.workflowStatusHistory.documentEvent->forAll(doc : TXDWdocumentEventType| doc.taskEventIdentifier.oclIsUndefined() or ( (not self.taskList.oclIsUndefined()) and self.taskList.xDWTask->exists(task : TXDWTask | (not task.taskEventHistory.oclIsUndefined()) and task.taskEventHistory.taskEvent->exists(event : TaskEventType | (not event.identifier.oclIsUndefined()) and event.identifier=doc.taskEventIdentifier) ) ) )
  • TaskEvent identifier of workflowStatusHistory/documentEvent shall store the same value of the element taskEvent/identifier of reference (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-5)

constraint_taskEvent_eventTime

  • self.workflowStatusHistory.oclIsUndefined() or self.workflowStatusHistory.documentEvent->forAll(doc : TXDWdocumentEventType| doc.eventTime.oclIsUndefined() or doc.taskEventIdentifier.oclIsUndefined() or ( (not self.taskList.oclIsUndefined()) and self.taskList.xDWTask->exists(task : TXDWTask | (not task.taskEventHistory.oclIsUndefined()) and task.taskEventHistory.taskEvent->exists(event : TaskEventType | (not event.eventTime.oclIsUndefined()) and (not event.identifier.oclIsUndefined()) and event.eventTime=doc.eventTime and event.identifier=doc.taskEventIdentifier ) ) ) )
  • TaskEvent eventTime of workflowStatusHistory/documentEvent shall store the same value of the element taskEvent/eventTime of reference (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-5)

constraint_taskEvent_eventType

  • self.workflowStatusHistory.oclIsUndefined() or self.workflowStatusHistory.documentEvent->forAll(doc : TXDWdocumentEventType| doc.eventType.oclIsUndefined() or doc.taskEventIdentifier.oclIsUndefined() or ( (not self.taskList.oclIsUndefined()) and self.taskList.xDWTask->exists(task : TXDWTask | (not task.taskEventHistory.oclIsUndefined()) and task.taskEventHistory.taskEvent->exists(event : TaskEventType | (not event.eventType.oclIsUndefined()) and (not event.identifier.oclIsUndefined()) and event.eventType=doc.eventType and event.identifier=doc.taskEventIdentifier ) ) ) )
  • TaskEvent eventType of workflowStatusHistory/documentEvent shall store the same value of the element taskEvent/eventType of reference (IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-5)

<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="tXDW.WorkflowDocument">
        
<xs:sequence>
            
<xs:element name="id" type="cda:II" />
            
<xs:element minOccurs="0" name="title" type="cda:ST" />
            
<xs:element name="effectiveTime" type="cda:TS" />
            
<xs:element name="confidentialityCode" type="cda:CE" />
            
<xs:element minOccurs="0" name="languageCode" type="cda:CS" />
            
<xs:element maxOccurs="1" name="patient" type="tXDWpatient" />
            
<xs:element maxOccurs="unbounded" name="author" type="tXDWAuthor" />
            
<!-- maxOccurs="1"???? -->
            
<xs:element name="workflowInstanceID">
                
<xs:annotation>
                    
<xs:documentation>This identifies the workflow in general.  So every version of the workflow will have the same ID value.</xs:documentation>
                
</xs:annotation>
                
<xs:simpleType>
                    
<xs:restriction base="xs:anyURI"> </xs:restriction>
                
</xs:simpleType>
            
</xs:element>
            
<xs:element name="workflowDocumentSequenceNumber">
                
<xs:annotation>
                    
<xs:documentation>Version of this particular instance of the workflow document.  Starts with 1 and increments for each new version.</xs:documentation>
                
</xs:annotation>
                
<xs:simpleType>
                    
<xs:restriction base="xs:int">
                        
<xs:minInclusive value="1" />
                    
</xs:restriction>
                
</xs:simpleType>
            
</xs:element>
            
<xs:element name="workflowStatus">
                
<xs:annotation>
                    
<xs:documentation>This indicates whether future versions of this document are expected.  An "OPEN" workflow is expected to have tasks changed or added.  A "CLOSED" workflow is not expected to change.

 
</xs:documentation>
                
</xs:annotation>
                
<xs:simpleType>
                    
<xs:restriction base="xs:token">
                        
<xs:enumeration value="OPEN" />
                        
<xs:enumeration value="CLOSED" />
                    
</xs:restriction>
                
</xs:simpleType>
            
</xs:element>
            
<xs:element minOccurs="1" name="workflowStatusHistory">
                
<xs:complexType>
                    
<xs:sequence>
                        
<xs:element maxOccurs="unbounded" minOccurs="1" name="documentEvent" type="tXDWdocumentEvent_type" />
                        
<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##other" />
                    
</xs:sequence>
                
</xs:complexType>
            
</xs:element>
            
<xs:element maxOccurs="unbounded" name="workflowDefinitionReference" type="xs:anyURI">
                
<xs:annotation>
                    
<xs:documentation>Reference to document that defines the workflow</xs:documentation>
                
</xs:annotation>
            
</xs:element>
            
<xs:element name="TaskList" type="TaskList_type" />
            
<xs:any maxOccurs="unbounded" minOccurs="0" namespace="" />
        
</xs:sequence>
    
</xs:complexType>