Package ca.uhn.hl7v2.model.v251.datatype
Class XPN
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractComposite
ca.uhn.hl7v2.model.v251.datatype.XPN
- All Implemented Interfaces:
Composite,Type,Visitable,Serializable
Represents an HL7 XPN (Extended Person Name) data type. This type consists of the following components:
- Family Name (FN)
- Given Name (ST)
- Second and Further Given Names or Initials Thereof (ST)
- Suffix (e.g., JR or III) (ST)
- Prefix (e.g., DR) (ST)
- Degree (e.g., MD) (IS)
- Name Type Code (ID)
- Name Representation Code (ID)
- Name Context (CE)
- Name Validity Range (DR)
- Name Assembly Order (ID)
- Effective Date (TS)
- Expiration Date (TS)
- Professional Suffix (ST)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponent(int number) Returns an individual data component.Type[]Returns an array containing the data elements.Returns Degree (e.g., MD) (component 6).Returns Effective Date (component 12).Returns Expiration Date (component 13).Returns Family Name (component 1).Returns Given Name (component 2).Returns Name Assembly Order (component 11).Returns Name Context (component 9).Returns Name Representation Code (component 8).Returns Name Type Code (component 7).Returns Name Validity Range (component 10).Returns Prefix (e.g., DR) (component 5).Returns Professional Suffix (component 14).Returns Second and Further Given Names or Initials Thereof (component 3).Returns Suffix (e.g., JR or III) (component 4).Returns Family Name (component 1).Returns Name Validity Range (component 10).Returns Name Assembly Order (component 11).Returns Effective Date (component 12).Returns Expiration Date (component 13).Returns Professional Suffix (component 14).Returns Given Name (component 2).Returns Second and Further Given Names or Initials Thereof (component 3).Returns Suffix (e.g., JR or III) (component 4).Returns Prefix (e.g., DR) (component 5).Returns Degree (e.g., MD) (component 6).Returns Name Type Code (component 7).Returns Name Representation Code (component 8).Returns Name Context (component 9).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
-
XPN
Creates a new XPN 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.
-
getFamilyName
Returns Family Name (component 1). This is a convenience method that saves you from casting and handling an exception. -
getXpn1_FamilyName
Returns Family Name (component 1). This is a convenience method that saves you from casting and handling an exception. -
getGivenName
Returns Given Name (component 2). This is a convenience method that saves you from casting and handling an exception. -
getXpn2_GivenName
Returns Given Name (component 2). This is a convenience method that saves you from casting and handling an exception. -
getSecondAndFurtherGivenNamesOrInitialsThereof
Returns Second and Further Given Names or Initials Thereof (component 3). This is a convenience method that saves you from casting and handling an exception. -
getXpn3_SecondAndFurtherGivenNamesOrInitialsThereof
Returns Second and Further Given Names or Initials Thereof (component 3). This is a convenience method that saves you from casting and handling an exception. -
getSuffixEgJRorIII
Returns Suffix (e.g., JR or III) (component 4). This is a convenience method that saves you from casting and handling an exception. -
getXpn4_SuffixEgJRorIII
Returns Suffix (e.g., JR or III) (component 4). This is a convenience method that saves you from casting and handling an exception. -
getPrefixEgDR
Returns Prefix (e.g., DR) (component 5). This is a convenience method that saves you from casting and handling an exception. -
getXpn5_PrefixEgDR
Returns Prefix (e.g., DR) (component 5). This is a convenience method that saves you from casting and handling an exception. -
getDegreeEgMD
Returns Degree (e.g., MD) (component 6). This is a convenience method that saves you from casting and handling an exception. -
getXpn6_DegreeEgMD
Returns Degree (e.g., MD) (component 6). This is a convenience method that saves you from casting and handling an exception. -
getNameTypeCode
Returns Name Type Code (component 7). This is a convenience method that saves you from casting and handling an exception. -
getXpn7_NameTypeCode
Returns Name Type Code (component 7). This is a convenience method that saves you from casting and handling an exception. -
getNameRepresentationCode
Returns Name Representation Code (component 8). This is a convenience method that saves you from casting and handling an exception. -
getXpn8_NameRepresentationCode
Returns Name Representation Code (component 8). This is a convenience method that saves you from casting and handling an exception. -
getNameContext
Returns Name Context (component 9). This is a convenience method that saves you from casting and handling an exception. -
getXpn9_NameContext
Returns Name Context (component 9). This is a convenience method that saves you from casting and handling an exception. -
getNameValidityRange
Returns Name Validity Range (component 10). This is a convenience method that saves you from casting and handling an exception. -
getXpn10_NameValidityRange
Returns Name Validity Range (component 10). This is a convenience method that saves you from casting and handling an exception. -
getNameAssemblyOrder
Returns Name Assembly Order (component 11). This is a convenience method that saves you from casting and handling an exception. -
getXpn11_NameAssemblyOrder
Returns Name Assembly Order (component 11). This is a convenience method that saves you from casting and handling an exception. -
getEffectiveDate
Returns Effective Date (component 12). This is a convenience method that saves you from casting and handling an exception. -
getXpn12_EffectiveDate
Returns Effective Date (component 12). This is a convenience method that saves you from casting and handling an exception. -
getExpirationDate
Returns Expiration Date (component 13). This is a convenience method that saves you from casting and handling an exception. -
getXpn13_ExpirationDate
Returns Expiration Date (component 13). This is a convenience method that saves you from casting and handling an exception. -
getProfessionalSuffix
Returns Professional Suffix (component 14). This is a convenience method that saves you from casting and handling an exception. -
getXpn14_ProfessionalSuffix
Returns Professional Suffix (component 14). This is a convenience method that saves you from casting and handling an exception.
-