From 09c517c723407df893d18a0f6fa4ded39c898b89 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 18 Mar 2024 15:34:30 +0100 Subject: [PATCH 1/3] feat: add initial profile file for UKR --- examples/dnpm-ukr.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 examples/dnpm-ukr.yml diff --git a/examples/dnpm-ukr.yml b/examples/dnpm-ukr.yml new file mode 100644 index 0000000..6053d88 --- /dev/null +++ b/examples/dnpm-ukr.yml @@ -0,0 +1,29 @@ +forms: + - name: 'DNPM Klinik/Anamnese' + form_references: + - name: MTB + referenced_data_form: 'UKR.Tumorkonferenz' + menu_category: + name: Sonstiges + position: 99.0 + column: 0 + - name: 'DNPM Therapieplan' + form_references: + - name: referstemtb + referenced_data_form: 'UKR.Tumorkonferenz' + anzeige_auswahl: 'MTB vom {Datum}' + - name: reftkhumangenber + referenced_data_form: 'UKR.Tumorkonferenz' + anzeige_auswahl: 'MTB vom {Datum}' + - name: reftkreevaluation + referenced_data_form: 'UKR.Tumorkonferenz' + anzeige_auswahl: 'MTB vom {Datum}' + menu_category: + name: Sonstiges + position: 99.0 + column: 0 + - name: 'DNPM FollowUp' + menu_category: + name: Sonstiges + position: 100.0 + column: 0 \ No newline at end of file From 9c172c3189798169711d3e57013f5020d7275e95 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 18 Mar 2024 15:46:56 +0100 Subject: [PATCH 2/3] feat: add form field default values --- examples/dnpm-ukr.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/examples/dnpm-ukr.yml b/examples/dnpm-ukr.yml index 6053d88..fc0311e 100644 --- a/examples/dnpm-ukr.yml +++ b/examples/dnpm-ukr.yml @@ -1,12 +1,27 @@ forms: - name: 'DNPM Klinik/Anamnese' + form_fields: + - name: Leitlinienstatus + default_value: "unknown" + - name: LeitlinienTherapieProgr + default_value: "9" + - name: LeitlinienTherapieDurchl + default_value: "k" form_references: - name: MTB referenced_data_form: 'UKR.Tumorkonferenz' menu_category: name: Sonstiges position: 99.0 - column: 0 + column: 1 + - name: 'DNPM UF Therapielinie' + form_fields: + - name: Ergebnis + default_value: "x" + - name: Beendigung + default_value: "U" + - name: Abbruchsgrund + default_value: "u" - name: 'DNPM Therapieplan' form_references: - name: referstemtb @@ -21,9 +36,9 @@ forms: menu_category: name: Sonstiges position: 99.0 - column: 0 + column: 1 - name: 'DNPM FollowUp' menu_category: name: Sonstiges position: 100.0 - column: 0 \ No newline at end of file + column: 1 \ No newline at end of file From 5110d78f62c96b32528bb5f239aa741ce192d3f6 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 18 Mar 2024 15:48:24 +0100 Subject: [PATCH 3/3] feat: embed UKR profile --- README.md | 7 ++++--- src/profile.rs | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a8b0808..da1ff41 100644 --- a/README.md +++ b/README.md @@ -117,9 +117,10 @@ Ohne eine Angabe der Ausgabedatei wird auf die Standardausgabe ausgegeben. Die im Ordner [`examples/`](/examples) enthaltenen Profile für Standorte sind in der ausführbaren Anwendung enthalten und die Dateien müssen nicht explizit als Datei vorliegen: -* `--profile examples/dnpm-ukm.yml` => `--profile UKM` -* `--profile examples/dnpm-ukw.yml` => `--profile UKW` -* `--profile examples/dnpm-umg.yml` => `--profile UMG` +* `--profile examples/dnpm-ukm.yml` => `--profile UKM` für **Marburg** +* `--profile examples/dnpm-ukr.yml` => `--profile UKR` für **Regensburg** +* `--profile examples/dnpm-ukw.yml` => `--profile UKW` für **Würzburg** +* `--profile examples/dnpm-umg.yml` => `--profile UMG` für **Göttingen** #### Unterbefehl `unzip-osb` diff --git a/src/profile.rs b/src/profile.rs index f26d01e..88f947e 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -38,6 +38,7 @@ impl Profile { pub fn embedded_profile(name: &str) -> Result { let s = match name { "UKM" => include_str!("../examples/dnpm-ukm.yml"), + "UKR" => include_str!("../examples/dnpm-ukr.yml"), "UKW" => include_str!("../examples/dnpm-ukw.yml"), "UMG" => include_str!("../examples/dnpm-umg.yml"), _ => return Err(format!("Not an embedded profile: '{name}'")),