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.hl7
Class HL7Parser

java.lang.Object
  extended by ch.elexis.hl7.HL7Parser
Direct Known Subclasses:
HL7_OML_O21, HL7_ORU_R01, HL7_ORU_R01

public abstract class HL7Parser
extends java.lang.Object


Field Summary
protected static java.lang.String COMMENT_GROUP
           
protected static java.lang.String COMMENT_NAME
           
protected  java.lang.String receivingApplication1
           
protected  java.lang.String receivingApplication3
           
protected  java.lang.String receivingFacility
           
protected  java.lang.String sendingApplication1
           
protected  java.lang.String sendingApplication3
           
 
Constructor Summary
HL7Parser()
           
HL7Parser(java.lang.String sendingApplication1, java.lang.String sendingApplication3, java.lang.String receivingApplication1, java.lang.String receivingApplication3, java.lang.String receivingFacility)
           
 
Method Summary
protected  void addAddressToXAD(ca.uhn.hl7v2.model.v26.datatype.XAD xad, HL7Kontakt kontakt)
          Adds address of kontakt to XAD segment
protected  void addError(java.lang.String error)
          Adds parsing error
protected  void addKontaktToXPN(ca.uhn.hl7v2.model.v26.datatype.XPN xpn, HL7Kontakt kontakt)
          Adds patient data to XPN segment
protected  void addPhone1ToXTN(ca.uhn.hl7v2.model.v26.datatype.XTN xtn, HL7Kontakt kontakt)
          Adds contact informations to XTN segment
protected  void addPhone2ToXTN(ca.uhn.hl7v2.model.v26.datatype.XTN xtn, HL7Kontakt kontakt)
          Adds contact informations to XTN segment
protected  void addWarning(java.lang.String warn)
          Adds a warning message
 void clearMessages()
          Clears all errors and warnings
protected  void fillMSH(ca.uhn.hl7v2.model.v26.segment.MSH msh, java.lang.String messageId, java.lang.String event, HL7Mandant mandant, java.lang.String uniqueMessageControlID, java.lang.String uniqueProcessingID, HL7Patient patient)
          Fills MSH segment
protected  void fillORC(ca.uhn.hl7v2.model.v26.segment.ORC orc, java.lang.String orderControl, java.lang.Long orderNumber)
          Fills ORC segment
protected  void fillPID(ca.uhn.hl7v2.model.v26.segment.PID pid, HL7Patient patient)
          Fills PID segment
 java.util.List<java.lang.String> getErrorList()
          Returns error list
abstract  java.lang.String getVersion()
          Returns version of HL7
 java.util.List<java.lang.String> getWarningList()
          Returns warning list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMENT_NAME

protected static final java.lang.String COMMENT_NAME
See Also:
Constant Field Values

COMMENT_GROUP

protected static final java.lang.String COMMENT_GROUP
See Also:
Constant Field Values

sendingApplication1

protected java.lang.String sendingApplication1

sendingApplication3

protected java.lang.String sendingApplication3

receivingApplication1

protected java.lang.String receivingApplication1

receivingApplication3

protected java.lang.String receivingApplication3

receivingFacility

protected java.lang.String receivingFacility
Constructor Detail

HL7Parser

public HL7Parser()

HL7Parser

public HL7Parser(java.lang.String sendingApplication1,
                 java.lang.String sendingApplication3,
                 java.lang.String receivingApplication1,
                 java.lang.String receivingApplication3,
                 java.lang.String receivingFacility)
Method Detail

getVersion

public abstract java.lang.String getVersion()
Returns version of HL7

Returns:

clearMessages

public void clearMessages()
Clears all errors and warnings


getErrorList

public java.util.List<java.lang.String> getErrorList()
Returns error list

Returns:

getWarningList

public java.util.List<java.lang.String> getWarningList()
Returns warning list

Returns:

addError

protected void addError(java.lang.String error)
Adds parsing error

Parameters:
error -

addWarning

protected void addWarning(java.lang.String warn)
Adds a warning message

Parameters:
error -

fillMSH

protected void fillMSH(ca.uhn.hl7v2.model.v26.segment.MSH msh,
                       java.lang.String messageId,
                       java.lang.String event,
                       HL7Mandant mandant,
                       java.lang.String uniqueMessageControlID,
                       java.lang.String uniqueProcessingID,
                       HL7Patient patient)
                throws ca.uhn.hl7v2.model.DataTypeException
Fills MSH segment

Parameters:
msh -
patient -
Throws:
ca.uhn.hl7v2.model.DataTypeException

fillPID

protected void fillPID(ca.uhn.hl7v2.model.v26.segment.PID pid,
                       HL7Patient patient)
                throws ca.uhn.hl7v2.model.DataTypeException,
                       ca.uhn.hl7v2.HL7Exception
Fills PID segment

Parameters:
pid -
patient -
Throws:
ca.uhn.hl7v2.model.DataTypeException
ca.uhn.hl7v2.HL7Exception

fillORC

protected void fillORC(ca.uhn.hl7v2.model.v26.segment.ORC orc,
                       java.lang.String orderControl,
                       java.lang.Long orderNumber)
                throws ca.uhn.hl7v2.model.DataTypeException
Fills ORC segment

Parameters:
orc -
orderControl - (ORC-1)
orderNumber - (ORC-2)
Throws:
ca.uhn.hl7v2.model.DataTypeException

addKontaktToXPN

protected void addKontaktToXPN(ca.uhn.hl7v2.model.v26.datatype.XPN xpn,
                               HL7Kontakt kontakt)
                        throws ca.uhn.hl7v2.model.DataTypeException
Adds patient data to XPN segment

Parameters:
xpn -
patient -
Throws:
ca.uhn.hl7v2.model.DataTypeException

addAddressToXAD

protected void addAddressToXAD(ca.uhn.hl7v2.model.v26.datatype.XAD xad,
                               HL7Kontakt kontakt)
                        throws ca.uhn.hl7v2.model.DataTypeException
Adds address of kontakt to XAD segment

Parameters:
xad -
kontakt -
Throws:
ca.uhn.hl7v2.model.DataTypeException

addPhone1ToXTN

protected void addPhone1ToXTN(ca.uhn.hl7v2.model.v26.datatype.XTN xtn,
                              HL7Kontakt kontakt)
                       throws ca.uhn.hl7v2.model.DataTypeException
Adds contact informations to XTN segment

Parameters:
xtn -
kontakt -
Throws:
ca.uhn.hl7v2.model.DataTypeException

addPhone2ToXTN

protected void addPhone2ToXTN(ca.uhn.hl7v2.model.v26.datatype.XTN xtn,
                              HL7Kontakt kontakt)
                       throws ca.uhn.hl7v2.model.DataTypeException
Adds contact informations to XTN segment

Parameters:
xtn -
kontakt -
Throws:
ca.uhn.hl7v2.model.DataTypeException

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