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

Constraint : rmim056_2

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