public class VND extends Segment
This segment contains purchasing vendors that supply the inventory supply item specified in the ITM segment.
Represents an HL7 VND message segment. This segment has the following fields:
VND-1 : Set Id - VND(SI) Required
VND-2 : Vendor Identifier(EI) Required
VND-3 : Vendor Name (ST) Optional
VND-4 : Vendor Catalog Number (EI) Optional
VND-5 : Primary Vendor Indicator(CNE) 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 |
|---|
VND()
Constructs the VND segment.
|
| Modifier and Type | Method and Description |
|---|---|
CNE |
getPrimaryVendorIndicator()
Retrieves the Primary Vendor Indicator.
|
SI |
getSetIdVND()
Retrieves the Set Id - VND.
|
EI |
getVendorCatalogNumber()
Retrieves the Vendor Catalog Number.
|
EI |
getVendorIdentifier()
Retrieves the Vendor Identifier.
|
ST |
getVendorName()
Retrieves the Vendor Name.
|
void |
setPrimaryVendorIndicator(CNE objPrimaryVendorIndicator)
Set the Primary Vendor Indicator.
|
void |
setPrimaryVendorIndicator(java.lang.String strIdentifier,
java.lang.String strText,
java.lang.String strNameOfCodingSystem,
java.lang.String strAlternateIdentifier,
java.lang.String strAlternateText,
java.lang.String strNameOfAlternateCodingSystem,
java.lang.String strCodingSystemVersionID,
java.lang.String strAlternateCodingSystemVersionID,
java.lang.String strOriginalText,
java.lang.String strSecondAlternateIdentifier,
java.lang.String strSecondAlternateText,
java.lang.String strNameOfSecondAltenateCodingSystem,
java.lang.String strSecondAlternateCodingSystemVersionID,
java.lang.String strCodingSystemOID,
java.lang.String strValueSetOID,
java.lang.String strValueSetVersionID,
java.lang.String strAlternateCodingSystemOID,
java.lang.String strAlternateValueSetOID,
java.lang.String strAlternateValueSetVersionID,
java.lang.String strSecondAlternateCodingSystemOID,
java.lang.String strSecondAlternateValueSetOID,
java.lang.String strSecondAlternateValueSetVersionID)
Set the Primary Vendor Indicator.
|
void |
setSetIdVND(SI objSetIdVND)
Set the Set Id - VND.
|
void |
setSetIdVND(java.lang.String strSetIdVND)
Set the Set Id - VND.
|
void |
setVendorCatalogNumber(EI objVendorCatalogNumber)
Set the Vendor Catalog Number.
|
void |
setVendorCatalogNumber(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Set the Vendor Catalog Number.
|
void |
setVendorIdentifier(EI objVendorIdentifier)
Set the Vendor Identifier.
|
void |
setVendorIdentifier(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Set the Vendor Identifier.
|
void |
setVendorName(ST objVendorName)
Set the Vendor Name.
|
void |
setVendorName(java.lang.String strVendorName)
Set the Vendor Name.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic SI getSetIdVND()
public EI getVendorIdentifier()
public ST getVendorName()
public EI getVendorCatalogNumber()
public CNE getPrimaryVendorIndicator()
public void setSetIdVND(java.lang.String strSetIdVND)
strSetIdVND - Specifies Set Id – VNDpublic void setSetIdVND(SI objSetIdVND)
objSetIdVND - Specifies Set Id – VNDpublic void setVendorIdentifier(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 setVendorIdentifier(EI objVendorIdentifier)
objVendorIdentifier - Object of Vendor Identifierpublic void setVendorName(java.lang.String strVendorName)
strVendorName - Used as Vendor Name.public void setVendorName(ST objVendorName)
objVendorName - Object of Vendor Name.public void setVendorCatalogNumber(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 setVendorCatalogNumber(EI objVendorCatalogNumber)
objVendorCatalogNumber - Object of Vendor Catalog Numberpublic void setPrimaryVendorIndicator(java.lang.String strIdentifier,
java.lang.String strText,
java.lang.String strNameOfCodingSystem,
java.lang.String strAlternateIdentifier,
java.lang.String strAlternateText,
java.lang.String strNameOfAlternateCodingSystem,
java.lang.String strCodingSystemVersionID,
java.lang.String strAlternateCodingSystemVersionID,
java.lang.String strOriginalText,
java.lang.String strSecondAlternateIdentifier,
java.lang.String strSecondAlternateText,
java.lang.String strNameOfSecondAltenateCodingSystem,
java.lang.String strSecondAlternateCodingSystemVersionID,
java.lang.String strCodingSystemOID,
java.lang.String strValueSetOID,
java.lang.String strValueSetVersionID,
java.lang.String strAlternateCodingSystemOID,
java.lang.String strAlternateValueSetOID,
java.lang.String strAlternateValueSetVersionID,
java.lang.String strSecondAlternateCodingSystemOID,
java.lang.String strSecondAlternateValueSetOID,
java.lang.String strSecondAlternateValueSetVersionID)
strIdentifier - Specifies sequence of characters (the code) that uniquely identifies
the item being referenced by the CNE.strText - Specifies descriptive or textual name of the identifier, e.g., myocardial infarctionstrNameOfCodingSystem - Specifies the coding scheme being used in the identifier component.strAlternateIdentifier - Specifies the local or user seen code as described.strAlternateText - Specifies descriptive or textual name of the alternate identifier.strNameOfAlternateCodingSystem - Specifies the coding scheme being used in the alternate identifier
component.strCodingSystemVersionID - Specifies the version ID for the coding system.strAlternateCodingSystemVersionID - Specifies the version ID for the coding system .strOriginalText - Specifies the original text that was available to an automated process or a human
before a specific code was assigned.strSecondAlternateIdentifier - Specifies a sequence of characters that uniquely identifies the second alternate codestrSecondAlternateText - Specifies a the textual information of the second alternate codestrNameOfSecondAltenateCodingSystem - Specifies the second coding scheme being used in the identifier component.strSecondAlternateCodingSystemVersionID - Specifies version ID of Second alternative coding system.strCodingSystemOID - contains the ISO Object identifier for the coding system.strValueSetOID - contains the value set from which CNE-1 is obtainedstrValueSetVersionID - contains the version of the value set identified by CNE-15.strAlternateCodingSystemOID - contains the ISO Object identifier for the alternate coding systemstrAlternateValueSetOID - contains the value set from which CNE-4 is obtainedstrAlternateValueSetVersionID - contains the version of the value set identified by CNE-18.strSecondAlternateCodingSystemOID - contains the value set from which CNE-12 is obtainedstrSecondAlternateValueSetOID - contains the value set from which CNE-10 is obtainedstrSecondAlternateValueSetVersionID - contains the version of the value set identified by CNE-21.public void setPrimaryVendorIndicator(CNE objPrimaryVendorIndicator)
objPrimaryVendorIndicator - Object of Primary Vendor Indicator.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - If Segment Validation fails