<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://dd.eionet.europa.eu/namespace.jsp?ns_id=929" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dd3="http://dd.eionet.europa.eu/namespace.jsp?ns_id=3" xmlns:ddnull="http://dd.eionet.europa.eu/namespace.jsp?ns_id=null" xmlns:dd2="http://dd.eionet.europa.eu/namespace.jsp?ns_id=2" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="season">
	<xs:annotation>
		<xs:documentation xml:lang="en">
			<dd3:Responsible><![CDATA[4052211]]></dd3:Responsible>
			<dd3:PublicOrInternal><![CDATA[Public attribute]]></dd3:PublicOrInternal>
			<dd3:Methodology><![CDATA[The year of the bathing season will typically be the year of the reporting exercise.
The re-submission of data deliveries for previous bathing waters seasons are not presently foreseen (contact bwd.helpdesk@eionet.europa.eu for assistance).]]></dd3:Methodology>
			<ddnull:languageUsed><![CDATA[No]]></ddnull:languageUsed>
			<dd2:Definition><![CDATA[Year of the bathing season.]]></dd2:Definition>
			<dd2:Name><![CDATA[Bathing season]]></dd2:Name>
		</xs:documentation>
	</xs:annotation>
	<xs:simpleType>
		<xs:restriction base="xs:gYear">
		</xs:restriction>
	</xs:simpleType>
