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 SummaryNested classes/interfaces inherited from class org.projecthusky.common.basetypes.NameBaseTypeNameBaseType.Builder
- 
Constructor SummaryConstructorsConstructorDescriptionName()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 SummaryModifier and TypeMethodDescriptionstatic ENcreateHl7CdaR2En(NameBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.static ONcreateHl7CdaR2On(NameBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.static PNcreateHl7CdaR2Pn(NameBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.static TNcreateHl7CdaR2Tn(NameBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.static NameBaseTypecreateNameBaseType(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.XpnNamegetIpfXpnName(PN hl7CdaR2Value) voidset(NameBaseType baseType) Sets the fields of the current instance by the given base type.voidSets the fields of the current instance by the given HL7 CDA R2 data type.Methods inherited from class org.projecthusky.common.basetypes.NameBaseTypebuilder, equals, getDelimiter, getFamily, getFullName, getGiven, getName, getNullFlavor, getPrefix, getSuffix, getUsage, hashCode, isNullFlavor, setDelimiter, setFamily, setGiven, setName, setNullFlavor, setPrefix, setSuffix, setUsage, toString
- 
Constructor Details- 
Namepublic Name()Instantiates a new instance. Default constructor.
- 
NameInstantiates a new instance from the given base type.- Parameters:
- baseType- the base type
 
- 
NameInstantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
- hl7CdaR2Value- the HL7 CDA R2 data type
 
- 
NameInstantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
- hl7CdaR2Value- the HL7 CDA R2 data type
 
- 
NameInstantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
- hl7CdaR2Value- the HL7 CDA R2 data type
 
- 
Namepublic 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
 
- 
NameInstantiates a new instance from the given name.- Parameters:
- name- the name
 
 
- 
- 
Method Details- 
createHl7CdaR2EnCreates the HL7 CDA R2 data type from the given base type.- Parameters:
- baseType- the base type
- Returns:
- the HL7 CDA R2 data typed value
 
- 
createHl7CdaR2OnCreates the HL7 CDA R2 data type from the given base type.- Parameters:
- baseType- the base type
- Returns:
- the HL7 CDA R2 data typed value
 
- 
createHl7CdaR2PnCreates the HL7 CDA R2 data type from the given base type.- Parameters:
- baseType- the base type
- Returns:
- the HL7 CDA R2 data typed value
 
- 
createHl7CdaR2TnCreates the HL7 CDA R2 data type from the given base type.- Parameters:
- baseType- the base type
- Returns:
- the HL7 CDA R2 data typed value
 
- 
createNameBaseTypeCreates the base type from the given HL7 CDA R2 value.- Parameters:
- hl7CdaR2Value- the HL7 CDA R2 value
- Returns:
- the base type
 
- 
getIpfXpnNamepublic static org.openehealth.ipf.commons.ihe.xds.core.metadata.XpnName getIpfXpnName(PN hl7CdaR2Value) 
- 
getHl7CdaR2EnGets the HL7 CDA R2 data type from the current instance.- Returns:
- the HL7 CDA R2 data type
 
- 
getHl7CdaR2PnGets the HL7 CDA R2 data type from the current instance.- Returns:
- the HL7 CDA R2 data type
 
- 
getHl7CdaR2TnGets the HL7 CDA R2 data type from the current instance.- Returns:
- the HL7 CDA R2 data type
 
- 
setSets the fields of the current instance by the given base type.- Parameters:
- baseType- the base type
 
- 
setSets the fields of the current instance by the given HL7 CDA R2 data type.- Parameters:
- hl7CdaR2Value- the HL7 CDA R2 data typed value
 
 
-