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

Constraint : constraintSourceId

Constraint Name
constraintSourceId (type: ERROR, kind: )
Constraint Class
XDSSubmissionSetConstraints
Package
rimihe
Description
XDSSubmissionSet.sourceId shall have a single value (IHE_ITI_TF V3, 4.2.3.3.9)
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.externalIdentifier->select(ext : ExternalIdentifierType | (not ext.identificationScheme.oclIsUndefined()) and  (ext.identificationScheme='urn:uuid:554ac39e-e3fe-47fe-b233-965d2a147832'))->size()<2
)