public class CNN extends CompositeDataType
This data type specifies a person using both an identifier and the person's name
Represents an HL7 CNN data type. This data type has the following attributes:
1. ID Number (ST)Optional
2. Family Name (ST)Optional
3. Given Name (ST)Optional
4. Second and Further Given Names or Initials Thereof (ST)Optional
5. Suffix (e.g., JR or III) (ST)Optional
6. Prefix (e.g., DR) (ST)Optional
7. Degree (e.g., MD (IS)Optional
8. Source Table (IS)Conditional
9. Assigning Authority - Namespace ID (IS)Conditional
10. Assigning Authority - Universal ID (ST)Conditional
11. Assigning Authority - Universal ID Type (ID)Conditional
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 |
|---|
CNN()
Default Constructor for CNN
|
CNN(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for CNN class which takes two arguments and
sets the value in the respective member variable.
|
CNN(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for CNN class which takes five arguments and
sets the value in the respective member variable.
|
CNN(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for CNN class which takes six arguments and
sets the value in the respective member variable.
|
CNN(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for CNN class which takes four arguments and
sets the value in the respective member variable.
|
CNN(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for CNN 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.
|
IS |
getAssigningAuthorityNamespaceID()
Returns Assigning Authority - Namespace ID
|
ST |
getAssigningAuthorityUniversalID()
Returns Assigning Authority - Universal ID
|
ID |
getAssigningAuthorityUniversalIDType()
Returns Assigning Authority - Universal ID Type
|
IS |
getDegree()
Returns Degree (e.g., MD
|
ST |
getFamilyName()
Returns Family Name
|
ST |
getGivenName()
Returns Given Name
|
ST |
getIDNumber()
Returns ID Number
|
ST |
getPrefix()
Returns Prefix (e.g., DR)
|
ST |
getSecondGivenNamesInitials()
Returns Second and Further Given Names or Initials Thereof
|
IS |
getSourceTable()
Returns SourceTable
|
ST |
getSuffix()
Returns Suffix (e.g., JR or III)
|
void |
setAssigningAuthorityNamespaceId(IS objIS)
Sets the Assigning Authority Namespace Id.
|
void |
setAssigningAuthorityNamespaceId(java.lang.String strAssigningAuthorityNamespaceId)
Sets the Assigning Authority Namespace Id.
|
void |
setAssigningAuthorityUniversalId(ST objST)
sets the Assigning Authority Universal Id.
|
void |
setAssigningAuthorityUniversalId(java.lang.String strAssigningAuthorityUniversalId)
sets the Assigning Authority Universal Id.
|
void |
setAssigningAuthorityUniversalIdType(ID objID)
Sets the Assigning Authority Universal Id Type.
|
void |
setAssigningAuthorityUniversalIdType(java.lang.String strAssigningAuthorityUniversalIdType)
Sets the Assigning Authority Universal Id Type.
|
void |
setDegree(IS objIS)
Sets the Degree
|
void |
setDegree(java.lang.String strDegree)
Sets the Degree
|
void |
setFamilyName(ST objST)
Sets the Family Name.
|
void |
setFamilyName(java.lang.String strFamilyName)
Sets the Family Name.
|
void |
setGivenName(ST objST)
Sets the Given Name.
|
void |
setGivenName(java.lang.String strGivenName)
Sets the Given Name.
|
void |
setIdNumber(ST objST)
Sets the Id Number.
|
void |
setIdNumber(java.lang.String strIdNumber)
Sets the Id Number.
|
void |
setPrefix(ST objST)
Sets the Prefix
|
void |
setPrefix(java.lang.String strPrefix)
Sets the Prefix
|
void |
setSecondNamesOrInitials(ST objST)
Sets the Second Names Or Initials.
|
void |
setSecondNamesOrInitials(java.lang.String strSecondNamesOrInitials)
Sets the Second Names Or Initials.
|
void |
setSourceTable(IS objIS)
Sets the Source Table
|
void |
setSourceTable(java.lang.String strSourceTable)
Sets the Source Table
|
void |
setSuffix(ST objST)
Sets the Suffix
|
void |
setSuffix(java.lang.String strSuffix)
Sets the Suffix
|
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 CNN()
public CNN(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 CNN(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 CNN(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 CNN(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 CNN(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 coded ID according to a user-defined table.public void setIdNumber(ST objST)
objST - Specifies coded ID according to a user-defined table.public void setFamilyName(java.lang.String strFamilyName)
strFamilyName - Specifies the person's family name in a string format.public void setFamilyName(ST objST)
objST - Specifies the person's family name in a string format.public void setGivenName(java.lang.String strGivenName)
strGivenName - Specifies a first name.public void setGivenName(ST objST)
objST - Specifies a first name.public void setSecondNamesOrInitials(java.lang.String strSecondNamesOrInitials)
strSecondNamesOrInitials - Specifies second names or initials.public void setSecondNamesOrInitials(ST objST)
objST - Specifies second names or initials.public void setSuffix(java.lang.String strSuffix)
strSuffix - Specifies a name suffix (e.g., Jr. or III).public void setSuffix(ST objST)
objST - Specifies a name suffix (e.g., Jr. or III).public void setPrefix(java.lang.String strPrefix)
strPrefix - Specifies a name prefix (e.g., Dr.).public void setPrefix(ST objST)
objST - Specifies a name prefix (e.g., Dr.).public void setDegree(java.lang.String strDegree)
strDegree - Specifies an educational degree (e.g., MD).[Refer to User-defined Table 0360 Degree]public void setDegree(IS objIS)
objIS - Specifies an educational degree (e.g., MD).[Refer to User-defined Table 0360 Degree]public void setSourceTable(java.lang.String strSourceTable)
strSourceTable - [Refer to User-defined Table 0297 - CN ID source]public void setSourceTable(IS objIS)
objString - [Refer to User-defined Table 0297 - CN ID source]public void setAssigningAuthorityNamespaceId(java.lang.String strAssigningAuthorityNamespaceId)
strAssigningAuthorityNamespaceId - Specifies a unique name of the system (or organization or agency or
department) that creates the data.public void setAssigningAuthorityNamespaceId(IS objIS)
objIS - Specifies a unique name of the system (or organization or agency or
department) that creates the data.public void setAssigningAuthorityUniversalId(java.lang.String strAssigningAuthorityUniversalId)
strAssigningAuthorityUniversalId - If CNN.11 is valued, this component must be valued.public void setAssigningAuthorityUniversalId(ST objST)
objST - If CNN.11 is valued, this component must be valued.public void setAssigningAuthorityUniversalIdType(java.lang.String strAssigningAuthorityUniversalIdType)
strAssigningAuthorityUniversalIdType - If CNN.10 is valued, this component must be valued.public void setAssigningAuthorityUniversalIdType(ID objID)
objID - If CNN.10 is valued, this component must be valued.public ST getIDNumber()
public ST getFamilyName()
public ST getGivenName()
public ST getSecondGivenNamesInitials()
public ST getSuffix()
public ST getPrefix()
public IS getDegree()
public IS getSourceTable()
public IS getAssigningAuthorityNamespaceID()
public ST getAssigningAuthorityUniversalID()
public ID getAssigningAuthorityUniversalIDType()
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.