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

Constraint : constraint_documentationOf_serviceEvent

Constraint Name
constraint_documentationOf_serviceEvent (type: ERROR, kind: )
Constraint Class
XDSSDBppcTemplateWithSD
Package
xdssdbppc
Description
The ClinicalDocument/documentationOf/serviceEvent shall exist, and shall have a classCode attribute set to 'ACT', and a moodCode attribute of 'EVN'. (ITI TF-3, Vol3, 5.1.2.3.3)
OCL
 self.documentationOf->size()>0 and 
 self.documentationOf->exists(docu : POCDMT000040DocumentationOf |
 	docu.serviceEvent->size()>0 and 
 	docu.serviceEvent->exists(sevent : POCDMT000040ServiceEvent | 
 		(not sevent.classCode.oclIsUndefined()) and 
 		sevent.classCode =ActClassRoot::ACT and 
 		(not sevent.moodCode.oclIsUndefined()) and
 		 sevent.moodCode = ActMood::EVN
	)
 )