Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.importers
Class HL7.OBX

java.lang.Object
  extended by ch.elexis.importers.HL7.OBX
Enclosing class:
HL7

public class HL7.OBX
extends java.lang.Object


Method Summary
 java.lang.String getComment()
          Find the comment field of this OBX.
 TimeTool getDate()
          Deprecated. better use obr date for date of sample
 java.lang.String getItemCode()
           
 java.lang.String getItemName()
           
 java.lang.String getObxNr()
           
 java.lang.String getRefRange()
           
 java.lang.String getResultValue()
           
 HL7.RESULTSTATUS getStatus()
           
 HL7.RECORDTYPE getType()
           
 java.lang.String getUnits()
           
 boolean isFormattedText()
           
 boolean isNumeric()
           
 boolean isPathologic()
          This is greatly simplified from the possible values <<, <, >,>>, +, ++, -, -- and so on we just say "it's pathologic".
 boolean isPlainText()
          HL7 defines TX for plaintext and NM for numeric.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getObxNr

public java.lang.String getObxNr()

getItemCode

public java.lang.String getItemCode()

getItemName

public java.lang.String getItemName()

getResultValue

public java.lang.String getResultValue()

getUnits

public java.lang.String getUnits()

getRefRange

public java.lang.String getRefRange()

getDate

@Deprecated
public TimeTool getDate()
Deprecated. better use obr date for date of sample

Unfortunately, the date field is not provided by all applications. If we don't find an OBX date, we use the OBR date.

Returns:

isPathologic

public boolean isPathologic()
This is greatly simplified from the possible values <<, <, >,>>, +, ++, -, -- and so on we just say "it's pathologic".

Returns:
true if it's any of the pathologic values.

getType

public HL7.RECORDTYPE getType()

isPlainText

public boolean isPlainText()
HL7 defines TX for plaintext and NM for numeric. Unfortunately, some labs put numbers in TX fields, thus we have to check

Returns:
true if the field is TX and contains not only numbers.

isNumeric

public boolean isNumeric()

isFormattedText

public boolean isFormattedText()

getStatus

public HL7.RESULTSTATUS getStatus()

getComment

public java.lang.String getComment()
Find the comment field of this OBX. Funny enough this is stored outside of the OBX usually. To make things simpler, we put all comments one after another in the same string (why not?).

Returns:
The comment (that can be an empty String or might contain several NTE records)

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis