Package ca.uhn.hl7v2.model.v251.datatype
Class XAD
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractComposite
ca.uhn.hl7v2.model.v251.datatype.XAD
- All Implemented Interfaces:
Composite,Type,Visitable,Serializable
Represents an HL7 XAD (Extended Address) data type. This type consists of the following components:
- Street Address (SAD)
- Other Designation (ST)
- City (ST)
- State or Province (ST)
- Zip or Postal Code (ST)
- Country (ID)
- Address Type (ID)
- Other Geographic Designation (ST)
- County/Parish Code (IS)
- Census Tract (IS)
- Address Representation Code (ID)
- Address Validity Range (DR)
- Effective Date (TS)
- Expiration Date (TS)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns Address Representation Code (component 11).Returns Address Type (component 7).Returns Address Validity Range (component 12).Returns Census Tract (component 10).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 County/Parish Code (component 9).Returns Effective Date (component 13).Returns Expiration Date (component 14).Returns Other Designation (component 2).Returns Other Geographic Designation (component 8).Returns State or Province (component 4).Returns Street Address (component 1).Returns Street Address (component 1).Returns Census Tract (component 10).Returns Address Representation Code (component 11).Returns Address Validity Range (component 12).Returns Effective Date (component 13).Returns Expiration Date (component 14).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 Address Type (component 7).Returns Other Geographic Designation (component 8).Returns County/Parish Code (component 9).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
-
XAD
Creates a new XAD 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. -
getXad1_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. -
getXad2_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. -
getXad3_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. -
getXad4_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. -
getXad5_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. -
getXad6_Country
Returns Country (component 6). This is a convenience method that saves you from casting and handling an exception. -
getAddressType
Returns Address Type (component 7). This is a convenience method that saves you from casting and handling an exception. -
getXad7_AddressType
Returns Address 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. -
getXad8_OtherGeographicDesignation
Returns Other Geographic Designation (component 8). This is a convenience method that saves you from casting and handling an exception. -
getCountyParishCode
Returns County/Parish Code (component 9). This is a convenience method that saves you from casting and handling an exception. -
getXad9_CountyParishCode
Returns County/Parish Code (component 9). This is a convenience method that saves you from casting and handling an exception. -
getCensusTract
Returns Census Tract (component 10). This is a convenience method that saves you from casting and handling an exception. -
getXad10_CensusTract
Returns Census Tract (component 10). This is a convenience method that saves you from casting and handling an exception. -
getAddressRepresentationCode
Returns Address Representation Code (component 11). This is a convenience method that saves you from casting and handling an exception. -
getXad11_AddressRepresentationCode
Returns Address Representation Code (component 11). This is a convenience method that saves you from casting and handling an exception. -
getAddressValidityRange
Returns Address Validity Range (component 12). This is a convenience method that saves you from casting and handling an exception. -
getXad12_AddressValidityRange
Returns Address Validity Range (component 12). This is a convenience method that saves you from casting and handling an exception. -
getEffectiveDate
Returns Effective Date (component 13). This is a convenience method that saves you from casting and handling an exception. -
getXad13_EffectiveDate
Returns Effective Date (component 13). This is a convenience method that saves you from casting and handling an exception. -
getExpirationDate
Returns Expiration Date (component 14). This is a convenience method that saves you from casting and handling an exception. -
getXad14_ExpirationDate
Returns Expiration Date (component 14). This is a convenience method that saves you from casting and handling an exception.
-