public class RCP extends Segment
The RCP segment is used to restrict the amount of data that should be returned in response to query.
Represents an HL7 RCP message segment. This segment has the following fields:
RCP-1: Query Priority (ID)Optional
RCP-2: Quantity Limited Request (CQ)Optional
RCP-3: Response Modality (CWE)Optional
RCP-4: Execution and Delivery Time (DTM)Conditional
RCP-5: Modify Indicator (ID)Optional
RCP-6: Sort-by Field (SRT)Optional
RCP-7: Segment group inclusion (ID)
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 |
|---|
RCP()
Constructs the RCP segment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSegmentgroupinclusion(ID objtempSegmentgroupinclusion)
Set the Segment group inclusion.
|
void |
addSegmentgroupinclusion(java.lang.String strSegmentgroupinclusion)
Set the Segment group inclusion.
|
void |
addSortField(SRT objtempSortField)
Set the Sort Field.
|
void |
addSortField(java.lang.String strSortbyField,
java.lang.String strSequencing)
Set the Sort Field.
|
DTM |
getExecutionDeliveryTime()
Retrieves the Execution Delivery Time.
|
ID |
getModifyIndicator()
Retrieves the Modify Indicator.
|
CQ |
getQuantityLimitedRequest()
Retrieves the Quantity Limited Request.
|
ID |
getQueryPriority()
Retrieves the Query Priority.
|
CNE |
getResponseModality()
Retrieves the Response Modality.
|
ISingleCollection<ID> |
getSegmentgroupinclusion()
Retrieves the Segment group inclusion.
|
ISingleCollection<SRT> |
getSortField()
Retrieves the Sort Field.
|
void |
setExecutionDeliveryTime(DTM objexecutionDeliveryTime)
Set the Execution Delivery Time.
|
void |
setExecutionDeliveryTime(java.lang.String strTime)
Set the Execution Delivery Time.
|
void |
setModifyIndicator(ID objmodifyIndicator)
Set the Modify Indicator.
|
void |
setModifyIndicator(java.lang.String strModifyIndicator)
Set the Modify Indicator.
|
void |
setQuantityLimitedRequest(CQ objquantityLimitedRequest)
Set the Quantity Limited Request.
|
void |
setQuantityLimitedRequest(java.lang.String strQuantity,
CWE objUnits)
Set the Quantity Limited Request.
|
void |
setQueryPriority(ID objqueryPriority)
Set the Query Priority.
|
void |
setQueryPriority(java.lang.String strQueryPriority)
Set the Query Priority.
|
void |
setResponseModality(CNE objresponseModality)
Set the field which specifies the timing and grouping of the response message(s).
|
void |
setResponseModality(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 field which specifies the timing and grouping of the response message(s).
|
void |
setSegmentgroupinclusion(ISingleCollection<ID> objSegmentgroupinclusionList)
Set the Segment group inclusion.
|
void |
setSortField(ISingleCollection<SRT> objSortFieldList)
Set the Sort Field list.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic DTM getExecutionDeliveryTime()
public ID getModifyIndicator()
public CQ getQuantityLimitedRequest()
public ID getQueryPriority()
public CNE getResponseModality()
public ISingleCollection<ID> getSegmentgroupinclusion()
public ISingleCollection<SRT> getSortField()
public void setExecutionDeliveryTime(java.lang.String strTime)
strTime - The point in time.public void setExecutionDeliveryTime(DTM objexecutionDeliveryTime)
objexecutionDeliveryTime - object of Execution Delivery Time.public void setModifyIndicator(java.lang.String strModifyIndicator)
strModifyIndicator - Use as ModifyIndicator.public void setModifyIndicator(ID objmodifyIndicator)
objmodifyIndicator - object of ModifyIndicator.public void setQuantityLimitedRequest(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 setQuantityLimitedRequest(CQ objquantityLimitedRequest)
objquantityLimitedRequest - object of Quantity Limited Request.public void setQueryPriority(java.lang.String strQueryPriority)
strQueryPriority - Use as QueryPriority.public void setQueryPriority(ID objqueryPriority)
objqueryPriority - object of QueryPriority.public void setResponseModality(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 setResponseModality(CNE objresponseModality)
objresponseModality - object of ResponseModalitypublic void addSegmentgroupinclusion(java.lang.String strSegmentgroupinclusion)
strSegmentgroupinclusion - Use as Segmentgroupinclusion.public void addSegmentgroupinclusion(ID objtempSegmentgroupinclusion)
objtempSegmentgroupinclusion - object of Segmentgroupinclusion.public void setSegmentgroupinclusion(ISingleCollection<ID> objSegmentgroupinclusionList)
objSegmentgroupinclusionList - List of Segment group inclusion..public void addSortField(java.lang.String strSortbyField,
java.lang.String strSequencing)
strSortbyField - Identifies the field by which the response will be sorted.strSequencing - Identifies how the field or parameter will be sorted;
and, if sorted, whether the sort will be case sensitive (the default) or not.public void addSortField(SRT objtempSortField)
objtempSortField - object of SortFieldpublic void setSortField(ISingleCollection<SRT> objSortFieldList)
objSortFieldList - List of Sort Field.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails.