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

Constraint : rmim109

Constraint Name
rmim109 (type: ERROR, kind: )
Constraint Class
ClinicalDocumentSpec
Package
cdabasic
Description
renderMultimedia@referencedObject SHALL have a value of ObservationMultimedia or RegionOfInterest within the same document (RMIM-109)
OCL
self.validateByXPATHV2('every $referencedObject in data(//cda:renderMultiMedia/@referencedObject) satisfies ((some $om in //cda:observationMedia satisfies $om/@ID=$referencedObject) or    (some $om in //cda:regionOfInterest satisfies $om/@ID=$referencedObject))')