</xs:element>
<xs:element name="bathingWaterIdentifier">
	<xs:annotation>
		<xs:documentation xml:lang="en">
			<dd3:Responsible><![CDATA[4052211]]></dd3:Responsible>
			<dd3:PublicOrInternal><![CDATA[Public attribute]]></dd3:PublicOrInternal>
			<dd3:Methodology><![CDATA[Must be a valid bathing water identifier in the "WFDProtectedArea" registry (	https://dd.eionet.europa.eu/vocabulary/wise/WFDProtectedArea/ ).

New bathing water identifiers must be reported under "Bathing Water Directive - Identification of Bathing Waters - 2019" ( https://rod.eionet.europa.eu/obligations/788 )

Contact bwd.helpdesk@eionet.europa.eu for support if you need to report additional bathing water identifiers.]]></dd3:Methodology>
			<ddnull:languageUsed><![CDATA[No]]></ddnull:languageUsed>
			<dd2:Definition><![CDATA[Unique identifier of the bathing water.]]></dd2:Definition>
			<dd2:Name><![CDATA[Identifier of the Bathing Water]]></dd2:Name>
		</xs:documentation>
	</xs:annotation>
	<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:minLength value="3"/>
			<xs:maxLength value="42"/>
		</xs:restriction>
	</xs:simpleType>
</xs:element>
<xs:element name="periodType">
	<xs:annotation>
		<xs:documentation xml:lang="en">
			<dd3:Responsible><![CDATA[4052211]]></dd3:Responsible>
			<dd3:obligation><![CDATA[15458380]]></dd3:obligation>
			<dd3:Consulted><![CDATA[4052063]]></dd3:Consulted>
			<dd2:Keyword><![CDATA[Water]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Surface water]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Water quality]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[River]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Inland water]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Lake]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Sea]]></dd2:Keyword>
			<dd3:PublicOrInternal><![CDATA[Public attribute]]></dd3:PublicOrInternal>
			<dd3:Methodology><![CDATA[One or more seasonal period can be reported for each bathing water, using separate records.

See the definitions in the vocabulary for further information.

Notes on the use of the different periods:

1) 'bathingSeason' 

For each bathing water, one and only one 'bathingSeason' period must be reported, except if the bathing water has been 'delisted' (see below).

The beginning and the end of the bathing season must be reported in the startDate and endDate elements. The duration of the bathing season is determined with the start and end dates inclusive.

Additional information about the bathing season and the bathing water management can be reported in the managementMeasures element. This includes the description of significant management measures (cleaning, observing and additional monitoring, preventing access, plans and programmes of measures to prevent bathers' exposure to pollution and reduce the risk of different types of pollution etc.); information to the public (media, newspapers, internet, television, press releases, easy accessible place in the vicinity of bathing water for actively and promptly disseminating the information to public such as information points, posters, panels, signs, boards, national reports and other publications etc.); risk assessment reports; and other information associated with overall bathing water management.

2) shortTermPollution

For each bathing water, zero or more non-overlapping 'shortTermPollution' periods can be reported (using separate records).

The beginning and the end of the short-term pollution event must be reported in the startDate and endDate elements, so that the monitoring samples taken during short-term pollution events can be correctly disregarded during the quality assessment (Article 3.6 of the BWD).  

Additional information must be reported in the managementMeasures element. This includes: the causes of the specific short-term pollution event (e.g. conditions likely to lead to short-term pollution such as storms, sewage overflows etc.) and the management measures that were taken (e.g. surveillance, early warning systems, reducing pollution and corresponding impacts, prevent bathers' exposure to pollution, information to public on media and on site, preventing access, observing and additional monitoring). 

3) abnormalSituation

For each bathing water, zero or more non-overlapping 'abnormalSituation' periods can be reported (using separate records).

The beginning and the end of the abnormal situation event must be reported in the startDate and endDate elements, so that the suspension of the monitoring calendar can be taken into account. However, new samples must be taken as soon as possible after the end of the abnormal situation to replace samples that are missing due to abnormal situations (Article 3.7 of the BWD).

Additional information must be reported in the managementMeasures element. This includes the causes of specific abnormal situation (e.g. flood, drought) and the management measures that were taken (e.g. reducing pollution and corresponding impacts, prevent bathers' exposure to pollution, information to public on media and on site, preventing access, observing and additional monitoring).

4) qualityChanges

For each bathing water, zero or more 'qualityChanges' period can be reported.

The beginning and the end of the period must be reported in the startDate and endDate elements, because the quality assessment will be based solely on the samples taken after the quality changes occurred (Article 4.4 of the BWD). If the changes likely to affect the classification of the bathing water do not have a known date, the conventional value of ‘9999-12-31’ should be given as a startDate. If the changes have not finished by the time of the annual reporting, the endDate value should be set to the conventional value '9999-12-31'. In this case, the endDate value should be reported in the next annual data reporting or resubmitted to CDR as soon as the value is known.

The description of changes that may affect bathing water quality must be reported in managementMeasures element. For example: implementing UWWTD with construction of new UWWT plants or upgrading of existing wastewater treatment, reducing sewer overflow, rainwater reservoirs and reservoir conduits that can store wastewater until there is space again in the sewerage system, measures to restrict the large number of resting dogs, birds and other animals on the beach, etc.

5) bathingProhibition

For each bathing water, zero or more non-overlapping 'bathingProhibition' periods can be reported (using separate records).

The beginning and the end of the period must be reported in the startDate and endDate elements.
A permanent bathing prohibition lasts at least one entire bathing season (Article 2 of the BWD): the startDate should be equal to or earlier than the start date of the bathing season; and the endDate should be equal to or later than the end date of the bathing season.
If a bathing water is classified as 'poor' for five consecutive years, a permanent bathing prohibition or permanent advice against bathing shall be introduced. However, a Member State may introduce a permanent bathing prohibition or permanent advice against bathing before the end of the five year period if it considers that the achievement of 'sufficient' quality would be infeasible or disproportionately expensive. (Article 5 of the BWD).

The description of management measures must be reported in managementMeasures element, together with information on the prohibition/advice against bathing. This may include measures to prevent, reduce or eliminate the causes of pollution, identification of the causes and reasons for the failure to achieve 'sufficient' quality status, measures to prevent, reduce or eliminate the causes of pollution and information of alerting the public and informing them of the causes of the pollution (Article 5.4 of BWD).

6) inaccessible

For each bathing water, zero or more non-overlapping 'inaccessible' periods can be reported (using separate records).

The beginning and the end of the period must be reported in the startDate and endDate elements.
The description of management measures must be reported in managementMeasures element, together with information on the inaccessibility reasons.

