public class APR extends Segment
The APR segment contains parameters and preference specifications used for requesting appointments in the SRM message.
Represents an HL7 APR message segment. This segment has the following fields:
APR-1: Time Selection Criteria (SCV)Optional
APR-2: Resource Selection Criteria (SCV)Optional
APR-3: Location Selection Criteria (SCV)Optional
APR-4: Slot Spacing Criteria (NM)Optional
APR-5: Filler Override Criteria (SCV)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 |
|---|
APR()
Constructs the APR segment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFillerOverrideCriteria(CWE objParameterClass,
java.lang.String strParameterValue)
Add the Filler Override Criteria.
|
void |
addFillerOverrideCriteria(SCV objfillerOverrideCriteria)
Add the Filler Override Criteria.
|
void |
addLocationSelectionCriteria(CWE objParameterClass,
java.lang.String strParameterValue)
Add the Location Selection Criteria.
|
void |
addLocationSelectionCriteria(SCV objlocationSelectionCriteria)
Add the Location Selection Criteria.
|
void |
addResourceSelectionCriteria(CWE objParameterClass,
java.lang.String strParameterValue)
Add the Resource Selection Criteria.
|
void |
addResourceSelectionCriteria(SCV objresourceSelectionCriteria)
Add the Resource Selection Criteria.
|
void |
addTimeSelectionCriteria(CWE objParameterClass,
java.lang.String strParameterValue)
Add the Time Selection Criteria.
|
void |
addTimeSelectionCriteria(SCV objtimeSelectionCriteria)
Add the Time Selection Criteria.
|
ISingleCollection<SCV> |
getFillerOverrideCriteria()
Retrieves the Filler Override Criteria.
|
ISingleCollection<SCV> |
getLocationSelectionCriteria()
Retrieves the Location Selection Criteria.
|
ISingleCollection<SCV> |
getResourceSelectionCriteria()
Retrieves the Resource Selection Criteria.
|
NM |
getSlotSpacingCriteria()
Retrieves the Slot Spacing Criteria.
|
ISingleCollection<SCV> |
getTimeSelectionCriteria()
Retrieves the Time Selection Criteria.
|
void |
setFillerOverrideCriteria(ISingleCollection<SCV> objfillerOverrideCriteriaList)
Set the Filler Override Criteria.
|
void |
setLocationSelectionCriteria(ISingleCollection<SCV> objlocationSelectionCriteriaList)
Set the Location Selection Criteria.
|
void |
setResourceSelectionCriteria(ISingleCollection<SCV> objresourceSelectionCriteriaList)
Set the Resource Selection Criteria.
|
void |
setSlotSpacingCriteria(NM objslotSpacingCriteria)
Set the Slot Spacing Criteria.
|
void |
setSlotSpacingCriteria(java.lang.String strSlotSpacingCriteria)
Set the Slot Spacing Criteria.
|
void |
setTimeSelectionCriteria(ISingleCollection<SCV> objtimeSelectionCriteriaList)
Set the Time Selection Criteria.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic ISingleCollection<SCV> getFillerOverrideCriteria()
public ISingleCollection<SCV> getLocationSelectionCriteria()
public ISingleCollection<SCV> getResourceSelectionCriteria()
public NM getSlotSpacingCriteria()
public ISingleCollection<SCV> getTimeSelectionCriteria()
public void addTimeSelectionCriteria(CWE objParameterClass, java.lang.String strParameterValue)
objParameterClass - Identifies the parameter or preference being passed to the filler application.strParameterValue - Actual data value for that parameter.public void addTimeSelectionCriteria(SCV objtimeSelectionCriteria)
objtimeSelectionCriteria - Object of Time Selection Criteria.public void setTimeSelectionCriteria(ISingleCollection<SCV> objtimeSelectionCriteriaList)
objtimeSelectionCriteriaList - List of Time Selection Criteria.public void addResourceSelectionCriteria(CWE objParameterClass, java.lang.String strParameterValue)
objParameterClass - Identifies the parameter or preference being passed to the filler application.strParameterValue - Actual data value for that parameter.public void addResourceSelectionCriteria(SCV objresourceSelectionCriteria)
objresourceSelectionCriteria - Object of Resource Selection Criteria.public void setResourceSelectionCriteria(ISingleCollection<SCV> objresourceSelectionCriteriaList)
objresourceSelectionCriteriaList - List of Resource Selection Criteria.public void addLocationSelectionCriteria(CWE objParameterClass, java.lang.String strParameterValue)
objParameterClass - Identifies the parameter or preference being passed to the filler application.strParameterValue - Actual data value for that parameter.public void addLocationSelectionCriteria(SCV objlocationSelectionCriteria)
objlocationSelectionCriteria - Object of Location Selection Criteria.public void setLocationSelectionCriteria(ISingleCollection<SCV> objlocationSelectionCriteriaList)
objlocationSelectionCriteriaList - List of Location Selection Criteria.public void setSlotSpacingCriteria(java.lang.String strSlotSpacingCriteria)
strSlotSpacingCriteria - String value of Slot Spacing Criteria.public void setSlotSpacingCriteria(NM objslotSpacingCriteria)
objslotSpacingCriteria - Object of Slot Spacing Criteria.public void addFillerOverrideCriteria(CWE objParameterClass, java.lang.String strParameterValue)
objParameterClass - Identifies the parameter or preference being passed to the filler application.strParameterValue - Actual data value for that parameter.public void addFillerOverrideCriteria(SCV objfillerOverrideCriteria)
objfillerOverrideCriteria - Object of Filler Override Criteria.public void setFillerOverrideCriteria(ISingleCollection<SCV> objfillerOverrideCriteriaList)
objfillerOverrideCriteriaList - List of Filler Override Criteria.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Thrown when Segment Validation Fails.