ch.elexis.importers
Class HL7Parser
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myLab
public java.lang.String myLab
HL7Parser
public HL7Parser(java.lang.String mylab)
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:
Copyright 2005-2011 by Gerry Weirich, Elexis