public class PKG extends Segment
This segment contains the type of packaging available for the inventory supply item to be ordered and/or issued to a department or other supply location for a specified Purchasing Vendor.
Represents an HL7 PKG message segment. This segment has the following fields:
PKG-1 : Set Id - PKG (SI) Required User can also create Segment through
PKG-2 : Packaging Units(CWE) Optional
PKG-3 : Default Order Unit Of Measure Indicator(CNE) Optional
PKG-4 : Package Quantity(NM)
PKG-5 : Price(CP) Optional
PKG-6 : Future Item Price(CP) Optional
PKG-7 : Future Item Price Effective Date(DTM) Optional
PKG-8 : Global Trade Item Number(CWE) 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.
SegmentFactory
| Constructor and Description |
|---|
PKG()
Constructs the PKG segment.
|
| Modifier and Type | Method and Description |
|---|---|
CNE |
getDefaultOrderUnitOfMeasureIndicator()
Retrieves the Default Order Unit Of Measure Indicator.
|
CP |
getFutureItemPrice()
Retrieves the Future Item Price.
|
CWE |
getGlobalTradeItemNumber()
Retrieves the Global Trade Item Number.
|
DTM |
getItemPriceEffectiveDate()
Retrieves the Future Item Price Effective Date.
|
NM |
getPackageQuantity()
Retrieves the Package Quantity.
|
CWE |
getPackagingUnits()
Retrieves the Packaging Units.
|
CP |
getPrice()
Retrieves the Price.
|
SI |
getSetId_PKG()
Retrieves the Set Id - PKG.
|
void |
setDefaultOrderUnitOfMeasureIndicator(CNE objDefaultOrderUnitOfMeasureIndicator)
Set the Default Order Unit Of Measure Indicator.
|
void |
setDefaultOrderUnitOfMeasureIndicator(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 Default Order Unit Of Measure Indicator.
|
void |
setFutureItemPrice(CP objFutureItemPrice)
Set the Future Item Price.
|
void |
setFutureItemPrice(MO objPrice,
java.lang.String strPriceType,
java.lang.String strFromValue,
java.lang.String strToValue,
CWE objRangeUnits,
java.lang.String strRangeType)
Set the Future Item Price.
|
void |
setFutureItemPriceEffectiveDate(DTM objFutureItemPriceEffectiveDate)
Set the Future Item Price Effective Date.
|
void |
setFutureItemPriceEffectiveDate(java.lang.String strFutureItemPriceEffectiveDate)
Set the Future Item Price Effective Date.
|
void |
setGlobalTradeItemNumber(CWE objGlobalTradeItemNumber)
Set the Global Trade Item Number.
|
void |
setGlobalTradeItemNumber(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 strNameofSecondAlternateCodingSystem,
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 Global Trade Item Number.
|
void |
setPackageQuantity(NM objPackageQuantity)
Set the Package Quantity.
|
void |
setPackageQuantity(java.lang.String strPackageQuantity)
Set the Package Quantity.
|
void |
setPackagingUnits(CWE objPackagingUnits)
Set the Packaging Units.
|
void |
setPackagingUnits(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 strNameofSecondAlternateCodingSystem,
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 Packaging Units.
|
void |
setPrice(CP objPrice)
Set the Price.
|
void |
setPrice(MO objPrice,
java.lang.String strPriceType,
java.lang.String strFromValue,
java.lang.String strToValue,
CWE objRangeUnits,
java.lang.String strRangeType)
Set the Price.
|
void |
setSetId_PKG(SI objSetId_PKG)
Set the Set Id - PKG.
|
void |
setSetId_PKG(java.lang.String strSetId_PKG)
Set the Set Id - PKG.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic SI getSetId_PKG()
public CWE getPackagingUnits()
public CNE getDefaultOrderUnitOfMeasureIndicator()
public NM getPackageQuantity()
public CP getPrice()
public CP getFutureItemPrice()
public DTM getItemPriceEffectiveDate()
public CWE getGlobalTradeItemNumber()
public void setSetId_PKG(java.lang.String strSetId_PKG)
strSetId_PKG - Specifies Set Id - PKGpublic void setSetId_PKG(SI objSetId_PKG)
objSetId_PKG - Specifies Set Id - PKGpublic void setPackagingUnits(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 strNameofSecondAlternateCodingSystem,
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 of characters (the code) that uniquely identifies the item being referenced.strText - Specifies The descriptive or textual name of the identifier, e.g., myocardial infarction.strNameOfCodingSystem - Identifies the coding scheme being used in the identifier component.strAlternateIdentifier - Specifies an alternate sequence of characters (the code) that uniquely identifies the item being referenced.strAlternateText - Specifies the descriptive or textual name of the alternate identifier. See usage note in section introduction.strNameOfAlternateCodingSystem - Identifies the coding scheme being used in the alternate identifier component.strCodingSystemVersionID - A sequence of characters that uniquely identifies a second alternate code.strAlternateCodingSystemVersionId - This component carries the version for the coding system identified by components 4-6.strOriginalText - The text as seen and/or selected by the user who entered the data.strSecondAlternateIdentifier - A sequence of characters that uniquely identifies a second alternate code.strSecondAlternateText - The descriptive or textual name of the alternate identifier.strNameofSecondAlternateCodingSystem - Identifies the coding scheme being used in the alternate identifier component.strSecondAlternateCodingSystemVersionID - This component carries the version for the coding system identified by components 10-12.strCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.3.strValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.1 is obtained.strValueSetVersionID - This component carries the version for the value set identified by CWE.15. The version is a date. The date is the date/time that the value set being used was published.strAlternateCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.6.strAlternateValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.4 is obtained.strAlternateValueSetVersionID - This component carries the version for the value set identified by CWE.18. The version is a date.strSecondAlternateCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.12.strSecondAlternateValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.10 is obtained.strSecondAlternateValueSetVersionID - This component carries the version for the value set identified by CWE.21. The version is a date.public void setPackagingUnits(CWE objPackagingUnits)
objPackagingUnits - Object of Packaging Units.public void setDefaultOrderUnitOfMeasureIndicator(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 setDefaultOrderUnitOfMeasureIndicator(CNE objDefaultOrderUnitOfMeasureIndicator)
objDefaultOrderUnitOfMeasureIndicator - Object of Default Order Unit Of Measure Indicator.public void setPackageQuantity(java.lang.String strPackageQuantity)
strPackageQuantity - Use as Package Quantity.public void setPackageQuantity(NM objPackageQuantity)
objPackageQuantity - Use as Package Quantity.public void setPrice(MO objPrice, java.lang.String strPriceType, java.lang.String strFromValue, java.lang.String strToValue, CWE objRangeUnits, java.lang.String strRangeType)
objPrice - Specifies an amount of money and the denomination in which it is expressed.strPriceType - Specifies a coded value, data type ID.[Refer to HL7 Table 0205]
Suggested Values AP,DC,IC,PF,TF,TP,UP.strFromValue - Specifies the "range" along with strToValue.strToValue - Specifies the "range" along with strFromValue.objRangeUnits - Specifies This describes the units associated with the range, e.g., seconds, minutesstrRangeType - Refer to HL7 Table 0298 - CP range type for valid values.(P,F)public void setPrice(CP objPrice)
objPrice - public void setFutureItemPrice(MO objPrice, java.lang.String strPriceType, java.lang.String strFromValue, java.lang.String strToValue, CWE objRangeUnits, java.lang.String strRangeType)
objPrice - Specifies an amount of money and the denomination in which it is expressed.strPriceType - Specifies a coded value, data type ID.[Refer to HL7 Table 0205]
Suggested Values AP,DC,IC,PF,TF,TP,UP.strFromValue - Specifies the "range" along with strToValue.strToValue - Specifies the "range" along with strFromValue.objRangeUnits - Specifies This describes the units associated with the range, e.g., seconds, minutesstrRangeType - Refer to HL7 Table 0298 - CP range type for valid values.(P,F)public void setFutureItemPrice(CP objFutureItemPrice)
objFutureItemPrice - public void setFutureItemPriceEffectiveDate(java.lang.String strFutureItemPriceEffectiveDate)
strFutureItemPriceEffectiveDate - Use as Future Item Price Effective Date.public void setFutureItemPriceEffectiveDate(DTM objFutureItemPriceEffectiveDate)
objFutureItemPriceEffectiveDate - Object of Future Item Price Effective Date.public void setGlobalTradeItemNumber(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 strNameofSecondAlternateCodingSystem,
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 of characters (the code) that uniquely identifies the item being referenced.strText - Specifies The descriptive or textual name of the identifier, e.g., myocardial infarction.strNameOfCodingSystem - Identifies the coding scheme being used in the identifier component.strAlternateIdentifier - Specifies an alternate sequence of characters (the code) that uniquely identifies the item being referenced.strAlternateText - Specifies the descriptive or textual name of the alternate identifier. See usage note in section introduction.strNameOfAlternateCodingSystem - Identifies the coding scheme being used in the alternate identifier component.strCodingSystemVersionID - A sequence of characters that uniquely identifies a second alternate code.strAlternateCodingSystemVersionId - This component carries the version for the coding system identified by components 4-6.strOriginalText - The text as seen and/or selected by the user who entered the data.strSecondAlternateIdentifier - A sequence of characters that uniquely identifies a second alternate code.strSecondAlternateText - The descriptive or textual name of the alternate identifier.strNameofSecondAlternateCodingSystem - Identifies the coding scheme being used in the alternate identifier component.strSecondAlternateCodingSystemVersionID - This component carries the version for the coding system identified by components 10-12.strCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.3.strValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.1 is obtained.strValueSetVersionID - This component carries the version for the value set identified by CWE.15. The version is a date. The date is the date/time that the value set being used was published.strAlternateCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.6.strAlternateValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.4 is obtained.strAlternateValueSetVersionID - This component carries the version for the value set identified by CWE.18. The version is a date.strSecondAlternateCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.12.strSecondAlternateValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.10 is obtained.strSecondAlternateValueSetVersionID - This component carries the version for the value set identified by CWE.21. The version is a date.public void setGlobalTradeItemNumber(CWE objGlobalTradeItemNumber)
objGlobalTradeItemNumber - Object of Global Trade Item Number.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - If Segment Validation fails