| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>AccLab_Active_Validation</fullName> | 
|     <active>true</active> | 
|     <description>科室状态为无效得不允许创建opd计划 | 
| SFDC-BVP8CB</description> | 
|     <errorConditionFormula>(ISNEW() || ISCHANGED( Account_Laboratory__c ) )&& Account_Laboratory__c !=null && Text(Account_Laboratory__r.Is_Active__c) =='無効' && Text(OPDType__c) =='科室'</errorConditionFormula> | 
|     <errorMessage>科室状态为无效,不允许新建OPD计划</errorMessage> | 
| </ValidationRule> |