public class PLN extends CompositeDataType
This data type specifies a practitioner's license number, or other ID number such as UPIN, Medicare and Medicaid number, and associated detail.
Represents an HL7 PLN data type. This data type has the following attributes:
1. ID Number (ST)Required
2. Type of ID Number (CWE)Required
3. State/other Qualifying Information (ST)Optional
4. Expiration Date (DT)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 |
|---|
PLN()
Default Constructor for PLN
|
PLN(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for PLN class which takes two arguments and
sets the value in the respective member variable.
|
PLN(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for PLN class which takes five arguments and
sets the value in the respective member variable.
|
PLN(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for PLN class which takes six arguments and
sets the value in the respective member variable.
|
PLN(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for CQ class which takes four arguments and
sets the value in the respective member variable.
|
PLN(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for PLN 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.
|
DT |
getExpirationDate()
Returns Expiration Date
|
ST |
getIDNumber()
Returns ID Number
|
ST |
getStateOtherQualifyingInformation()
Returns State/other Qualifying Information
|
CWE |
getTypeOfIDNumber()
Returns Type of ID Number
|
void |
setExpirationDate(DT objDT)
Sets the ExpirationDate.
|
void |
setExpirationDate(java.lang.String strExpirationDate)
Sets the ExpirationDate.
|
void |
setIdNumber(ST objST)
Sets the IdNumber.
|
void |
setIdNumber(java.lang.String strIdNumber)
Sets the IdNumber.
|
void |
setStateOtherQualifyingInformation(ST objST)
Sets the StateOtherQualifyingInformation.
|
void |
setStateOtherQualifyingInformation(java.lang.String strStateOtherQualifyingInfo)
Sets the StateOtherQualifyingInformation.
|
void |
setTypeOfIdNumber(CWE objCWE)
Sets the TypeOfIdNumber.
|
void |
setTypeOfIdNumber(java.lang.String strTypeOfIdNumber)
Sets the TypeOfIdNumber.
|
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 PLN()
public PLN(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 PLN(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 PLN(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 PLN(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 PLN(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 setIdNumber(java.lang.String strIdNumber)
strIdNumber - Specifies the license number or other ID number such as UPIN, Medicare and Medicaid number.public void setIdNumber(ST objST)
objST - Specifies the license number or other ID number such as UPIN, Medicare and Medicaid number.public void setTypeOfIdNumber(java.lang.String strTypeOfIdNumber)
strTypeOfIdNumber - Specifies the type of number.public void setTypeOfIdNumber(CWE objCWE)
objCWE - Specifies the type of number.public void setStateOtherQualifyingInformation(java.lang.String strStateOtherQualifyingInfo)
strStateOtherQualifyingInfo - Specifies the state or province in which the license or ID is validpublic void setStateOtherQualifyingInformation(ST objST)
objST - Specifies the state or province in which the license or ID is validpublic void setExpirationDate(java.lang.String strExpirationDate)
strExpirationDate - Specifies the date when the license or ID is no longer valid.public void setExpirationDate(DT objDT)
objDT - Specifies the date when the license or ID is no longer valid.public ST getIDNumber()
public CWE getTypeOfIDNumber()
public ST getStateOtherQualifyingInformation()
public DT getExpirationDate()
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.