Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add another extract type qualitymap #465

Open
2 tasks done
hf-krechan opened this issue Sep 26, 2024 · 2 comments · Fixed by #466 · May be fixed by #471
Open
2 tasks done

Add another extract type qualitymap #465

hf-krechan opened this issue Sep 26, 2024 · 2 comments · Fixed by #466 · May be fixed by #471
Assignees

Comments

@hf-krechan
Copy link
Collaborator

hf-krechan commented Sep 26, 2024

In the new AHB documents for UTILMD Strom 2.0 (filename: UTILMDAHBStrom-informatorischeLesefassung2.0_99991231_20250404.docx) there are tables which we would like to extract.

We will call them qualitymap.

They start on page 20 and go over some pages.

In the first step we will just extract the information and store them in a csv file.

  • extract tables and store them in csv file

Afterwards we want to convert them into the following C# readable structure

  • convert the table information into C# code
[Bo4e(
    typeof(BO4E.ENUM.Qualitaet),
    BO4E.ENUM.Qualitaet.ERWARTET,
    mappingHint: "Daten der technischen Ressource"
)]
ZG4,

[Bo4e(
    typeof(BO4E.ENUM.Qualitaet),
    BO4E.ENUM.Qualitaet.ERWARTET,
    mappingHint: "Daten der steuerbaren Ressource"
)]
ZB1,

[Bo4e(
    typeof(BO4E.ENUM.Qualitaet),
    BO4E.ENUM.Qualitaet.ERWARTET,
    mappingHint: "Produkt-Daten der steuerbaren Ressource"
)]
ZB3,

Hier ein Link zu dem Word-Dokument: https://www.edi-energy.de/index.php?id=38&tx_bdew_bdew%5Buid%5D=2402&tx_bdew_bdew%5Baction%5D=download&tx_bdew_bdew%5Bcontroller%5D=Dokument&cHash=3b2ac8ae7fc1bb5c80991ae95ce51963

@hf-krechan hf-krechan changed the title Add another extract type qualitymapping Add another extract type qualitymap Sep 26, 2024
@JoschaMetze
Copy link

JoschaMetze commented Sep 27, 2024

#region Daten der Netzlokation
[Bo4e(
    typeof(BO4E.ENUM.Qualitaet),
    BO4E.ENUM.Qualitaet.ERWARTET,
    mappingHint: "Daten der Netzlokation"
)]
ZA9,

[Bo4e(
    typeof(BO4E.ENUM.Qualitaet),
    BO4E.ENUM.Qualitaet.IM_SYSTEM_VORHANDEN,
    mappingHint: "Daten der Netzlokation"
)]
ZB0,

[Bo4e(
    typeof(BO4E.ENUM.Qualitaet),
    BO4E.ENUM.Qualitaet.INFORMATIV,
    mappingHint: "Daten der Netzlokation"
)]
ZD7,

[Bo4e(typeof(BO4E.ENUM.Qualitaet), null, mappingHint: "Daten der Netzlokation")]
Z51_Daten_der_Netzlokation,
#endregion

@lord-haffi
Copy link
Contributor

Notes after speaking with Joscha:

  • The enum value (e.g. BO4E.ENUM.Qualitaet.INFORMATIV) corresponds to the column in the table
    • I.e. only columns ERWARTET, IM_SYSTEM_VORHANDEN, INFORMATIV und null (= gültig) have to be considered
  • If the key (e.g. Z51) is not unique, it should be concatenated with a somewhat meaningful string. Joscha and I agreed that taking e.g. the first three words of the mapping hint should be sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants