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

Constraint : constraintAuthorPersonAllowed

Constraint Name
constraintAuthorPersonAllowed (type: ERROR, kind: )
Constraint Class
Author_SubmissionSet
Package
rimihe
Description
Only One instance of the authorPerson sub-attribute is allowed (IHE_ITI_TF V3, 4.2.3.1.4)
OCL
self.slot->select(sl : SlotType1 | (not sl.name.oclIsUndefined()) and sl.name = 'authorPerson')->size()<2 and 
	self.slot->select(sl : SlotType1 | (not sl.name.oclIsUndefined()) and sl.name = 'authorPerson')->forAll(sl : SlotType1 | 
		(not sl.valueList.oclIsUndefined()) and sl.valueList.value->size()<2  )