Package org.projecthusky.common.model
Class Name
java.lang.Object
org.projecthusky.common.basetypes.NameBaseType
org.projecthusky.common.model.Name
- All Implemented Interfaces:
Serializable
The class Name contains all fields for different name parts such as given or
family. 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.NameBaseType
NameBaseType.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionName()
Instantiates a new instance.Instantiates a new instance from the given name.Name
(org.openehealth.ipf.commons.ihe.xds.core.metadata.Name<?> ipfName) Instantiates a new instance from the given IPF name type.Name
(NameBaseType baseType) Instantiates a new instance from the given base type.Instantiates a new instance from the given HL7 CDA R2 data type.Instantiates a new instance from the given HL7 CDA R2 data type.Instantiates a new instance from the given HL7 CDA R2 data type. -
Method Summary
Modifier and TypeMethodDescriptionstatic EN
createHl7CdaR2En
(NameBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.static ON
createHl7CdaR2On
(NameBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.static PN
createHl7CdaR2Pn
(NameBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.static TN
createHl7CdaR2Tn
(NameBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.static NameBaseType
createNameBaseType
(EN hl7CdaR2Value) Creates the base type from the given HL7 CDA R2 value.Gets the HL7 CDA R2 data type from the current instance.Gets the HL7 CDA R2 data type from the current instance.Gets the HL7 CDA R2 data type from the current instance.static org.openehealth.ipf.commons.ihe.xds.core.metadata.XpnName
getIpfXpnName
(PN hl7CdaR2Value) void
set
(NameBaseType 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.NameBaseType
builder, equals, getDelimiter, getFamily, getFullName, getGiven, getName, getNullFlavor, getPrefix, getSuffix, getUsage, hashCode, isNullFlavor, setDelimiter, setFamily, setGiven, setName, setNullFlavor, setPrefix, setSuffix, setUsage, toString
-
Constructor Details
-
Name
public Name()Instantiates a new instance. Default constructor. -
Name
Instantiates a new instance from the given base type.- Parameters:
baseType
- the base type
-
Name
Instantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data type
-
Name
Instantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data type
-
Name
Instantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data type
-
Name
public Name(org.openehealth.ipf.commons.ihe.xds.core.metadata.Name<?> ipfName) Instantiates a new instance from the given IPF name type.- Parameters:
ipfName
- the ipf name
-
Name
Instantiates a new instance from the given name.- Parameters:
name
- the name
-
-
Method Details
-
createHl7CdaR2En
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
-
createHl7CdaR2On
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
-
createHl7CdaR2Pn
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
-
createHl7CdaR2Tn
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
-
createNameBaseType
Creates the base type from the given HL7 CDA R2 value.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 value- Returns:
- the base type
-
getIpfXpnName
public static org.openehealth.ipf.commons.ihe.xds.core.metadata.XpnName getIpfXpnName(PN hl7CdaR2Value) -
getHl7CdaR2En
Gets the HL7 CDA R2 data type from the current instance.- Returns:
- the HL7 CDA R2 data type
-
getHl7CdaR2Pn
Gets the HL7 CDA R2 data type from the current instance.- Returns:
- the HL7 CDA R2 data type
-
getHl7CdaR2Tn
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 base type.- Parameters:
baseType
- the base 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
-