Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

ch.elexis.importers
Class HL7Parser

java.lang.Object
  extended by ch.elexis.importers.HL7Parser

public class HL7Parser
extends java.lang.Object


Field Summary
 java.lang.String myLab
           
 
Constructor Summary
HL7Parser(java.lang.String mylab)
           
 
Method Summary
 Result<?> importFile(java.io.File file, java.io.File archiveDir, boolean bCreatePatientIfNotExists)
          Import the given HL7 file.
 Result<?> importFile(java.lang.String filepath, boolean bCreatePatientIfNotExists)
          Equivalent to importFile(new File(file), null)
 void importFromDir(java.io.File dir, java.io.File archiveDir, Result<?> res, boolean bCreatePatientIfNotExists)
           
 Result<java.lang.Object> parse(HL7 hl7, boolean createPatientIfNotFound)
           
 void setTestMode(boolean value)
          Method sets testMode which will prevent dialogs from opening.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myLab

public java.lang.String myLab
Constructor Detail

HL7Parser

public HL7Parser(java.lang.String mylab)
Method Detail

setTestMode

public void setTestMode(boolean value)
Method sets testMode which will prevent dialogs from opening. Should only be used by unit tests.

Parameters:
value -

parse

public Result<java.lang.Object> parse(HL7 hl7,
                                      boolean createPatientIfNotFound)

importFile

public Result<?> importFile(java.io.File file,
                            java.io.File archiveDir,
                            boolean bCreatePatientIfNotExists)
Import the given HL7 file. Optionally, move the file into the given archive directory

Parameters:
file - the file to be imported (full path)
archiveDir - a directory where the file should be moved to on success, or null if it should not be moved.
Returns:
the result as type Result

importFromDir

public void importFromDir(java.io.File dir,
                          java.io.File archiveDir,
                          Result<?> res,
                          boolean bCreatePatientIfNotExists)

importFile

public Result<?> importFile(java.lang.String filepath,
                            boolean bCreatePatientIfNotExists)
Equivalent to importFile(new File(file), null)

Parameters:
filepath - the file to be imported (full path)
Returns:

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013