Elexis API documentation
Version 2.1.6 as of January 22 2012

ch.medshare.elexis.directories
Class DirectoriesContentParser

java.lang.Object
  extended by ch.medshare.elexis.directories.HtmlParser
      extended by ch.medshare.elexis.directories.DirectoriesContentParser

public class DirectoriesContentParser
extends HtmlParser

Author:
jsigle (comment and 20101213 update only) The service http://tel.local.ch provides a user-interface for WWW browsers with a lot of additional content around the desired address/contact information. The address/contact information is extracted from this material and returned in variable fields suitable for further usage by Elexis. If a search request returns multiple results, these appear in (what we call) "ADR_LIST" format. If a search request returns exactly one result (or one entry from the list is clicked at in the WWW browser), the result appears in (what we call) "ADR_DETAIL" format. By 12/2010, a change in the output format of tel.local.ch required new marker strings for processing. The processing of a result in ADR_DETAIL format continued to work, But the processing of a result in ADR_LIST format would deliver an empty result.

Constructor Summary
DirectoriesContentParser(java.lang.String htmlText)
           
 
Method Summary
 java.util.List<KontaktEntry> extractKontakte()
          Extrahiert Informationen aus dem retournierten Html.
 java.lang.String getSearchInfo()
          Informationen zur Suche werden extrahiert. 20101213js added comments Bsp: (valid before 2010-12-xx)
23 Treffer für müller hans in bern
 
Methods inherited from class ch.medshare.elexis.directories.HtmlParser
extract, extractTo, getNextPos, getNextPos, getTail, moveTo, reset, startsWith
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoriesContentParser

public DirectoriesContentParser(java.lang.String htmlText)
Method Detail

getSearchInfo

public java.lang.String getSearchInfo()
Informationen zur Suche werden extrahiert. 20101213js added comments Bsp: (valid before 2010-12-xx)
23 Treffer für müller hans in bern Bsp: (valid after 2010-12-13, linebreaks added for clarity) meier in bern - 965 Treffer auf local.ch

extractKontakte

public java.util.List<KontaktEntry> extractKontakte()
                                             throws java.io.IOException
Extrahiert Informationen aus dem retournierten Html. Anhand der
kann entschieden werden, ob es sich um eine Liste oder einen Detaileintrag (mit Telefon handelt). Detaileinträge: "adrNameDetLev0", "adrNameDetLev1", "adrNameDetLev3" Nur Detaileintrag "adrNameDetLev2" darf nicht extrahiert werden Listeinträge: "adrListLev0", "adrListLev1", "adrListLev3" Nur Listeintrag "adrListLev0Cat" darf nicht extrahiert werden

Throws:
java.io.IOException

Elexis API documentation
Version 2.1.6 as of January 22 2012

Copyright 2005-2011 by Gerry Weirich, Elexis