<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>Is_Same_Hospital</fullName> 
 | 
    <active>true</active> 
 | 
    <description>请选择和修理是同一医院的设备</description> 
 | 
    <errorConditionFormula>(Isnew() || Ischanged(Delivered_Product__c)) && Delivered_Product__r.Hospital__c <> Hospital__c</errorConditionFormula> 
 | 
    <errorDisplayField>Delivered_Product__c</errorDisplayField> 
 | 
    <errorMessage>请选择和修理是同一医院的设备</errorMessage> 
 | 
</ValidationRule> 
 |