public class DSP extends Segment
The DSP segment is used to contain data that has been preformatted by the sender for display. The semantic content of the data is lost; the data is simply treated as lines of text.
Represents an HL7 DSP message segment. This segment has the following fields:
DSP-1: Set ID - DSP (SI)Optional
DSP-2: Display Level (SI)Optional
DSP-3: Data Line (TX)Required
DSP-4: Logical Break Point (ST)Optional
DSP-5: Result ID (TX)Optional
This class provides mechanism to validate message against HL7 v 2.8.2 standard. The class provides accessors & mutators for the elements mentioned above. The class has validate method which validates Message against HL7 v 2.8.2 standard.
User can also create Segment through SegmentFactory
| Constructor and Description |
|---|
DSP()
Constructs the DSP segment.
|
| Modifier and Type | Method and Description |
|---|---|
TX |
getDataLine()
Retrieves the Data Line.
|
SI |
getDisplayLevel()
Retrieves the Display Level.
|
ST |
getLogicalBreakPoint()
Retrieves the Logical Break Point.
|
TX |
getResultID()
Retrieves the Result ID.
|
SI |
getSetIDDSP()
Retrieves the Set ID DSP.
|
void |
setDataLine(java.lang.String strSoftwareProductInformation)
Set the Data Line.
|
void |
setDataLine(TX objdataLine)
Set the Data Line.
|
void |
setDisplayLevel(SI objdisplayLevel)
Set the Display Level.
|
void |
setDisplayLevel(java.lang.String strSetID_AL1)
Set the Display Level.
|
void |
setLogicalBreakPoint(ST objlogicalBreakPoint)
Set the Logical Break Point.
|
void |
setLogicalBreakPoint(java.lang.String strAccidentLocation)
Set the Logical Break Point.
|
void |
setResultID(java.lang.String strSoftwareProductInformation)
Set the Result ID.
|
void |
setResultID(TX objresultID)
Set the Result ID.
|
void |
setSetIDDSP(SI objsetIDDSP)
Set the Set ID DSP.
|
void |
setSetIDDSP(java.lang.String strSetID_AL1)
Set the Set ID DSP.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic TX getDataLine()
public SI getDisplayLevel()
public ST getLogicalBreakPoint()
public TX getResultID()
public SI getSetIDDSP()
public void setDataLine(java.lang.String strSoftwareProductInformation)
strSoftwareProductInformation - Used for SoftwareProductInformation.public void setDataLine(TX objdataLine)
objdataLine - object of Data Line.public void setLogicalBreakPoint(java.lang.String strAccidentLocation)
strAccidentLocation - Used for AccidentLocation.public void setLogicalBreakPoint(ST objlogicalBreakPoint)
objlogicalBreakPoint - object of logical Break Point.public void setResultID(java.lang.String strSoftwareProductInformation)
strSoftwareProductInformation - Used for SoftwareProductInformation.public void setResultID(TX objresultID)
objresultID - object of Result ID Used.public void setSetIDDSP(java.lang.String strSetID_AL1)
strSetID_AL1 - This field contains the number that identifies AL1 transaction.public void setSetIDDSP(SI objsetIDDSP)
objsetIDDSP - object of set ID DSP.public void setDisplayLevel(java.lang.String strSetID_AL1)
strSetID_AL1 - This field contains the number that identifies AL1 transaction.public void setDisplayLevel(SI objdisplayLevel)
objdisplayLevel - object of Display Level.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails.