<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Анкетные данные</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: "Segoe UI", sans-serif;
            color: black;
            font-size: 12px;
        }
        .full-name {
            text-align: center;
            font-weight: bold;
            margin-top: 20px;
            margin-bottom: 10px;
        }
        .info-line {
            padding-left: 20px;
            margin: 0 0 5px 0;
        }
        .label {
            font-weight: bold;
        }
        .value {
            font-weight: normal;
        }
    </style>
</head>
<body>
    <p class="full-name">АК №%%{Number}%% %%{Patient / cFIO}%%, %%{Patient / Birthday}%%</p>
    <p class="info-line"><span class="label">Контактный номер:</span> <span class="value">%%{Patient / PhoneNumbersString}%%</span></p>
    <p class="info-line"><span class="label">Адрес: </span><span class="value">%%{Patient / AddressReal / DisplayName}%%</span></p>
    <p class="info-line"><span class="label">Документ: </span><span class="value">%%{Patient / Document}%%</span></p>
    <p class="info-line">
        <span class="label">Полис ОМС: </span><span class="value">
			<!-- %%#xsl:if lexem='{Patient / OmsPolicyMapped} '%% -->
				 %%{Patient / OmsPolicyMapped / Number}%%
			<!-- %%#xsl:end%% -->
			<!-- %%#xsl:if lexem='{Patient / OmsPolicyMapped}'%% -->
				отсутствует
			<!-- %%#xsl:end%% -->
		</span>
		</p>
	<p class="info-line">
        <span class="label">СНИЛС: </span><span class="value">
			<!-- %%#xsl:if lexem='{Patient / SNILS} <> "              "'%% -->
				 %%{Patient / OmsPolicyMapped / Snils}%%
			<!-- %%#xsl:end%% -->
			<!-- %%#xsl:if lexem='{Patient / SNILS / Snils} = "              "'%% -->
				отсутствует
			<!-- %%#xsl:end%% -->
		</span>
		</br>
    </p>
</body>
</html>