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

Constraint : rmim055

Constraint Name
rmim055 (type: ERROR, kind: )
Constraint Class
ClinicalDocumentSpec
Package
cdabasic
Description
ParentDocument/id SHALL be different from the id of ClinicalDocument/id, when the typeCode=RPLC or typeCode=APND (RMIM-055)
OCL
self.relatedDocument->forAll(rel : POCDMT000040RelatedDocument | 
	rel.typeCode.oclIsUndefined() or 
	rel.typeCode=XActRelationshipDocument::XFRM or 
	rel.parentDocument.oclIsUndefined() or 
	rel.parentDocument.id->forAll(ii : II | not ii.cdaEquals(self.id))
)