<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title></title>
    <style type="text/css">
        .style999
        {
            border: 1px solid #600;
            background-color: #FFC;
            margin-bottom: 1em;
            width: 100%;
        }
        .style3
        {
            font-size: 12pt;
        }
        .underline
        {
            text-decoration: underline;
        }
        .style5
        {
            font-size: 8pt;
        }
        .style9
        {
            width: 100%;
            font-size: 14pt;
            text-align: right;
            text-transform: uppercase;
            margin-bottom: 10px;
            padding-bottom: 5px;
            padding-top: 5px;
        }
        .BodyStyle
        {
            font-family: "Times New Roman" , Times, serif;
        }
        .ultranonprint
        {
            font-size: 12pt;
            height: 10px;
            padding: 1em;
            width: 100%;
        }
        .nonprintstyle
        {
            font-size: 9pt;
            height: 10px;
            padding: 1em;
            border: 1px solid #600;
            background-color: #FFC;
            margin-bottom: 1em;
            width: 100%;
        }
        .printstyle
        {
            font-size: 9pt;
            height: 10px;
            padding: 1em;
            border: 1px solid #600;
            background-color: #FFC;
            margin-bottom: 1em;
            width: 100%;
        }
        H3
        {
            padding: 0px;
            margin: 0px;
        }
        @media print
        {
            .nonprintstyle
            {
                display: none;
            }
            .ultranonprint
            {
                display: none;
            }
        }
    </style>
    <script type="text/javascript">
            <!--
        function changeStyle(obj, style) {
            var h = document.getElementById(obj);
            h.className = (h.className == "nonprintstyle") ? "printstyle" : "nonprintstyle";
        }
            -->

    </script>
