public class PSH extends Segment
Represents an HL7 PSH message segment. This segment has the following fields:
PSH-1: Report Type (ST)Required
PSH-2: Report Form Identifier (ST)Optional
PSH-3: Report Date (DTM)Required
PSH-4: Report Interval Start Date (DTM)Optional
PSH-5: Report Interval End Date (DTM)Optional
PSH-6: Quantity Manufactured (CQ)Optional
PSH-7: Quantity Distributed (CQ)Optional
PSH-8: Quantity Distributed Method (ID)Optional
PSH-9: Quantity Distributed Comment (FT)Optional
PSH-10: Quantity in Use (CQ)Optional
PSH-11: Quantity in Use Method (ID)Optional
PSH-12: Quantity in Use Comment (FT)Optional
PSH-13: Number of Product Experience Reports Filed by Facility (NM)Optional
PSH-14: Number of Product Experience Reports Filed by Distributor (NM)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 |
|---|
PSH()
Constructs the PSH segment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNoOfProductExpReportFiledByDistributor(NM objnoOfProductExpReportFiledByDistributor)
Add the No Of Product Exp Report Filed By Distributor.
|
void |
addNoOfProductExpReportFiledByDistributor(java.lang.String strNoOfProductExpReportFiledByDistributor)
Add the No Of Product Exp Report Filed By Distributor.
|
void |
addNoOfProductExpReportFiledByFacility(NM objnoOfProductExpReportFiledByFacility)
Add the No Of Product Exp Report Filed By Facility.
|
void |
addNoOfProductExpReportFiledByFacility(java.lang.String strNoOfProductExpReportFiledByFacility)
Add the No Of Product Exp Report Filed By Facility.
|
ISingleCollection<NM> |
getNoOfProductExpReportFiledByDistributor()
Retrieves the No Of Product Exp Report Filed By Distributor.
|
ISingleCollection<NM> |
getNoOfProductExpReportFiledByFacility()
Retrieves the No Of Product Exp Report Filed By Facility.
|
CQ |
getQuantityDistributed()
Retrieves the Quantity Distributed.
|
FT |
getQuantityDistributedComment()
Retrieves the Quantity Distributed Comment.
|
ID |
getQuantityDistributedMethod()
Retrieves the Quantity Distributed Method.
|
CQ |
getQuantityinUse()
Retrieves the Quantity in Use.
|
FT |
getQuantityinUseComment()
Retrieves the Quantity in Use Comment.
|
ID |
getQuantityinUseMethod()
Retrieves the Quantity in Use Method.
|
CQ |
getQuantityManufactured()
Retrieves the Quantity Manufactured.
|
DTM |
getReportDate()
Retrieves the Report Date.
|
ST |
getReportFormIdentifier()
Retrieves the Report Form Identifier.
|
DTM |
getReportIntervalEndDate()
Retrieves the Report Interval End Date.
|
DTM |
getReportIntervalStartDate()
Retrieves the Report Interval Start Date.
|
ST |
getReportType()
Retrieves the Report Type.
|
void |
setNoOfProductExpReportFiledByDistributor(ISingleCollection<NM> objnoOfProductExpReportFiledByDistributorList)
Set the No Of Product Exp Report Filed By Distributor.
|
void |
setNoOfProductExpReportFiledByFacility(ISingleCollection<NM> objnoOfProductExpReportFiledByFacilityList)
Set the No Of Product Exp Report Filed By Facility.
|
void |
setQuantityDistributed(CQ objquantityDistributed)
Set the Quantity Distributed.
|
void |
setQuantityDistributed(java.lang.String strQuantity,
CWE objUnits)
Set the Quantity Distributed.
|
void |
setQuantityDistributedComment(FT objquantityDistributedComment)
Set the Quantity Distributed Comment.
|
void |
setQuantityDistributedComment(java.lang.String strQuantityDistributedComment)
Set the Quantity Distributed Comment.
|
void |
setQuantityDistributedMethod(ID objquantityDistributedMethod)
Set the Quantity Distributed Method.
|
void |
setQuantityDistributedMethod(java.lang.String strQuantityDistributedMethod)
Set the Quantity Distributed Method.
|
void |
setQuantityinUse(CQ objquantityinUse)
Set the Quantity in Use.
|
void |
setQuantityinUse(java.lang.String strQuantity,
CWE objUnits)
Set the Quantity in Use.
|
void |
setQuantityinUseComment(FT objquantityinUseComment)
Set the Quantity in Use Comment.
|
void |
setQuantityinUseComment(java.lang.String strQuantityinUseComment)
Set the Quantity in Use Comment.
|
void |
setQuantityinUseMethod(ID objquantityinUseMethod)
Set the Quantity in Use Method.
|
void |
setQuantityinUseMethod(java.lang.String strQuantityinUseMethod)
Set the Quantity in Use Method.
|
void |
setQuantityManufactured(CQ objquantityManufactured)
Set the Quantity Manufactured.
|
void |
setQuantityManufactured(java.lang.String strQuantity,
CWE objUnits)
Set the Quantity Manufactured.
|
void |
setReportDate(DTM objreportDate)
Set the Report Date.
|
void |
setReportDate(java.lang.String strTime)
Set the Report Date.
|
void |
setReportFormIdentifier(ST objreportFormIdentifier)
Set the Report Form Identifier.
|
void |
setReportFormIdentifier(java.lang.String strReportFormIdentifier)
Set the Report Form Identifier.
|
void |
setReportIntervalEndDate(DTM objreportIntervalEndDate)
Set the Report Interval End Date.
|
void |
setReportIntervalEndDate(java.lang.String strTime)
Set the Report Interval End Date.
|
void |
setReportIntervalStartDate(DTM objreportIntervalStartDate)
Set the Report Interval Start Date.
|
void |
setReportIntervalStartDate(java.lang.String strTime)
Set the Report Interval Start Date.
|
void |
setReportType(ST objreportType)
Set the Report Type.
|
void |
setReportType(java.lang.String strReportType)
Set the Report Type.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic ISingleCollection<NM> getNoOfProductExpReportFiledByDistributor()
public ISingleCollection<NM> getNoOfProductExpReportFiledByFacility()
public CQ getQuantityDistributed()
public FT getQuantityDistributedComment()
public ID getQuantityDistributedMethod()
public CQ getQuantityinUse()
public FT getQuantityinUseComment()
public ID getQuantityinUseMethod()
public CQ getQuantityManufactured()
public DTM getReportDate()
public ST getReportFormIdentifier()
public DTM getReportIntervalEndDate()
public DTM getReportIntervalStartDate()
public ST getReportType()
public void addNoOfProductExpReportFiledByDistributor(java.lang.String strNoOfProductExpReportFiledByDistributor)
strNoOfProductExpReportFiledByDistributor - This field contains the String Value of Number
Of Product Experiance Report Filed By Distributorpublic void addNoOfProductExpReportFiledByDistributor(NM objnoOfProductExpReportFiledByDistributor)
objnoOfProductExpReportFiledByDistributor - Object of No Of Product Exp Report Filed By Distributor.public void setNoOfProductExpReportFiledByDistributor(ISingleCollection<NM> objnoOfProductExpReportFiledByDistributorList)
objnoOfProductExpReportFiledByDistributorList - List of No Of Product Exp Report Filed By Distributor.public void addNoOfProductExpReportFiledByFacility(java.lang.String strNoOfProductExpReportFiledByFacility)
strNoOfProductExpReportFiledByFacility - This field contains the String Value of Number
Of Product Experiance Report Filed By Facilitypublic void addNoOfProductExpReportFiledByFacility(NM objnoOfProductExpReportFiledByFacility)
objnoOfProductExpReportFiledByFacility - Object of No Of Product Exp Report Filed By Facility.public void setNoOfProductExpReportFiledByFacility(ISingleCollection<NM> objnoOfProductExpReportFiledByFacilityList)
objnoOfProductExpReportFiledByFacilityList - List of No Of Product Exp Report Filed By Facility.public void setQuantityDistributed(java.lang.String strQuantity,
CWE objUnits)
strQuantity - Specifies the numeric quantity or amount of an entity.objUnits - Specifies the units in which the quantity is expressed.public void setQuantityDistributed(CQ objquantityDistributed)
objquantityDistributed - Object of Quantity Distributed.public void setQuantityDistributedComment(java.lang.String strQuantityDistributedComment)
strQuantityDistributedComment - This field contains the String Value of Quantity Distributed Commentpublic void setQuantityDistributedComment(FT objquantityDistributedComment)
objquantityDistributedComment - Object of Quantity Distributed Comment.public void setQuantityDistributedMethod(java.lang.String strQuantityDistributedMethod)
strQuantityDistributedMethod - This field contains the String Value of Quantity Distributed Methodpublic void setQuantityDistributedMethod(ID objquantityDistributedMethod)
objquantityDistributedMethod - Object of Quantity Distributed Method.public void setQuantityinUse(java.lang.String strQuantity,
CWE objUnits)
strQuantity - Specifies the numeric quantity or amount of an entity.objUnits - Specifies the units in which the quantity is expressed.public void setQuantityinUse(CQ objquantityinUse)
strQuantity - Specifies the numeric quantity or amount of an entity.objUnits - Specifies the units in which the quantity is expressed.public void setQuantityinUseComment(java.lang.String strQuantityinUseComment)
strQuantityinUseComment - Object of Quantity in Use Comment.public void setQuantityinUseComment(FT objquantityinUseComment)
objquantityinUseComment - Object of Quantity in Use Comment.public void setQuantityinUseMethod(java.lang.String strQuantityinUseMethod)
strQuantityinUseMethod - This field contains the String Value of Quantityin Use Methodpublic void setQuantityinUseMethod(ID objquantityinUseMethod)
objquantityinUseMethod - Object of Quantity in Use Method.public void setQuantityManufactured(java.lang.String strQuantity,
CWE objUnits)
strQuantity - Specifies the numeric quantity or amount of an entity.objUnits - Specifies the units in which the quantity is expressed.public void setQuantityManufactured(CQ objquantityManufactured)
objquantityManufactured - OBject of Quantity Manufactured.public void setReportDate(java.lang.String strTime)
strTime - Specifies a point in time using a 24-hour clock notation.public void setReportDate(DTM objreportDate)
objreportDate - Object of Report Date.public void setReportFormIdentifier(java.lang.String strReportFormIdentifier)
strReportFormIdentifier - This field contains the String Value of Report Form Identifierpublic void setReportFormIdentifier(ST objreportFormIdentifier)
objreportFormIdentifier - Object of Report Form Identifier.public void setReportIntervalEndDate(java.lang.String strTime)
strTime - Specifies a point in time using a 24-hour clock notation.public void setReportIntervalEndDate(DTM objreportIntervalEndDate)
objreportIntervalEndDate - Object of Report Interval End Date.public void setReportIntervalStartDate(java.lang.String strTime)
strTime - Specifies a point in time using a 24-hour clock notation.public void setReportIntervalStartDate(DTM objreportIntervalStartDate)
objreportIntervalStartDate - Object of Report Interval Start Date.public void setReportType(java.lang.String strReportType)
strReportType - This field contains the String Value of Report Typepublic void setReportType(ST objreportType)
objreportType - Object of Report Type.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails.