<?xml version="1.0" encoding="utf-8" ?>
<settings>
	<verificationRabbitPatterns>
		<!--HOSPITALISATION_REFERRAL-->
		<verificationPattern pattern="^MOTION_IN_HOSPITAL$" schema="motionInHospital.xsd" procedure="sp_MotionInHospitalLoad" org="header/MO" type="MINHOSP"/>
		<verificationPattern pattern="^CANCEL_HOSPITALISATION$" schema="cancelHospitalisation.xsd" procedure="sp_CancelHospitalisationLoad" org="header/MO" type="CANCEL_H"/>
		<verificationPattern pattern="^CANCEL_HOSPITALISATION_REFERRAL$" schema="cancelHospitalisationReferal.xsd" procedure="sp_CancelHospitalisationReferralLoad" org="header/MO" orgto="header/MO_TO" type="CANCEL_HR"/>
		<verificationPattern pattern="^HOSPITALISATION$" schema="hospitalisation.xsd" procedure="sp_HospitalisationLoad" org="header/MO" type="HOSP"/>
		<verificationPattern pattern="^BRANCH$" schema="branch.xsd" procedure="sp_BranchLoad" org="header/MO" type="BRANCH"/>
		<verificationPattern pattern="^DIVISION$" schema="division.xsd" procedure="sp_DivisionLoad" org="header/MO" type="DIVISION"/>
		<verificationPattern pattern="^AMOUNT_BED$" schema="amount_bed.xsd" procedure="sp_AmountbedLoad" org="header/MO" type="AMOUNT_BED"/>
		<verificationPattern pattern="^HTMC_REFERRAL$" schema="vmpReferral.xsd" procedure="sp_VmpReferralLoad" org="HEADER/CODE_MO" type="HTMC_REFERRAL"/>
		<verificationPattern pattern="^FREE_BEDS_INFORMATION$" schema="free_beds_information.xsd" procedure="sp_FreeBedsInformationLoad" org="header/MO" type="FREE_BED"/>
		<verificationPattern pattern="^HOSPITALISATION_REFERRAL$" schema="hospReferral.xsd" procedure="sp_HospReferralLoad" org="header/MO" orgto="header/MO_TO" type="HOSPREF"/>

		<!--Профмероприятия-->
		<verificationPattern pattern="^IDENTIFICATION_PM$" schema="identification_pm.xsd" procedure="sp_IdentificationPm" org="ZGLV/MCOD" type="DISP_DIRECT_IDENT"/>
		<verificationPattern pattern="^PROF_LIST$" schema="prof_list.xsd" procedure="sp_LoadProfList" org="ZGLV/MCOD" type="DISP_DIRECT_FILE"/>
		<verificationPattern pattern="^INFORMING_PM$" schema="prof_info.xsd" procedure="sp_LoadProfInfo" org="ZGLV/SMO" type="DISP_DIRECT_INFO_FILE"/>

		<!--Диспансерное наблюдение-->
		<verificationPattern pattern="^IDENTIFICATION_DN$" schema="dn_ident_v2.xsd" procedure="sp_DnIdent_V2" org="ZGLV/MCOD" type="DN_IDENT"/>
		<verificationPattern pattern="^DN_LIST$" schema="dn_insert.xsd" procedure="sp_DnInsert" org="ZGLV/MCOD" type="DN_FILE"/>
		<verificationPattern pattern="^INFORMING_DN$" schema="dn_info.xsd" procedure="sp_InformingDn" org="ZGLV/SMO" type="DN_INFO_FILE"/>
	</verificationRabbitPatterns>

	<verificationFolderPatterns>
		<!--Загрузка углубленной диспансеризации по данным ГИС ОМС-->
		<verificationPattern pattern="^test.zip$" version="1.0" strictFilesCount="false" type="DISP_DIRECT_GIS">
			<file pattern="^MO_.*.xlsm$" procedure="sp_DispDirectGisOms" skipRows="5" />
		</verificationPattern>

		<!--Загрузка сведений о канцрегистре-->
		<verificationPattern pattern="^cancregister.zip$" version="1.0" strictFilesCount="true" type="ONK_CANCREGISTER">
			<file pattern="^Канцрегистр\d*.xlsx$" procedure="sp_LoadCancregister" skipRows="5" />
		</verificationPattern>

		<!--Идентификация по пм-->
		<verificationPattern pattern="^[I][D][P]\w{5,6}_\d{5,}\.ZIP$" version ="1.0" type="DISP_DIRECT_IDENT">
			<file pattern="^[I][D][P]\w{5,6}_\d{5,}\.XML$" schema="identification_pm.xsd" procedure="sp_IdentificationPm" />
		</verificationPattern>

		<!--Идентификация по дн-->
		<verificationPattern pattern="^[I][D][N]\w{5,6}_\d{5,}\.ZIP$" version ="1.0" type="DN_IDENT">
			<file pattern="^[I][D][N]\w{5,6}_\d{5,}\.XML$" schema="dn_ident_v2.xsd" procedure="sp_DnIdent_V2" />
		</verificationPattern>

		<!--Профмероприятия-->
		<verificationPattern pattern="^PROF\w{2,6}M\w{2,6}_\w{7,}\.ZIP$" version ="1.0" type="DISP_DIRECT_FILE">
			<file pattern="^PROF\w{2,6}M\w{2,6}_\w{7,}\.XML$" schema="prof_list.xsd" procedure="sp_LoadProfList" />
		</verificationPattern>

		<!--Диспансерные наблюдения-->
		<verificationPattern pattern="^DN\d{1,6}_\d{6}\d+\.ZIP$" version ="1.0" type="DN_ITEM">
			<file pattern="^DN\d{1,6}_\d{6}\d+\.XML$" schema="dn_insert.xsd" procedure="sp_DnInsert" />
		</verificationPattern>

		<!--Информирование по пм-->
		<verificationPattern pattern="^INFP\w{5,6}_\d{5,}\.ZIP$" version ="1.0" type="DISP_DIRECT_INFO_FILE">
			<file pattern="^INFP\w{5,6}_\d{5,}\.XML$" schema="informingPM.xsd" procedure="sp_LoadProfInfo" />
		</verificationPattern>

		<!--Информирование по дн-->
		<verificationPattern pattern="^INFD\d{1,6}_\d{1,6}\d{2,}\.ZIP$" version ="1.0" type="DN_INFO_FILE">
			<file pattern="^INFD\d{1,6}_\d{1,6}\d{2,}\.XML$" schema="dn_info.xsd" procedure="sp_InformingDn" />
		</verificationPattern>


		<!--Настройки загрузки Schet-->
		<verificationPattern pattern="^C[TSM]\w{2,14}[TSM]\w{2,6}_\d{5,}\.ZIP$" version="*" type="SCHET_FILE" bulk="true" procedure="sp_SchetBulkLoad" loader="SchetLoader">
			<file pattern="^C[TSM]\w{2,14}[TSM]\w{2,6}_\d{5,}\.XML$" loadschema="schet_main_3.2.xml"/>
			<file pattern="^L[C]{0,1}[TSM]\w{2,14}[TSM]\w{2,6}_\d{5,}\.XML$" loadschema="schet_pers_3.2.xml"/>
		</verificationPattern>
		<verificationPattern pattern="^T[TSM]\w{2,14}[TSM]\w{2,6}_\d{5,}\.ZIP$" version="*" type="SCHET_FILE" bulk="true" procedure="sp_SchetBulkLoad" loader="SchetLoader">
			<file pattern="^T[TSM]\w{2,14}[TSM]\w{2,6}_\d{5,}\.XML$" loadschema="schet_main_3.2.xml"/>
			<file pattern="^L[T]{0,1}[TSM]\w{2,14}[TSM]\w{2,6}_\d{5,}\.XML$" loadschema="schet_pers_3.2.xml"/>
		</verificationPattern>
		<verificationPattern pattern="^D[A-Z]{0,1}[TSM]\w{2,14}[TSM]\w{2,6}_\d{5,}\.ZIP$" version="*" type="SCHET_FILE" bulk="true" procedure="sp_SchetBulkLoad" loader="SchetLoader">
			<file pattern="^D[A-Z]{0,1}[TSM]\w{2,14}[TSM]\w{2,6}_\d{5,}\.XML$" loadschema="schet_main_3.2.xml"/>
			<file pattern="^L[A-Z]{0,1}[TSM]\w{2,14}[TSM]\w{2,6}_\d{5,}\.XML$" loadschema="schet_pers_3.2.xml"/>
		</verificationPattern>
		<verificationPattern pattern="^H[A-Z]{0,1}[TSM]\w{2,14}[TSM]\w{2,6}_\d{5,}\.ZIP$" version="*" type="SCHET_FILE" bulk="true" procedure="sp_SchetBulkLoad" loader="SchetLoader">
			<file pattern="^H[A-Z]{0,1}[TSM]\w{2,14}[TSM]\w{2,6}_\d{5,}\.XML$" loadschema="schet_main_3.2.xml"/>
			<file pattern="^L[A-Z]{0,1}[TSM]\w{2,14}[TSM]\w{2,6}_\d{5,}\.XML$" loadschema="schet_pers_3.2.xml"/>
		</verificationPattern>

		<!--Структура МО-->
		<verificationPattern pattern="^BR\w{4,6}_\w{7,}\.ZIP$" type="BRANCH">
			<file pattern="^BR\w{4,6}_\w{7,}\.XML$" schema="branch_folder.xsd" procedure="sp_BranchLoad_folder" />
		</verificationPattern>

		<verificationPattern pattern="^DIV\w{4,6}_\w{7,}\.ZIP$" type="DIVISION">
			<file pattern="^DIV\w{4,6}_\w{7,}\.XML$" schema="division_folder.xsd" procedure="sp_DivisionLoad_folder" />
		</verificationPattern>

		<verificationPattern pattern="^AB\w{4,6}_\w{7,}\.ZIP$" type="AMOUNT_BED">
			<file pattern="^AB\w{4,6}_\w{7,}\.XML$" schema="amount_bed_folder.xsd" procedure="sp_AmountbedLoad_folder" />
		</verificationPattern>

		<verificationPattern pattern="^FBI\w{4,6}_\w{7,}\.ZIP$" type="FREE_BED">
			<file pattern="^FBI\w{4,6}_\w{7,}\.XML$" schema="free_beds_information_folder.xsd" procedure="sp_FreeBedsInformationLoad_folder" />
		</verificationPattern>

		<!--направление на госпитализацию-->
		<verificationPattern pattern="^HR\w{2,6}_\w{7,}\.ZIP$" type="HOSPREF">
			<file pattern="^HR\w{2,6}_\w{7,}\.XML$" schema="hospReferral_folder.xsd" procedure="sp_HospReferralLoad_folder" />
		</verificationPattern>

		<!--аннулирование направления на госпитализацию-->
		<verificationPattern pattern="^CHR\w{2,6}_\w{7,}\.ZIP$" type="CANCEL_HR">
			<file pattern="^CHR\w{2,6}_\w{7,}\.XML$" schema="cancelHospitalisationReferal_folder.xsd" procedure="sp_CancelHospitalisationReferralLoad_folder" />
		</verificationPattern>

		<!--аннулирование на госпитализации-->
		<verificationPattern pattern="^CH\w{4,6}_\w{7,}\.ZIP$" type="CANCEL_H">
			<file pattern="^CH\w{4,6}_\w{7,}\.XML$" schema="cancelHospitalisation_folder.xsd" procedure="sp_CancelHospitalisationLoad_folder" />
		</verificationPattern>

		<!--госпитализация-->
		<verificationPattern pattern="^HP\w{2,6}_\w{7,}\.ZIP$" type="HOSP">
			<file pattern="^HP\w{2,6}_\w{7,}\.XML$" schema="hospitalisation_folder.xsd" procedure="sp_HospitalisationLoad_folder" />
		</verificationPattern>

		<!--MOTION_IN_HOSPITAL-->
		<verificationPattern pattern="^MN\w{4,6}_\w{7,}\.ZIP$" type="MINHOSP">
			<file pattern="^MN\w{4,6}_\w{7,}\.XML$" schema="motionInHospital_folder.xsd" procedure="sp_MotionInHospitalLoad_folder" />
		</verificationPattern>

		<!--RECOMENDATIONS-->
		<verificationPattern pattern="^T\w{6,6}_\d{5,}\.ZIP$" type="RECOMENDATIONS">
			<file pattern="^T\w{6,6}_\d{5,}\.XML$" schema="recomendations.xsd" procedure="sp_RecomendationsLoad_folder" />
		</verificationPattern>

		<verificationPattern pattern="^MA.*\.ZIP$" type="MO_ATTACHMENT">
			<file pattern="^MA.*\.XML$" schema="mo_attachment.xsd" procedure="sp_LoadAttachments" />
		</verificationPattern>

		<!--Ежедневные сведения о прохождении ПМ, направлении на 2 этап, начале прохождения ПМ-->
		<verificationPattern pattern="^PP\w{2,6}_\w{7,}\.ZIP$" version ="1.0" type="DISP_DIRECT_FACT_FILE">
			<file pattern="^PP\w{2,6}_\w{7,}\.XML$" schema="pp_list.xsd" procedure="sp_LoadPpList">
				<preread xpath="//ID" name="ID"></preread>
				<preread xpath="//MCOD" name="MCOD"></preread>
			</file>
		</verificationPattern>

		<!--Сведения о ЗЛ-->
		<verificationPattern pattern="^ZL_\d{7,}\.ZIP$" version="1.0" type="INSURED">
			<file pattern="^ZL_\d{7,}\.XML$" schema="zl_list.xsd" procedure="sp_LoadZlList">
				<preread xpath="//ID" name="ID"></preread>
				<preread xpath="//DATA" name="DATA"></preread>
			</file>
		</verificationPattern>

		<!--Жалобы и обращения-->
		<verificationPattern pattern="^[S]\w{2,6}[T][1][0][_]\d{4,}\.ZIP$" version="1.0" type="APPEAL_TO_CALL_CENTER">
			<file pattern="^[S]\w{2,6}[T][1][0][_]\d{4,}\.XML$" schema="IRPPack_v1.xsd" procedure="sp_IRPPackLoad">
			</file>
		</verificationPattern>

		<verificationPattern pattern="^G1\d{1,6}_\d{1,10}\.ZIP" version="1.0" type="APPEAL_TO_CALL_CENTER_MAGADAN">
			<file pattern="^G1\d{1,6}_\d{1,10}\.XML$" schema="IRPPack_Magadan.xsd" procedure="sp_IRPPackLoad_Magadan">
			</file>
		</verificationPattern>

		<!--Мобильные бригады-->
		<verificationPattern pattern="^SINFO_[A-Z0-9]{5}_\d{6}_\d{2}\.ZIP$" version="1.0" type="DISP_DIRECT_INFO_MB">
			<file pattern="^SINFO_[A-Z0-9]{5}_\d{6}_\d{2}\.XML$" schema="informingPM_MB.xsd" procedure="sp_LoadProfInfo">
			</file>
		</verificationPattern>

		<verificationPattern pattern="^PPM\w{2,6}_\w{5,}\.ZIP$" version="1.0" type="PLAN_PM">
			<file pattern="^PPM\w{2,6}_\w{5,}\.XML$" schema="plan_pm.xsd" procedure="sp_LoadPlanPm">
			</file>
		</verificationPattern>

	</verificationFolderPatterns>
</settings>