</head>
<body class="BodyStyle">
    <div style="text-align: left; font-size: xx-small">
        Подготовлено системой "Витакарта"
    </div>
    <div style="min-width: 750px;">
        <div class="style9">
            %%{AmbulanceCard/CardLpu/NameFull}%%<br />
            <div style="text-transform: none">
                %%{AmbulanceCard/CardLpu/AddressString}%%</div>
        </div>
        <br />
        <center style="font-size: 14pt">

            <b>ВЫПИСКА</b>
            <br />
            <!-- %%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem">    <lx:Path OwnerQueryLevel="0">        <lx:StepInt index="5240011" />    </lx:Path>    <lx:BaseObjectOperand EntityIndex="1" PrimaryKey="584" /></lx:Criterion>'%% -->
            из карты амбулаторного пациента №%%{AmbulanceCard/Number}%%
            <!-- %%#xsl:end%% -->
            <!-- %%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem">    <lx:Path OwnerQueryLevel="0">        <lx:StepInt index="5240011" />    </lx:Path>    <lx:BaseObjectOperand EntityIndex="1" PrimaryKey="584" /></lx:Criterion>'%% -->
            из истории болезни пациента №%%{As AKUZ.EMERGENCY_EVENT / MedicalcardRegistration / MedCardNumber}%%

            <!-- %%#xsl:end%% -->

            <br />

        </center>
        <br />
        <span class="style3">
            Пациент <b><i>%%{AmbulanceCard/Patient/FIO}%%</i></b> Возраст <b><i>%%{cPatientAge}%%
                %%NumberWord({cPatientAge}, "год", "года", "лет")%%</i></b>
            <br />
            Адрес проживания <b><i>%%{AmbulanceCard/Patient/AddressLegal/Address}%%</i></b>
            <br />
            <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem">    <lx:Path EntityID="544" OwnerQueryLevel="0">        <lx:StepInt index="5240006" />    </lx:Path>    <lx:BaseObjectOperand isNull="1" EntityIndex="523" /></lx:Criterion>'%%-->
            Дата направления <b><i>%%{Direction/DirectionDate}%%</i></b> Направитель <b><i>%%{Direction/Director/Name}%%</i></b>
            <!--%%#xsl:end%%-->
        </span>
        <!-- %%#xsl:for-each select='{cMedicalExaminationMains}' sort='{ExaminationDate}' filter='<lx:Criteria type="Or" xmlns:lx="lexem"><lx:Criterion type="="><lx:Path OwnerQueryLevel="0"><lx:StepInt index="1000001" /></lx:Path><lx:ConstOperand type="Int32">908</lx:ConstOperand></lx:Criterion><lx:Criterion type="="><lx:Path OwnerQueryLevel="0"><lx:StepInt index="1000001" /></lx:Path><lx:ConstOperand type="Int32">1000</lx:ConstOperand></lx:Criterion></lx:Criteria>'%% -->
        
        <table class="printstyle" id="%%{MedicalRecordID}%%">
            <tr>
                <td>
                    <span class="ultranonprint">
                        <input type="checkbox" id="cb1" checked="true" onclick="javascript:changeStyle('%%{MedicalRecordID}%%', 'nonprintstyle')" />Печатать</span>
                    <h3 style="text-align: center; color: #600;">
                        Консультация<br />
                        Специалист: %%{Post/Speciality/Name}%%<br />
                    </h3>
                    <hr size="3" style="color: #CCFFCC" />
                    <table width="100%" border="0" style="font-size: medium; color: #600; font-weight: bolder;"
                        cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="text-align: left">
                                <!--%%#xsl:if lexem='{DoctorVisit} = Null() Or {DoctorVisit / VisitMark} = 1'%%-->
                                Первичный осмотр
                                <!--%%#xsl:end%%-->
                                <!--%%#xsl:if lexem='{DoctorVisit} <> Null() And {DoctorVisit / VisitMark} = 2'%%-->
                                Повторный осмотр
                                <!--%%#xsl:end%%-->
                            </td>
                            <td>
                            </td>
                            <td style="text-align: right">
                                Дата: %%{ExaminationDate}%%
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="text-align: left">
                                ФИО врача: %%{Post/Worker/FIO}%% %%{Post/Worker/Category}%%
                            </td>
                        </tr>
                    </table>
                    <br />
                    <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000004" /></lx:Path><lx:ConstOperand isNull="1" /></lx:Criterion>'%%-->
                    <span class="style3"><b>Жалобы:</b> %%BBEncode(HtmlEncode({Complaint}))%%<br />
                    </span>
                    <!--%%#xsl:end%%-->
                    <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000003" /></lx:Path><lx:ConstOperand isNull="1" /></lx:Criterion>'%%-->
                    <span class="style3"><b>Анамнез заболевания:</b> %%BBEncode(HtmlEncode({AnamnesisMorbi}))%%<br />
                    </span>
                    <!--%%#xsl:end%%-->
                    <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000005" /></lx:Path><lx:ConstOperand isNull="1" /></lx:Criterion>'%%-->
                    <span class="style3"><b>Обьективный статус:</b> %%BBEncode(HtmlEncode({ObjectiveStatus}))%%<br />
                    </span>
                    <!--%%#xsl:end%%-->
                    <div class="style3">
                        <!--%%#xsl:for-each select='{RouteRecords}' sort='{As AKUZ.ROUTE_RECORD / RouteDate}'%%-->
                        <!--%%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem"><lx:Path EntityID="908" OwnerQueryLevel="0"><lx:StepInt index="1000001" /></lx:Path><lx:ConstOperand type="Int32">593</lx:ConstOperand></lx:Criterion>'%%-->
                        <b>Назначена консультация:</b> %%{As AKUZ.ROUTE_TO_DOCTOR_INSPECTION/Speciality/Name}%%<br />
                        <!--%%#xsl:end%%-->
                        <!--%%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem"><lx:Path EntityID="908" OwnerQueryLevel="0"><lx:StepInt index="1000001" /></lx:Path><lx:ConstOperand type="Int32">594</lx:ConstOperand></lx:Criterion>'%%-->
                        <b>Назначено исследование:</b> %%{As AKUZ.ROUTE_TO_DIAGNOSTICS/Research/Name}%%
                        <!-- %%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem">    <lx:Path OwnerQueryLevel="0">        <lx:StepInt index="5920004" />    </lx:Path>    <lx:ChoiceOperand EntityIndex="594" AttributeIndex="5920004" PrimaryKey="2" /></lx:Criterion>'%% -->
                        <b>(отменено)</b>
                        <!--%%#xsl:end%% -->
                        <br />
                        <!--%%#xsl:end%%-->
                        <!--%%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem"><lx:Path EntityID="908" OwnerQueryLevel="0"><lx:StepInt index="1000001" /></lx:Path><lx:ConstOperand type="Int32">1073</lx:ConstOperand></lx:Criterion>'%%-->
                        <b>%%{As AKUZ.ROUTE_TO_VACCINATION/VaccinationType}%%:</b>
                        <!--%%#xsl:for-each select='{As AKUZ.ROUTE_TO_VACCINATION/RtvLinkVgs}'%%-->
                        %%{VaccineLibrary/ShortName}%%
                        <!--%%#xsl:end%%-->
                        <br />
                        <!--%%#xsl:end%%-->
                        <!--%%#xsl:end%%-->
                        <!--%%#xsl:for-each select='{Refferals}'%%-->
                        <!--%%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem"><lx:Path EntityID="556" OwnerQueryLevel="0"><lx:StepInt index="1000001" /></lx:Path><lx:ConstOperand type="Int32">568</lx:ConstOperand></lx:Criterion>'%%-->
                        <b>Направлен на госпитализацию: </b> %%{As AKUZ.REFERRAL/Lpu/Name}%%, отделение %%{As AKUZ.HOSPITALIZATION_REFERRAL/Division/Name}%% | %%{As AKUZ.HOSPITALIZATION_REFERRAL/HospitalizationType/Name}%%
                        <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepAs as="AKUZ.HOSPITALIZATION_REFERRAL" /><lx:StepInt index="5680012" /></lx:Path><lx:BaseObjectOperand isNull="1" EntityIndex="961" /></lx:Criterion>'%%-->
                        <b>(отменено)</b>
                        <!--%%#xsl:end%%-->
                        <br />
                        <!--%%#xsl:end%%-->
                        <!--%%#xsl:end%%-->
                    </div>
                    <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000034" /></lx:Path><lx:ConstOperand isNull="1" /></lx:Criterion>'%%-->
                    <div class="style3">
                        <b>Лечение:</b> %%BBEncode(HtmlEncode({Healing}))%%<br />
                    </div>
                    <!--%%#xsl:end%%-->
                    <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000007" /></lx:Path><lx:ConstOperand isNull="1" /></lx:Criterion>'%%-->
                    <hr align="center" width="30%" />
                    <div class="style3">
                        %%BBEncode(HtmlEncode({Recomendations}))%%
                    </div>
                    <!--%%#xsl:end%%-->                    
                    <table width="100%">
                        <tr>
                            <td width="3%">
                            </td>
                            <td width="97%">
                                <!--%%#xsl:for-each select='{cMedicalExaminationRess}' sort='{ExaminationDate}'%%-->
                                <hr />
                                <table width="100%" border="0" style="font-size: medium; color: #600; font-weight: bolder;"
                                    cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td style="text-align: left">
                                            Повторный осмотр
                                        </td>
                                        <td>
                                        </td>
                                        <td style="text-align: right">
                                            Дата: %%{ExaminationDate}%%
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" style="text-align: left">
                                            ФИО врача: %%{Post/Worker/FIO}%% %%{Post/Worker/Category}%%
                                        </td>
                                    </tr>
                                </table>
                                <br />
                                <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000004" /></lx:Path><lx:ConstOperand isNull="1" /></lx:Criterion>'%%-->
                                <span class="style3"><b>Жалобы:</b> %%BBEncode(HtmlEncode({Complaint}))%%<br />
                                </span>
                                <!--%%#xsl:end%%-->
                                <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000003" /></lx:Path><lx:ConstOperand isNull="1" /></lx:Criterion>'%%-->
                                <span class="style3"><b>Анамнез заболевания:</b> %%BBEncode(HtmlEncode({AnamnesisMorbi}))%%<br />
                                </span>
                                <!--%%#xsl:end%%-->
                                <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000005" /></lx:Path><lx:ConstOperand isNull="1" /></lx:Criterion>'%%-->
                                <span class="style3"><b>Обьективный статус:</b> %%BBEncode(HtmlEncode({ObjectiveStatus}))%%<br />
                                </span>
                                <!--%%#xsl:end%%-->
                                <div class="style3">
                                    <!--%%#xsl:for-each select='{RouteRecords}' sort='{As AKUZ.ROUTE_RECORD / RouteDate}'%%-->
                                    <!--%%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem"><lx:Path EntityID="908" OwnerQueryLevel="0"><lx:StepInt index="1000001" /></lx:Path><lx:ConstOperand type="Int32">593</lx:ConstOperand></lx:Criterion>'%%-->
                                    <b>Назначена консультация:</b> %%{As AKUZ.ROUTE_TO_DOCTOR_INSPECTION/Speciality/Name}%%<br />
                                    <!--%%#xsl:end%%-->
                                    <!--%%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem"><lx:Path EntityID="908" OwnerQueryLevel="0"><lx:StepInt index="1000001" /></lx:Path><lx:ConstOperand type="Int32">594</lx:ConstOperand></lx:Criterion>'%%-->
                                    <b>Назначено исследование:</b> %%{As AKUZ.ROUTE_TO_DIAGNOSTICS/Research/Name}%%
                                    <!-- %%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem">    <lx:Path OwnerQueryLevel="0">        <lx:StepInt index="5920004" />    </lx:Path>    <lx:ChoiceOperand EntityIndex="594" AttributeIndex="5920004" PrimaryKey="2" /></lx:Criterion>'%% -->
                                    <b>(отменено)</b>
                                    <!--%%#xsl:end%% -->
                                    <br />
                                    <!--%%#xsl:end%%-->
                                    <!--%%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem"><lx:Path EntityID="908" OwnerQueryLevel="0"><lx:StepInt index="1000001" /></lx:Path><lx:ConstOperand type="Int32">1073</lx:ConstOperand></lx:Criterion>'%%-->
                                    <b>%%{As AKUZ.ROUTE_TO_VACCINATION/VaccinationType}%%:</b>
                                    <!--%%#xsl:for-each select='{As AKUZ.ROUTE_TO_VACCINATION/RtvLinkVgs}'%%-->
                                    %%{VaccineLibrary/ShortName}%%
                                    <!--%%#xsl:end%%-->
                                    <br />
                                    <!--%%#xsl:end%%-->
                                    <!--%%#xsl:end%%-->
                                    <!--%%#xsl:for-each select='{Refferals}'%%-->
                                    <!--%%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem"><lx:Path EntityID="556" OwnerQueryLevel="0"><lx:StepInt index="1000001" /></lx:Path><lx:ConstOperand type="Int32">568</lx:ConstOperand></lx:Criterion>'%%-->
                                    <b>Направлен на госпитализацию: </b> %%{As AKUZ.REFERRAL/Lpu/Name}%%, отделение %%{As AKUZ.HOSPITALIZATION_REFERRAL/Division/Name}%% | %%{As AKUZ.HOSPITALIZATION_REFERRAL/HospitalizationType/Name}%%
                                    <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepAs as="AKUZ.HOSPITALIZATION_REFERRAL" /><lx:StepInt index="5680012" /></lx:Path><lx:BaseObjectOperand isNull="1" EntityIndex="961" /></lx:Criterion>'%%-->
                                    <b>(отменено)</b>
                                    <!--%%#xsl:end%%-->
                                    <br />
                                    <!--%%#xsl:end%%-->
                                    <!--%%#xsl:end%%-->
                                </div>
                                <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000034" /></lx:Path><lx:ConstOperand isNull="1" /></lx:Criterion>'%%-->
                                <div class="style3">
                                    <b>Лечение:</b> %%BBEncode(HtmlEncode({Healing}))%%<br />
                                </div>
                                <!--%%#xsl:end%%-->
                                <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000007" /></lx:Path><lx:ConstOperand isNull="1" /></lx:Criterion>'%%-->
                                <hr align="center" width="30%" />
                                <span class="style3">%%BBEncode(HtmlEncode({Recomendations}))%%<br />
                                </span>
                                <!--%%#xsl:end%%-->
                                <!--%%#xsl:end%%-->
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="font-size: medium; color: #600; font-weight: bolder">
                    <hr size="3" style="color: #CCFFCC" />
                    <!--%%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000020" /><lx:StepInt index="5450006" /></lx:Path><lx:BaseObjectOperand isNull="1" EntityIndex="599" /></lx:Criterion>'%%-->
                    Случай не завершен
                    <!--%%#xsl:end%%-->
                    <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000020" /><lx:StepInt index="5450006" /></lx:Path><lx:BaseObjectOperand isNull="1" EntityIndex="599" /></lx:Criterion>'%%-->
                    Заключение
                    <!--%%#xsl:end%%-->
                </td>
            </tr>
            <tr>
                <td class="style3">
                    <!-- %%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem">    <lx:Path OwnerQueryLevel="0">        <lx:StepInt index="5490001" />        <lx:StepInt index="5240011" />    </lx:Path>    <lx:BaseObjectOperand EntityIndex="1" PrimaryKey="584" /></lx:Criterion>'%% -->

                    <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000020" /><lx:StepInt index="5450006" /></lx:Path><lx:BaseObjectOperand isNull="1" EntityIndex="599" /></lx:Criterion>'%%-->
                    <span class="underline"><i><b>Диагноз: </b>%%{DoctorVisit/OutcomeRecord/MKBCode}%% %%{DoctorVisit/OutcomeRecord/Diagnosis}%%</i></span>
                    <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path OwnerQueryLevel="0"><lx:StepInt index="9000020" /><lx:StepInt index="5450006" /><lx:StepInt index="5990005" /></lx:Path><lx:ConstOperand isNull="1" /></lx:Criterion>'%%-->
                    <br />
                    %%{DoctorVisit/OutcomeRecord/Decision}%%
                    <!--%%#xsl:end%%-->
                    <!--%%#xsl:end%%-->
                    <!-- %%#xsl:end%% -->
                    <!-- %%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem">    <lx:Path OwnerQueryLevel="0">        <lx:StepInt index="5490001" />        <lx:StepInt index="5240011" />    </lx:Path>    <lx:BaseObjectOperand EntityIndex="1" PrimaryKey="584" /></lx:Criterion>'%% -->
                    <span class="underline"><i><b>Диагноз: </b>%%{Mkb}%% %%{Diagnosis}%%</i></span>
                    <br />
                    <!-- %%#xsl:end%% -->
                </td>
            </tr>
        </table>
        <!--%%#xsl:end%%-->
        <!--%%#xsl:if lexem='<lx:Criteria type="Or" xmlns:lx="lexem"><lx:CriterionChildExists entity="MEDICAL_CERTIFICATE" top="-1"><condition /><orderBy /><lx:Path EntityID="544" OwnerQueryLevel="0"><lx:StepInt index="5440009" /></lx:Path></lx:CriterionChildExists><lx:CriterionChildExists entity="AKUZ.RECIPE" top="-1"><condition /><orderBy /><lx:Path EntityID="544" OwnerQueryLevel="0"><lx:StepInt index="5440005" /></lx:Path></lx:CriterionChildExists><lx:Criteria type="And"><lx:CriterionChildExists entity="AKUZ.RECIPE" top="-1"><condition /><orderBy /><lx:Path EntityID="544" OwnerQueryLevel="0"><lx:StepInt index="5440005" /></lx:Path></lx:CriterionChildExists><lx:CriterionChildExists entity="MEDICAL_CERTIFICATE" top="-1"><condition /><orderBy /><lx:Path EntityID="544" OwnerQueryLevel="0"><lx:StepInt index="5440009" /></lx:Path></lx:CriterionChildExists></lx:Criteria></lx:Criteria>'%%-->
        <div style="font-size: small; color: #600; font-weight: bolder">
            Общие по случаю обращения в %%{AmbulanceCard/CardLpu/Name}%% данные</div>
        <div>
            <!--%%#xsl:if lexem='<lx:CriterionChildExists entity="AKUZ.RECIPE" top="-1" xmlns:lx="lexem"><condition /><orderBy /><lx:Path EntityID="544" OwnerQueryLevel="0"><lx:StepInt index="5440005" /></lx:Path></lx:CriterionChildExists>'%%-->
            <br />
            <div class="style3">
                Выписаны рецепты<br />
            </div>
            <table style="width: 100%; font-size: smaller; border-color: #600; border-style: solid;
                border-width: 0 0 1px 1px; border-spacing: 0; border-collapse: collapse">
                <tr>
                    <td style="border-color: #600; border-style: solid; margin: 0; padding: 4px; border-width: 1px 1px 0 0;
                        background-color: #FFC">
                        Дата выписки
                    </td>
                    <td style="border-color: #600; border-style: solid; margin: 0; padding: 4px; border-width: 1px 1px 0 0;
                        background-color: #FFC">
                        Специалист
                    </td>
                    <td style="border-color: #600; border-style: solid; margin: 0; padding: 4px; border-width: 1px 1px 0 0;
                        background-color: #FFC">
                        Препарат
                    </td>
                    <td style="border-color: #600; border-style: solid; margin: 0; padding: 4px; border-width: 1px 1px 0 0;
                        background-color: #FFC">
                        Signa
                    </td>
                </tr>
                <!--%%#xsl:for-each select='{Recipes}' filter='<lx:Criterion type="=" xmlns:lx="lexem"><lx:Path EntityID="632" OwnerQueryLevel="0"><lx:StepString name="Deleted" /></lx:Path><lx:ConstOperand type="Boolean">False</lx:ConstOperand></lx:Criterion>'%%-->
                <tr>
                    <td style="border-color: #600; border-style: solid; margin: 0; padding: 4px; border-width: 1px 1px 0 0;
                        background-color: #FFC">
                        %%{As AKUZ.RECIPE/RecipeDate}%%&nbsp;
                    </td>
                    <td style="border-color: #600; border-style: solid; margin: 0; padding: 4px; border-width: 1px 1px 0 0;
                        background-color: #FFC">
                        %%{As AKUZ.RECIPE/Post/DisplayName}%%&nbsp;
                    </td>
                    <td style="border-color: #600; border-style: solid; margin: 0; padding: 4px; border-width: 1px 1px 0 0;
                        background-color: #FFC">
                        %%{As AKUZ.RECIPE/RP} = Null()
                        ? {As AKUZ.RECIPE_REGIONAL / MnnRegional / NameRus} = Null()
                        ? {As AKUZ.RECIPE_REGIONAL / Mnn / Name} = Null()
                        ? {As AKUZ.RECIPE_GENERAL / CMnn / NameEng}= Null()
                        ? {As AKUZ.RECIPE_GENERAL / CTrn / NameEng}
                        : {As AKUZ.RECIPE_GENERAL / CMnn / NameEng}
                        : {As AKUZ.RECIPE_REGIONAL / Mnn / Name}
                        : {As AKUZ.RECIPE_REGIONAL / MnnRegional / NameRus}
                        : {As AKUZ.RECIPE/RP}%% %%{As AKUZ.RECIPE_GENERAL / RGDoseView}%% кол. уп: %%{UnitsCount{0:F2}}%%&nbsp;
                    </td>
                    <td style="border-color: #600; border-style: solid; margin: 0; padding: 4px; border-width: 1px 1px 0 0;
                        background-color: #FFC">
                        %%{As AKUZ.RECIPE/Signa}%%&nbsp;
                    </td>
                </tr>
                <!--%%#xsl:end%%-->
            </table>
            <!--%%#xsl:end%%-->
            <!--%%#xsl:if lexem='<lx:CriterionChildExists entity="MEDICAL_CERTIFICATE" top="-1" xmlns:lx="lexem"><condition /><orderBy /><lx:Path EntityID="544" OwnerQueryLevel="0"><lx:StepInt index="5440009" /></lx:Path></lx:CriterionChildExists>'%%-->
            <br />
            <div class="style3">
                Выписаны больничные листы:</div>
            <!--%%#xsl:for-each select='{MedicalCertificates}'%%-->
            <div class="style3">
                <b>%%{#OrderNum#}%%)Больничный лист</b> № %%{As AKUZ.MEDICAL_CERTIFICATE/CirtificateNumber}%%.Дата
                открытия: %%{As AKUZ.MEDICAL_CERTIFICATE/OpenDate}%%<br />
            </div>
            <!--%%#xsl:if lexem='<lx:CriterionChildExists entity="MEDICAL_CERTIFICATE_PROLONGATION" top="-1" xmlns:lx="lexem"><condition /><orderBy /><lx:Path EntityID="579" OwnerQueryLevel="0"><lx:StepInt index="5790011" /></lx:Path></lx:CriterionChildExists>'%%-->
            <table style="width: 100%; font-size: smaller; border-color: #600; border-style: solid;
                border-width: 0 0 1px 1px; border-spacing: 0; border-collapse: collapse">
                <tr>
                    <td style="border-color: #600; border-style: solid; margin: 0; padding: 4px; border-width: 1px 1px 0 0;
                        background-color: #FFC">
                        Продлен до
                    </td>
                    <td style="border-color: #600; border-style: solid; margin: 0; padding: 4px; border-width: 1px 1px 0 0;
                        background-color: #FFC">
                        Специалист
                    </td>
                </tr>
                <!--%%#xsl:for-each select='{MedicalCertificateProlongations}'%%-->
                <tr>
                    <td style="border-color: #600; border-style: solid; margin: 0; padding: 4px; border-width: 1px 1px 0 0;
                        background-color: #FFC">
                        %%{ProlongationDate}%%&nbsp;
                    </td>
                    <td style="border-color: #600; border-style: solid; margin: 0; padding: 4px; border-width: 1px 1px 0 0;
                        background-color: #FFC">
                        %%{Post/DisplayName}%%&nbsp;
                    </td>
                </tr>
                <!--%%#xsl:end%%-->
            </table>
            <!--%%#xsl:end%%-->
            <!--%%#xsl:if lexem='<lx:Criterion type="=" xmlns:lx="lexem"><lx:Path EntityID="579" OwnerQueryLevel="0"><lx:StepInt index="5790012" /></lx:Path><lx:BaseObjectOperand isNull="1" EntityIndex="942" /></lx:Criterion>'%%-->
            <span class="style3"><b>Статус больничного листа:</b> ОТКРЫТ</span>
            <br />
            <!--%%#xsl:end%%-->
            <!--%%#xsl:if lexem='<lx:Criterion not="1" type="=" xmlns:lx="lexem"><lx:Path EntityID="579" OwnerQueryLevel="0"><lx:StepInt index="5790012" /></lx:Path><lx:BaseObjectOperand isNull="1" EntityIndex="942" /></lx:Criterion>'%%-->
            <span class="style3"><b>Статус больничного листа:</b> ЗАКРЫТ (Дата закрытия:%%{MedicalCertificateClose/DateClose}%%)<br />
                <b>Закрыл б/л:</b>%%{MedicalCertificateClose/Post/DisplayName}%%</span>
            <br />
            <!--%%#xsl:end%%-->
            <!--%%#xsl:end%%-->
            <!--%%#xsl:end%%-->
        </div>
        <!--%%#xsl:end%%-->
        <div style="text-align: left">
            <br />
            <b>Подпись врача ________________</b>
        </div>
        <div style="text-align: right; font-size: smaller">
            Место для печати
        </div>
    </div>
</body>
</html>