public class PL extends CompositeDataType
This data type specifies a patient location within a healthcare institution.
Represents an HL7 PL data type. This data type has the following attributes:
1. Point of Care (HD)Conditional
2. Room (HD)Optional
3. Bed (HD)Optional
4. Facility (HD)Optional
5. Location Status (IS)Optional
6. Person Location Type (IS)Optional
7. Building (HD)Optional
8. Floor (HD)Optional
9. Location Description (ST)Optional
10. Comprehensive Location Identifier (EI)Optional
11. Assigning Authority for Location (HD)Optional
This class provides accessors & mutators for the elements mentioned above. This class override the equal method, to check whether some other object is "equal to" this one.
User can also create Data Type through DataElementFactory
| Constructor and Description |
|---|
PL()
Default Constructor for PL
|
PL(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for PL class which takes two arguments and
sets the value in the respective member variable.
|
PL(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for PL class which takes five arguments and
sets the value in the respective member variable.
|
PL(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for PL class which takes six arguments and
sets the value in the respective member variable.
|
PL(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for PL class which takes four arguments and
sets the value in the respective member variable.
|
PL(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for PL class which takes five arguments and
sets the value in the respective member variable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object objObject)
This method checks the equality of Object.
|
HD |
getAssigningAuthorityForLocation()
Returns Assigning Authority for Location
|
HD |
getBed()
Returns Bed
|
HD |
getBuilding()
Returns Building
|
EI |
getComprehensiveLocationIdentifier()
Returns Comprehensive Location Identifier
|
HD |
getFacility()
Returns Facility
|
HD |
getFloor()
Returns Floor
|
ST |
getLocationDescription()
Returns Location Description
|
IS |
getLocationStatus()
Returns Location Status
|
IS |
getPersonLocationType()
Returns Person Location Type
|
HD |
getPointOfCare()
Returns Point of Care
|
HD |
getRoom()
Returns Room
|
void |
setAssigningAuthorityForLocation(HD objAssigningAuthorityForLocation)
Sets the AssigningAuthorityForLocation.
|
void |
setBed(HD objHD)
Sets the Bed.
|
void |
setBuilding(HD objHD)
Sets the Building.
|
void |
setBuilding(java.lang.String strBuilding)
Sets the Building.
|
void |
setComprehensiveLocationIdentifier(EI objComprehensiveLocationIdentifier)
Sets the ComprehensiveLocationIdentifier.
|
void |
setFacility(HD objFacility)
Sets the Facility.
|
void |
setFloor(HD objHD)
Sets the Floor.
|
void |
setFloor(java.lang.String strFloor)
Sets the Floor.
|
void |
setLocationDescription(ST objST)
Sets the LocationDescription.
|
void |
setLocationDescription(java.lang.String strLocationDescription)
Sets the LocationDescription.
|
void |
setLocationStatus(IS objIS)
Sets the LocationStatus.
|
void |
setLocationStatus(java.lang.String strLocationStatus)
Sets the LocationStatus.
|
void |
setPersonLocationType(IS objIS)
Sets the PersonLocationType.
|
void |
setPersonLocationType(java.lang.String strPersonLocationType)
Sets the PersonLocationType.
|
void |
setPointOfCare(HD objHD)
Sets the PointOfCare.
|
void |
setRoom(HD objHD)
Sets the Room.
|
boolean |
validate()
The Method validates the Input value,and if validated properly then returns true.
|
copy, dumpDataType, getAttributes, getDataTypeName, getLength, getValue, isPrimitive, read, setValue, write, writeToXMLpublic PL()
public PL(int iMinLength, int iMaxLength, java.lang.String strCLength, int iComponentType) throws InvalidComponentTypeException
iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public PL(int iMinLength, int iMaxLength, java.lang.String strCLength, int iTableNo, int iComponentType) throws InvalidComponentTypeException
iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iTableNo - The Table number to which the value for the component is specified.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public PL(int iComponentType, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public PL(int iComponentType, int iMinLength, int iMaxLength, java.lang.String strCLength, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.InvalidComponentTypeException - - if Component Type is not specified or valid.public PL(int iComponentType, int iMinLength, int iMaxLength, java.lang.String strCLength, int ITableNo, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iTableNo - The Table number to which the value for the component is specified.InvalidComponentTypeException - - if Component Type is not specified or valid.public void setPointOfCare(HD objHD)
objHD - Specifies the code for the point where patient care is administered.public void setRoom(HD objHD)
objHD - Specifies the code for the patient's room.public void setBed(HD objHD)
objHD - Specifies the code for the patient's bed.public void setFacility(HD objFacility)
objFacility - Specifies to site interpretation but generally describes
the highest level physical designation of an institution,
medical center or enterprise.public void setLocationStatus(java.lang.String strLocationStatus)
strLocationStatus - Specifies the code for the status or availability of the location.public void setLocationStatus(IS objIS)
objIS - Specifies the code for the status or availability of the location.public void setPersonLocationType(java.lang.String strPersonLocationType)
strPersonLocationType - Specifies the categorization of the person's location defined by
facility, building, floor, point of care, room or bed.public void setPersonLocationType(IS objIS)
objIS - Specifies the categorization of the person's location defined by
facility, building, floor, point of care, room or bed.public void setBuilding(java.lang.String strBuilding)
strBuilding - Specifies code for the building where the person is located.public void setBuilding(HD objHD)
objHD - Specifies code for the building where the person is located.public void setFloor(java.lang.String strFloor)
strFloor - Specifies the code for the floor where the person is located.public void setFloor(HD objHD)
objIS - Specifies the code for the floor where the person is located.public void setLocationDescription(java.lang.String strLocationDescription)
strLocationDescription - Specifies describes the location in free text.public void setLocationDescription(ST objST)
objST - Specifies describes the location in free text.public void setComprehensiveLocationIdentifier(EI objComprehensiveLocationIdentifier)
objComprehensiveLocationIdentifier - Specifies represents the physical location as
a whole without regard for the individual components.public void setAssigningAuthorityForLocation(HD objAssigningAuthorityForLocation)
objAssigningAuthorityForLocation - Specifies the entity that creates the data for the individual physical location components.public HD getPointOfCare()
public HD getRoom()
public HD getBed()
public HD getFacility()
public IS getLocationStatus()
public IS getPersonLocationType()
public HD getBuilding()
public HD getFloor()
public ST getLocationDescription()
public EI getComprehensiveLocationIdentifier()
public HD getAssigningAuthorityForLocation()
public boolean validate()
throws InvalidDataTypeException
validate in interface IDataTypevalidate in class CompositeDataTypeInvalidDataTypeException - - if Invalid values is entered or Mandatory field is missing.public boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.