H.05 sadalīts H.05.01–H.05.08; jaunas H.11–H.14; Classification elements XSD (neobligāts, atpakaļsaderīgs); 144 VARAM resora un KISC nolikuma punkti piesaistīti funkcijām, status ai_proposed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016igpMJBtapmG6vHE4vSF9q
139 lines
7.6 KiB
XML
139 lines
7.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Valsts pārvaldes funkciju katalogs (Funkcijas-as-Code), shēma 0.1.
|
|
Viens katalogs: koks no funkcijām. Divi zari:
|
|
S — nozaru funkcijas pēc valdības funkciju klasifikācijas (COFOG, kā valsts budžetā);
|
|
H — horizontālās (atbalsta) funkcijas, kas jāveic katrai iestādei (piem., lietvedība).
|
|
Funkcija norāda tiesisko pamatu (likuma vienības ID no Likums-as-Code), kas to veic (turētājs)
|
|
un atslēgvārdus, pēc kuriem VDZP sasaista likumu pilnvarojumus un nolikumu punktus ar funkciju.
|
|
-->
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
xmlns="urn:pppa:vpk:funkcijas:0.1"
|
|
xmlns:f="urn:pppa:vpk:funkcijas:0.1"
|
|
targetNamespace="urn:pppa:vpk:funkcijas:0.1"
|
|
elementFormDefault="qualified">
|
|
|
|
<xs:simpleType name="NonEmptyText">
|
|
<xs:restriction base="xs:string"><xs:pattern value="[\s\S]*\S[\s\S]*"/></xs:restriction>
|
|
</xs:simpleType>
|
|
<xs:simpleType name="FunctionId">
|
|
<xs:annotation><xs:documentation xml:lang="lv">H, H.01, H.01.02; S, S.01, S.01.110.</xs:documentation></xs:annotation>
|
|
<xs:restriction base="xs:string"><xs:pattern value="[HS](\.[0-9]{2,3})*"/></xs:restriction>
|
|
</xs:simpleType>
|
|
<xs:simpleType name="FunctionKind">
|
|
<xs:restriction base="xs:string">
|
|
<xs:enumeration value="horizontal"/><xs:enumeration value="sector"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
<xs:simpleType name="HolderType">
|
|
<xs:restriction base="xs:string">
|
|
<xs:enumeration value="every_institution"/><xs:enumeration value="institution"/>
|
|
<xs:enumeration value="cabinet"/><xs:enumeration value="municipality"/><xs:enumeration value="role"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
<xs:complexType name="BasisType">
|
|
<xs:annotation><xs:documentation xml:lang="lv">Tiesiskais pamats: Likums-as-Code vienības ID (likums, pants, daļa vai punkts;
|
|
ietver arī visas apakšvienības), teksts — cilvēkam lasāma atsauce.</xs:documentation></xs:annotation>
|
|
<xs:simpleContent><xs:extension base="NonEmptyText">
|
|
<xs:attribute name="unit" use="required">
|
|
<xs:simpleType><xs:restriction base="xs:string">
|
|
<xs:pattern value="lv-lik-[0-9]{4}-[0-9]{2}-[0-9]{2}(-[2-9])?(\.[a-z0-9.]+)?"/>
|
|
</xs:restriction></xs:simpleType>
|
|
</xs:attribute>
|
|
</xs:extension></xs:simpleContent>
|
|
</xs:complexType>
|
|
|
|
<xs:complexType name="HolderElemType">
|
|
<xs:simpleContent><xs:extension base="xs:string">
|
|
<xs:attribute name="type" type="HolderType" use="required"/>
|
|
<xs:attribute name="vpkId">
|
|
<xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="[0-9]{2}-[0-9]{4}"/></xs:restriction></xs:simpleType>
|
|
</xs:attribute>
|
|
</xs:extension></xs:simpleContent>
|
|
</xs:complexType>
|
|
|
|
<xs:complexType name="FunctionType">
|
|
<xs:sequence>
|
|
<xs:element name="Name" type="NonEmptyText"/>
|
|
<xs:element name="Description" type="NonEmptyText" minOccurs="0"/>
|
|
<xs:element name="Cofog" minOccurs="0" maxOccurs="unbounded">
|
|
<xs:annotation><xs:documentation xml:lang="lv">Valdības funkciju klasifikācijas kods, kā budžeta izpildē (01.110).</xs:documentation></xs:annotation>
|
|
<xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="[0-9]{2}\.[0-9]{3}"/></xs:restriction></xs:simpleType>
|
|
</xs:element>
|
|
<xs:element name="Basis" type="BasisType" minOccurs="0" maxOccurs="unbounded"/>
|
|
<xs:element name="Holder" type="HolderElemType" minOccurs="0" maxOccurs="unbounded"/>
|
|
<xs:element name="Keyword" type="NonEmptyText" minOccurs="0" maxOccurs="unbounded">
|
|
<xs:annotation><xs:documentation xml:lang="lv">Vārda sākums (bez galotnes), mazajiem burtiem: „dokumentu pārvaldīb” atbilst
|
|
„dokumentu pārvaldību”, „dokumentu pārvaldības”.</xs:documentation></xs:annotation>
|
|
</xs:element>
|
|
<xs:element name="Function" type="FunctionType" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
<xs:attribute name="id" type="FunctionId" use="required"/>
|
|
<xs:attribute name="kind" type="FunctionKind" use="required"/>
|
|
<xs:attribute name="level" type="xs:positiveInteger" use="required"/>
|
|
</xs:complexType>
|
|
|
|
<xs:element name="FunctionCatalogue">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="Title" type="NonEmptyText"/>
|
|
<xs:element name="Description" type="NonEmptyText"/>
|
|
<xs:element name="Source" maxOccurs="unbounded">
|
|
<xs:complexType><xs:simpleContent><xs:extension base="NonEmptyText">
|
|
<xs:attribute name="url" type="xs:anyURI"/>
|
|
</xs:extension></xs:simpleContent></xs:complexType>
|
|
</xs:element>
|
|
<xs:element name="Function" type="FunctionType" maxOccurs="unbounded"/>
|
|
<xs:element name="Classification" minOccurs="0" maxOccurs="unbounded">
|
|
<xs:annotation><xs:documentation>Nolikuma punkta (Nolikumi-as-Code) piederība funkcijai. type: function — punkts
|
|
apraksta funkciju (@function obligāts); procedural — tiesības, pārstāvība, sadarbības forma, nav atsevišķa funkcija;
|
|
residual — „veic citus uzdevumus”. status: ai_proposed (MI priekšlikums, jāpārskata), confirmed, rejected.
|
|
Teksts — īss pamatojums.</xs:documentation></xs:annotation>
|
|
<xs:complexType><xs:simpleContent><xs:extension base="NonEmptyText">
|
|
<xs:attribute name="point" use="required">
|
|
<xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="lv-nol-[0-9]{2}-[0-9]{4}(\.[a-z0-9.]+)?"/></xs:restriction></xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="type" use="required">
|
|
<xs:simpleType><xs:restriction base="xs:string">
|
|
<xs:enumeration value="function"/><xs:enumeration value="procedural"/><xs:enumeration value="residual"/>
|
|
</xs:restriction></xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="function" type="FunctionId"/>
|
|
<xs:attribute name="status" use="required">
|
|
<xs:simpleType><xs:restriction base="xs:string">
|
|
<xs:enumeration value="ai_proposed"/><xs:enumeration value="confirmed"/><xs:enumeration value="rejected"/>
|
|
</xs:restriction></xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="by" type="xs:string" use="required"/>
|
|
<xs:attribute name="date" type="xs:date" use="required"/>
|
|
</xs:extension></xs:simpleContent></xs:complexType>
|
|
</xs:element>
|
|
<xs:element name="DataVersion" maxOccurs="unbounded">
|
|
<xs:complexType>
|
|
<xs:sequence><xs:element name="Change" type="NonEmptyText" maxOccurs="unbounded"/></xs:sequence>
|
|
<xs:attribute name="number" type="xs:positiveInteger" use="required"/>
|
|
<xs:attribute name="date" type="xs:date" use="required"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
</xs:sequence>
|
|
<xs:attribute name="id" use="required">
|
|
<xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="lv-funkcijas"/></xs:restriction></xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="schemaVersion" type="xs:string" use="required" fixed="0.1"/>
|
|
</xs:complexType>
|
|
<xs:key name="functionKey">
|
|
<xs:selector xpath=".//f:Function"/>
|
|
<xs:field xpath="@id"/>
|
|
</xs:key>
|
|
<xs:unique name="classificationPoint">
|
|
<xs:selector xpath="f:Classification"/>
|
|
<xs:field xpath="@point"/>
|
|
</xs:unique>
|
|
<xs:keyref name="classificationFunction" refer="f:functionKey">
|
|
<xs:selector xpath="f:Classification"/>
|
|
<xs:field xpath="@function"/>
|
|
</xs:keyref>
|
|
</xs:element>
|
|
</xs:schema>
|