Constraint Descriptor : constraint_dataEntererTime (type: ERROR, kind: )

Constraint : constraint_dataEntererTime

Constraint Name
constraint_dataEntererTime (type: ERROR, kind: )
Constraint Class
XDSSDRadDocument
Package
xdssdrad
Description
The value of the time of the dataEnterer shall be equals to the effectiveTime of the ClinicalDocument. (ITI TF-3, Vol3, 5.2.3.5)
OCL
(not self.effectiveTime.oclIsUndefined()) and
self.dataEnterer->select(data : POCDMT000040DataEnterer | 
	(not data.templateId->isEmpty()) and
	data.templateId->exists(ii : II | 
		(not ii.root.oclIsUndefined()) and
		ii.root = '1.3.6.1.4.1.19376.1.2.20.3'
	)
)->forAll(data : POCDMT000040DataEnterer |
    (not data.time.oclIsUndefined()) and
    (not data.time.value.oclIsUndefined()) and
    data.time.value = self.effectiveTime.value
 )