Constraint Descriptor : constraintXDSFolder_allowed_ExternalIdentifier (type: INFO, kind: )

Constraint : constraintXDSFolder_allowed_ExternalIdentifier

Constraint Name
constraintXDSFolder_allowed_ExternalIdentifier (type: INFO, kind: )
Constraint Class
XDSFolderConstraints
Package
rimihe
Description
Allowed Classification on XDSFolder are only XDSFolder.patientId and XDSFolder.uniqueId (IHE_ITI_TF V3, 4.2.3.4)
OCL
self.RegistryPackage->select(
		rp : RegistryPackageType | 
			( 
				rp.classification->select(
					cl : ClassificationType | (not cl.classificationNode.oclIsUndefined()) and (cl.classificationNode='urn:uuid:d9d542f3-6cc4-48b6-8870-ea235fbc94c2') 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:d9d542f3-6cc4-48b6-8870-ea235fbc94c2') and (not cl.classifiedObject.oclIsUndefined()) and (cl.classifiedObject=rp.id)
		)->size()>0
			)
)->forAll(rp : RegistryPackageType | rp.externalIdentifier->forAll(ext : ExternalIdentifierType | (not ext.identificationScheme.oclIsUndefined()) and (ext.identificationScheme='urn:uuid:f64ffdf0-4b97-4e06-b79f-a52b38ec2f8a' or ext.identificationScheme='urn:uuid:75df8f67-9973-4fbe-a900-df66cefecc5a')) )
                        

SVS references

Constraint history