UPDATE iszl.t_exclusion_reason
SET "name"='Отсутсвует прикрепление к МО', selectionexclusionfilter='<lx:Criterion type="=" xmlns:lx="lexem">
    <lx:Path OwnerQueryLevel="0">
        <lx:StepString name="ActualMoAttachment">
            <lx:ParamHolder>
                <lx:StepString name="CURRENT_DATE_TIME" />
            </lx:ParamHolder>
        </lx:StepString>
    </lx:Path>
    <lx:BaseObjectOperand Entity="ISZL.MO_ATTACHMENT" isNull="1" />
</lx:Criterion>', recordselectionfilter='<lx:Criteria type="And" xmlns:lx="lexem">
    <lx:Criterion type="=">
        <lx:Path OwnerQueryLevel="0">
            <lx:StepString name="DispDirect" />
            <lx:StepString name="Insured" />
            <lx:StepString name="ActualMoAttachment">
                <lx:ParamHolder>
                    <lx:StepString name="CURRENT_DATE_TIME" />
                </lx:ParamHolder>
            </lx:StepString>
        </lx:Path>
        <lx:BaseObjectOperand Entity="ISZL.MO_ATTACHMENT" isNull="1" />
    </lx:Criterion>
    <lx:Criterion type="=">
        <lx:Path OwnerQueryLevel="0">
            <lx:StepString name="DispDirect" />
            <lx:StepString name="DispDirectFactLink" />
        </lx:Path>
        <lx:BaseObjectOperand Entity="ISZL.DISP_DIRECT_FACT" isNull="1" />
    </lx:Criterion>
</lx:Criteria>', isactive=1, priority=1
WHERE exclusionreasonid=2;

UPDATE iszl.t_exclusion_reason
SET "name"='Отсутсвует актуальный полис ОМС', selectionexclusionfilter='<lx:Criterion type="=" xmlns:lx="lexem">
    <lx:Path OwnerQueryLevel="0">
        <lx:StepString name="ActualInsuredPolicyRecord">
            <lx:ParamHolder>
                <lx:StepString name="CURRENT_DATE_TIME" />
            </lx:ParamHolder>
        </lx:StepString>
    </lx:Path>
    <lx:BaseObjectOperand Entity="ISZL.INSURED_POLICY_RECORD" isNull="1" />
</lx:Criterion>', recordselectionfilter='<lx:Criteria type="And" xmlns:lx="lexem">
    <lx:Criterion type="=">
        <lx:Path OwnerQueryLevel="0">
            <lx:StepString name="DispDirect" />
            <lx:StepString name="DispDirectFactLink" />
        </lx:Path>
        <lx:BaseObjectOperand Entity="ISZL.DISP_DIRECT_FACT" isNull="1" />
    </lx:Criterion>
    <lx:Criterion type="=">
        <lx:Path OwnerQueryLevel="0">
            <lx:StepString name="DispDirect" />
            <lx:StepString name="Insured" />
            <lx:StepString name="ActualInsuredPolicyRecord">
                <lx:ParamHolder>
                    <lx:StepString name="CURRENT_DATE_TIME" />
                </lx:ParamHolder>
            </lx:StepString>
        </lx:Path>
        <lx:BaseObjectOperand Entity="ISZL.INSURED_POLICY_RECORD" isNull="1" />
    </lx:Criterion>
</lx:Criteria>', isactive=1, priority=1

WHERE exclusionreasonid=3;