1 |
<?xml version="1.0" encoding="UTF-8"?> |
= |
1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:das="https://www.das-pflege.de" elementFormDefault="qualified" vc:minVersion="1.1" xpathDefaultNamespace="##targetNamespace"> |
|
2 |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:das="https://www.das-pflege.de" elementFormDefault="qualified" vc:minVersion="1.1" xpathDefaultNamespace="##targetNamespace"> |
3 |
<xs:include schemaLocation="../das_datatypes.xsd"/> |
|
3 |
<xs:include schemaLocation="../das_datatypes.xsd"/> |
4 |
<xs:include schemaLocation="das_qs_datatypes.xsd"/> |
|
4 |
<xs:include schemaLocation="das_qs_datatypes.xsd"/> |
5 |
<xs:complexType name="das_qs_data_facility_type"> |
|
5 |
<xs:complexType name="das_qs_data_facility_type"> |
6 |
<xs:annotation> |
|
6 |
<xs:annotation> |
7 |
<xs:documentation>Erhebungsbogen zur Erfassung von administrativen Angaben zur |
|
7 |
<xs:documentation>Erhebungsbogen zur Erfassung von administrativen Angaben zur |
8 |
Vollzähligkeitsanalyse</xs:documentation> |
|
8 |
Vollzähligkeitsanalyse</xs:documentation> |
9 |
</xs:annotation> |
|
9 |
</xs:annotation> |
10 |
<xs:sequence> |
|
10 |
<xs:sequence> |
11 |
<xs:element name="BELEGUNGSKAPAZITAET"> |
|
11 |
<xs:element name="BELEGUNGSKAPAZITAET"> |
12 |
<xs:annotation> |
|
12 |
<xs:annotation> |
13 |
<xs:documentation>Belegungskapazität</xs:documentation> |
|
13 |
<xs:documentation>Belegungskapazität</xs:documentation> |
14 |
<xs:appinfo> |
|
14 |
<xs:appinfo> |
15 |
<das:unit>Plätze/Betten</das:unit> |
|
15 |
<das:unit>Plätze/Betten</das:unit> |
16 |
<das:caption_id>1</das:caption_id> |
<> |
16 |
<das:caption_id>16</das:caption_id> |
17 |
<das:caption_header>Angaben zur Vollzähligkeitsanalyse</das:caption_header> |
= |
17 |
<das:caption_header>Angaben zur Vollzähligkeitsanalyse</das:caption_header> |
18 |
</xs:appinfo> |
|
18 |
</xs:appinfo> |
19 |
</xs:annotation> |
|
19 |
</xs:annotation> |
20 |
<xs:complexType> |
|
20 |
<xs:complexType> |
21 |
<xs:attribute name="value" use="required"> |
|
21 |
<xs:attribute name="value" use="required"> |
22 |
<xs:simpleType> |
|
22 |
<xs:simpleType> |
23 |
<xs:restriction base="xs:int"> |
|
23 |
<xs:restriction base="xs:int"> |
24 |
<xs:totalDigits value="3"/> |
|
24 |
<xs:totalDigits value="3"/> |
25 |
<xs:minInclusive value="1"/> |
|
25 |
<xs:minInclusive value="1"/> |
26 |
</xs:restriction> |
|
26 |
</xs:restriction> |
27 |
</xs:simpleType> |
|
27 |
</xs:simpleType> |
28 |
</xs:attribute> |
|
28 |
</xs:attribute> |
29 |
</xs:complexType> |
|
29 |
</xs:complexType> |
30 |
</xs:element> |
|
30 |
</xs:element> |
31 |
<xs:element name="BELEGUNGAMSTICHTAG"> |
|
31 |
<xs:element name="BELEGUNGAMSTICHTAG"> |
32 |
<xs:annotation> |
|
32 |
<xs:annotation> |
33 |
<xs:documentation>Belegungszahl am Stichtag</xs:documentation> |
|
33 |
<xs:documentation>Belegungszahl am Stichtag</xs:documentation> |
34 |
<xs:appinfo> |
|
34 |
<xs:appinfo> |
35 |
<das:unit>Bewohner und Bewohnerinnen</das:unit> |
|
35 |
<das:unit>Bewohner und Bewohnerinnen</das:unit> |
36 |
<das:caption_id>1</das:caption_id> |
<> |
36 |
<das:caption_id>16</das:caption_id> |
37 |
<das:caption_header>Angaben zur Vollzähligkeitsanalyse</das:caption_header> |
= |
37 |
<das:caption_header>Angaben zur Vollzähligkeitsanalyse</das:caption_header> |
38 |
</xs:appinfo> |
|
38 |
</xs:appinfo> |
39 |
</xs:annotation> |
|
39 |
</xs:annotation> |
40 |
<xs:complexType> |
|
40 |
<xs:complexType> |
41 |
<xs:attribute name="value" use="required"> |
|
41 |
<xs:attribute name="value" use="required"> |
42 |
<xs:simpleType> |
|
42 |
<xs:simpleType> |
43 |
<xs:restriction base="xs:int"> |
|
43 |
<xs:restriction base="xs:int"> |
44 |
<xs:totalDigits value="3"/> |
|
44 |
<xs:totalDigits value="3"/> |
45 |
<xs:minInclusive value="0"/> |
+- |
|
|
46 |
</xs:restriction> |
= |
45 |
</xs:restriction> |
47 |
</xs:simpleType> |
|
46 |
</xs:simpleType> |
48 |
</xs:attribute> |
|
47 |
</xs:attribute> |
49 |
</xs:complexType> |
|
48 |
</xs:complexType> |
50 |
</xs:element> |
|
49 |
</xs:element> |
|
|
-+ |
50 |
<xs:element name="validation_status" type="validation_status_type" minOccurs="0"> |
|
|
|
51 |
<xs:annotation> |
|
|
|
52 |
<xs:documentation>Umschlagselement für Informationen zur Plausibilitätsprüfung</xs:documentation> |
|
|
|
53 |
</xs:annotation> |
|
|
|
54 |
</xs:element> |
51 |
</xs:sequence> |
= |
55 |
</xs:sequence> |
52 |
<xs:assert test="if(not(exists(BELEGUNGSKAPAZITAET/@value)) or string-length(xs:string(BELEGUNGSKAPAZITAET/@value)) = 0 or xs:string(BELEGUNGSKAPAZITAET/@value) = '') then false() else true()"> |
|
56 |
<xs:assert test="if(not(exists(BELEGUNGSKAPAZITAET/@value)) or string-length(xs:string(BELEGUNGSKAPAZITAET/@value)) = 0 or xs:string(BELEGUNGSKAPAZITAET/@value) = '') then false() else true()"> |
53 |
<xs:annotation> |
|
57 |
<xs:annotation> |
54 |
<xs:appinfo> |
|
58 |
<xs:appinfo> |
55 |
<das:rule_id value="10061"/> |
|
59 |
<das:rule_id value="10061"/> |
56 |
<das:rule_text value="Im Pflichtfeld ['Belegungskapazität'] ist kein Wert angegeben"/> |
<> |
60 |
<das:rule_text value="Das Datenfeld 'Belegungskapazität' ist nicht ausgefüllt"/> |
57 |
<das:rule_type value="ERROR"/> |
= |
61 |
<das:rule_type value="ERROR"/> |
58 |
<das:rule_fields> |
|
62 |
<das:rule_fields> |
59 |
<das:field value="BELEGUNGSKAPAZITAET"/> |
|
63 |
<das:field value="BELEGUNGSKAPAZITAET"/> |
60 |
</das:rule_fields> |
|
64 |
</das:rule_fields> |
61 |
</xs:appinfo> |
|
65 |
</xs:appinfo> |
62 |
</xs:annotation> |
|
66 |
</xs:annotation> |
63 |
</xs:assert> |
|
67 |
</xs:assert> |
64 |
<xs:assert test="if(not(exists(BELEGUNGAMSTICHTAG/@value)) or string-length(xs:string(BELEGUNGAMSTICHTAG/@value)) = 0 or xs:string(BELEGUNGAMSTICHTAG/@value) = '') then false() else true()"> |
|
68 |
<xs:assert test="if(not(exists(BELEGUNGAMSTICHTAG/@value)) or string-length(xs:string(BELEGUNGAMSTICHTAG/@value)) = 0 or xs:string(BELEGUNGAMSTICHTAG/@value) = '') then false() else true()"> |
65 |
<xs:annotation> |
|
69 |
<xs:annotation> |
66 |
<xs:appinfo> |
|
70 |
<xs:appinfo> |
67 |
<das:rule_id value="10062"/> |
|
71 |
<das:rule_id value="10062"/> |
68 |
<das:rule_text value="Im Pflichtfeld ['Belegungszahl am Stichtag'] ist kein Wert angegeben"/> |
<> |
72 |
<das:rule_text value="Das Datenfeld 'Belegungszahl am Stichtag' ist nicht ausgefüllt"/> |
69 |
<das:rule_type value="ERROR"/> |
= |
73 |
<das:rule_type value="ERROR"/> |
70 |
<das:rule_fields> |
|
74 |
<das:rule_fields> |
71 |
<das:field value="BELEGUNGAMSTICHTAG"/> |
|
75 |
<das:field value="BELEGUNGAMSTICHTAG"/> |
72 |
</das:rule_fields> |
|
76 |
</das:rule_fields> |
73 |
</xs:appinfo> |
|
77 |
</xs:appinfo> |
74 |
</xs:annotation> |
|
78 |
</xs:annotation> |
75 |
</xs:assert> |
|
79 |
</xs:assert> |
76 |
<xs:assert test="if(exists(BELEGUNGSKAPAZITAET/@value) and (not(BELEGUNGSKAPAZITAET/@value castable as xs:int) or string-length(xs:string(BELEGUNGSKAPAZITAET/@value)) > 3)) then false() else true()"> |
|
80 |
<xs:assert test="if(exists(BELEGUNGSKAPAZITAET/@value) and (not(BELEGUNGSKAPAZITAET/@value castable as xs:int) or string-length(xs:string(BELEGUNGSKAPAZITAET/@value)) > 3)) then false() else true()"> |
77 |
<xs:annotation> |
|
81 |
<xs:annotation> |
78 |
<xs:appinfo> |
|
82 |
<xs:appinfo> |
79 |
<das:rule_id value="30097"/> |
|
83 |
<das:rule_id value="30097"/> |
80 |
<das:rule_text value="Der Datentyp des Datenfeldes ['Belegungskapazität'] entspricht nicht dem vorgegebenen Datentyp: xs:int mit einer Feldlänge von 3"/> |
<> |
84 |
<das:rule_text value="Der Datentyp des Datenfeldes 'Belegungskapazität' entspricht nicht dem vorgegebenen Datentyp: xs:int mit einer Feldlänge von 3"/> |
81 |
<das:rule_type value="ERROR"/> |
= |
85 |
<das:rule_type value="ERROR"/> |
82 |
<das:rule_fields> |
|
86 |
<das:rule_fields> |
83 |
<das:field value="BELEGUNGSKAPAZITAET"/> |
|
87 |
<das:field value="BELEGUNGSKAPAZITAET"/> |
84 |
</das:rule_fields> |
|
88 |
</das:rule_fields> |
85 |
</xs:appinfo> |
|
89 |
</xs:appinfo> |
86 |
</xs:annotation> |
|
90 |
</xs:annotation> |
87 |
</xs:assert> |
|
91 |
</xs:assert> |
88 |
<xs:assert test="if(exists(BELEGUNGAMSTICHTAG/@value) and (not(BELEGUNGAMSTICHTAG/@value castable as xs:int) or string-length(xs:string(BELEGUNGAMSTICHTAG/@value)) > 3)) then false() else true()"> |
|
92 |
<xs:assert test="if(exists(BELEGUNGAMSTICHTAG/@value) and (not(BELEGUNGAMSTICHTAG/@value castable as xs:int) or string-length(xs:string(BELEGUNGAMSTICHTAG/@value)) > 3)) then false() else true()"> |
89 |
<xs:annotation> |
|
93 |
<xs:annotation> |
90 |
<xs:appinfo> |
|
94 |
<xs:appinfo> |
91 |
<das:rule_id value="30098"/> |
|
95 |
<das:rule_id value="30098"/> |
92 |
<das:rule_text value="Der Datentyp des Datenfeldes ['Belegungszahl am Stichtag'] entspricht nicht dem vorgegebenen Datentyp: xs:int mit einer Feldlänge von 3"/> |
<> |
96 |
<das:rule_text value="Der Datentyp des Datenfeldes 'Belegungszahl am Stichtag' entspricht nicht dem vorgegebenen Datentyp: xs:int mit einer Feldlänge von 3"/> |
93 |
<das:rule_type value="ERROR"/> |
= |
97 |
<das:rule_type value="ERROR"/> |
94 |
<das:rule_fields> |
|
98 |
<das:rule_fields> |
95 |
<das:field value="BELEGUNGAMSTICHTAG"/> |
|
99 |
<das:field value="BELEGUNGAMSTICHTAG"/> |
96 |
</das:rule_fields> |
|
100 |
</das:rule_fields> |
97 |
</xs:appinfo> |
|
101 |
</xs:appinfo> |
98 |
</xs:annotation> |
|
102 |
</xs:annotation> |
99 |
</xs:assert> |
|
103 |
</xs:assert> |
100 |
<xs:assert test="if(BELEGUNGSKAPAZITAET/@value < 1) then false() else true()"> |
|
104 |
<xs:assert test="if(BELEGUNGSKAPAZITAET/@value < 1) then false() else true()"> |
101 |
<xs:annotation> |
|
105 |
<xs:annotation> |
102 |
<xs:appinfo> |
|
106 |
<xs:appinfo> |
103 |
<das:rule_id value="40006"/> |
|
107 |
<das:rule_id value="40006"/> |
104 |
<das:rule_text value="Der Wert des Datenfeldes ['Belegungskapazität'] liegt nicht im gültigen Wertebereich: >= 1"/> |
<> |
108 |
<das:rule_text value="Der Wert des Datenfeldes 'Belegungskapazität' liegt nicht im gültigen Wertebereich: >= 1"/> |
105 |
<das:rule_type value="ERROR"/> |
= |
109 |
<das:rule_type value="ERROR"/> |
106 |
<das:rule_fields> |
|
110 |
<das:rule_fields> |
107 |
<das:field value="BELEGUNGSKAPAZITAET"/> |
|
111 |
<das:field value="BELEGUNGSKAPAZITAET"/> |
108 |
</das:rule_fields> |
+- |
|
|
109 |
</xs:appinfo> |
|
|
|
110 |
</xs:annotation> |
|
|
|
111 |
</xs:assert> |
|
|
|
112 |
<xs:assert test="if(BELEGUNGAMSTICHTAG/@value < 0) then false() else true()"> |
|
|
|
113 |
<xs:annotation> |
|
|
|
114 |
<xs:appinfo> |
|
|
|
115 |
<das:rule_id value="40008"/> |
|
|
|
116 |
<das:rule_text value="Der Wert des Datenfeldes ['Belegungszahl am Stichtag'] liegt nicht im gültigen Wertebereich: >= 0"/> |
|
|
|
117 |
<das:rule_type value="ERROR"/> |
|
|
|
118 |
<das:rule_fields> |
|
|
|
119 |
<das:field value="BELEGUNGAMSTICHTAG"/> |
|
|
|
120 |
</das:rule_fields> |
= |
112 |
</das:rule_fields> |
121 |
</xs:appinfo> |
|
113 |
</xs:appinfo> |
122 |
</xs:annotation> |
|
114 |
</xs:annotation> |
123 |
</xs:assert> |
|
115 |
</xs:assert> |
124 |
<xs:assert test="if(BELEGUNGAMSTICHTAG/@value > BELEGUNGSKAPAZITAET/@value) then false() else true()"> |
|
116 |
<xs:assert test="if(BELEGUNGAMSTICHTAG/@value > BELEGUNGSKAPAZITAET/@value) then false() else true()"> |
125 |
<xs:annotation> |
|
117 |
<xs:annotation> |
126 |
<xs:appinfo> |
|
118 |
<xs:appinfo> |
127 |
<das:rule_id value="70019"/> |
|
119 |
<das:rule_id value="70019"/> |
128 |
<das:rule_text value="Hinweis: Die Angabe im Datenfeld ['Belegungszahl am Stichtag'] ist größer als die Angabe im Datenfeld ['Belegungskapazität']"/> |
<> |
120 |
<das:rule_text value="Hinweis: Der Wert im Datenfeld 'Belegungszahl am Stichtag' ist größer als der Wert im Datenfeld 'Belegungskapazität'"/> |
129 |
<das:rule_type value="WARNING"/> |
= |
121 |
<das:rule_type value="WARNING"/> |
130 |
<das:rule_fields> |
|
122 |
<das:rule_fields> |
131 |
<das:field value="BELEGUNGAMSTICHTAG"/> |
|
123 |
<das:field value="BELEGUNGAMSTICHTAG"/> |
132 |
<das:field value="BELEGUNGSKAPAZITAET"/> |
|
124 |
<das:field value="BELEGUNGSKAPAZITAET"/> |
133 |
</das:rule_fields> |
|
125 |
</das:rule_fields> |
134 |
</xs:appinfo> |
|
126 |
</xs:appinfo> |
135 |
</xs:annotation> |
|
127 |
</xs:annotation> |
136 |
</xs:assert> |
|
128 |
</xs:assert> |
137 |
</xs:complexType> |
|
129 |
</xs:complexType> |
138 |
</xs:schema> |
|
130 |
</xs:schema> |