update  VCLib.T_OBJECT_MODIFICATION_ACTION_PARAM p
set ParamValue = '<lx:Cast type="Int32" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepString name="IsNew" /></lx:Path></lx:Cast>'
from VCLib.T_OBJECT_MODIFICATION_ACTION a 
where a.ObjectModificationActionID = p.ObjectModificationAction
and p.Name Like '%IsNew' and a.Name like 'sp_ISZL_%';

update  VCLib.T_OBJECT_MODIFICATION_ACTION_PARAM p
set ParamValue = '<lx:Cast type="Int32" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepString name="IsNew" /></lx:Path></lx:Cast>'
from VCLib.T_OBJECT_MODIFICATION_ACTION a 
where a.ObjectModificationActionID = p.ObjectModificationAction
and p.Name Like '%IsNew' and (a.Name = 'sp_AddDoctorVisitNotifyShort' or a.Name = 'sp_adddoctorvisitnotifyshort');

update  VCLib.T_OBJECT_MODIFICATION_ACTION_PARAM p
set ParamValue = '<lx:ConstOperand type="Int32" xmlns:lx="lexem">1</lx:ConstOperand>'
from VCLib.T_OBJECT_MODIFICATION_ACTION a 
where a.ObjectModificationActionID = p.ObjectModificationAction
and p.Name Like '%ObjectType' and (a.Name = 'sp_iszl_motioninhospitalxml' or a.Name = 'sp_ISZL_MotionInHospitalXml') and ParamValue = '<lx:ConstOperand type="Boolean" xmlns:lx="lexem">True</lx:ConstOperand>';

update  VCLib.T_OBJECT_MODIFICATION_ACTION_PARAM p
set ParamValue = '<lx:ConstOperand type="Int32" xmlns:lx="lexem">0</lx:ConstOperand>'
from VCLib.T_OBJECT_MODIFICATION_ACTION a 
where a.ObjectModificationActionID = p.ObjectModificationAction
and p.Name Like '%ObjectType' and (a.Name = 'sp_iszl_motioninhospitalxml' or a.Name = 'sp_ISZL_MotionInHospitalXml') and ParamValue = '<lx:ConstOperand type="Boolean" xmlns:lx="lexem">False</lx:ConstOperand>';