Constraint Descriptor : xdssd037 (type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@edcc58 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@7c02a5e1 (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)), kind: Context)

Constraint : xdssd037

Constraint Name
xdssd037 (type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@edcc58 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@7c02a5e1 (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)), kind: Context)
Constraint Class
XDSSD
Package
xdssd
Description
In Scanned document (XDS-SD), the element defined by /hl7:ClinicalDocument[hl7:templateId/@root='1.3.6.1.4.1.19376.1.2.20']/hl7:author[hl7:templateId/@root='1.3.6.1.4.1.19376.1.2.20.2']/hl7:assignedAuthor/hl7:assignedAuthoringDevice/hl7:code shall verify this requirement : ClinicalDocument/component/nonXMLBody/text@mediaType shall be "application/pdf" for PDF, or "text/plain" for plaintext (Item : XDSSD-44)
OCL
self.author->select(templateId.root->exists(aa : String| aa = '1.3.6.1.4.1.19376.1.2.20.2')).assignedAuthor.assignedAuthoringDevice.code->reject(not nullFlavor.oclIsUndefined())->forAll(aa | CommonOperationsStatic::validateByXPATHV2(aa, '(@code = \u0027CAPTURE\u0027 and parent::node()/parent::node()/parent::node()/parent::node()/cda:component/cda:nonXMLBody/text/@mediaType = \u0027application/pdf\u0027) or (@code = \u0027WSD\u0027 and contains(\u0027parent::node()/parent::node()/parent::node()/parent::node()/cda:component/cda:nonXMLBody/text/@mediaType\u0027, \u0027text/plain\u0027)') )
                        

List Assertions