public class Telecom extends Hl7v2Based<ca.uhn.hl7v2.model.v25.datatype.XTN>
This class contains members from the HL7 v.2.5 XTN data type.
All members of this class are allowed to be null
.
When transforming to HL7 this indicates that the values are empty.
Trailing empty values are removed from the HL7 string.
MESSAGE
Constructor and Description |
---|
Telecom() |
Telecom(Integer countryCode,
Integer areaCityCode,
Integer localNumber,
Integer extension)
Deprecated.
|
Telecom(Long countryCode,
Long areaCityCode,
Long localNumber,
Long extension)
Creates a telecom object containing a phone number.
|
Telecom(String email)
Creates a telecom object containing an E-mail address.
|
Telecom(String address,
String addressType)
Deprecated.
|
Telecom(ca.uhn.hl7v2.model.v25.datatype.XTN xtn) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAddress()
Deprecated.
use
getEmail() instead. |
String |
getAddressType()
Deprecated.
use
getType() instead. |
Long |
getAreaCityCode() |
Long |
getCountryCode() |
String |
getEmail() |
Long |
getExtension() |
Long |
getLocalNumber() |
String |
getType() |
String |
getUnformattedPhoneNumber() |
String |
getUse() |
int |
hashCode() |
void |
setAddress(String address)
Deprecated.
use
setEmail(String) instead. |
void |
setAddressType(String addressType)
Deprecated.
use
setType(String) instead. |
void |
setAreaCityCode(Long areaCityCode) |
void |
setCountryCode(Long countryCode) |
void |
setEmail(String email) |
void |
setExtension(Long extension) |
void |
setLocalNumber(Long localNumber) |
void |
setType(String type) |
void |
setUnformattedPhoneNumber(String unformattedPhoneNumber) |
void |
setUse(String use) |
String |
toString() |
getHapiObject, getIntegerValue, getLongValue, isEmpty, parse, rawRender, render, render, setAssigningAuthority, setValue, setValue
public Telecom()
public Telecom(ca.uhn.hl7v2.model.v25.datatype.XTN xtn)
@Deprecated public Telecom(String address, String addressType)
public Telecom(String email)
email
- E-mail address (XTN-4).public Telecom(Long countryCode, Long areaCityCode, Long localNumber, Long extension)
countryCode
- country code of phone number (XTN-5), can be null
.areaCityCode
- area/city code of phone number (XTN-6), can be null
.localNumber
- local part of the phone number (XTN-7).extension
- extension of the phone number (XTN-8), can be null
.public String getUse()
public void setUse(String use)
use
- telecom use code (XTN-2) according to HL7 v.2.5 Table 0201.public String getType()
public void setType(String type)
type
- telecom type (XTN-3) according to HL7 v.2.5 Table 0202.@Deprecated public String getAddressType()
getType()
instead.@Deprecated public void setAddressType(String addressType)
setType(String)
instead.addressType
- telecommunication equipment type (XTN-3) according to HL7 v.2.5 Table 0202.public String getEmail()
public void setEmail(String email)
email
- E-mail address (XTN-4).@Deprecated public String getAddress()
getEmail()
instead.@Deprecated public void setAddress(String address)
setEmail(String)
instead.address
- E-mail address (XTN-4).public Long getCountryCode()
public void setCountryCode(Long countryCode)
countryCode
- country code of phone number (XTN-5).public Long getAreaCityCode()
public void setAreaCityCode(Long areaCityCode)
areaCityCode
- area/city code of phone number (XTN-6).public Long getLocalNumber()
public void setLocalNumber(Long localNumber)
localNumber
- local part of the phone number (XTN-7).public Long getExtension()
public void setExtension(Long extension)
extension
- extension of the phone number (XTN-8).public String getUnformattedPhoneNumber()
public void setUnformattedPhoneNumber(String unformattedPhoneNumber)
unformattedPhoneNumber
- unformatted the phone number (XTN-12).Copyright © 2018 Open eHealth Foundation. All rights reserved.