diff --git a/HISTORY.md b/HISTORY.md index 8238b31..5f25193 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,8 +1,10 @@ -Version 2.0.0 (2015-08-30) +Version 2.0.1 (2015-09-02) ======================================================================== - FEHLERBEHEBUNG: Kein Absturz mehr, wenn zwei Spalten formatiert werden. +- VERBESSERT: Kein Absturz mehr, wenn das Demo-Dokument innerhalb der ZAA geöffnet wird (Exception ID 65a5c34e). - VERBESSERT: Kein Crash mehr, falls sich ein Komma in den Lauris-Block einschleicht. +- VERBESSERT: Vitamin B12 und Folsäure in den Parameterkatalog aufgenommen und zum Ambulanzstil hinzugefügt. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * @@ -103,4 +105,47 @@ Version 2.0.0-alpha.1 (2015-07-27) - NEW: First release of version 2 series. +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + + +Version 2.0.0 (2015-08-30) +======================================================================== + +- FEHLERBEHEBUNG: Kein Absturz mehr, wenn zwei Spalten formatiert werden. +- VERBESSERT: Kein Crash mehr, falls sich ein Komma in den Lauris-Block einschleicht. +- FIX: Beim Start wird jetzt nach Updates gesucht. +- FIX: Daniels Spezial löscht nicht mehr die Unterschriften. +- FIX: Datenimport funktioniert jetzt auch mit Word-Text und nicht nur in den Tests. +- FIX: Kleinere Bugfixes. +- FIX: Mehrere Thesaurus-Fehler behoben. +- FIX: Stile werden jetzt gespeichert. +- GEÄNDERT: Diff.-BB-Werte im Stations-Stil in Hämatologie-Zeile integriert. +- NEU: Auf Werkseinstellungen zurücksetzen. +- NEU: Auszeichnung pathologischer Werte kann eingestellt werden. +- NEU: Datumsangaben werden in eine Zeile "Laborwerte vom ..." eingebettet. +- NEU: Eingebautes Demo-Dokument zum Ausprobieren. +- NEU: Elemente können verschoben werden. +- NEU: Fehlerbehandlung und Fehlerberichte. +- NEU: Formatierung der Ausgabe mit Absatzvorlage. +- NEU: Für bestimmte Laborwerte ist die bevorzugte Nachkommastellenzahl hinterlegt (z.B. Kreatinin mit nur einer Nachkommastelle). +- NEU: Parameter können im Thesaurus als "blacklisted" markiert werden und werden dann bei Verwendung einer Wildcard ("*") nicht berücksichtigt. +- NEU: Steuer-Elemente für Spalten. +- NEU: Stile können importiert und exportiert werden. +- NEU: Überschriften und pathologische Werte werden fett gedruckt. +- NEU: Überschriften und pathologische Werte werden jetzt besonders ausgezeichnet (fett). +- VERBESSERT: Bei Updates werden neue eingebaute Stile jetzt immer berücksichtigt. +- VERBESSERT: Cystatin C (Latex Gen. 2) als bekannten Parameter hinzugefügt. +- VERBESSERT: Element-Bearbeitungsfenster. +- VERBESSERT: Floskel-Ersetzungen in Daniels Spezial. +- VERBESSERT: Formatieren läßt sich nicht mehr starten, ohne daß Labor-Text markiert ist. +- VERBESSERT: Formatierung erscheint nur noch als 1 Undo-Schritt. +- VERBESSERUNG: Alias ACR für Albumin-Krea-Quotient; mg/g statt mg/g Crea. +- VERBESSERUNG: Aliasse für fT3 und fT4. +- VERBESSERUNG: Ambulanz-Stil überarbeitet. +- VERBESSERUNG: Datumseilen, die mit "Labor:" beginnen, werden nicht länger ignoriert. +- VERBESSERUNG: Einheiten, die mit einem Schrägstrich beginnen, werden nicht mehr mit Leerzeichen vom Wert getrennt. +- VERBESSERUNG: Keine Fehlermeldung mehr, falls Referenzbereiche negative Werte enthalten (wie z.B. Base Excess) [#650db4d2] +- VERBESSERUNG: NepA-Stil überarbeitet. +- VERÄNDERUNG: Laborwerte, die explizit (also nicht mit "*") ausgewählt werden, werden jetzt ohne vorangestelltes Material-Kürzel eingefügt (z.B. jetzt "Sammelurin: Volumen" anstatt "Sammelurin: SU-Volumen"). + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * diff --git a/www/versioninfo.txt b/www/versioninfo.txt index 9af600f..213ea05 100644 --- a/www/versioninfo.txt +++ b/www/versioninfo.txt @@ -1,4 +1,4 @@ -2.0.0 -http://zaa.nephrowiki.de/downloads/zaaReloaded-2.0.0.exe -6aef8b27f82c864acde1139fea2313486c3b22c1 publish/release/zaaReloaded-2.0.0.exe +2.0.1 +http://zaa.nephrowiki.de/downloads/zaaReloaded-2.0.1.exe +96efab4fd34411f9cdd03b5d31ddcf4f6fe8b904 publish/release/zaaReloaded-2.0.1.exe diff --git a/zaaReloaded2/Defaults/clinic.zaaReloaded b/zaaReloaded2/Defaults/clinic.zaaReloaded index 15d9bbc..94bb2f2 100755 --- a/zaaReloaded2/Defaults/clinic.zaaReloaded +++ b/zaaReloaded2/Defaults/clinic.zaaReloaded @@ -3,17 +3,17 @@ 2 -<_a>233768554 -<_b>-10539 -<_c>19865 -<_d>131 -<_e>252 -<_f>97 -<_g>190 -<_h>116 -<_i>107 -<_j>28 -<_k>144 +<_a>1173493659 +<_b>4743 +<_c>20075 +<_d>156 +<_e>83 +<_f>220 +<_g>163 +<_h>70 +<_i>3 +<_j>116 +<_k>11 Kopie von Standard für NepA IfSpecialItem @@ -29,7 +29,7 @@ 2 -21 +22 @@ -64,108 +64,114 @@ - - - + + + - + - + + + -zaaReloaded2.Controller.Elements.Items +zaaReloaded2.Controller.Elements.Items 4 2 -Klinische Chemie: Na, K, Cl, Mg, Ca, P, CaxP, Alb, Prot, Haptoglobin, LDH, Glukose, Harnsäure +Klinische Chemie: Na, K, Cl, Mg, Ca, P, CaxP, Alb, Prot, Haptoglobin, LDH, Glukose, Harnsäure 2 -Entzündung/Immunsystem: CRP, Pct, C3c, C4, Anti-DNAse B, ASL +Entzündung/Immunsystem: CRP, Pct, C3c, C4, Anti-DNAse B, ASL 2 -Kardiale Marker: CK, CKMB, Trop, NTproBNP +Kardiale Marker: CK, CKMB, Trop, NTproBNP 2 -Niere: Krea, Hst, eGFR (CKD-EPI) +Niere: Krea, Hst, eGFR (CKD-EPI) 2 -Sammelurin: SU-Proteinurie, SU-Alb, SU-CrCl, SU-HstCl, SU-GFR, SU-Natrium, SU-Zeit, SU-Volumen +Sammelurin: SU-Proteinurie, SU-Alb, SU-CrCl, SU-HstCl, SU-GFR, SU-Natrium, SU-Zeit, SU-Volumen 2 -Spot-Urin: U-TPCR, U-ACR, U-Ery, U-Leu, U-Bakt +Spot-Urin: U-TPCR, U-ACR, U-Ery, U-Leu, U-Bakt 2 -Leber: GOT, GGT, GPT, AP, Bilirubin, CHE +Leber: GOT, GGT, GPT, AP, Bilirubin, CHE 2 -Blutfette: TG, Chol, LDL, HDL, Lp(a) +Blutfette: TG, Chol, LDL, HDL, Lp(a) 2 -Hämatologie: Hb, Hkt, Reti, Leu, Thr, MCV, HbA1c, Retikulozyten, Fragmentozyten +Hämatologie: Hb, Hkt, Reti, Leu, Thr, MCV, HbA1c, Retikulozyten, Fragmentozyten 2 -Diff.-BB: Neu, Lym, Mon, Baso, Eos +Diff.-BB: Neu, Lym, Mon, Baso, Eos 2 -Gerinnung: Quick, INR, PTT, Fibrinogen, ATIII, Anti-Xa +Gerinnung: Quick, INR, PTT, Fibrinogen, ATIII, Anti-Xa 2 -Serum-Elektrophorese: Albumin-Fraktion, a1-Globulin, a2-Globulin, b-Globulin, g-Globulin +Serum-Elektrophorese: Albumin-Fraktion, a1-Globulin, a2-Globulin, b-Globulin, g-Globulin 2 -Hormone: iPTH, TSH, fT3, fT4 +Hormone: iPTH, TSH, fT3, fT4 2 -Eisenhaushalt: Eisen, Ferritin, Transferrin, Tf.-Sätt. +Vitamine: B12, Folsäure 2 -BGA: pH, Std.-Bic., BE +Eisenhaushalt: Eisen, Ferritin, Transferrin, Tf.-Sätt. 2 -Hepatitis-Serologie: Anti-HBs, Anti-HBc +BGA: pH, Std.-Bic., BE 2 -Medikamente: TAC, CSA (C0), SIR, Vancomycin, Gentamicin, Tobramicin +Hepatitis-Serologie: Anti-HBs, Anti-HBc - -zaaReloaded2.Controller.Elements.CustomText + +2 +Medikamente: TAC, CSA (C0), SIR, Vancomycin, Gentamicin, Tobramicin + + +zaaReloaded2.Controller.Elements.CustomText 4 - -2 -Virologie (EDTA-Blut): CMV-PCR, BKV-PCR - 2 -Nephrolog. Sediment: pH, Proteinurie, Ery /µl, Leu /µl, Plattenep. /µl, Bakt., Schleimfäden +Virologie (EDTA-Blut): CMV-PCR, BKV-PCR 2 -Autoantikörper: ANCA (IF), MPO-ANCA (ELISA), PR3-ANCA (ELISA), ANA (IF), AnDNA (ELISA), AnDNA (RIA) +Nephrolog. Sediment: pH, Proteinurie, Ery /µl, Leu /µl, Plattenep. /µl, Bakt., Schleimfäden - + 2 -Tumormarker: PSA +Autoantikörper: ANCA (IF), MPO-ANCA (ELISA), PR3-ANCA (ELISA), ANA (IF), AnDNA (ELISA), AnDNA (RIA) + + +2 +Tumormarker: PSA diff --git a/zaaReloaded2/Defaults/parameters.txt b/zaaReloaded2/Defaults/parameters.txt index 61b64f1..6bd8899 100755 --- a/zaaReloaded2/Defaults/parameters.txt +++ b/zaaReloaded2/Defaults/parameters.txt @@ -1,76 +1,89 @@ # LAURIS-NAME "KANONISCHER NAME" MATERIAL DEZIMALSTELLEN "IMMER REFERENZBEREICH" "BLACKLIST" # =========== ================== ======== ============== ======================= =========== -"Übergangsepithelien (U)" Übergangsep. U "a1-Microglobulin (SU)" a1-Microglobulin SU "a1-Microglobulin (SU)/die" a1-Microglobulin SU "aktuelles Bicarbonat" Bic BGA +Albumin Alb S "Albumin (PU)" Alb U "Albumin (SU)" Alb SU "Albumin (SU)/die" Alb SU -Albumin Alb S +"Albumin - Fraktion" Albumin-Fraktion S X "Albumin/Creatinin (PU)" ACR U 0 "Alk. Phosphatase" AP S 0 +"Alpha1-Globulin - Fraktion" a1-Globulin S X +"Alpha2-Globulin - Fraktion" a2-Globulin S X Amylase Amylase S "anorg. Phosphat" P S +"Anti-DNAse B" "Anti-DNAse B" S X +Anti-Streptolysin ASL S X "Bakterien (U)" Bakt U Basenabweichung BE BGA Basophile Baso E +"Beta-Globulin - Fraktion" b-Globulin S X "Bilirubin (U)" Bilirubin U "C-reaktives Protein" CRP S +Calcium Ca S "Calcium (SU)" Ca SU "Calcium (SU)/die" Ca SU -Calcium Ca S Calcium-Phosphat-Produkt CaxP S Cholesterin Chol S CK gesamt" CK S X "CK MB" CK-MB S +Creatinin Krea S 1 "Creatinin (PU)" Krea U 0 "Creatinin (SU)" Krea SU 0 -Creatinin Krea S 1 "Creatinin-Clearance (SU)/min" CrCl SU "Cyclosporin-A vor Gabe" "CsA (C0)" S X -"Cystatin C (N Latex)" "Cystatin C" S X "Cystatin C (Latex Gen. 2)" "Cystatin C" S X +"Cystatin C (N Latex)" "Cystatin C" S X Eisen Fe S Eosinophile Eos E -"Erythrozyten (U)" Ery U Erythrozyten Ery E +"Erythrozyten (U)" Ery U Ferritin Ferr S +Folsäure Folsäure S X +FRAGMENTOZYTEN Fragmentozyten E "freies T3" fT3 S X "freies T4" fT4 S X +"Gammaglobulin - Fraktion" g-Globulin S X Gesamt-Bilirubin Bilirubin S +Gesamt-Eiweiss Protein S "Gesamt-Eiweiss (PU)" Protein U "Gesamt-Eiweiss (SU)" Protein SU "Gesamt-Eiweiss (SU)/die" Proteinurie SU -Gesamt-Eiweiss Protein S "Gesamt-Eiweiss/Creatinin (PU)" TPCR U 0 GGT GGT S 0 -"glomeruläre Filtrationsrate" GFR SU "glomerul. Filtrationsr. (MDRD)" "eGFR (MDRD)" S --- X "glomerul. Filtrationsr. CKD-EP" "eGFR (CKD-EPI)" S -"Glucose (U)" Glukose U +"glomeruläre Filtrationsrate" GFR SU Glucose Glukose S +"Glucose (U)" Glukose U "GOT (ASAT)" GOT S 0 "GPT (ALAT)" GPT S 0 -Hämatokrit Hkt E -Hämoglobin Hb E Haptoglobin Haptoglobin S X -Harnsäure Harnsäure S +HAPTOGLOBIN Haptoglobin S X "Harnstoff (SU)" Hst SU "Harnstoff (SU)/die" Hst/Tag SU Harnstoff" Hst S "Harnstoff-Clearance (SU)/min" HstCl SU +Harnsäure Harnsäure S "HbA1c (NGSP)" HbA1c E +"HBc-Antikörper (gesamt)" Anti-HBc S +HBs-Antikörper Anti-HBs S "HDL - Cholesterin" HDL S "hyaline Zylinder (U)" "hyal. Zyl." U +Hämatokrit Hkt E +Hämoglobin Hb E +Kalium K S "Kalium (SU)" K U "Kalium (SU)/die" K SU -Kalium K S "Ketonkörper (U)" KK U +"Komplementfaktor C3c" C3c S X +"Komplementfaktor C4" C4 S X "Lactat Dehydrogenase" LDH S "LDL - Cholesterin" LDL S -"Leukozyten (U)" Leu U Leukozyten Leu E +"Leukozyten (U)" Leu U Lymphozyten Lym E Magnesium Mg S X "MCH (HbE)" MCH E 0 @@ -78,19 +91,24 @@ MCHC MCHC E 0 MCV MCV E 0 "Mittleres Plättchenvolumen" MPV E 0 Monozyten Mon E +Natrium Na S "Natrium (SU)" Na SU "Natrium (SU)/die" Na SU -Natrium Na S Neutrophile Neu E +"Niedermol. Heparin (Anti-Xa)" Anti-Xa Z "Nitrit (U)" Nitrit U NT-proBNP NT-proBNP S "PCO2 (art.)" pCO2 BGA -"pH (U)" pH U pH pH BGA +"pH (U)" pH U "Plattenepithelien (U)" Plattenep U "PO2 (art.)" pO2 BGA "Protein (U)" Protein U "PSA ges. (ECL,Elecsys,Roche)" PSA S X +"PTH intakt" iPTH S +PTT PTT Z +"Ratio int. norm." INR Z +Retikulozyten Retikulozyten E X "Sammelmenge (U)" Volumen SU "Sammelzeit (U)" Zeit SU "Sauerstoffsättigung (art.)" SO2 BGA @@ -98,31 +116,15 @@ Sirolimus SIR S "spezifisches Gewicht (U)" "spez. Gew." U "Standard Bicarbonat" "Std.-Bic." BGA "Tacrolimus (FK506)" TAC S +"Thromboplastinzeit n. Quick" Quick Z Thrombozyten Thr E Transferrin Transferrin S "Transferrinsättigung" Tf.-Sätt. S "Triglyceride" TG S "Troponin T (high sensitive)" hsTnT S +TSH TSH S +"Übergangsepithelien (U)" Übergangsep. U Unreife Granulozyten" Gran E "Urobilinogen (U)" Urobilinogen U -"Niedermol. Heparin (Anti-Xa)" Anti-Xa Z -"Thromboplastinzeit n. Quick" Quick Z -PTT PTT Z -"Ratio int. norm." INR Z -"Komplementfaktor C3c" C3c S X -"Komplementfaktor C4" C4 S X -"Anti-DNAse B" "Anti-DNAse B" S X -Anti-Streptolysin ASL S X -"PTH intakt" iPTH S -TSH TSH S -HAPTOGLOBIN Haptoglobin S X -FRAGMENTOZYTEN Fragmentozyten E -Retikulozyten Retikulozyten E X -"HBc-Antikörper (gesamt)" Anti-HBc S -HBs-Antikörper Anti-HBs S -"Albumin - Fraktion" Albumin-Fraktion S X -"Alpha1-Globulin - Fraktion" a1-Globulin S X -"Alpha2-Globulin - Fraktion" a2-Globulin S X -"Beta-Globulin - Fraktion" b-Globulin S X -"Gammaglobulin - Fraktion" g-Globulin S X +Vitamin B12 B12 S X # vim: tw=160 et nowrap fo-=t diff --git a/zaaReloaded2/Ribbon.cs b/zaaReloaded2/Ribbon.cs index a556054..fb27e25 100755 --- a/zaaReloaded2/Ribbon.cs +++ b/zaaReloaded2/Ribbon.cs @@ -16,12 +16,9 @@ * limitations under the License. */ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; using System.Reflection; using System.Runtime.InteropServices; -using System.Text; using System.Windows; using System.Drawing; using System.Windows.Resources; @@ -33,7 +30,6 @@ using zaaReloaded2.Formatter; using zaaReloaded2.Controller; using Word = Microsoft.Office.Interop.Word; using Bovender.Mvvm.Actions; -using Bovender.Mvvm.Messaging; // TODO: Follow these steps to enable the Ribbon (XML) item: @@ -114,7 +110,7 @@ namespace zaaReloaded2 Globals.ThisAddIn.Application.Selection); break; case "zrlDemo": - Demo.Demo.OpenDemoDocument(); + DoLoadDemo(); break; default: throw new InvalidOperationException("No operation defined for " + control.Id); @@ -230,6 +226,47 @@ namespace zaaReloaded2 vm.InjectInto().ShowDialog(); } + /// + /// Loads the embedded demo document. + /// + /// + /// If Word is running in an embedded environment (e.g. in the ZAA), + /// adding a document causes a COMException. Unfortunately, it is + /// not trivial to test if Word is running embedded, so we use a + /// try...catch structure and catch all COMExceptions. The error + /// message might be not quite right if the exception was caused by + /// a different problem. + /// See http://davecra.com/2013/04/10/how-to-determine-if-an-excel-workbook-is-embedded-and-more + /// + void DoLoadDemo() + { + try + { + Demo.Demo.OpenDemoDocument(); + } + catch (System.Runtime.InteropServices.COMException e) + { + // HRESULT comparison according to http://stackoverflow.com/a/1426198/270712 + // Fix for exception ID 65a5c34e + if (e.ErrorCode == unchecked((int)0x800A11FD)) + { + NotificationAction a = new NotificationAction(); + a.Caption = "Kann Demo-Dokument nicht laden"; + a.Message = "Das Demo-Dokument kann nicht geladen werden, " + + "wenn Word in der Zentralen Arztbriefablage ausgeführt wird.\r" + + "Bitte Word als eigenständige Anwendung starten und dann " + + "noch einmal versuchen."; + a.OkButtonLabel = "Schließen"; + a.Invoke(); + } + else + { + throw; + } + } + + } + public void Application_WindowSelectionChange(Microsoft.Office.Interop.Word.Selection Sel) { _ribbon.Invalidate(); diff --git a/zaaReloaded2/VERSION b/zaaReloaded2/VERSION index 71ce9f8..90f242b 100755 --- a/zaaReloaded2/VERSION +++ b/zaaReloaded2/VERSION @@ -1,2 +1,2 @@ -2.0.0 -2.0.0.11 +2.0.1 +2.0.0.12