public class PSG extends Segment
Represents an HL7 PSG message segment. This segment has the following fields:
PSG-1 : Provider Product/Service Group Number (EI) Required
PSG-2 : Payer Product/Service Group Number (EI) Optional
PSG-3 : Product/Service Group Sequence Number (SI) Required
PSG-4 : Adjudicate as Group (ID) Required
PSG-5 : Product/Service Group Billed Amount (CP) Required
PSG-6 : Product/Service Group Description (ST) Required
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 |
|---|
PSG()
Constructs the PSG segment.
|
| Modifier and Type | Method and Description |
|---|---|
ID |
getAdjudicateAsGroup()
Retrieve Adjudicate as Group (ID)
Adjudicate all Product/Service Line Items together as a group (IPRs will be reported against the Product/Service Group).
|
EI |
getPayerProductOrServiceGroupNumber()
Retrieve Payer Product/Service Group Number (EI)
This field is used to define Unique Product/Service Group Number assigned by the Payer Application
|
CP |
getProductOrServiceGroupBilledAmount()
Retrieve Product/Service Group Billed Amount (CP)
This field is about Sum of all Product/Service Billed Amounts for all Product/Service Line Items for this Product/Service Group.
|
ST |
getProductOrServiceGroupDescription()
Retrieve Product/Service Group Description (ST)
This field is about Product/Service Group description or heading.
|
SI |
getProductOrServiceGroupSequenceNumber()
Retrieve Product/Service Group Sequence Number (SI)
This field tell about : Unique sequence number for the Product/Service Group (3) – starts with 1, then 2, etc.
|
EI |
getProviderProductOrServiceGroupNumber()
Retrieve PSG-1 Provider Product/Service Group Number (EI)
This field is used to Unique Product/Service Group Number assigned by the Provider Application.
|
void |
setAdjudicateAsGroup(ID objAdjudicateAsGroup)
Retrieve Adjudicate as Group (ID)
Adjudicate all Product/Service Line Items together as a group (IPRs will be reported against the Product/Service Group).
|
void |
setAdjudicateAsGroup(java.lang.String strAdjudicateAsGroup)
Retrieve Adjudicate as Group (ID)
Adjudicate all Product/Service Line Items together as a group (IPRs will be reported against the Product/Service Group).
|
void |
setPayerProductOrServiceGroupNumber(EI objPayerProductOrServiceGroupNumber)
Set Payer Product/Service Group Number (EI)
This field is used to define Unique Product/Service Group Number assigned by the Payer Application.
|
void |
setPayerProductOrServiceGroupNumber(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceID,
java.lang.String strUniversalID,
java.lang.String strUniversalIDType)
Set Payer Product/Service Group Number (EI)
This field is used to defineUnique Product/Service Group Number assigned by the Payer Application
|
void |
setProductOrServiceGroupBilledAmount(CP objProductOrServiceGroupBilledAmount)
Set Product/Service Group Billed Amount (CP)
This field is about Sum of all Product/Service Billed Amounts for all Product/Service Line Items for this Product/Service Group.
|
void |
setProductOrServiceGroupBilledAmount(MO objPrice,
java.lang.String strPriceType,
java.lang.String strFormValue,
java.lang.String strToValue,
CWE objRangeUnits,
java.lang.String strRangeType)
Set Product/Service Group Billed Amount (CP)
This field is about Sum of all Product/Service Billed Amounts for all Product/Service Line Items for this Product/Service Group.
|
void |
setProductOrServiceGroupDescription(ST objProductOrServiceGroupDescription)
Retrieve Product/Service Group Description (ST)
This field is about Product/Service Group description or heading.
|
void |
setProductOrServiceGroupDescription(java.lang.String strProductOrServiceGrouoDescription)
Retrieve Product/Service Group Description (ST)
This field is about Product/Service Group description or heading.
|
void |
setProductOrServiceGroupSequenceNumber(SI objProductOrServiceGroupSequenceNumber)
Retrieve Product/Service Group Sequence Number (SI)
This field tell about : Unique sequence number for the Product/Service Group (3) – starts with 1, then 2, etc.
|
void |
setProductOrServiceGroupSequenceNumber(java.lang.String strProductOrServiceGroupSequenceNumber)
Retrieve Product/Service Group Sequence Number (SI)
This field tell about : Unique sequence number for the Product/Service Group (3) – starts with 1, then 2, etc.
|
void |
setProviderProductOrServiceGroupNumber(EI objProviderProductOrServiceGroupNumber)
Set PSG-1 Provider Product/Service Group Number (EI)
This field is used to Unique Product/Service Group Number assigned by the Provider Application.
|
void |
setProviderProductOrServiceGroupNumber(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceID,
java.lang.String strUniversalID,
java.lang.String strUniversalIDType)
Set PSG-1 Provider Product/Service Group Number (EI)
This field is used to Unique Product/Service Group Number assigned by the Provider Application.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic EI getProviderProductOrServiceGroupNumber()
public void setProviderProductOrServiceGroupNumber(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceID,
java.lang.String strUniversalID,
java.lang.String strUniversalIDType)
strEntityIdentifier - - string of character use to identify the entity.strNamespaceID - - Use to identify the name space id..strUniversalID - - Use to identify the name space identity.strUniversalIDType - - String of characters describe Universal Id Type.public void setProviderProductOrServiceGroupNumber(EI objProviderProductOrServiceGroupNumber)
EI - - object of Provider product or service group number.public EI getPayerProductOrServiceGroupNumber()
public void setPayerProductOrServiceGroupNumber(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceID,
java.lang.String strUniversalID,
java.lang.String strUniversalIDType)
strEntityIdentifier - - string of character use to identify the entity.strNamespaceID - - Use to identify the name space id..strUniversalID - - Use to identify the name space identity.strUniversalIDType - - String of characters describe Universal Id Type.public void setPayerProductOrServiceGroupNumber(EI objPayerProductOrServiceGroupNumber)
EI - - object of Payer product or service group number.public SI getProductOrServiceGroupSequenceNumber()
public void setProductOrServiceGroupSequenceNumber(java.lang.String strProductOrServiceGroupSequenceNumber)
strProductOrServiceGroupSequenceNumber - - string of provide or service group sequence number.public void setProductOrServiceGroupSequenceNumber(SI objProductOrServiceGroupSequenceNumber)
SI - - object of provide or service group sequence number.public ID getAdjudicateAsGroup()
public void setAdjudicateAsGroup(java.lang.String strAdjudicateAsGroup)
strAdjudicateAsGroup - - string of Adjudicate as Group.public void setAdjudicateAsGroup(ID objAdjudicateAsGroup)
ID - - object of Adjudicate as Group.public CP getProductOrServiceGroupBilledAmount()
public void setProductOrServiceGroupBilledAmount(MO objPrice, java.lang.String strPriceType, java.lang.String strFormValue, java.lang.String strToValue, CWE objRangeUnits, java.lang.String strRangeType)
objPrice - - Gives information about the Price.strPriceType - - Gives information about Type of Price.strFormValue - - Gives information about Form Value.strToValue - - Tell about the To value.objRangeUnits - - Specifies about the range of the units.strRangeType - - Specifies obut the Type of range.public void setProductOrServiceGroupBilledAmount(CP objProductOrServiceGroupBilledAmount)
CP - - object of Product Or Service Group Billed Number.public ST getProductOrServiceGroupDescription()
public void setProductOrServiceGroupDescription(java.lang.String strProductOrServiceGrouoDescription)
String - - string of Product or service group description.public void setProductOrServiceGroupDescription(ST objProductOrServiceGroupDescription)
objProductOrServiceGroupDescription- - object of Product or service group description.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails.