Package org.projecthusky.common.model
Class Telecom
java.lang.Object
org.projecthusky.common.basetypes.TelecomBaseType
org.projecthusky.common.model.Telecom
- All Implemented Interfaces:
Serializable
The class Telecom contains all necessary fields for mean of communication such as a eMail, phone or website. This
class also provides mapping methods to other data types.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.projecthusky.common.basetypes.TelecomBaseType
TelecomBaseType.Builder
-
Constructor Summary
ConstructorDescriptionTelecom()
Instantiates a new telecom.Telecom
(TelecomBaseType baseType) Instantiates a new instance from the given base type.Instantiates a new instance from the given HL7 CDA R2 data type. -
Method Summary
Modifier and TypeMethodDescriptionstatic TEL
createHl7CdaR2Tel
(TelecomBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.static TelecomBaseType
createTelecomBaseType
(TEL hl7CdaR2Value) Creates the base type from the given HL7 CDA R2 value.Gets the HL7 CDA R2 data type from the current instance.void
set
(TelecomBaseType baseType) Sets the fields of the current instance by the given base type.void
Sets the fields of the current instance by the given HL7 CDA R2 data type.Methods inherited from class org.projecthusky.common.basetypes.TelecomBaseType
builder, equals, getNullFlavor, getUsage, getValue, hashCode, isNullFlavor, setFax, setMail, setNullFlavor, setPhone, setUsage, setValue, toString
-
Constructor Details
-
Telecom
public Telecom()Instantiates a new telecom. Default constructor. -
Telecom
Instantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data type
-
Telecom
Instantiates a new instance from the given base type.- Parameters:
baseType
- the base type
-
-
Method Details
-
createHl7CdaR2Tel
Creates the HL7 CDA R2 data type from the given base type.- Parameters:
baseType
- the base type- Returns:
- the HL7 CDA R2 data typed value
-
createTelecomBaseType
Creates the base type from the given HL7 CDA R2 value.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 value- Returns:
- the base type
-
getHl7CdaR2Tel
Gets the HL7 CDA R2 data type from the current instance.- Returns:
- the HL7 CDA R2 data type
-
set
Sets the fields of the current instance by the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data typed value
-
set
Sets the fields of the current instance by the given base type.- Parameters:
baseType
- the base type
-