7) delisted

A former bathing water (i.e. a bathing water that has been reported in previous seasons) must be 'delisted' if it is no longer identified as a bathing water (Articles 1.3 and 12.1 of the BWD). This means that no further management (including monitoring) is expected after the day of delisting/declassification.

Does not include bathing waters that are not being used due to a bathing prohibition (according to Article 5.4 of the BWD) or due to inaccessibility, but are still identified as a bathing water with a view to use it for bathing in the future. In such cases, the codes 'bathingProhibition' or 'inaccessible' should be used, respectively.

For each former bathing water, zero or one 'delisted' periods can be reported.

Two cases are possible:
a) If the bathing water was delisted at the end of the current season, then report the all the normal information (characterisation with the quality class, bathing season period, and monitoring results), and include a seasonal period with periodType =  'delisted' and a start date after the end of the bathing season. No additional reporting is be expected in future data calls.
b) If the bathing water was delisted before the current season, report only the characterisation with qualityClass = 0 and a seasonal period with periodType =  'delisted'. No additional reporting is expected.

The date when the former bathing water was delisted must be reported in the startDate. The date  of delisting a bathing water has to take place at least one day after other reported periods (e.g. bathingPeriod) ended.
The endDate element should have the conventional value '9999-12-31' that is used for indeterminate or unknown dates.

The description of reasons for delisting the bathing water must be reported in managementMeasures element.

8) cyanobacteriaBloom

Applicable to bathing waters where cyanobacteria blooms have been noted.
For each bathing water, zero or more non-overlapping 'cyanobacteriaBloom' periods can be reported (using separate records).

The beginning and the end of the period must be reported in the startDate and endDate elements.
The description of management measures must be reported in managementMeasures element, together with other relevant information (e.g. causes of cyanobacteria bloom).

9) other

For each bathing water, zero or more non-overlapping 'other' periods can be reported (using separate records).

The beginning and the end of the period must be reported in the startDate and endDate elements.
The description of the event must be reported in managementMeasures element.
]]></dd3:Methodology>
			<dd2:Definition><![CDATA[Specifies the type of seasonal period.]]></dd2:Definition>
			<dd2:Name><![CDATA[Period type]]></dd2:Name>
		</xs:documentation>
	</xs:annotation>
	<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:enumeration value="abnormalSituation"/>
			<xs:enumeration value="bathingProhibition"/>
			<xs:enumeration value="bathingSeason"/>
			<xs:enumeration value="cyanobacteriaBloom"/>
			<xs:enumeration value="delisted"/>
			<xs:enumeration value="inaccessible"/>
			<xs:enumeration value="other"/>
			<xs:enumeration value="qualityChanges"/>
			<xs:enumeration value="shortTermPollution"/>
		</xs:restriction>
	</xs:simpleType>
</xs:element>
<xs:element name="startDate">
	<xs:annotation>
		<xs:documentation xml:lang="en">
			<dd3:Responsible><![CDATA[4052211]]></dd3:Responsible>
			<dd3:PublicOrInternal><![CDATA[Public attribute]]></dd3:PublicOrInternal>
			<dd3:Methodology><![CDATA[For some period types if the startDate is unknown or is yet undetermined, the conventional value '9999-12-31' should be reported.
Note that startDate and endDate cannot both be set to '9999-12-31'.]]></dd3:Methodology>
			<ddnull:languageUsed><![CDATA[No]]></ddnull:languageUsed>
			<dd2:Definition><![CDATA[Start date (YYYY-MM-DD) of the seasonal period.]]></dd2:Definition>
			<dd2:Name><![CDATA[Start date]]></dd2:Name>
			<dd3:obligation><![CDATA[15458380]]></dd3:obligation>
			<dd3:Consulted><![CDATA[4052063]]></dd3:Consulted>
			<dd2:Keyword><![CDATA[Water]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Surface water]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Water quality]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[River]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Inland water]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Lake]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Sea]]></dd2:Keyword>
		</xs:documentation>
	</xs:annotation>
	<xs:simpleType>
		<xs:restriction base="xs:date">
		</xs:restriction>
	</xs:simpleType>
