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

Constraint : constraintLimitedMetadata

Constraint Name
constraintLimitedMetadata (type: ERROR, kind: )
Constraint Class
XDSSubmissionSetConstraints
Package
rimihe
Description
only one limitedMetadata attribute can be present (IHE_ITI_TF V3, 4.2.3.3.13)
OCL
self.RegistryPackage->select(
		rp : RegistryPackageType |
			(
				rp.classification->select(
					cl : ClassificationType | (not cl.classificationNode.oclIsUndefined()) and (cl.classificationNode='urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd') and (not cl.classifiedObject.oclIsUndefined()) and (cl.classifiedObject=rp.id)
				)->size()>0)
			or
			(
				self.Classification->select(
					cl : ClassificationType | (not cl.classificationNode.oclIsUndefined()) and (cl.classificationNode='urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd') and (not cl.classifiedObject.oclIsUndefined()) and (cl.classifiedObject=rp.id)
		)->size()>0
			)
)->forAll(rp : RegistryPackageType |
	rp.classification->select(cl : ClassificationType |
		(not cl.classificationNode.oclIsUndefined()) and
		(cl.classificationNode='urn:uuid:5003a9db-8d8d-49e6-bf0c-990e34ac7707')
	)->size()<2
)