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

Constraint : rmim051

Constraint Name
rmim051 (type: ERROR, kind: )
Constraint Class
ClinicalDocumentSpec
Package
cdabasic
Description
The Section.id element is unique into the CDA Document (RMIM-051)
OCL
self.getAllSections()->forAll(sec : POCDMT000040Section | 
	sec.id.oclIsUndefined() or 
	(not sec.id.nullFlavor.oclIsUndefined()) or 
	self.getAllSections()->select(sec1 : POCDMT000040Section | 
		(not sec1.id.oclIsUndefined()) and 
		sec1.id.cdaEquals(sec.id)
	) ->size()=1
)