public class SLT extends Segment
The SLT segment defines requests, responses, and notifications of sterilization lots and supply item descriptions.
Represents an HL7 SLT message segment. This segment has the following fields:
SLT-1 : Device Number (EI) Optional
SLT-2 : Device Name (ST) Optional
SLT-3 : Lot Number (EI) Optional
SLT-4 : Item Identifier (EI) Optional
SLT-5 : Bar Code (ST) 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 |
|---|
SLT()
Constructs the SLT segment.
|
| Modifier and Type | Method and Description |
|---|---|
ST |
getBarCode()
Retrieves the Bar Code.
|
ST |
getDeviceName()
Retrieves the Device Name.
|
EI |
getDeviceNumber()
Retrieves the Device Number.
|
EI |
getItemIdentifier()
Retrieves the Item Identifier.
|
EI |
getLotNumber()
Retrieves the Lot Number.
|
void |
setBarCode(ST objBarCode)
Set the Bar Code.
|
void |
setBarCode(java.lang.String strBarCode)
Set the Bar Code.
|
void |
setDeviceName(ST objDeviceName)
Set the Device Name.
|
void |
setDeviceName(java.lang.String strDeviceName)
Set the Device Name.
|
void |
setDeviceNumber(EI objDeviceNumber)
Set the Device Number.
|
void |
setDeviceNumber(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Set the Device Number.
|
void |
setItemIdentifier(EI objItemIdentifier)
Set the Item Identifier.
|
void |
setItemIdentifier(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Set the Item Identifier.
|
void |
setLotNumber(EI objLotNumber)
Set the Lot Number.
|
void |
setLotNumber(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Set the Lot Number.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic EI getDeviceNumber()
public ST getDeviceName()
public EI getLotNumber()
public EI getItemIdentifier()
public ST getBarCode()
public void setDeviceNumber(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strEntityIdentifier - Specifies to be unique within the series of identifiers created by the
assigning authority, defined by a hierarchic designatorstrNamespaceId - Specifies the assigning authority is a unique identifier of the system
(or organization or agency or department) that creates the data.strUniversalId - Specifies a string formatted according to the scheme defined by the third component universal ID type.
It is intended to be unique over time within the UID type.strUniversalIdType - Governs the interpretation of the Universal ID.public void setDeviceNumber(EI objDeviceNumber)
objDeviceNumber - Object of Device Numberpublic void setDeviceName(java.lang.String strDeviceName)
strDeviceName - Used as Device Name.public void setDeviceName(ST objDeviceName)
objDeviceName - Object of Device Name.public void setLotNumber(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strEntityIdentifier - Specifies to be unique within the series of identifiers created by the
assigning authority, defined by a hierarchic designatorstrNamespaceId - Specifies the assigning authority is a unique identifier of the system
(or organization or agency or department) that creates the data.strUniversalId - Specifies a string formatted according to the scheme defined by the third component universal ID type.
It is intended to be unique over time within the UID type.strUniversalIdType - Governs the interpretation of the Universal ID.public void setLotNumber(EI objLotNumber)
objLotNumber - Object of Lot Numberpublic void setItemIdentifier(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strEntityIdentifier - Specifies to be unique within the series of identifiers created by the
assigning authority, defined by a hierarchic designatorstrNamespaceId - Specifies the assigning authority is a unique identifier of the system
(or organization or agency or department) that creates the data.strUniversalId - Specifies a string formatted according to the scheme defined by the third component universal ID type.
It is intended to be unique over time within the UID type.strUniversalIdType - Governs the interpretation of the Universal ID.public void setItemIdentifier(EI objItemIdentifier)
objItemIdentifier - Object of Item Identifierpublic void setBarCode(java.lang.String strBarCode)
strBarCode - Used as Bar Codepublic void setBarCode(ST objBarCode)
objBarCode - Object of Bar Codepublic boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - If Segment Validation fails