teksi / wastewater

[DEV] Future TEKSI wastewater module, adapted data model to fit VSA-DSS 2020 new standard
https://teksi.github.io/wastewater
GNU General Public License v3.0
2 stars 5 forks source link

Organisation.identifier_short missing on import #359

Open sjib opened 1 month ago

sjib commented 1 month ago

Describe the bug Organisation.identifier_short missing on import

Expected behavior Attribute identifier_short should also be imported

Screenshots / data If applicable, add screenshots or data to help explain your problem.

20240806_organisation kurzbezeichnung_fehlt_beim_import

Desktop (please complete the following information):

ponceta commented 1 month ago

Is the short name provided in the vsa_organisations ?

<SIA405_Base_Abwasser_1_LV95.Administration.Organisation TID="ch20p3q400002060">
    <Letzte_Aenderung>20240418</Letzte_Aenderung>
    <Bezeichnung>Pully</Bezeichnung><Gemeindenummer>5590</Gemeindenummer><Organisationstyp>Gemeinde</Organisationstyp><Status>aktiv</Status>
</SIA405_Base_Abwasser_1_LV95.Administration.Organisation>
<SIA405_Base_Abwasser_1_LV95.Administration.Organisation TID="ch20p3q400002061">
    <Letzte_Aenderung>20240418</Letzte_Aenderung>
    <Bezeichnung>Belmont-sur-Lausanne</Bezeichnung><Gemeindenummer>5581</Gemeindenummer><Organisationstyp>Gemeinde</Organisationstyp><Status>aktiv</Status>
</SIA405_Base_Abwasser_1_LV95.Administration.Organisation>
<SIA405_Base_Abwasser_1_LV95.Administration.Organisation TID="ch20p3q400002062">
    <Letzte_Aenderung>20240418</Letzte_Aenderung>
    <Bezeichnung>Canton de Vaud</Bezeichnung><Organisationstyp>Kanton</Organisationstyp><Status>aktiv</Status><UID>CHE114965329</UID>
</SIA405_Base_Abwasser_1_LV95.Administration.Organisation>
sjib commented 1 month ago

It exists in the INTERLIS model 2020 / 2020.1, but not yet in 2015:

   CLASS Organisation EXTENDS SIA405_BaseClass = 
      ATTRIBUTE
        !!@ comment = "Allgemeine Bemerkungen"
        Bemerkung: TEXT*255;
        !!@ comment = "Die Bezeichnung für Gemeinden wird gemäss BFS-Liste übernommen; für Private gemäss UID-Register, allenfalls mit Zusatz des Ortes der Filiale, falls keine separate UID dafür besteht."
        Bezeichnung: MANDATORY SIA405_Base_Abwasser_1_LV95.OrganisationBezeichnung;
        !!@ comment = "Offizielle Gemeinde Nummer gemäss Bundesamt für Statistik, bei Gemeinde zwingend, sonst leer lassen."
        Gemeindenummer: GemeindeNr;
        !!@ comment = "Kurzbezeichnung"
        Kurzbezeichnung: TEXT*12;
        Organisationstyp: MANDATORY (
          !!@ comment = "Abwasserverband"
          Abwasserverband,
          !!@ comment = "Teil einer Bundesverwaltung (z.B. Bundesamt für Umwelt, ASTRA, Armasuisse)"
          Bund,
          !!@ comment = "Gemeinde gemäss Bundesamt für Statistik"
          Gemeinde,
          !!@ comment = "Teil einer Gemeindeverwaltung, die eine Rolle übernimmt ((z.B. Geoinformation Stadt Bern) als Traegerschaft, Datenlieferant, etc. (aber nicht als Datenherr / (oeffentlicher) Eigentuemer)"
          Gemeindeabteilung,
          !!@ comment = "Genossenschaft oder Korporation: Körperschaft öffentlichen Rechts. Falls privaten Rechtes dann als Privat abbilden."
          Genossenschaft_Korporation,
          !!@ comment = "Teil einer kantonalen Verwaltung (z.B. Amt für Umweltschutz, Amt für Abwasserentsorgung)"
          Kanton,
          !!@ comment = "Privatperson oder Privatorganisation, welche im Rahmen der Entwässerungsplanung auftritt"
          Privat
        );
        !!@ comment = "Status der Organisation, damit untergegangende Organisationen nicht einfach gelöscht werden müssen und kontrolliert werden kann, ob noch Beziehungen auf untergegangene Organisationen, z.B. bei Gemeindefusion oder Konkurs einer Firma vorhanden sind"
        Status: MANDATORY (
          aktiv,
          untergegangen
        );
        !!@ comment = "Referenz zur Unternehmensidentifikation des Bundesamts fuer Statistik (www.uid.admin.ch), z.B. CHE123456789"
        UID: UID;
    UNIQUE 
        !!@comment = "!! Neben UNIQUE OID zusätzlich auch Kombination Bezeichnung, Organisationstyp, UID (Wegleitung GEP-Daten 2020)"
        Bezeichnung, Organisationstyp, UID; 
    END Organisation;

END Administration;
sjib commented 1 month ago

But not in the current VSA Organisation dataset, you are right. But we should still support it. I have to check with the VSA why that is missing