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

Constraint : rmim056_1

Constraint Name
rmim056_1 (type: ERROR, kind: )
Constraint Class
ClinicalDocumentSpec
Package
cdabasic
Description
All documents in a chain of replacement SHALL have the same setId (RMIM-056)
OCL
self.relatedDocument->forAll(rd : POCDMT000040RelatedDocument | 
	rd.typeCode.oclIsUndefined() or 
	rd.typeCode<>XActRelationshipDocument::RPLC or 
	rd.parentDocument.oclIsUndefined() or 
	rd.parentDocument.setId.oclIsUndefined() or 
	rd.parentDocument.setId.cdaEquals(self.setId)
)