Elexis API documentation
Version 2.1.6 as of December 11 2011

eaustria.dame.modell
Class DameDokumentverwaltung

java.lang.Object
  extended by eaustria.dame.modell.DameDokumentverwaltung
All Implemented Interfaces:
IDocumentManager

public class DameDokumentverwaltung
extends java.lang.Object
implements IDocumentManager

Die Dokumentenverwaltung ermöglicht das Filtern aller DAME-Dokumente nach bestimmten Kriterien. Besonders wichtig ist das Filtern nach dem Patienten, damit nur Dokumente zu einem bestimmten Patienten aufgelistet werden.

Author:
leo

Constructor Summary
DameDokumentverwaltung()
           
 
Method Summary
 boolean addCategory(java.lang.String kategorie)
          Add a Categorie
 java.lang.String addDocument(IOpaqueDocument dok)
          ACHTUNG!
 void beobachterDeregistrieren(DameDokumentverwaltungsbeobachter beob)
          Deregistriert einen neuen Beobachter.
 void beobachterRegistrieren(DameDokumentverwaltungsbeobachter beob)
          Registriert einen neuen Beobachter.
 java.util.List<IOpaqueDocument> gefilterteDokumente(Patient pat, Mandant mand)
          Liefert alle Dokumente, die dem gegebenen Patient und dem gegebenen Mandanten zugeordnet sind und alle Dokumente, die keinem Patienten oder keinem Mandanten zugeordnet sind.
 java.lang.String[] getCategories()
          List Categories for Documents
 IOpaqueDocument getDocument(java.lang.String id)
           
 java.util.List<IOpaqueDocument> listDocuments(java.lang.String patid, java.lang.String categoryMatch, java.lang.String titleMatch, java.lang.String keywordMatch, TimeSpan dateMatch, java.lang.String contentsMatch)
          Retrieve documents with matching criteria.
 boolean removeDocument(java.lang.String guid)
          remove and delete a document
static java.lang.String streuwertBerechnen(byte[] inhalt)
          Berechnet den zu diesem Inhalt gehörigen SHA1-Streuwert.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DameDokumentverwaltung

public DameDokumentverwaltung()
Method Detail

addCategory

public boolean addCategory(java.lang.String kategorie)
Description copied from interface: IDocumentManager
Add a Categorie

Specified by:
addCategory in interface IDocumentManager

addDocument

public java.lang.String addDocument(IOpaqueDocument dok)
                             throws ElexisException
ACHTUNG! dok sollte bereits ein fertiges DAME-Dokument sein. Andernfalls ist das erstellte DAME-Dokument nicht vollständig initialisiert.

Specified by:
addDocument in interface IDocumentManager
Parameters:
dok - The IDocument to add
Returns:
ID of the newly created internal representation
Throws:
ElexisException

streuwertBerechnen

public static java.lang.String streuwertBerechnen(byte[] inhalt)
Berechnet den zu diesem Inhalt gehörigen SHA1-Streuwert.


getCategories

public java.lang.String[] getCategories()
Description copied from interface: IDocumentManager
List Categories for Documents

Specified by:
getCategories in interface IDocumentManager

getDocument

public IOpaqueDocument getDocument(java.lang.String id)
Specified by:
getDocument in interface IDocumentManager

listDocuments

public java.util.List<IOpaqueDocument> listDocuments(java.lang.String patid,
                                                     java.lang.String categoryMatch,
                                                     java.lang.String titleMatch,
                                                     java.lang.String keywordMatch,
                                                     TimeSpan dateMatch,
                                                     java.lang.String contentsMatch)
                                              throws ElexisException
Description copied from interface: IDocumentManager
Retrieve documents with matching criteria. If a parameter is null, it will be considered as "any". If a String parameter is enclosed in slashes, it will be considered as regex: "/m[ae]h/" will match mah and meh, while "m[ae]h" will only match the literal string m[ae]h.

Specified by:
listDocuments in interface IDocumentManager
Parameters:
patid - The ID of the patient the documents belong to
categoryMatch - the category or categories to match
titleMatch - title
keywordMatch - keyword to find. Will match if at least one of the documents keywords match the parameter
dateMatch - match only documents woth dates within the given timespan
contentsMatch - find a match in the contents of the document. Note: This is not supported by all documentmanagers and it might be very inefficient! If the parameter is not null and the implementation does not support contentMatch, it throws an ElexisException EE_NOT_SUPPORTED.
Returns:
lust of all IDocuments matching the goven criteria
Throws:
ElexisException

beobachterRegistrieren

public void beobachterRegistrieren(DameDokumentverwaltungsbeobachter beob)
Registriert einen neuen Beobachter.


beobachterDeregistrieren

public void beobachterDeregistrieren(DameDokumentverwaltungsbeobachter beob)
Deregistriert einen neuen Beobachter.


gefilterteDokumente

public java.util.List<IOpaqueDocument> gefilterteDokumente(Patient pat,
                                                           Mandant mand)
                                                    throws ElexisException
Liefert alle Dokumente, die dem gegebenen Patient und dem gegebenen Mandanten zugeordnet sind und alle Dokumente, die keinem Patienten oder keinem Mandanten zugeordnet sind. Letztere müssen sichtbar bleiben, damit sie der Anwender explizit zuordnen kann.

Parameters:
pat - zu filternder Patient
mand - zu filternder Mandant
Returns:
eine Liste mit Dokumenten
Throws:
ElexisException

removeDocument

public boolean removeDocument(java.lang.String guid)
Description copied from interface: IDocumentManager
remove and delete a document

Specified by:
removeDocument in interface IDocumentManager
Parameters:
guid - the guid of the doucment to remove
Returns:
true on success

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis