<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://пф.рф/РДО/2021-07-23" xmlns:РДО="http://пф.рф/РДО/2021-07-23" xmlns:УТ2="http://пф.рф/УТ/2017-08-21" xmlns:АФ5="http://пф.рф/АФ/2018-12-07" xmlns:УПП="http://пф.рф/АФ/УПП/типы" xmlns:ЭТК3="http://пф.рф/ЭТК/2021-07-23" version="2.0" targetNamespace="http://пф.рф/РДО/2021-07-23" 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://пф.рф/АФ/2018-12-07" schemaLocation="ais/%D0%A1%D1%85%D0%B5%D0%BC%D1%8B/%D0%A2%D0%B8%D0%BF%D1%8B%D0%90%D0%A4_2018-12-07.xsd"/>
	<xs:import namespace="http://пф.рф/ЭТК/2021-07-23" schemaLocation="ais/%D0%A1%D1%85%D0%B5%D0%BC%D1%8B/%D0%AD%D0%A2%D0%9A/%D0%A2%D0%B8%D0%BF%D1%8B%D0%AD%D0%A2%D0%9A_2021-07-23.xsd"/>
	<xs:import namespace="http://пф.рф/АФ/УПП/типы" schemaLocation="ais/%D0%A1%D1%85%D0%B5%D0%BC%D1%8B/%D0%90%D0%A4/%D0%A3%D0%9F%D0%9F/%D0%A2%D0%B8%D0%BF%D1%8B%D0%A3%D0%9F%D0%9F.xsd"/>
	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="ais/%D0%A1%D1%85%D0%B5%D0%BC%D1%8B/xmldsig_core_schema.xsd"/>
	<xs:annotation>
		<xs:documentation>Формат документа «Реестр ДО правонарушений для выгрузки в Роструд»</xs:documentation>
	</xs:annotation>
	<xs:element name="ЭДПФР">
		<xs:annotation>
			<xs:documentation>Корневой элемент. Содержит сведения самого документа и служебную информацию об электронном документе.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:all>
				<xs:element name="РДО">
					<xs:annotation>
						<xs:documentation>Реестр документов оснований</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="Основание" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Блок содержит информацию о документе основании</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Статус">
											<xs:annotation>
												<xs:documentation>Состояние документа основания для штрафа. Возможные значения:
													1 - формирование,
													0 - аннулирование</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:integer">
													<xs:enumeration value="1"/>
													<xs:enumeration value="0"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="ТипИсходногоОтчета" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Тип исходного отчета. Указывается СЗВ-ТД</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:enumeration value="СЗВ-ТД"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="ТипПравонарушения">
											<xs:annotation>
												<xs:documentation>Указывается тип правонарушения. Возможные значения:
													1 - Нарушение сроков,
													2 - Недостоверность или неполнота</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:integer">
													<xs:enumeration value="1"/>
													<xs:enumeration value="2"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="Реквизиты" type="ТипСлужебныеРеквизитыДокумента">
											<xs:annotation>
												<xs:documentation>Дата формирования и идентификатор (GUID) документа-основания</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="РеквизитыУПП" type="ТипСлужебныеРеквизитыДокумента" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Дата формирования и идентификатор (GUID) УПП</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="ЭТК3:ТипРаботодатель2">
											<xs:annotation>
												<xs:documentation>Блок сведений о страхователе, предоставившем форму</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="РаботодательЗаКоторого" type="ЭТК3:ТипРаботодатель2" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Блок сведений о работодателе, правопреемником которого является страхователь</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="ЗЛ">
											<xs:annotation>
												<xs:documentation>Блок сведений о застрахованном лице</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<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:element ref="УТ2:СНИЛС">
														<xs:annotation>
															<xs:documentation>СНИЛС застрахованного лица</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="Заявления" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Блок сведений о заявлениях</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="ЗаявлениеОПродолжении" type="ЭТК3:ТипЗаявление" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Заявление о продолжении ведения трудовой деятельности</xs:documentation>
																	</xs:annotation>
																</xs:element>
																<xs:element name="ЗаявлениеОПредоставлении" type="ЭТК3:ТипЗаявление" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation>Заявление о представлении сведений о трудовой деятельности</xs:documentation>
																	</xs:annotation>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="ТД" minOccurs="0">
														<xs:annotation>
															<xs:documentation>Блок сведений о трудовой деятельности</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="Мероприятие" minOccurs="0" maxOccurs="unbounded">
																	<xs:annotation>
																		<xs:documentation>Мероприятие</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:group ref="ЭТК3:ГрМероприятие">
																				<xs:annotation>
																					<xs:documentation>Сведения о мероприятии</xs:documentation>
																				</xs:annotation>
																			</xs:group>
																			<xs:element name="Ошибки" type="ТипОшибки" minOccurs="0">
																				<xs:annotation>
																					<xs:documentation>Блок ошибок мероприятия</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element name="ОшибкиСЗВ-ТД" type="ТипОшибки" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Блок ошибок отчета</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="СлужебнаяИнформация" type="АФ5:ТипСлужебнаяИнформация">
					<xs:annotation>
						<xs:documentation>Служебная информация об электронном документе</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element xmlns="http://www.w3.org/2000/09/xmldsig#" ref="Signature" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Электронная подпись (ЭП). Электронный документ, для которого законодательством Российской Федерации предусмотрена юридически значимая подпись, должен быть подписан усиленной квалифицированной электронной подписью в соответствии со спецификацией XMLDSig</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:all>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="ТипСлужебныеРеквизитыДокумента">
		<xs:annotation>
			<xs:documentation>Тип, содержащий информацию о дате формирования и идентификаторе (GUID) документа</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Дата" type="xs:date">
				<xs:annotation>
					<xs:documentation>Дата формирования документа</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="GUID" type="УТ2:ТипGUID" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Идентификатор (GUID) документа</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="ТипОшибки">
		<xs:annotation>
			<xs:documentation>Тип для преставления сведений об ошибках либо из УПП, либо из СПУ</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:choice>
				<xs:annotation>
					<xs:documentation>Указывается либо блок со сведениями о проверке из УПП, либо описание ошибки из СПУ</xs:documentation>
				</xs:annotation>
				<xs:element name="Проверка" type="УПП:ТипПроверкаПротокола" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>Проверка. Значение из УПП</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="ПроверкаСПУ" type="УТ2:ТипНепустаяСтрока" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>Описание ошибки из СПУ</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
		</xs:sequence>
	</xs:complexType>
</xs:schema>