# Batch B — resorts 16 (ZM) and 29 (VM) Generator: `tools/batch_B.py`; check: `tools/check_B.py` (492/492 ids match the query, no duplicates, all function ids are in the catalogue). ## Counts - Rows: 492 (16: 252, 29: 240) - function 467, residual 15, procedural 10 - 16: function 234, residual 8, procedural 10 - 29: function 233, residual 7, procedural 0 ## Consistency choices - Multi-sector ZM policy work (agriculture + forest + fisheries) → S.04.200 (it is in the catalogue at level >= 2). Single-sector ministry items → S.04.210 / .220 / .230 / .240. - When an agency takes part in drafting legal acts or gives opinions on drafts, it goes to H.06, even when a sector is named (same as batch1 VVD p5.4): VMD p4.14, p4.15. - Sector registers and information systems → the sector node (NVD, SPKC, VTUA, LAD). Exception: LAD p3.10 (critical infrastructure, server rooms, state cloud services) → H.05.01. - Generic "sniedz maksas pakalpojumus" → procedural (VAAD p4.42, PVD p4.8). Specific paid services (LAD p3.6 animal registration) → sector node. - Food safety and veterinary work (PVD), including border control and veterinary medicines → S.04.210 (keyword "pārtikas aprit"), not S.03.120 or S.07.110. - Health statistics and registries (SPKC, VM p5.2.6) → S.07.620. Quality and patient safety, clinical guidelines, SNOMED → S.07.610. - Health workforce training (residency, continuing education) → S.09.520. ## Unsure points - lv-nol-29-0570 (VTMEC) forensic expertise points → S.03.390 (purpose: justice and evidence). A budget view could put them under S.07.220 instead. Tissue banking (p3.4, p4.10) → S.07.220. p3.2 (research + postgraduate education) → S.07.500. - lv-nol-16-0387 (VTUA) tractor registration, inspection and licences → S.04.510.01/.02/.03. The purpose fits, but the institution sits in the agriculture resort budget. Market surveillance and projects (p3.3, p4.36) → S.04.510. - lv-nol-29-0649 (NMPD) emergency medical care → S.07.240 (COFOG paramedical/ambulance). The other options were S.07.300 and S.03.200. Medical state reserves (p3.4, p4.23, p4.24) → S.07.240, not S.07.110. Public-health threat / IHR / RAS-BICHAT (p4.8–p4.10) → S.07.620. p4.13 humanitarian missions → H.13. p4.18 civil protection exercises → S.03.200. p4.25 supplying the armed forces with medical equipment → S.02.100. - lv-nol-16-0323.p3.7 and p3.9 (excise relief fuel accounting, seasonal workers' income tax system) → S.01.120. They could also count as agriculture support (S.04.240). - lv-nol-16-0000.p4.1.11 (coastal territories) → S.04.240. S.06.200 is the alternative. - lv-nol-16-0000.p4.1.16, lv-nol-16-0320.p4.32, p4.33, p4.37 (climate, nitrogen and carbon monitoring, fertiliser use for pollution prevention) → S.05.300 rather than S.04.210. - lv-nol-16-0000.p4.1.17 (bioeconomy) → S.04.210. p4.1.18 (biomass energy) → S.04.300. - Geospatial: points that obtain data for sector policy → sector node (ZM p4.1.20, p5.22 → S.04.200; VMD p4.22s1 → S.04.220). Points about publishing to the geoportal / open data → H.05.08 (ZM p5.23, VMD p4.22s2). - lv-nol-16-0320.p4.6 (invasive plant species) → S.05.400, the same as batch1 DAP p3.6. - lv-nol-29-0582.p3.7.x (EU regulations listed under VI's competences): CPC regulation (3.7.1) and the market surveillance regulation 765/2008 (3.7.9) → S.04.111. AI Act (3.7.10) → S.07.110, on the reading that VI supervises AI in medical devices. Cosmetics (3.7.6) → S.07.620. p4.13 RAPEX → S.04.111. - lv-nol-29-0582.p4.10 (drinking and bathing water) → S.07.620, not S.05.300. p4.20 (health tourism list) → S.07.610, not S.04.730. - lv-nol-29-0674.p3.5 (centralised procurement of medicines and devices) → S.07.110, not H.04. p3.18 (payments to the Digital Health Centre) → S.07.610. - lv-nol-29-0674.p3.20 is repealed ("zaudējis spēku"). It is marked residual. It should probably be dropped at source. - lv-nol-29-0000.p5.2.17 (sports medicine) → S.07.610, not S.08.100. - lv-nol-16-0000.p5.10 (inspections of subordinate bodies) → H.08. ## Catalogue gaps - No agriculture/forestry research node: S.01.500 is used (ZM p4.1.24, p5.4; VAAD p4.53). - No food-safety node separate from S.04.210. Food safety, veterinary and phytosanitary control all collapse into one node: S.04.210 has 95 rows. - No forensic medicine / forensic expertise node. - No node for health financing / purchasing of health services (NVD). Everything goes to S.07.610. - No node for state material reserves / emergency stockpiles. - No node for agricultural machinery registration. The road vehicle nodes S.04.510.0N are reused.