<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2020 rel. 2 (x64) (http://www.altova.com) by  (Region Midtjylland) -->
<xs:schema xmlns="http://rep.oio.dk/sundcom.dk/medcom.dk/xml/schemas/2007/02/01/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://rep.oio.dk/sundcom.dk/medcom.dk/xml/schemas/2007/02/01/" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<!--  Emessage  -->
	<xs:element name="Emessage">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Envelope" type="EnvelopeType">
					<xs:annotation>
						<xs:documentation>Generelle forsendelses oplysninger</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:sequence maxOccurs="unbounded">
					<xs:group ref="Letters"/>
				</xs:sequence>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="EnvelopeType">
		<xs:annotation>
			<xs:documentation>Gennerel information om forsendelsen</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Sent" type="DateTimeType"/>
			<xs:element name="Identifier" type="String_1_36"/>
			<xs:element name="AcknowledgementCode" type="AcknowledgementCodeType"/>
		</xs:sequence>
	</xs:complexType>
	<!--  Letters  -->
	<xs:group name="Letters">
		<xs:choice>
			<xs:element ref="NegativeReceipt"/>
			<xs:element ref="PositiveReceipt"/>
			<xs:element ref="RetinaDiabetesReport">
				<xs:annotation>
					<xs:documentation>v2.0.0</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:choice>
	</xs:group>
	<!--  Retina Diabetes Report  -->
	<xs:element name="RetinaDiabetesReport" type="RetinaDiabetesReportType"/>
	<xs:complexType name="RetinaDiabetesReportType">
		<xs:annotation>
			<xs:documentation>Definition af en udskrivningsepikrise</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Letter" type="DiabetesReportLetterType">
				<xs:annotation>
					<xs:documentation>Kan betragtes som et Letter element, som blot begrænses til VersionCode=XI0002D og TypeCode=XI0001</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element ref="Sender"/>
			<xs:element ref="Receiver"/>
			<xs:element name="Patient" type="DiabetesReportPatientType"/>
			<xs:element name="Report">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="EyeScreeningDate" type="DateType"/>
						<xs:element name="EyeScreeningIndicationCode" type="EyeScreeningIndicationType"/>
						<xs:element name="IndicationNextContactCode" type="IndicationNextContactType">
							<xs:annotation>
								<xs:documentation>Udfaldsrum "henvist_laser_behandling" anvendes ikke efter  25/11-2020</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="IndicationNextContactTime" type="MonthsType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Kun udfaldsrum (3, 6, 9, 12, 18, 24, 36, 48 måneder) anvendes efter 25/11.2020</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="History">
							<xs:complexType>
								<xs:sequence>
									<xs:element name="PriorEyeSurgeryLeftEyeCode" type="PriorEyeSurgeryType" minOccurs="0">
										<xs:annotation>
											<xs:documentation>28-04-2021 Elementet anvendes ikke efter denne dato.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="PriorEyeSurgeryLeftEyeCode1" type="PriorEyeSurgeryV2Type" minOccurs="0">
										<xs:annotation>
											<xs:documentation>28-04-2021 Følgende udfaldsrum indgår ikke længere i oplysninger om tidligere øjenkirurgi:
"katarakt_vitreoretinal",
"katarakt_intravitreal",
"vitreoretinal_intravitreal",
"katarakt_vitreoretinal_intravitrea"

Der er 5 elementer til angivelse af tidligere øjenkirurgi.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="PriorEyeSurgeryLeftEyeCode2" type="PriorEyeSurgeryV2Type" minOccurs="0"/>
									<xs:element name="PriorEyeSurgeryLeftEyeCode3" type="PriorEyeSurgeryV2Type" minOccurs="0"/>
									<xs:element name="PriorEyeSurgeryLeftEyeCode4" type="PriorEyeSurgeryV2Type" minOccurs="0"/>
									<xs:element name="PriorEyeSurgeryLeftEyeCode5" type="PriorEyeSurgeryV2Type" minOccurs="0"/>
									<xs:element name="PriorEyeSurgeryRightEyeCode" type="PriorEyeSurgeryType" minOccurs="0">
										<xs:annotation>
											<xs:documentation>28-04-2021 Elementet anvendes ikke efter denne dato.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="PriorEyeSurgeryRightEyeCode1" type="PriorEyeSurgeryV2Type" minOccurs="0">
										<xs:annotation>
											<xs:documentation>28-04-2021 Følgende udfaldsrum indgår ikke længere i oplysninger om tidligere øjenkirurgi:
"katarakt_vitreoretinal",
"katarakt_intravitreal",
"vitreoretinal_intravitreal",
"katarakt_vitreoretinal_intravitrea"

Der er 5 elementer til angivelse af tidligere øjenkirurgi.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="PriorEyeSurgeryRightEyeCode2" type="PriorEyeSurgeryV2Type" minOccurs="0"/>
									<xs:element name="PriorEyeSurgeryRightEyeCode3" type="PriorEyeSurgeryV2Type" minOccurs="0"/>
									<xs:element name="PriorEyeSurgeryRightEyeCode4" type="PriorEyeSurgeryV2Type" minOccurs="0"/>
									<xs:element name="PriorEyeSurgeryRightEyeCode5" type="PriorEyeSurgeryV2Type" minOccurs="0"/>
									<xs:element name="DiabetesStatus" type="DiabetesStatusType" minOccurs="0"/>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="Examinations">
							<xs:complexType>
								<xs:sequence>
									<xs:element name="ExaminationMethodCode" type="ExaminationMethodType" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Indberettes ikke efter 25/11-2020</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="VisualAcuityLeftEyeCode" type="VisualAcuityType">
										<xs:annotation>
											<xs:documentation>Udfaldsrum "uoplyst" anvendes ikke efter 25/11-2020</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="VisualAcuityRightEyeCode" type="VisualAcuityType">
										<xs:annotation>
											<xs:documentation>Udfaldsrum "uoplyst" anvendes ikke efter 25/11-2020</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="RetinaStatusLeftEyeCode" type="RetinaStatusType">
										<xs:annotation>
											<xs:documentation>Udfaldsrum "ikke vurderet" anvendes ikke efter 25/11-2020</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="RetinaStatusRightEyeCode" type="RetinaStatusType">
										<xs:annotation>
											<xs:documentation>Udfaldsrum "ikke vurderet" anvendes ikke efter 25/11-2020</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="MaculopatiStatusLeftEyeCode" type="MaculopatiStatusType">
										<xs:annotation>
											<xs:documentation>Udfaldsrum "anden_typeMaculopati" samt "ikke_vurderet" anvendes ikke efter 25/11-2020.                             1/4/2016 - Følgende udfald skal udgå som beskrevet i mail; anden_type_maculopati, ikke_vurderet, ny_maculaoedem, recidiv_maculaoedem, stabil_maculaoedem.

v2.0.0: Tilføjer udfald, diabetisk_maculaoedem_uden_CSME</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="MaculopatiStatusRightEyeCode" type="MaculopatiStatusType">
										<xs:annotation>
											<xs:documentation>Udfaldsrum "anden_typeMaculopati" samt "ikke_vurderet" anvendes ikke efter 25/11-2020.                             1/4/2016 - Følgende udfald skal udgå som beskrevet i mail; anden_type_maculopati, ikke_vurderet, ny_maculaoedem, recidiv_maculaoedem, stabil_maculaoedem.

v2.0.0: Tilføjer udfald, diabetisk_maculaoedem_uden_CSME</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="BlurredMediaLeftEyeCode" type="BlurredMediaType" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Udfaldsrum "katarakt_glaslegeme_bloedning_sloer", "katarakt_sloer_andet" samt "glaslegeme_bloedning_sloer_andet" anvendes ikke efter 25/11-2020.   Værdien af slørede medier afhænger af værdien af RetinaStatus og MaculopatiStatus. Hvis hverken Retinastatus eller Maculopati-status er angivet (har værdien "ikke vurderet"), skal det i denne værdi angives, således det fremgår om det skyldes slørede medier.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="BlurredMediaRightEyeCode" type="BlurredMediaType" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Udfaldsrum "katarakt_glaslegeme_bloedning_sloer", "katarakt_sloer_andet" samt "glaslegeme_bloedning_sloer_andet" anvendes ikke efter 25/11-2020.   Værdien af slørede medier afhænger af værdien af RetinaStatus og MaculopatiStatus. Hvis hverken Retinastatus eller Maculopati-status er angivet (har værdien "ikke vurderet"), skal det i denne værdi angives, således det fremgår om det skyldes slørede medier.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="OCTtest" type="YesNoType" minOccurs="0">
										<xs:annotation>
											<xs:documentation>25/11-2020 nyt element</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DiabetesReportLetterType">
		<xs:annotation>
			<xs:documentation>Kan betragtes som en LetterType, som blot begrænses til VersionCode=XD0133L og TypeCode=XDIS01</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:restriction base="LetterType">
				<xs:sequence>
					<xs:element name="Identifier" type="String_1_36"/>
					<xs:element name="VersionCode">
						<xs:simpleType>
							<xs:restriction base="VersionCodeType">
								<xs:pattern value="XI0002D"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:element>
					<xs:element name="StatisticalCode" type="String_1_8"/>
					<xs:element name="Authorisation" type="DateTimeType"/>
					<xs:element name="TypeCode">
						<xs:simpleType>
							<xs:restriction base="TypeCodeType">
								<xs:pattern value="XI0002"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:element>
					<xs:element name="StatusCode" type="StatusCodeType"/>
				</xs:sequence>
			</xs:restriction>
		</xs:complexContent>
	</xs:complexType>
	<xs:complexType name="DiabetesReportPatientType">
		<xs:sequence>
			<xs:element ref="CivilRegistrationNumber"/>
			<xs:element ref="PersonSurnameName" minOccurs="0"/>
			<xs:element ref="PersonGivenName" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="ReportTypeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="debut"/>
			<xs:enumeration value="aarsrapport"/>
		</xs:restriction>
	</xs:simpleType>
	<!--  RETINA TYPES  -->
	<xs:simpleType name="EyeScreeningIndicationType">
		<xs:annotation>
			<xs:documentation>Indikationenfor den aktuelle oejenscreenings-undersoegelse. Det skal angives om undersoegelsen er en rutinescreening (rutinemaessig komplikationsscreening af diabetikeren), screening efter spedifik aktion (kontrol efter behandling eller udvidet kontrol) eller kontrol i forbindelse med graviditet.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="rutine"/>
			<xs:enumeration value="genopstart"/>
			<xs:enumeration value="graviditet"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PriorEyeSurgeryType">
		<xs:annotation>
			<xs:documentation>
Saafremt det fremgaar af patientjournalen at patienten tidligere har faaet foretaget
<b>kataraktoperation</b>
eller
<b>vitreoretinal kirurgi for diabeteskomplikation</b>
(paa hoejre og/eller venstre oeje) skal dette indberettes. Hvis patienten både har fået foretaget katarakt kirurgi og glaslegeme operation (vitreoretinal kirurgi) angives dette ved den tredie svarmuilghed katarakt_vitreoretinal.
</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="katarakt_kir"/>
			<xs:enumeration value="vitreoretinal_kir"/>
			<xs:enumeration value="intravitreal_behandling"/>
			<xs:enumeration value="vitreoretinal_intravitreal"/>
			<xs:enumeration value="katarakt_vitreoretinal"/>
			<xs:enumeration value="katarakt_intravitreal"/>
			<xs:enumeration value="katarakt_vitreoretinal_intravitreal"/>
			<xs:enumeration value="maculaer_laserbehandling"/>
			<xs:enumeration value="panretinal_laserbehandling"/>
			<xs:enumeration value=""/>
			<!--  Old values  -->
			<!--  New values  -->
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="VisualAcuityType">
		<xs:annotation>
			<xs:documentation>resultat af visusmaalingen i forbindelse med den aktuelle undersoegelse - for baade hoejre og venstre oeje.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="1,33"/>
			<xs:enumeration value="1,25"/>
			<xs:enumeration value="1,0"/>
			<xs:enumeration value="0,9"/>
			<xs:enumeration value="0,8"/>
			<xs:enumeration value="0,7"/>
			<xs:enumeration value="0,67"/>
			<xs:enumeration value="0,6"/>
			<xs:enumeration value="0,5"/>
			<xs:enumeration value="0,4"/>
			<xs:enumeration value="0,33"/>
			<xs:enumeration value="0,3"/>
			<xs:enumeration value="0,25"/>
			<xs:enumeration value="0,2"/>
			<xs:enumeration value="0,16"/>
			<xs:enumeration value="0,1"/>
			<xs:enumeration value="0,05"/>
			<xs:enumeration value="0,02"/>
			<xs:enumeration value="mindre_end_0,02"/>
			<xs:enumeration value="protese_eller_manglende_oeje"/>
			<xs:enumeration value="uoplyst"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ExaminationMethodType">
		<xs:annotation>
			<xs:documentation>Undersoegelsesmetoden som er anvendt ved den aktuelle undersoegelse af retina. Retina-undersoegelsen kan foretages som en funduskopi (kontaktglas, indirekte eller direkte oftalmoskopi) eller en vurdering af et fundusfoto.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="funduskopi"/>
			<xs:enumeration value="fundusfoto"/>
			<xs:enumeration value="funduskopi_fundusfoto"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="BlurredMediaType">
		<xs:annotation>
			<xs:documentation>
Saafremt hverken retinopati-status eller maculopati-status er vurderet skal der tages stilling til om dette skyldes sloerede medier. Hvis ja skal aarsagen angives som enten
<b>katarakt</b>
,
<b>glaslegemebloedning</b>
eller
<b>anden/ukendt aarsag</b>
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="nej"/>
			<xs:enumeration value="katarakt_sloer"/>
			<xs:enumeration value="glaslegeme_bloedning_sloer"/>
			<xs:enumeration value="andet"/>
			<xs:enumeration value="katarakt_glaslegeme_bloedning_sloer"/>
			<xs:enumeration value="katarakt_sloer_andet"/>
			<xs:enumeration value="glaslegeme_bloedning_sloer_andet"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="IndicationNextContactType">
		<xs:annotation>
			<xs:documentation>Indikation for den naeste oejenlaegekontakt. Indikationen skal angives som rutinescreening, screening ved graviditet, henvist til laserbehandling eller henvist til anden oejenbehandling (f.eks. vurdering, angiografi, katarakt operatin etc.). Ikke relevant skal angives saafremt oejenlaegen vurderer at yderligere oejenscreening eller oftalmologisk behandling ikke er relevant f.eks. fordi patienten er uigenkaldeligt blind på begge oejne.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="rutine"/>
			<xs:enumeration value="graviditet"/>
			<xs:enumeration value="henvist_behandling_diabetisk_retinopati"/>
			<xs:enumeration value="henvist_anden_behandling"/>
			<xs:enumeration value="overgaar_til_screening_hospitalsregi"/>
			<xs:enumeration value="ikke_relevant"/>
			<xs:enumeration value="henvist_laser_behandling"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="MonthsType">
		<xs:annotation>
			<xs:documentation>Planlagt eller anslaaet tidspunkt for naeste oejenscreeningsundersoegelse.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="3_md"/>
			<xs:enumeration value="6_md"/>
			<xs:enumeration value="9_md"/>
			<xs:enumeration value="12_md"/>
			<xs:enumeration value="18_md"/>
			<xs:enumeration value="24_md"/>
			<xs:enumeration value="36_md"/>
			<xs:enumeration value="48_md"/>
			<xs:enumeration value="4_md"/>
			<xs:enumeration value="5_md"/>
			<xs:enumeration value="7_md"/>
			<xs:enumeration value="10_md"/>
			<xs:enumeration value="11_md"/>
			<xs:enumeration value="13_md"/>
			<xs:enumeration value="14_md"/>
			<xs:enumeration value="15_md"/>
			<xs:enumeration value="16_md"/>
			<xs:enumeration value="17_md"/>
			<xs:enumeration value="19_md"/>
			<xs:enumeration value="20_md"/>
			<xs:enumeration value="21_md"/>
			<xs:enumeration value="22_md"/>
			<xs:enumeration value="23_md"/>
			<xs:enumeration value="30_md"/>
			<xs:enumeration value="42_md"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="RetinaStatusType">
		<xs:annotation>
			<xs:documentation>Resultatet af retina-undersoegelsen for baade hoejre og venstre oeje. Graderingen foelger Wilkinson CP et al: Proposed international clinical diabetic retinopathy and diabetic macular edema disease severity scales. Ophothamology 2003;110;1677-1682.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="ingen_dr"/>
			<xs:enumeration value="mild_dr"/>
			<xs:enumeration value="moderat_dr"/>
			<xs:enumeration value="praeproliferativ_dr"/>
			<xs:enumeration value="proliferativ_dr_ny"/>
			<xs:enumeration value="proliferativ_dr_recidiv"/>
			<xs:enumeration value="proliferativ_dr_stabil"/>
			<xs:enumeration value="vurdering_ikke_mulig"/>
			<xs:enumeration value="ikke_vurderet"/>
			<!--  Old Value  -->
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="DiabetesStatusType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="velreguleret"/>
			<xs:enumeration value="dysreguleret"/>
			<xs:enumeration value="ukendt"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="MaculopatiStatusType">
		<xs:annotation>
			<xs:documentation>Resultatet af maculopati-undersoegelsen for baade hoejre og venstre oeje. Graderingen foelger Wilkinson CP et al: Proposed international clinical diabetic retinopathy and diabetic macular edema disease severity scales. Ophothamology 2003;110;1677-1682.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="ingen"/>
			<xs:enumeration value="diabetisk_maculaoedem_ikke_behandlingskraevende"/>
			<xs:enumeration value="diabetisk_maculaoedem_CSME"/>
			<xs:enumeration value="diabetisk_maculaoedem_tidligere_laser_stabil"/>
			<xs:enumeration value="diabetisk_maculaoedem_tidligere_laser_recidiv"/>
			<xs:enumeration value="anden_type_af_maculopati_intet_diabetisk_maculaoedem)"/>
			<xs:enumeration value="vurdering_ikke_mulig"/>
			<xs:enumeration value="anden_type_maculopati"/>
			<xs:enumeration value="ikke_vurderet"/>
			<xs:enumeration value="diabetisk_maculaoedem_uden_CSME"/>
			<!--  Old values  -->
		</xs:restriction>
	</xs:simpleType>
	<!--  Negative Vans Receipt  -->
	<xs:element name="NegativeVansReceipt" type="NegativeVansReceiptType">
		<xs:annotation>
			<xs:documentation>Negativ Vans kvittering</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="NegativeVansReceiptType">
		<xs:annotation>
			<xs:documentation>Definition af en negativ Vans kvittering</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Letter" type="NegativeVansReceiptLetterType">
				<xs:annotation>
					<xs:documentation>Er en speciel lettertype der er en delmængde af den generelle LetterType, som begrænses til VersionCode=XC0130Q</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Sender" type="CTRLSenderType"/>
			<xs:element name="Receiver" type="CTRLReceiverType"/>
			<xs:element name="OriginalEmessage">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="OriginalEnvelopeIdentifier" type="String_1_36">
							<xs:annotation>
								<xs:documentation>OriginalKuvertNr</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="OriginalSender" type="CTRLSenderType"/>
						<xs:element name="OriginalReceiver" type="CTRLReceiverType"/>
						<xs:element name="RefuseCode" minOccurs="0">
							<xs:annotation>
								<xs:documentation>TEXTNR</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:enumeration value="ikke_specificeret"/>
									<xs:enumeration value="ukendt_lokationsnummer"/>
									<xs:enumeration value="problem_med_modtagerID"/>
									<xs:enumeration value="problem_med_version"/>
									<xs:enumeration value="syntaksfejl"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="RefuseText" type="BreakableText" minOccurs="0">
							<xs:annotation>
								<xs:documentation>AfvisningsAarsag</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="OriginalLetter" minOccurs="0" maxOccurs="99">
							<xs:complexType>
								<xs:sequence>
									<xs:element name="OriginalLetterIdentifier" type="String_1_36">
										<xs:annotation>
											<xs:documentation>OriginalBrevNr</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="OriginalVersionCode" type="OriginalVersionCodeType"/>
									<xs:element name="RefuseCode" minOccurs="0">
										<xs:annotation>
											<xs:documentation>TEXTNR</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:enumeration value="ikke_specificeret"/>
												<xs:enumeration value="ukendt_lokationsnummer"/>
												<xs:enumeration value="problem_med_modtagerID"/>
												<xs:enumeration value="problem_med_version"/>
												<xs:enumeration value="syntaksfejl"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="RefuseText" type="BreakableText" minOccurs="0">
										<xs:annotation>
											<xs:documentation>AfvisningsAarsag</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="NegativeVansReceiptLetterType">
		<xs:annotation>
			<xs:documentation>Er en speciel lettertype der er en delmængde af den generelle LetterType, som begrænses til VersionCode=XC0130Q</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Identifier" type="String_1_36">
				<xs:annotation>
					<xs:documentation>BrevNr</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="VersionCode">
				<xs:annotation>
					<xs:documentation>VERSION</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="VersionCodeType">
						<xs:pattern value="XC0130Q"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="StatisticalCode" type="String_1_8">
				<xs:annotation>
					<xs:documentation>BrvStat</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--  Positive Receipt  -->
	<xs:element name="PositiveReceipt" type="PositiveReceiptType">
		<xs:annotation>
			<xs:documentation>Positiv kvittering</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="PositiveReceiptType">
		<xs:annotation>
			<xs:documentation>Definition af en positiv kvittering</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Letter" type="PositiveReceiptLetterType">
				<xs:annotation>
					<xs:documentation>Er en speciel lettertype der er en delmængde af den generelle LetterType, som begrænses til VersionCode=XC0330Q</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Sender" type="CTRLSenderType"/>
			<xs:element name="Receiver" type="CTRLReceiverType"/>
			<xs:element name="OriginalEmessage">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="OriginalEnvelopeIdentifier" type="String_1_36">
							<xs:annotation>
								<xs:documentation>OriginalKuvertNr</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="OriginalSender" type="CTRLSenderType"/>
						<xs:element name="OriginalReceiver" type="CTRLReceiverType"/>
						<xs:element name="OriginalLetter" minOccurs="0" maxOccurs="99">
							<xs:complexType>
								<xs:sequence>
									<xs:element name="OriginalLetterIdentifier" type="String_1_36">
										<xs:annotation>
											<xs:documentation>OriginalBrevNr</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="OriginalVersionCode" type="OriginalVersionCodeType"/>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="PositiveReceiptLetterType">
		<xs:annotation>
			<xs:documentation>Er en speciel lettertype der er en delmængde af den generelle LetterType, som begrænses til VersionCode=XC0330Q</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Identifier" type="String_1_36">
				<xs:annotation>
					<xs:documentation>BrevNr</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="VersionCode">
				<xs:annotation>
					<xs:documentation>VERSION</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="VersionCodeType">
						<xs:pattern value="XC0330Q"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="StatisticalCode" type="String_1_8">
				<xs:annotation>
					<xs:documentation>BrvStat</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--  Negative Receipt  -->
	<xs:element name="NegativeReceipt" type="NegativeReceiptType">
		<xs:annotation>
			<xs:documentation>Negativ kvittering</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="NegativeReceiptType">
		<xs:annotation>
			<xs:documentation>Definition af en negativ kvittering</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Letter" type="NegativeReceiptLetterType">
				<xs:annotation>
					<xs:documentation>Er en speciel lettertype der er en delmængde af den generelle LetterType, som begrænses til VersionCode=XC0230Q</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Sender" type="CTRLSenderType"/>
			<xs:element name="Receiver" type="CTRLReceiverType"/>
			<xs:element name="OriginalEmessage">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="OriginalEnvelopeIdentifier" type="String_1_36">
							<xs:annotation>
								<xs:documentation>OriginalKuvertNr</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="OriginalSender" type="CTRLSenderType"/>
						<xs:element name="OriginalReceiver" type="CTRLReceiverType"/>
						<xs:element name="RefuseCode" minOccurs="0">
							<xs:annotation>
								<xs:documentation>TEXTNR</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:enumeration value="ikke_specificeret"/>
									<xs:enumeration value="ukendt_lokationsnummer"/>
									<xs:enumeration value="problem_med_modtagerID"/>
									<xs:enumeration value="problem_med_version"/>
									<xs:enumeration value="syntaksfejl"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="RefuseText" type="BreakableText" minOccurs="0">
							<xs:annotation>
								<xs:documentation>AfvisningsAarsag</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="OriginalLetter" minOccurs="0" maxOccurs="99">
							<xs:complexType>
								<xs:sequence>
									<xs:element name="OriginalLetterIdentifier" type="String_1_36">
										<xs:annotation>
											<xs:documentation>OriginalBrevNr</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="OriginalVersionCode" type="OriginalVersionCodeType"/>
									<xs:element name="RefuseCode" minOccurs="0">
										<xs:annotation>
											<xs:documentation>TEXTNR</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:enumeration value="ikke_specificeret"/>
												<xs:enumeration value="ukendt_lokationsnummer"/>
												<xs:enumeration value="problem_med_modtagerID"/>
												<xs:enumeration value="problem_med_version"/>
												<xs:enumeration value="syntaksfejl"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="RefuseText" type="BreakableText" minOccurs="0">
										<xs:annotation>
											<xs:documentation>AfvisningsAarsag</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="NegativeReceiptLetterType">
		<xs:annotation>
			<xs:documentation>Er en speciel lettertype der er en delmængde af den generelle LetterType, som begrænses til VersionCode=XC0230Q</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Identifier" type="String_1_36">
				<xs:annotation>
					<xs:documentation>BrevNr</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="VersionCode">
				<xs:annotation>
					<xs:documentation>VERSION</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="VersionCodeType">
						<xs:pattern value="XC0230Q"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="StatisticalCode" type="String_1_8">
				<xs:annotation>
					<xs:documentation>BrvStat</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--  Value Lists  -->
	<xs:simpleType name="AcknowledgementCodeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="minuspositivkvitt"/>
			<xs:enumeration value="pluspositivkvitt"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="VersionCodeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="XD0133L"/>
			<xs:enumeration value="XD0233L"/>
			<xs:enumeration value="XD0333L"/>
			<xs:enumeration value="XD0533L"/>
			<xs:enumeration value="XD1333L"/>
			<xs:enumeration value="XD9133L"/>
			<xs:enumeration value="XD1431C"/>
			<xs:enumeration value="XD1730C"/>
			<xs:enumeration value="XD2030C"/>
			<xs:enumeration value="XD1930C"/>
			<xs:enumeration value="XH0130R"/>
			<xs:enumeration value="XH0230R"/>
			<xs:enumeration value="XR0130K"/>
			<xs:enumeration value="XR0230M"/>
			<xs:enumeration value="XR0330P"/>
			<xs:enumeration value="XR0430P"/>
			<xs:enumeration value="XLMS015"/>
			<xs:enumeration value="XLMS016"/>
			<xs:enumeration value="XR6031W"/>
			<xs:enumeration value="XC0130Q"/>
			<xs:enumeration value="XC0230Q"/>
			<xs:enumeration value="XC0330Q"/>
			<xs:enumeration value="XQ0130K"/>
			<xs:enumeration value="XQ0230M"/>
			<xs:enumeration value="XQ0330P"/>
			<xs:enumeration value="XQ0430M"/>
			<xs:enumeration value="XA0132Z"/>
			<xs:enumeration value="XB0130X"/>
			<xs:enumeration value="XLA1211203A"/>
			<xs:enumeration value="XLA1251001A"/>
			<xs:enumeration value="XLA1411203A"/>
			<xs:enumeration value="XLA1451001A"/>
			<xs:enumeration value="XLA1651001A"/>
			<xs:enumeration value="XLA2011001A"/>
			<xs:enumeration value="XLA2051001A"/>
			<xs:enumeration value="XLA2111001A"/>
			<xs:enumeration value="XLA2151001A"/>
			<xs:enumeration value="XI0002D"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="IdentifierCodeType">
		<xs:annotation>
			<xs:documentation>Kode for aktør</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="sygehusafdelingsnummer"/>
			<xs:enumeration value="ydernummer"/>
			<xs:enumeration value="lokationsnummer"/>
			<xs:enumeration value="kommunenummer"/>
			<xs:enumeration value="SORkode"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="DiagnoseTypeCodeType">
		<xs:annotation>
			<xs:documentation>Kode for diagnose typen</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="SKSdiagnosekode"/>
			<xs:enumeration value="uspecificeretkode"/>
			<xs:enumeration value="ICPCkode"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="MedicalSpecialityCodeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="ikkeklassificeret"/>
			<xs:enumeration value="intern_medicin_sygehus"/>
			<xs:enumeration value="geriatri"/>
			<xs:enumeration value="hepatologi"/>
			<xs:enumeration value="haematologi"/>
			<xs:enumeration value="infektionsmedicin"/>
			<xs:enumeration value="kardiologi"/>
			<xs:enumeration value="med_allergologi"/>
			<xs:enumeration value="med_endokrinologi"/>
			<xs:enumeration value="med_gastroenterologi"/>
			<xs:enumeration value="med_lungesygdomme"/>
			<xs:enumeration value="nefrologi"/>
			<xs:enumeration value="reumatologi"/>
			<xs:enumeration value="dermato_venerologi_sygehus"/>
			<xs:enumeration value="neurologi"/>
			<xs:enumeration value="onkologi"/>
			<xs:enumeration value="kirurgi_sygehus"/>
			<xs:enumeration value="karkirurgi"/>
			<xs:enumeration value="kir_gastroenterologi"/>
			<xs:enumeration value="plastikkirurgi"/>
			<xs:enumeration value="thoraxkirurgi"/>
			<xs:enumeration value="urologi"/>
			<xs:enumeration value="gynaekologi_obstetrik_sygehus"/>
			<xs:enumeration value="neurokirurgi"/>
			<xs:enumeration value="ortopaedisk_kirurgi_sygehus"/>
			<xs:enumeration value="oftalmologi"/>
			<xs:enumeration value="oto_rhino_laryngologi"/>
			<xs:enumeration value="hospitalsodontologi"/>
			<xs:enumeration value="psykiatri_sygehus"/>
			<xs:enumeration value="boerne_ungdomspsykiatri"/>
			<xs:enumeration value="klin_biokemi"/>
			<xs:enumeration value="klin_fys_nuklearmedicin"/>
			<xs:enumeration value="klin_immunologi"/>
			<xs:enumeration value="klin_mikrobiologi"/>
			<xs:enumeration value="klin_neurofysiologi"/>
			<xs:enumeration value="patologisk_anatomi"/>
			<xs:enumeration value="diagnostisk_radiologi"/>
			<xs:enumeration value="klin_farmakologi"/>
			<xs:enumeration value="klin_genetik"/>
			<xs:enumeration value="anaestesiologi_sygehus"/>
			<xs:enumeration value="arbejdsmedicin"/>
			<xs:enumeration value="almen_medicin"/>
			<xs:enumeration value="samfundsmedicin"/>
			<xs:enumeration value="almenlaege_laegevagt"/>
			<xs:enumeration value="oejenlaege"/>
			<xs:enumeration value="oere_naese_halslaege"/>
			<xs:enumeration value="anaestesiologi_praksis"/>
			<xs:enumeration value="roentgen_kbh"/>
			<xs:enumeration value="dermato_venerologi_praksis"/>
			<xs:enumeration value="roentgen"/>
			<xs:enumeration value="reumatologi_fysiurgi"/>
			<xs:enumeration value="gynaekologi_obstetrik_praksis"/>
			<xs:enumeration value="intern_medicin_praksis"/>
			<xs:enumeration value="kirurgi_praksis"/>
			<xs:enumeration value="klinisk_kemi"/>
			<xs:enumeration value="neuromedicin"/>
			<xs:enumeration value="ortopaedisk_kirurgi_praksis"/>
			<xs:enumeration value="patologi "/>
			<xs:enumeration value="plastkirurgi"/>
			<xs:enumeration value="psykiatri_praksis"/>
			<xs:enumeration value="paediatri"/>
			<xs:enumeration value="boernepsykiatri"/>
			<xs:enumeration value="tropemedicin"/>
			<xs:enumeration value="tandlaege"/>
			<xs:enumeration value="fysioterapi"/>
			<xs:enumeration value="kiropraktor"/>
			<xs:enumeration value="briller"/>
			<xs:enumeration value="fodterapi"/>
			<xs:enumeration value="fodbehandlking"/>
			<xs:enumeration value="med_laboratorier"/>
			<xs:enumeration value="omegnslaboratorier"/>
			<xs:enumeration value="psykolog"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TypeCodeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="XDIS01"/>
			<xs:enumeration value="XDIS02"/>
			<xs:enumeration value="XDIS03"/>
			<xs:enumeration value="XDIS05"/>
			<xs:enumeration value="XDIS13"/>
			<xs:enumeration value="XDIS91"/>
			<xs:enumeration value="XDIS14"/>
			<xs:enumeration value="XDIS17"/>
			<xs:enumeration value="XDIS20"/>
			<xs:enumeration value="XDIS19"/>
			<xs:enumeration value="XREF01"/>
			<xs:enumeration value="XREF02"/>
			<xs:enumeration value="XRPT01"/>
			<xs:enumeration value="XRPT02"/>
			<xs:enumeration value="XRPT03"/>
			<xs:enumeration value="XRPT04"/>
			<xs:enumeration value="XPRE01"/>
			<xs:enumeration value="XPRE60"/>
			<xs:enumeration value="XCONTRL"/>
			<xs:enumeration value="XREQ01"/>
			<xs:enumeration value="XREQ02"/>
			<xs:enumeration value="XREQ03"/>
			<xs:enumeration value="XREQ04"/>
			<xs:enumeration value="XDAO01"/>
			<xs:enumeration value="XBIN01"/>
			<xs:enumeration value="XLA121"/>
			<xs:enumeration value="XLA125"/>
			<xs:enumeration value="XLA141"/>
			<xs:enumeration value="XLA145"/>
			<xs:enumeration value="XLA165"/>
			<xs:enumeration value="XLA201"/>
			<xs:enumeration value="XLA205"/>
			<xs:enumeration value="XLA211"/>
			<xs:enumeration value="XLA215"/>
			<xs:enumeration value="XI0001"/>
			<xs:enumeration value="XI0002"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="DiagnoseDescriptionCodeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="uspec_diagnose"/>
			<xs:enumeration value="henv_diagnose"/>
			<xs:enumeration value="bidiagnose"/>
			<xs:enumeration value="tillaegsdiagnose"/>
			<xs:enumeration value="aktionsdiagnose"/>
			<xs:enumeration value="midlertidig_diagnose"/>
			<xs:enumeration value="forloebsdiagnose"/>
			<xs:enumeration value="operation"/>
			<xs:enumeration value="roentgenundersoegelse"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="EpisodeOfCareStatusCodeType">
		<xs:annotation>
			<xs:documentation>Patient status</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="inaktiv"/>
			<xs:enumeration value="indlagt"/>
			<xs:enumeration value="ambulant"/>
			<xs:enumeration value="doed"/>
			<xs:enumeration value="ambulant_roentgen"/>
			<xs:enumeration value="udskrevet_til_hjemmet"/>
			<xs:enumeration value="udskrevet_til_andet"/>
			<xs:enumeration value="flyttet_til_sygehusafd"/>
			<xs:enumeration value="uoplyst"/>
			<xs:enumeration value="flyttet_til_sygehus"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="EpisodeOfCareStatusCode01Type">
		<xs:annotation>
			<xs:documentation>Patient status</xs:documentation>
		</xs:annotation>
		<xs:restriction base="EpisodeOfCareStatusCodeType">
			<xs:enumeration value="inaktiv"/>
			<xs:enumeration value="indlagt"/>
			<xs:enumeration value="ambulant"/>
			<xs:enumeration value="doed"/>
			<xs:enumeration value="ambulant_roentgen"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="EpisodeOfCareStatusCode02Type">
		<xs:annotation>
			<xs:documentation>Patient status 2</xs:documentation>
		</xs:annotation>
		<xs:restriction base="EpisodeOfCareStatusCodeType">
			<xs:enumeration value="indlagt"/>
			<xs:enumeration value="doed"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="EpisodeOfCareStatusCode03Type">
		<xs:restriction base="EpisodeOfCareStatusCodeType">
			<xs:enumeration value="doed"/>
			<xs:enumeration value="udskrevet_til_hjemmet"/>
			<xs:enumeration value="udskrevet_til_andet"/>
			<xs:enumeration value="flyttet_til_sygehusafd"/>
			<xs:enumeration value="uoplyst"/>
			<xs:enumeration value="flyttet_til_sygehus"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="RelationCodeType">
		<xs:annotation>
			<xs:documentation>Pårørendes relation til patienten</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="uspec_paaroerende"/>
			<xs:enumeration value="mor"/>
			<xs:enumeration value="far"/>
			<xs:enumeration value="barn"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TelephoneCodeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="privat"/>
			<xs:enumeration value="arbejde"/>
			<xs:enumeration value="mobil"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PriorityCodeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="elektiv"/>
			<xs:enumeration value="akut"/>
			<xs:enumeration value="saerlige_forhold"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ReferralStatusType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="ambulant"/>
			<xs:enumeration value="indlaeggelse"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TransportType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="ingen"/>
			<xs:enumeration value="liggende"/>
			<xs:enumeration value="siddende"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="InformationCodeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="ustruktureret"/>
			<xs:enumeration value="egen_laege"/>
			<xs:enumeration value="henvisning_modtaget"/>
			<xs:enumeration value="visitering"/>
			<xs:enumeration value="indkaldt"/>
			<xs:enumeration value="indlagt_paa"/>
			<xs:enumeration value="udenamts_kaution"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="OriginalVersionCodeType">
		<xs:annotation>
			<xs:documentation>ORGVERSION</xs:documentation>
		</xs:annotation>
		<xs:restriction base="String_1_7"/>
	</xs:simpleType>
	<xs:simpleType name="PathologyAnalysisCodeTypeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="PA1"/>
			<xs:enumeration value="PA2"/>
			<xs:enumeration value="PA3"/>
			<xs:enumeration value="PA4"/>
			<xs:enumeration value="PA5"/>
			<xs:enumeration value="PA6"/>
			<xs:enumeration value="PA7"/>
			<xs:enumeration value="PA8"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- <xs:simpleType name="PathologyAnalysisCodeTypeType">
		<xs:restriction base="xs:string">
		<xs:enumeration value="S100"/>
		<xs:enumeration value="S200"/>
		<xs:enumeration value="S300"/>
		<xs:enumeration value="S101"/>
		<xs:enumeration value="S102"/>
		<xs:enumeration value="S201"/>
		<xs:enumeration value="S202"/>
		<xs:enumeration value="S203"/>
		<xs:enumeration value="S301"/>
		<xs:enumeration value="T100"/>
		<xs:enumeration value="T200"/>
		<xs:enumeration value="T300"/>
		<xs:enumeration value="T400"/>
		<xs:enumeration value="T500"/>
		<xs:enumeration value="T998"/>
		<xs:enumeration value="I100"/>
		<xs:enumeration value="I101"/>
		<xs:enumeration value="I200"/>
		<xs:enumeration value="I300"/>
		<xs:enumeration value="I400"/>
		<xs:enumeration value="STAT01"/>
		<xs:enumeration value="STAT02"/>
		<xs:enumeration value="H01"/>
		<xs:enumeration value="H02"/>
		<xs:enumeration value="H03"/>
		<xs:enumeration value="H04"/>
		<xs:enumeration value="H05"/>
		<xs:enumeration value="H06"/>
		<xs:enumeration value="H07"/>
		<xs:enumeration value="H08"/>
		<xs:enumeration value="H09"/>
		<xs:enumeration value="H10"/>
		<xs:enumeration value="H11"/>
		<xs:enumeration value="H12"/>
		<xs:enumeration value="H13"/>
		<xs:enumeration value="H14"/>
		<xs:enumeration value="H15"/>
		<xs:enumeration value="H16"/>
		<xs:enumeration value="H17"/>
		<xs:enumeration value="H18"/>
		<xs:enumeration value="H19"/>
		<xs:enumeration value="H20"/>
		<xs:enumeration value="H21"/>
		<xs:enumeration value="H22"/>
		<xs:enumeration value="H23"/>
		<xs:enumeration value="H24"/>
		<xs:enumeration value="H25"/>
		<xs:enumeration value="H26"/>
		<xs:enumeration value="H27"/>
		<xs:enumeration value="H28"/>
		<xs:enumeration value="XR0230M"/>
		<xs:enumeration value="XQ0130K"/>
		<xs:enumeration value="XQ0230M"/>
		<xs:enumeration value="XQ0330P"/>
		<xs:enumeration value="XA0130Z"/>
		<xs:enumeration value="XU0130U"/>
		<xs:enumeration value="XU0230U"/>
		<xs:enumeration value="XU0330U"/>
		<xs:enumeration value="XU0430U"/>
		<xs:enumeration value="XU0530U"/>
		<xs:enumeration value="XD2030C"/>
		<xs:enumeration value="XD1430C"/>
		<xs:enumeration value="XD1730C"/>
		<xs:enumeration value="XD1830C"/>
		<xs:enumeration value="XD1930C"/>
		<xs:enumeration value="XI0130D"/>
		<xs:enumeration value="XI0230D"/>
		<xs:enumeration value="XI0330D"/>
		<xs:enumeration value="XI0430D"/>
		<xs:enumeration value="XSST012"/>
		</xs:restriction>
		</xs:simpleType> -->
	<!--  Clinical Types  -->
	<xs:complexType name="DiagnosesType">
		<xs:sequence>
			<xs:element name="Main" type="SimpelDiagnoseType" minOccurs="0"/>
			<xs:element name="MainAdditional" type="SimpelDiagnoseType" minOccurs="0" maxOccurs="5"/>
			<xs:element name="Other" type="FullQualifiedDiagnoseOrTreatmentType" minOccurs="0" maxOccurs="50"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="ClinicalInformation" type="ClinicalInformationType"/>
	<xs:complexType name="ClinicalInformationType">
		<xs:sequence>
			<xs:element name="Signed" type="DateTimeType" minOccurs="0"/>
			<xs:element name="Text01" type="FormattedTextType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="SimpelDiagnoseType">
		<xs:sequence>
			<xs:element name="DiagnoseCode" type="String_1_17"/>
			<xs:element name="DiagnoseText" type="String_1_70"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="QualifiedDiagnoseType">
		<xs:sequence>
			<xs:element name="DiagnoseCode" type="String_1_17"/>
			<xs:element name="DiagnoseTypeCode" type="DiagnoseTypeCodeType"/>
			<xs:element name="DiagnoseText" type="String_1_70"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="XQualifiedDiagnoseType">
		<xs:sequence>
			<xs:element name="DiagnoseCode" type="String_1_17" minOccurs="0"/>
			<xs:element name="DiagnoseTypeCode" type="DiagnoseTypeCodeType"/>
			<xs:element name="DiagnoseText" type="String_1_70"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="QualifiedDiagnoseOrTreatmentType">
		<xs:annotation>
			<xs:documentation>kvalificeret diagnose eller behandling</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="DiagnoseDescriptionCode" type="DiagnoseDescriptionCodeType"/>
			<xs:element name="DiagnoseCode" type="String_1_17" minOccurs="0"/>
			<xs:element name="DiagnoseTypeCode" type="DiagnoseTypeCodeType"/>
			<xs:element name="DiagnoseText" type="String_1_70"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="FullQualifiedDiagnoseOrTreatmentType">
		<xs:annotation>
			<xs:documentation>Fuld kvalificeret diagnose</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="DiagnoseDescriptionCode" type="DiagnoseDescriptionCodeType"/>
			<xs:element name="DiagnoseCode" type="String_1_17"/>
			<xs:element name="DiagnoseTypeCode" type="DiagnoseTypeCodeType"/>
			<xs:element name="DiagnoseText" type="String_1_70"/>
			<xs:element name="DiagnoseDateTime" type="DateTimeType" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<!--  Letter Type  -->
	<xs:complexType name="LetterType">
		<xs:sequence>
			<xs:element name="Identifier" type="String_1_36"/>
			<xs:element name="VersionCode" type="VersionCodeType"/>
			<xs:element name="StatisticalCode" type="String_1_8"/>
			<xs:element name="Authorisation" type="DateTimeType"/>
			<xs:element name="TypeCode" type="TypeCodeType"/>
			<xs:element name="StatusCode" type="StatusCodeType"/>
			<xs:element name="EpisodeOfCareIdentifier" type="String_1_35" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="StatusCodeType">
		<xs:annotation>
			<xs:documentation>Angiver om det er et nyt brev eller en rettelse til et gammelt, eller en annullering.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="nytbrev"/>
			<xs:enumeration value="rettetbrev"/>
			<xs:enumeration value="annulleretbrev"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="StatusCodeTypeN">
		<xs:annotation>
			<xs:documentation>Angiver om det er et nyt brev</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="nytbrev"/>
		</xs:restriction>
	</xs:simpleType>
	<!--  Receiver  -->
	<xs:element name="Receiver" type="ReceiverType"/>
	<xs:complexType name="ReceiverType">
		<xs:sequence>
			<xs:element ref="EANIdentifier"/>
			<xs:element ref="Identifier"/>
			<xs:element ref="IdentifierCode"/>
			<xs:element ref="OrganisationName" minOccurs="0"/>
			<xs:element ref="DepartmentName" minOccurs="0"/>
			<xs:element ref="UnitName" minOccurs="0"/>
			<xs:element ref="StreetName" minOccurs="0"/>
			<xs:element ref="SuburbName" minOccurs="0"/>
			<xs:element ref="DistrictName" minOccurs="0"/>
			<xs:element ref="PostCodeIdentifier" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="CTRLReceiverType">
		<xs:sequence>
			<xs:element ref="EANIdentifier"/>
		</xs:sequence>
	</xs:complexType>
	<!--  Sender  -->
	<xs:element name="Sender" type="SenderType"/>
	<xs:complexType name="SenderType">
		<xs:sequence>
			<xs:element ref="EANIdentifier"/>
			<xs:element ref="Identifier"/>
			<xs:element ref="IdentifierCode"/>
			<xs:element ref="OrganisationName"/>
			<xs:element ref="DepartmentName" minOccurs="0"/>
			<xs:element ref="UnitName" minOccurs="0"/>
			<xs:element ref="StreetName" minOccurs="0"/>
			<xs:element ref="SuburbName" minOccurs="0"/>
			<xs:element ref="DistrictName" minOccurs="0"/>
			<xs:element ref="PostCodeIdentifier" minOccurs="0"/>
			<xs:element ref="TelephoneSubscriberIdentifier" minOccurs="0"/>
			<xs:element ref="MedicalSpecialityCode" minOccurs="0"/>
			<xs:element ref="Contact" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="CTRLSenderType">
		<xs:sequence>
			<xs:element ref="EANIdentifier"/>
		</xs:sequence>
	</xs:complexType>
	<!--  Patient  -->
	<xs:element name="Patient" type="PatientType"/>
	<xs:complexType name="PatientType">
		<xs:sequence>
			<xs:choice>
				<xs:element ref="CivilRegistrationNumber"/>
				<xs:element ref="AlternativeIdentifier"/>
			</xs:choice>
			<xs:element ref="PersonSurnameName"/>
			<xs:element ref="PersonGivenName" minOccurs="0"/>
			<xs:element ref="StreetName" minOccurs="0"/>
			<xs:element ref="SuburbName" minOccurs="0"/>
			<xs:element ref="DistrictName" minOccurs="0"/>
			<xs:element ref="PostCodeIdentifier" minOccurs="0"/>
			<xs:element ref="OccupancyText" minOccurs="0"/>
			<xs:element ref="EpisodeOfCareStatusCode"/>
		</xs:sequence>
	</xs:complexType>
	<!--  Contact  -->
	<xs:element name="Contact" type="ContactType"/>
	<xs:complexType name="ContactType">
		<xs:sequence>
			<xs:element ref="Identifier"/>
			<xs:element ref="IdentifierCode"/>
			<xs:element ref="OrganisationName" minOccurs="0"/>
			<xs:element ref="DepartmentName" minOccurs="0"/>
			<xs:element ref="UnitName" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<!--  Formatted Text  -->
	<xs:complexType name="FormattedTextType" mixed="true">
		<xs:choice minOccurs="0" maxOccurs="unbounded">
			<xs:element ref="Space"/>
			<xs:element ref="Break"/>
			<xs:element ref="Right"/>
			<xs:element ref="Center"/>
			<xs:element ref="Bold"/>
			<xs:element ref="Italic"/>
			<xs:element ref="Underline"/>
			<xs:element ref="FixedFont"/>
		</xs:choice>
	</xs:complexType>
	<xs:element name="FixedFont" type="SimpleFormattedText"/>
	<xs:complexType name="SimpleFormattedText" mixed="true">
		<xs:choice minOccurs="0" maxOccurs="unbounded">
			<xs:element ref="Space"/>
			<xs:element ref="Break"/>
			<xs:element ref="Right"/>
			<xs:element ref="Center"/>
			<xs:element ref="Bold"/>
			<xs:element ref="Italic"/>
			<xs:element ref="Underline"/>
		</xs:choice>
	</xs:complexType>
	<xs:element name="Right" type="BreakableText"/>
	<xs:element name="Center" type="BreakableText"/>
	<xs:element name="Bold" type="BreakableText"/>
	<xs:element name="Italic" type="BreakableText"/>
	<xs:element name="Underline" type="BreakableText"/>
	<xs:complexType name="BreakableText" mixed="true">
		<xs:choice minOccurs="0" maxOccurs="unbounded">
			<xs:element ref="Space"/>
			<xs:element ref="Break"/>
		</xs:choice>
	</xs:complexType>
	<xs:element name="Break">
		<xs:complexType/>
	</xs:element>
	<xs:element name="Space">
		<xs:complexType/>
	</xs:element>
	<!--  General Elements  -->
	<xs:element name="AlternativeIdentifier" type="AlternativeCprType"/>
	<xs:element name="CivilRegistrationNumber" type="CivilRegistrationNumberType"/>
	<xs:element name="RelationCode" type="RelationCodeType"/>
	<xs:element name="PersonIdentifier" type="String_1_10"/>
	<xs:element name="PersonSurnameName" type="String_1_70"/>
	<xs:element name="PersonGivenName" type="String_1_70"/>
	<xs:element name="OccupancyText" type="String_1_35"/>
	<xs:element name="EpisodeOfCareStatusCode" type="EpisodeOfCareStatusCode01Type"/>
	<xs:element name="EANIdentifier" type="EANIdentifierType"/>
	<xs:element name="Identifier" type="String_1_20"/>
	<xs:element name="IdentifierCode" type="IdentifierCodeType"/>
	<xs:element name="OrganisationName" type="String_1_35"/>
	<xs:element name="DepartmentName" type="String_1_35"/>
	<xs:element name="UnitName" type="String_1_35"/>
	<xs:element name="StreetName" type="String_1_35"/>
	<xs:element name="SuburbName" type="String_1_35"/>
	<xs:element name="DistrictName" type="String_1_35"/>
	<xs:element name="PostCodeIdentifier">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:maxLength value="9"/>
				<xs:minLength value="0"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="TelephoneCode" type="TelephoneCodeType"/>
	<xs:element name="TelephoneSubscriberIdentifier" type="String_1_25"/>
	<xs:element name="TelefaxSubscriberIdentifier" type="String_1_25"/>
	<xs:element name="EmailIdentifier" type="String_1_35"/>
	<xs:element name="MedicalSpecialityCode" type="MedicalSpecialityCodeType"/>
	<xs:element name="ObjectIdentifier" type="String_1_35"/>
	<xs:element name="ObjectCode" type="ObjectCodeType"/>
	<xs:element name="ObjectExtensionCode" type="ObjectExtensionCodeType"/>
	<xs:element name="OriginalObjectSize" type="xs:positiveInteger"/>
	<xs:element name="AnswerTo">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="EANIdentifier"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="AnalysisCodeType" type="AnalysisCodeTypeType"/>
	<xs:element name="AnalysisCode" type="String_1_8"/>
	<xs:element name="AnalysisCodeResponsible" type="String_1_3"/>
	<xs:element name="Analysis" type="AnalysisType"/>
	<xs:complexType name="AnalysisType">
		<xs:sequence>
			<xs:element ref="AnalysisCode"/>
			<xs:element ref="AnalysisCodeType"/>
			<xs:element ref="AnalysisCodeResponsible"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="AnalysisCompleteType">
		<xs:complexContent>
			<xs:extension base="AnalysisType">
				<xs:sequence>
					<xs:element ref="AnalysisShortName" minOccurs="0"/>
					<xs:element ref="AnalysisCompleteName"/>
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	<xs:complexType name="MicrobiologyAnalysisType">
		<xs:sequence>
			<xs:element name="AnalysisCode" type="String_1_17"/>
			<xs:element ref="AnalysisCodeType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="PathologyAnalysisType">
		<xs:sequence>
			<xs:sequence>
				<xs:element ref="AnalysisCode"/>
				<xs:element name="AnalysisCodeType" type="PathologyAnalysisCodeTypeType"/>
				<xs:element ref="AnalysisShortName"/>
			</xs:sequence>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="AnalysisCompleteName" type="BreakableText"/>
	<xs:element name="AnalysisShortName" type="String_1_35"/>
	<xs:element name="SamplingDateTimeType">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="faktisk"/>
				<xs:enumeration value="oensket"/>
				<xs:enumeration value=""/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="SamplingDateTime" type="DateTimeType"/>
	<xs:element name="RequisitionDateTime" type="DateTimeType">
		<xs:annotation>
			<xs:documentation>RekvTid</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="SamplingLocationCode">
		<xs:annotation>
			<xs:documentation>PRKODE</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="rekvirenten"/>
				<xs:enumeration value="laboratoriet"/>
				<xs:enumeration value="patienten"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="AnalysisMDSName" type="AnalysisMDSNameType">
		<xs:annotation>
			<xs:documentation>Undersoegelsesnavn:Materiale:Lokalisation</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="AnalysisMDSNameType">
		<xs:sequence>
			<xs:element name="Examination" type="String_1_70"/>
			<xs:element name="Material" type="String_1_70" minOccurs="0"/>
			<xs:element name="Location" type="String_1_70" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="MICAnalysisCode" type="String_1_17">
		<xs:annotation>
			<xs:documentation>LabKode</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="RequisitionGroup">
		<xs:annotation>
			<xs:documentation>FTX+AGR</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Identifier" type="String_1_8">
					<xs:annotation>
						<xs:documentation>Rekvisitionsgruppe</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="IdentifierResponsible" type="String_1_3">
					<xs:annotation>
						<xs:documentation>LokalLabOrg</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="Name" type="String_1_70">
					<xs:annotation>
						<xs:documentation>RekvisitionsgruppeNavn</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Order">
		<xs:annotation>
			<xs:documentation>Sorteringsorden</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:int">
				<xs:minInclusive value="1"/>
				<xs:maxInclusive value="999"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:group name="AdressGroup">
		<xs:sequence>
			<xs:element ref="StreetName"/>
			<xs:element ref="SuburbName"/>
			<xs:element ref="DistrictName"/>
			<xs:element ref="PostCodeIdentifier"/>
		</xs:sequence>
	</xs:group>
	<!--  General Types  -->
	<xs:simpleType name="AlternativeCprType">
		<xs:annotation>
			<xs:documentation>Erstatnings CPR</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:length value="10"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="EANIdentifierType">
		<xs:annotation>
			<xs:documentation>Edifact lokationsnr</xs:documentation>
		</xs:annotation>
		<xs:restriction base="String_1_35"/>
	</xs:simpleType>
	<xs:simpleType name="String_1_3">
		<xs:annotation>
			<xs:documentation>Streng der har 1-3 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_7">
		<xs:annotation>
			<xs:documentation>Streng der har 1-7 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="7"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_8">
		<xs:annotation>
			<xs:documentation>Streng der har 1-8 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="8"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_10">
		<xs:annotation>
			<xs:documentation>Streng der har 1-10 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="10"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_12">
		<xs:annotation>
			<xs:documentation>Streng der har 1-12 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="12"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_14">
		<xs:annotation>
			<xs:documentation>Streng der har 1-14 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="14"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_16">
		<xs:annotation>
			<xs:documentation>Streng der har 1-16 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="16"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_17">
		<xs:annotation>
			<xs:documentation>Streng der har 1-17 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="17"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_15">
		<xs:annotation>
			<xs:documentation>Streng der har 1-15 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="15"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_18">
		<xs:annotation>
			<xs:documentation>Streng der har 1-18 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="18"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_20">
		<xs:annotation>
			<xs:documentation>Streng der har 1-20 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="20"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_25">
		<xs:annotation>
			<xs:documentation>Streng der har 1-25 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="25"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_35">
		<xs:annotation>
			<xs:documentation>Streng der har 1-35 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="35"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_36">
		<xs:annotation>
			<xs:documentation>Streng der har 1-35 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="36"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_70">
		<xs:annotation>
			<xs:documentation>Streng der har 1-70 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="70"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_210">
		<xs:annotation>
			<xs:documentation>Streng der har 1-210 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="210"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_350">
		<xs:annotation>
			<xs:documentation>Streng der har 1-350 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="350"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_1050">
		<xs:annotation>
			<xs:documentation>Streng der har 1-1050 tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1050"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1_Unbounded">
		<xs:annotation>
			<xs:documentation>Streng der har 1-uendeligt tegn</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="BoolAs_01">
		<xs:annotation>
			<xs:documentation>Boolsk værdi, hvor 1=Sandt og 0=Falsk</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:int">
			<xs:minInclusive value="0"/>
			<xs:maxInclusive value="1"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Time_hh_mm_ss">
		<xs:annotation>
			<xs:documentation>Tider der er på formen hh:mm:ss</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="(([0-1][0-9])|(2[0-3])):[0-5][0-9]:[0-5][0-9]"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Time_hh_mm">
		<xs:annotation>
			<xs:documentation>Tider der er på formen hh:mm</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="(([0-1][0-9])|(2[0-3])):[0-5][0-9]"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="DateTimeType">
		<xs:annotation>
			<xs:documentation>Dato tid</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Date" type="DateType"/>
			<xs:element name="Time" type="Time_hh_mm"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="DateType">
		<xs:restriction base="xs:date">
			<xs:pattern value="[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="DateTimeIntervalType">
		<xs:sequence>
			<xs:element name="StartDateTime" type="DateTimeType"/>
			<xs:element name="EndDateTime" type="DateTimeType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="ObjectCodeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="tekstfil"/>
			<xs:enumeration value="billede"/>
			<xs:enumeration value="program"/>
			<xs:enumeration value="vektor_grafik"/>
			<xs:enumeration value="biosignaler"/>
			<xs:enumeration value="multimedie"/>
			<xs:enumeration value="proprietaert_indhold"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ObjectExtensionCodeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="pcx"/>
			<xs:enumeration value="tiff"/>
			<xs:enumeration value="jpeg"/>
			<xs:enumeration value="gif"/>
			<xs:enumeration value="bmp"/>
			<xs:enumeration value="png"/>
			<xs:enumeration value="mpg"/>
			<xs:enumeration value="dcm"/>
			<xs:enumeration value="scp"/>
			<xs:enumeration value="txt"/>
			<xs:enumeration value="rtf"/>
			<xs:enumeration value="doc"/>
			<xs:enumeration value="xls"/>
			<xs:enumeration value="wpd"/>
			<xs:enumeration value="exe"/>
			<xs:enumeration value="pdf"/>
			<xs:enumeration value="wav"/>
			<xs:enumeration value="avi"/>
			<xs:enumeration value="mid"/>
			<xs:enumeration value="rmi"/>
			<xs:enumeration value="com"/>
			<xs:enumeration value="zip"/>
			<xs:enumeration value="bin"/>
			<xs:enumeration value="inh"/>
			<xs:enumeration value="plo"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="AnalysisCodeTypeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="iupac"/>
			<xs:enumeration value="lokal"/>
		</xs:restriction>
	</xs:simpleType>
	<!--  Civil Registration Number  -->
	<xs:simpleType name="CivilRegistrationNumberType">
		<xs:restriction base="xs:string">
			<xs:pattern value="((((0[1-9]|1[0-9]|2[0-9]|3[0-1])(01|03|05|07|08|10|12))|((0[1-9]|1[0-9]|2[0-9]|30)(04|06|09|11))|((0[1-9]|1[0-9]|2[0-9])(02)))[0-9]{6})|0000000000"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="YesNoType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="ja"/>
			<xs:enumeration value="nej"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PriorEyeSurgeryV2Type">
		<xs:restriction base="xs:string">
			<xs:enumeration value="katarakt_kir"/>
			<xs:enumeration value="vitreoretinal_kir"/>
			<xs:enumeration value="intravitreal_behandling"/>
			<xs:enumeration value="maculaer_laserbehandling"/>
			<xs:enumeration value="panretinal_laserbehandling"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