</xs:element>
<xs:element name="endDate">
	<xs:annotation>
		<xs:documentation xml:lang="en">
			<dd3:Responsible><![CDATA[4052211]]></dd3:Responsible>
			<dd3:PublicOrInternal><![CDATA[Public attribute]]></dd3:PublicOrInternal>
			<dd3:Methodology><![CDATA[For some period types if the endDate is unknown or is yet undetermined, the conventional value '9999-12-31' should be reported.
Note that startDate and endDate cannot both be set to '9999-12-31'.
]]></dd3:Methodology>
			<ddnull:languageUsed><![CDATA[No]]></ddnull:languageUsed>
			<dd2:Definition><![CDATA[End date (YYYY-MM-DD) of the seasonal period.]]></dd2:Definition>
			<dd2:Name><![CDATA[End date]]></dd2:Name>
			<dd3:obligation><![CDATA[15458380]]></dd3:obligation>
			<dd3:Consulted><![CDATA[4052063]]></dd3:Consulted>
			<dd2:Keyword><![CDATA[Water]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Surface water]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Water quality]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[River]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Inland water]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Lake]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Sea]]></dd2:Keyword>
		</xs:documentation>
	</xs:annotation>
	<xs:simpleType>
		<xs:restriction base="xs:date">
		</xs:restriction>
	</xs:simpleType>
</xs:element>
<xs:element name="managementMeasures">
	<xs:annotation>
		<xs:documentation xml:lang="en">
			<dd3:Responsible><![CDATA[4052211]]></dd3:Responsible>
			<dd3:obligation><![CDATA[15458380]]></dd3:obligation>
			<dd3:Consulted><![CDATA[4052063]]></dd3:Consulted>
			<dd2:Keyword><![CDATA[Water]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Surface water]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Water quality]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[River]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Inland water]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Lake]]></dd2:Keyword>
			<dd2:Keyword><![CDATA[Sea]]></dd2:Keyword>
			<dd3:PublicOrInternal><![CDATA[Public attribute]]></dd3:PublicOrInternal>
			<dd3:Methodology><![CDATA[Additional information must be reported in the managementMeasures element for all period types except 'bathingPeriod'.
See the methodology for the periodType element.]]></dd3:Methodology>
			<ddnull:languageUsed><![CDATA[No]]></ddnull:languageUsed>
			<dd2:Definition><![CDATA[Description of significant management measures taken in the scope of reported seasonal period.]]></dd2:Definition>
			<dd2:Name><![CDATA[Management measures]]></dd2:Name>
		</xs:documentation>
	</xs:annotation>
	<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="5000"/>
		</xs:restriction>
	</xs:simpleType>
</xs:element>
<xs:element name="Remarks">
	<xs:annotation>
		<xs:documentation xml:lang="en">
			<dd3:Responsible><![CDATA[4035025]]></dd3:Responsible>
			<dd3:obligation><![CDATA[4031383]]></dd3:obligation>
			<dd3:obligation><![CDATA[4031486]]></dd3:obligation>
			<dd3:obligation><![CDATA[4031497]]></dd3:obligation>
			<dd3:obligation><![CDATA[4031411]]></dd3:obligation>
			<dd3:PublicOrInternal><![CDATA[Public attribute]]></dd3:PublicOrInternal>
			<dd3:Methodology><![CDATA[This field can be used to provide additional information about the record.]]></dd3:Methodology>
			<ddnull:languageUsed><![CDATA[No]]></ddnull:languageUsed>
			<dd2:Definition><![CDATA[Remarks, comments or explanatory notes.]]></dd2:Definition>
			<dd2:Name><![CDATA[Remarks]]></dd2:Name>
		</xs:documentation>
	</xs:annotation>
	<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="1000"/>
		</xs:restriction>
	</xs:simpleType>
</xs:element>

</xs:schema>