public class XPN extends CompositeDataType
This data type specifies extended person name
Represents an HL7 XPN data type. This data type has the following attributes:
1. Family Name (FN)RequiredButMayBeEmpty
2. Given Name (ST)Optional
3. Second and Further Given Names or Initials Thereof (ST)Optional
4. Suffix (e.g., JR or III) (ST)Optional
5. Prefix (e.g., DR) (ST)Optional
6. Degree Withdrawn
7. Name Type Code (ID)Optional
8. Name Representation Code (ID)Optional
9. Name Context (CWE)Optional
10. Name Validity Range Withdrawn
11. Name Assembly Order (ID)Optional
12. Effective Date (DTM)Optional
13. Expiration Date (DTM)Optional
14. Professional Suffix (ST)Optional
15. Called By (ST)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 |
|---|
XPN()
Default Constructor for XPN
|
XPN(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for XPN class which takes two arguments and
sets the value in the respective member variable.
|
XPN(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for XPN class which takes five arguments and
sets the value in the respective member variable.
|
XPN(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for XPN class which takes six arguments and
sets the value in the respective member variable.
|
XPN(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for XPN class which takes four arguments and
sets the value in the respective member variable.
|
XPN(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for XPN 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.
|
ST |
getCalledBy()
Returns Called By
|
DTM |
getEffectiveDate()
Returns Effective Date
|
DTM |
getExpirationDate()
Returns Expiration Date
|
FN |
getFamilyName()
Returns Family Name
|
ST |
getGivenName()
Returns Given Name
|
ID |
getNameAssemblyOrder()
Returns Name Assembly Order
|
CWE |
getNameContext()
Returns Name Context
|
ID |
getNameRepresentationCode()
Returns Name Representation Code
|
ID |
getNameTypeCode()
Returns Name Type Code
|
ST |
getPrefix()
Returns Prefix (e.g., DR)
|
ST |
getProfessionalSuffix()
Returns Professional Suffix
|
ST |
getSecondGivenNamesInitials()
Returns Second and Further Given Names or Initials Thereof
|
ST |
getSuffix()
Returns Suffix (e.g., JR or III)
|
void |
setCalledBy(ST objST)
Sets the Called By.
|
void |
setCalledBy(java.lang.String strCalledBy)
Sets the Called By.
|
void |
setEffectiveDate(DTM objEffectiveDate)
Sets the Effective Date.
|
void |
setEffectiveDate(java.lang.String strEffectiveDate)
Sets the Effective Date.
|
void |
setExpirationDate(DTM objExpirationDate)
Sets the Expiration Date.
|
void |
setExpirationDate(java.lang.String strExpirationDate)
Sets the Expiration Date.
|
void |
setFamilyName(FN objFamilyName)
Sets the Family Name.
|
void |
setGivenName(ST objST)
Sets the Given Name.
|
void |
setGivenName(java.lang.String strGivenName)
Sets the Given Name.
|
void |
setNameAssemblyOrder(ID objID)
Sets the Name Assembly Order.
|
void |
setNameAssemblyOrder(java.lang.String strNameAssemblyOrder)
Sets the Name Assembly Order.
|
void |
setNameContext(CWE objNameContext)
Sets the Name Context.
|
void |
setNameRepresentationCode(ID objID)
Sets the Name Representation Code.
|
void |
setNameRepresentationCode(java.lang.String strNameRepresentationCode)
Sets the Name Representation Code.
|
void |
setNameTypeCode(ID objID)
Sets the Name Type Code.
|
void |
setNameTypeCode(java.lang.String strNameTypeCode)
Sets the Name Type Code.
|
void |
setPrefix(ST objST)
Sets the Prefix.
|
void |
setPrefix(java.lang.String strPrefix)
Sets the Prefix.
|
void |
setProfessionalSuffix(ST objST)
Sets the Professional Suffix.
|
void |
setProfessionalSuffix(java.lang.String strProfessionalSuffix)
Sets the Professional Suffix.
|
void |
setSecondNameOrInitials(ST objST)
Sets the Second Name Or Initials.
|
void |
setSecondNameOrInitials(java.lang.String strSecondNameOrInitials)
Sets the Second Name Or Initials.
|
void |
setSuffix(ST objST)
Sets the Suffix.
|
void |
setSuffix(java.lang.String strSuffix)
Sets the Suffix.
|
copy, dumpDataType, getAttributes, getDataTypeName, getLength, getValue, isPrimitive, read, setValue, validate, write, writeToXMLpublic XPN()
public XPN(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 XPN(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 XPN(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 XPN(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 XPN(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 setFamilyName(FN objFamilyName)
objFamilyName - Specifies the surname of a person.public void setGivenName(java.lang.String strGivenName)
strGivenName - Specifies First name.public void setGivenName(ST objST)
objST - Specifies First name.public void setSecondNameOrInitials(java.lang.String strSecondNameOrInitials)
strSecondNameOrInitials - Specifies multiple middle names that may be included by separating them with spaces.public void setSecondNameOrInitials(ST objST)
objST - Specifies multiple middle names that may be included by separating them with spaces.public void setSuffix(java.lang.String strSuffix)
strSuffix - Used to specify a name suffix (e.g., Jr. or III).public void setSuffix(ST objST)
objST - Used to specify a name suffix (e.g., Jr. or III).public void setPrefix(java.lang.String strPrefix)
strPrefix - Used to specify a name prefix (e.g., Dr.).public void setPrefix(ST objST)
objString - Used to specify a name prefix (e.g., Dr.).public void setNameTypeCode(java.lang.String strNameTypeCode)
strNameTypeCode - Specifies a code that represents the type of name. Suggested values are A,B,C,D,I,L,M,N,P,R,S,T,U...[Refer table 0200.]public void setNameTypeCode(ID objID)
objID - Specifies a code that represents the type of name. Suggested values are A,B,C,D,I,L,M,N,P,R,S,T,U...[Refer table 0200.]public void setNameRepresentationCode(java.lang.String strNameRepresentationCode)
strNameRepresentationCode - specifies representations of the same name/address Suggested values are I,A,P [Refer table 0465]public void setNameRepresentationCode(ID objID)
objID - specifies representations of the same name/address Suggested values are I,A,P [Refer table 0465]public void setNameContext(CWE objNameContext)
objNameContext - Designates the context in which a name is used. [Refer User-defined Table 0448 ]public void setNameAssemblyOrder(java.lang.String strNameAssemblyOrder)
strNameAssemblyOrder - Specifies a code that represents the preferred display order of the components of this person name. Suggested values are G,F[Refer table 0444.]public void setNameAssemblyOrder(ID objID)
objID - Specifies a code that represents the preferred display order of the components of this person name. Suggested values are G,F[Refer table 0444.]public void setEffectiveDate(java.lang.String strEffectiveDate)
strEffectiveDate - Specifies the first date, if known, on which the address is valid and active.public void setEffectiveDate(DTM objEffectiveDate)
objEffectiveDate - Specifies the first date, if known, on which the address is valid and active.public void setExpirationDate(java.lang.String strExpirationDate)
strExpirationDate - Specifies the last date, if known, on which the address is valid and active.public void setExpirationDate(DTM objExpirationDate)
objExpirationDate - Specifies the last date, if known, on which the address is valid and active.public void setProfessionalSuffix(java.lang.String strProfessionalSuffix)
strProfessionalSuffix - Used to specify an abbreviation, or a string of abbreviations, denoting qualifications that support the person's profession, (e.g., licenses).public void setProfessionalSuffix(ST objST)
objST - Used to specify an abbreviation, or a string of abbreviations, denoting qualifications that support the person's profession, (e.g., licenses).public void setCalledBy(java.lang.String strCalledBy)
strCalledBy - Specifies First name.public void setCalledBy(ST objST)
objST - Specifies First name.public FN getFamilyName()
public ST getGivenName()
public ST getSecondGivenNamesInitials()
public ST getSuffix()
public ST getPrefix()
public ID getNameTypeCode()
public ID getNameRepresentationCode()
public CWE getNameContext()
public ID getNameAssemblyOrder()
public DTM getEffectiveDate()
public DTM getExpirationDate()
public ST getProfessionalSuffix()
public ST getCalledBy()
public boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.