public class CN extends AbstractComposite
Represents an HL7 CN (composite ID number and name) data type. This type consists of the following components:
log
Constructor and Description |
---|
CN(Message message)
Creates a new CN type
|
Modifier and Type | Method and Description |
---|---|
HD |
getAssigningAuthority()
Returns assigning authority (component 9).
|
ST |
getCn1_IDNumber()
Returns ID number (ST) (component 1).
|
ST |
getCn2_FamilyName()
Returns family name (component 2).
|
ST |
getCn3_GivenName()
Returns given name (component 3).
|
ST |
getCn4_MiddleInitialOrName()
Returns middle initial or name (component 4).
|
ST |
getCn5_SuffixEgJRorIII()
Returns suffix (e.g., JR or III) (component 5).
|
ST |
getCn6_PrefixEgDR()
Returns prefix (e.g., DR) (component 6).
|
IS |
getCn7_DegreeEgMD()
Returns degree (e.g., MD) (component 7).
|
IS |
getCn8_SourceTable()
Returns source table (component 8).
|
HD |
getCn9_AssigningAuthority()
Returns assigning authority (component 9).
|
Type |
getComponent(int number)
Returns an individual data component.
|
Type[] |
getComponents()
Returns an array containing the data elements.
|
IS |
getDegreeEgMD()
Returns degree (e.g., MD) (component 7).
|
ST |
getFamilyName()
Returns family name (component 2).
|
ST |
getGivenName()
Returns given name (component 3).
|
ST |
getIDNumber()
Returns ID number (ST) (component 1).
|
ST |
getMiddleInitialOrName()
Returns middle initial or name (component 4).
|
ST |
getPrefixEgDR()
Returns prefix (e.g., DR) (component 6).
|
IS |
getSourceTable()
Returns source table (component 8).
|
ST |
getSuffixEgJRorIII()
Returns suffix (e.g., JR or III) (component 5).
|
accept, clear, getTyped, isEmpty, provideLocation
encode, getExtraComponents, getMessage, getName, parse, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
encode, getExtraComponents, getMessage, getName, parse
public Type[] getComponents()
public Type getComponent(int number) throws DataTypeException
number
- The component number (0-indexed)DataTypeException
- if the given element number is out of range.public ST getIDNumber()
public ST getCn1_IDNumber()
public ST getFamilyName()
public ST getCn2_FamilyName()
public ST getGivenName()
public ST getCn3_GivenName()
public ST getMiddleInitialOrName()
public ST getCn4_MiddleInitialOrName()
public ST getSuffixEgJRorIII()
public ST getCn5_SuffixEgJRorIII()
public ST getPrefixEgDR()
public ST getCn6_PrefixEgDR()
public IS getDegreeEgMD()
public IS getCn7_DegreeEgMD()
public IS getSourceTable()
public IS getCn8_SourceTable()
public HD getAssigningAuthority()
public HD getCn9_AssigningAuthority()
Copyright © 2001–2017 University Health Network. All rights reserved.