<xs:schema xmlns="http://пф.рф/ЭТК/2020-08-08" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:АФ4="http://пф.рф/АФ/2017-08-21" xmlns:УТ2="http://пф.рф/УТ/2017-08-21" version="2.0" targetNamespace="http://пф.рф/ЭТК/2020-08-08" elementFormDefault="qualified">
  <xs:import namespace="http://пф.рф/УТ/2017-08-21" schemaLocation="ais/%D0%A1%D1%85%D0%B5%D0%BC%D1%8B/%D0%A3%D0%BD%D0%B8%D1%84%D0%A2%D0%B8%D0%BF%D1%8B_2017-08-21.xsd"/>
  <xs:import namespace="http://пф.рф/АФ/2017-08-21" schemaLocation="ais/%D0%A1%D1%85%D0%B5%D0%BC%D1%8B/%D0%A2%D0%B8%D0%BF%D1%8B%D0%90%D0%A4_2017-08-21.xsd"/>
  <xs:annotation>
    <xs:documentation>Общие типы данных для информационного обмена "Электронные трудовые книжки"</xs:documentation>
    <xs:documentation>Рекомендуемый префикс для пространства имен http://пф.рф/ЭТК/2020-08-08 - ЭТК</xs:documentation>
  </xs:annotation>
  <xs:group name="ГрМероприятиеОтменяемое">
    <xs:annotation>
      <xs:documentation>Группа сведений о мероприятии кадрового учета, которое отменяется</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="UUID" type="УТ2:ТипGUID">
        <xs:annotation>
          <xs:documentation>UUID отменяемого мероприятия</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Дата" type="xs:date">
        <xs:annotation>
          <xs:documentation>Дата мероприятия, подлежащего отмене</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ДатаОтмены" type="xs:date">
        <xs:annotation>
          <xs:documentation>Дата отмены мероприятия</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Вид">
        <xs:annotation>
          <xs:documentation>Вид сведений. Возможные значения:
						1 - ПРИЕМ;
						2 - ПЕРЕВОД;
						3 - ПЕРЕИМЕНОВАНИЕ;
						4 - УСТАНОВЛЕНИЕ (ПРИСВОЕНИЕ);
						5 - УВОЛЬНЕНИЕ;
						6 - ЗАПРЕТ ЗАНИМАТЬ ДОЛЖНОСТЬ (ВИД ДЕЯТЕЛЬНОСТИ)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:positiveInteger">
            <xs:minInclusive value="1"/>
            <xs:maxInclusive value="6"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Совместитель" type="xs:boolean" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Совместитель. Возможные значения:
						1 – да, является совместителем;
						0 – нет, не является совместителем.
						Отсутствие элемента соответствует «нет»</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:group>
  <xs:group name="ГрМероприятие">
    <xs:annotation>
      <xs:documentation>Группа сведений о мероприятии кадрового учета</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="UUID" type="УТ2:ТипGUID">
        <xs:annotation>
          <xs:documentation>UUID мероприятия</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Дата" type="xs:date">
        <xs:annotation>
          <xs:documentation>Дата проведения мероприятия</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Вид">
        <xs:annotation>
          <xs:documentation>Вид сведений. Возможные значения:
						1 - ПРИЕМ;
						2 - ПЕРЕВОД;
						3 - ПЕРЕИМЕНОВАНИЕ;
						4 - УСТАНОВЛЕНИЕ (ПРИСВОЕНИЕ);
						5 - УВОЛЬНЕНИЕ;
						6 - ЗАПРЕТ ЗАНИМАТЬ ДОЛЖНОСТЬ (ВИД ДЕЯТЕЛЬНОСТИ);
						7 - ПРИОСТАНОВЛЕНИЕ;
						8 - ВОЗОБНОВЛЕНИЕ</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:positiveInteger">
            <xs:minInclusive value="1"/>
            <xs:maxInclusive value="8"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Сведения" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Иные сведения о мероприятии</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Должность" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Должность, специальность, профессия, квалификация. Обязательно указывается для записей вида: ПРИЕМ, УСТАНОВЛЕНИЕ (ПРИСВОЕНИЕ)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Совместитель" type="xs:boolean" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Совместитель. Возможные значения:
						1 – да, является совместителем;
						0 – нет, не является совместителем.
						Отсутствие элемента соответствует «нет»</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Подразделение" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Структурное подразделение, в которое принят сотрудник</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ВидПР" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Конкретный вид поручаемой работы</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="КодВФ" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Код выполняемой функции</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:pattern value="\d{2}\.\d{3}-[а-я|А-Я|a-z|A-Z]-\d{1}"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:choice minOccurs="0">
        <xs:sequence>
          <xs:annotation>
            <xs:documentation>Номер статьи и пункт Трудового кодекса, на основании которого было проведено расторжение трудового договора</xs:documentation>
          </xs:annotation>
          <xs:element name="Статья" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
            <xs:annotation>
              <xs:documentation>Номер статьи Трудового кодекса</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Пункт" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
            <xs:annotation>
              <xs:documentation>Пункт статьи Трудового кодекса</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:element name="ОснованиеУвольнения">
          <xs:annotation>
            <xs:documentation>Реквизиты иного нормативного акта</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="НормативныйДокумент" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Наименование нормативного документа</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="Статья" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Номер статьи Федерального закона</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="Часть" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Номер части статьи Федерального закона</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="Пункт" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Номер пункта из нормативного документа</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="Подпункт" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Номер подпункта из нормативного документа</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="КодПричиныУвольнения" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Код причины увольнения</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="УТ2:ТипНепустаяСтрока">
                    <xs:maxLength value="50"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
      <xs:element name="Причина" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Причина увольнения</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ДатаС" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Дата начала</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ДатаПо" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Дата окончания</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Основание" maxOccurs="2">
        <xs:annotation>
          <xs:documentation>Сведения о документе-основании для мероприятия</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Наименование" type="УТ2:ТипНепустаяСтрока">
              <xs:annotation>
                <xs:documentation>Наименование документа-основания</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Дата" type="xs:date">
              <xs:annotation>
                <xs:documentation>Дата документа "ОТ"</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Номер" type="УТ2:ТипНепустаяСтрока">
              <xs:annotation>
                <xs:documentation>Номер документа</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Серия" type="УТ2:ТипНепустаяСтрока" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Серия документа</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:group>
  <xs:simpleType name="ТипСтатусЗаявления">
    <xs:annotation>
      <xs:documentation>Тип для представления сведений о статусе заявления. Возможные значения:
				1 – подано;
				2 – отменено	</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:integer">
      <xs:minInclusive value="1"/>
      <xs:maxInclusive value="2"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="ТипЗаявление">
    <xs:annotation>
      <xs:documentation>Общие сведения о заявлении: дата и статус</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Дата" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Дата подачи заявления</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Статус" type="ТипСтатусЗаявления">
        <xs:annotation>
          <xs:documentation>Статус заявления</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ТипРаботодатель">
    <xs:annotation>
      <xs:documentation>Тип для представления сведений о страхователе, представившем сведения о трудовой деятельности</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element ref="УТ2:РегНомер">
        <xs:annotation>
          <xs:documentation>Регистрационный номер СФР страхователя</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element ref="УТ2:Наименование">
        <xs:annotation>
          <xs:documentation>Наименование организации, предоставившей отчет</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:group ref="УТ2:ГрНН">
        <xs:annotation>
          <xs:documentation>ИНН и КПП страхователя</xs:documentation>
        </xs:annotation>
      </xs:group>
    </xs:sequence>
  </xs:complexType>
  <!--	<xs:complexType name="ТипОтчетныйПериод">
		<xs:annotation>
			<xs:documentation>Тип для представления сведений об отчетном периоде</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Месяц" type="УТ2:ТипМесяц" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Месяц отчетного периода</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Год" type="xs:gYear" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Календарный год, к которому относится месяц, за который представляются сведения</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>-->
</xs:schema>