xdw oasis datatypes voc nblock cda

Element : TXDWTask (XML Type: tXDWTask )


Package : xdw

XML Type : tXDWTask


Parent : CommonOperations


Name Type cardinality Comment
taskData
Element : taskData
TTaskInstanceData 1...1
taskEventHistory
Element : taskEventHistory
TXDWeventHistory 1...1
any
ElementWildcard : any
EFeatureMapEntry 0...*

constraintTaskData

  • not self.taskData.oclIsUndefined()
  • taskData required (TF IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-7)

constraintTaskEventHistory

  • not self.taskEventHistory.oclIsUndefined()
  • taskEventHistory required (TF IHE_ITI_Suppl_XDW_Rev2-1, table 5.4.3-7)

constraint_status

  • (not self.taskData.oclIsUndefined()) and (not self.taskData.taskDetails.oclIsUndefined()) and (not self.taskData.taskDetails.status.oclIsUndefined()) and (not self.taskEventHistory.oclIsUndefined()) and (not self.taskEventHistory.taskEvent->isEmpty()) and (not self.taskEventHistory.taskEvent->last().status.oclIsUndefined()) and self.taskEventHistory.taskEvent->last().status=self.taskData.taskDetails.status
  • The status of taskData/taskDetails SHALL be equals to the last status on the taskEvent list (TF IHE_ITI_Suppl_XDW_Rev2)

constraint_taskEvent_id_unique

  • self.taskEventHistory.oclIsUndefined() or self.taskEventHistory.taskEvent->forAll(even : TaskEventType | even.id.oclIsUndefined() or ( self.taskEventHistory.taskEvent->select(even2 : TaskEventType | (not even2.id.oclIsUndefined()) and even2.id=even.id )->size()=1 ) )
  • the taskEvent/id shall be unique inside the XDWTask

<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="tXDWTask">
        
<xs:sequence>
            
<xs:element name="taskData" type="ht:tTaskInstanceData" />
            
<xs:element minOccurs="1" name="taskEventHistory" type="tXDWeventHistory" />
            
<xs:any maxOccurs="unbounded" minOccurs="0" namespace="##other" />
        
</xs:sequence>
    
</xs:complexType>