Package ca.uhn.hl7v2.model.v22.datatype
Class AD
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractComposite
ca.uhn.hl7v2.model.v22.datatype.AD
- All Implemented Interfaces:
Composite,Type,Visitable,Serializable
Represents an HL7 AD (address) data type. This type consists of the following components:
- street address (ST)
- other designation (ST)
- city (ST)
- state or province (ST)
- zip or postal code (ID)
- country (ID)
- type (ID)
- other geographic designation (ST)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns street address (component 1).Returns other designation (component 2).Returns city (component 3).Returns state or province (component 4).Returns zip or postal code (component 5).Returns country (component 6).Returns type (component 7).Returns other geographic designation (component 8).getCity()Returns city (component 3).getComponent(int number) Returns an individual data component.Type[]Returns an array containing the data elements.Returns country (component 6).Returns other designation (component 2).Returns other geographic designation (component 8).Returns state or province (component 4).Returns street address (component 1).getType()Returns type (component 7).Returns zip or postal code (component 5).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
-
AD
Creates a new AD 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.
-
getStreetAddress
Returns street address (component 1). This is a convenience method that saves you from casting and handling an exception. -
getAd1_StreetAddress
Returns street address (component 1). This is a convenience method that saves you from casting and handling an exception. -
getOtherDesignation
Returns other designation (component 2). This is a convenience method that saves you from casting and handling an exception. -
getAd2_OtherDesignation
Returns other designation (component 2). This is a convenience method that saves you from casting and handling an exception. -
getCity
Returns city (component 3). This is a convenience method that saves you from casting and handling an exception. -
getAd3_City
Returns city (component 3). This is a convenience method that saves you from casting and handling an exception. -
getStateOrProvince
Returns state or province (component 4). This is a convenience method that saves you from casting and handling an exception. -
getAd4_StateOrProvince
Returns state or province (component 4). This is a convenience method that saves you from casting and handling an exception. -
getZipOrPostalCode
Returns zip or postal code (component 5). This is a convenience method that saves you from casting and handling an exception. -
getAd5_ZipOrPostalCode
Returns zip or postal code (component 5). This is a convenience method that saves you from casting and handling an exception. -
getCountry
Returns country (component 6). This is a convenience method that saves you from casting and handling an exception. -
getAd6_Country
Returns country (component 6). This is a convenience method that saves you from casting and handling an exception. -
getType
Returns type (component 7). This is a convenience method that saves you from casting and handling an exception. -
getAd7_Type
Returns type (component 7). This is a convenience method that saves you from casting and handling an exception. -
getOtherGeographicDesignation
Returns other geographic designation (component 8). This is a convenience method that saves you from casting and handling an exception. -
getAd8_OtherGeographicDesignation
Returns other geographic designation (component 8). This is a convenience method that saves you from casting and handling an exception.
-