Package ca.uhn.hl7v2.model.v22.datatype
Class CN_PERSON
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractComposite
ca.uhn.hl7v2.model.v22.datatype.CN_PERSON
- All Implemented Interfaces:
Composite,Type,Visitable,Serializable
Represents an HL7 CN_PERSON (CN für Personen) data type. This type consists of the following components:
- ID number (ID)
- family name (ST)
- given name (ST)
- middle initial or name (ST)
- suffix (e.g. JR or III) (ST)
- prefix (e.g. DR) (ST)
- degree (e.g. MD) (ST)
- source table id (ID)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns ID number (component 1).Returns family name (component 2).Returns given name (component 3).Returns middle initial or name (component 4).Returns suffix (e.g.Returns prefix (e.g.Returns degree (e.g.Returns source table id (component 8).getComponent(int number) Returns an individual data component.Type[]Returns an array containing the data elements.Returns degree (e.g.Returns family name (component 2).Returns given name (component 3).Returns ID number (component 1).Returns middle initial or name (component 4).Returns prefix (e.g.Returns source table id (component 8).Returns suffix (e.g.Methods inherited from class ca.uhn.hl7v2.model.AbstractComposite
accept, clear, getTyped, isEmpty, provideLocationMethods inherited from class ca.uhn.hl7v2.model.AbstractType
encode, getExtraComponents, getMessage, getName, parse, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Type
encode, getExtraComponents, getMessage, getName, parse
-
Constructor Details
-
CN_PERSON
Creates a new CN_PERSON type
-
-
Method Details
-
getComponents
Returns an array containing the data elements. -
getComponent
Returns an individual data component.- Parameters:
number- The component number (0-indexed)- Throws:
DataTypeException- if the given element number is out of range.
-
getIDNumber
Returns ID number (component 1). This is a convenience method that saves you from casting and handling an exception. -
getCn_person1_IDNumber
Returns ID number (component 1). This is a convenience method that saves you from casting and handling an exception. -
getFamilyName
Returns family name (component 2). This is a convenience method that saves you from casting and handling an exception. -
getCn_person2_FamilyName
Returns family name (component 2). This is a convenience method that saves you from casting and handling an exception. -
getGivenName
Returns given name (component 3). This is a convenience method that saves you from casting and handling an exception. -
getCn_person3_GivenName
Returns given name (component 3). This is a convenience method that saves you from casting and handling an exception. -
getMiddleInitialOrName
Returns middle initial or name (component 4). This is a convenience method that saves you from casting and handling an exception. -
getCn_person4_MiddleInitialOrName
Returns middle initial or name (component 4). This is a convenience method that saves you from casting and handling an exception. -
getSuffixEgJRorIII
Returns suffix (e.g. JR or III) (component 5). This is a convenience method that saves you from casting and handling an exception. -
getCn_person5_SuffixEgJRorIII
Returns suffix (e.g. JR or III) (component 5). This is a convenience method that saves you from casting and handling an exception. -
getPrefixEgDR
Returns prefix (e.g. DR) (component 6). This is a convenience method that saves you from casting and handling an exception. -
getCn_person6_PrefixEgDR
Returns prefix (e.g. DR) (component 6). This is a convenience method that saves you from casting and handling an exception. -
getDegreeEgMD
Returns degree (e.g. MD) (component 7). This is a convenience method that saves you from casting and handling an exception. -
getCn_person7_DegreeEgMD
Returns degree (e.g. MD) (component 7). This is a convenience method that saves you from casting and handling an exception. -
getSourceTableId
Returns source table id (component 8). This is a convenience method that saves you from casting and handling an exception. -
getCn_person8_SourceTableId
Returns source table id (component 8). This is a convenience method that saves you from casting and handling an exception.
-