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

Constraint : rmim080

Constraint Name
rmim080 (type: ERROR, kind: )
Constraint Class
PatientRoleSpec
Package
cdabasic
Description
If patientRole has not a null of flavor and its enclosing recordTarget has not a null of flavor, it SHALL have a patient entity, or a providerOrganization (RMIM-080)
OCL
(not self.nullFlavor.oclIsUndefined()) or 
self.__parent.oclIsUndefined() or 
(not self.__parent.oclIsKindOf(POCDMT000040RecordTarget)) or 
(not self.__parent.oclAsType(POCDMT000040RecordTarget).nullFlavor.oclIsUndefined()) or 
(not self.patient.oclIsUndefined()) or 
(not self.providerOrganization.oclIsUndefined())