Constraint Descriptor : ccda21155 (type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@7dd92a36 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@531ed68e (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)), kind: Context)

Constraint : ccda21155

Constraint Name
ccda21155 (type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@7dd92a36 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@531ed68e (name: OclInvalid_Class) (instanceClassName: null) (abstract: false, interface: false)), kind: Context)
Constraint Class
USRealmHeaderV3
Package
ccda21
Description
In US Realm Header (V3), the element defined by /hl7:ClinicalDocument[hl7:templateId/@root='2.16.840.1.113883.10.20.22.1.1']/hl7:recordTarget/hl7:patientRole/hl7:patient/hl7:birthplace/hl7:place/hl7:addr/hl7:country shall verify this requirement : The length of country text SHALL be equal to two digit (Item : CONF:1198-5404)
OCL
self.recordTarget.patientRole.patient.birthplace.place.addr.country->reject(not nullFlavor.oclIsUndefined())->forAll(aa | CommonOperationsStatic::validateByXPATHV2(aa, 'string-length(text())=2') )