context AuthorizationActivity inv: self.entryRelationship->forAll(enresh : POCDMT000040EntryRelationship | ( not enresh.act.oclIsUndefined() and (not enresh.act.moodCode.oclIsUndefined()) and enresh.act.moodCode=XDocumentActMood::PRMS ) or ( not enresh.encounter.oclIsUndefined() and (not enresh.encounter.moodCode.oclIsUndefined()) and enresh.encounter.moodCode=XDocumentEncounterMood::PRMS ) or ( not enresh.observation.oclIsUndefined() and (not enresh.observation.moodCode.oclIsUndefined()) and enresh.observation.moodCode=XActMoodDocumentObservation::PRMS ) or ( not enresh.observationMedia.oclIsUndefined() and (not enresh.observationMedia.moodCode.oclIsUndefined()) and enresh.observationMedia.moodCode=ActMood::PRMS ) or ( not enresh.organizer.oclIsUndefined() and (not enresh.organizer.moodCode.oclIsUndefined()) and enresh.organizer.moodCode=ActMood::PRMS ) or ( not enresh.procedure.oclIsUndefined() and (not enresh.procedure.moodCode.oclIsUndefined()) and enresh.procedure.moodCode=XDocumentProcedureMood::PRMS ) or ( not enresh.regionOfInterest.oclIsUndefined() and (not enresh.regionOfInterest.moodCode.oclIsUndefined()) and enresh.regionOfInterest.moodCode=ActMood::PRMS ) or ( not enresh.substanceAdministration.oclIsUndefined() and (not enresh.substanceAdministration.moodCode.oclIsUndefined()) and enresh.substanceAdministration.moodCode=XDocumentSubstanceMood::PRMS ) or ( not enresh.supply.oclIsUndefined() and (not enresh.supply.moodCode.oclIsUndefined()) and enresh.supply.moodCode=XDocumentSubstanceMood::PRMS ) )