Class XpnName
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<T>
org.openehealth.ipf.commons.ihe.xds.core.metadata.Name<ca.uhn.hl7v2.model.v25.datatype.XPN>
org.openehealth.ipf.commons.ihe.xds.core.metadata.XpnName
- All Implemented Interfaces:
Serializable
This class represents a name.
It is derived from the HL7v2 data type XPN. It only contains naming related fields of these data types.
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.
- Author:
- Jens Riemschneider, Dmytro Rud
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
Hl7v2Based.Holder<T extends ca.uhn.hl7v2.model.Type> -
Field Summary
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XpnNameParses an HL7v2 string into an XpnName object.voidvoidsetFamilyName(String value) voidsetGivenName(String value) voidvoidvoidtoString()Methods inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Name
copyFrom, equals, hashCodeMethods inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
getHapiObject, getIntegerValue, getLongValue, isEmpty, parse, rawRender, render, render, setAssigningAuthority, setValue, setValue
-
Constructor Details
-
XpnName
public XpnName() -
XpnName
public XpnName(ca.uhn.hl7v2.model.v25.datatype.XPN xpn) -
XpnName
public XpnName(String familyName, String givenName, String secondAndFurtherGivenNames, String suffix, String prefix, String degree) Constructs a name.- Parameters:
familyName- the family name (XPN.1.1).givenName- the given name (XPN.2).secondAndFurtherGivenNames- the second and further names (XPN.3).suffix- the suffix (XPN.4).prefix- the prefix (XPN.5).degree- academical degree (XPN.6).
-
-
Method Details
-
parse
Parses an HL7v2 string into an XpnName object.- Parameters:
hl7String- HL7v2 representation of an XpnName object.- Returns:
- parsed XpnName object.
-
getFamilyName
- Specified by:
getFamilyNamein className<ca.uhn.hl7v2.model.v25.datatype.XPN>
-
setFamilyName
- Specified by:
setFamilyNamein className<ca.uhn.hl7v2.model.v25.datatype.XPN>
-
getGivenName
- Specified by:
getGivenNamein className<ca.uhn.hl7v2.model.v25.datatype.XPN>
-
setGivenName
- Specified by:
setGivenNamein className<ca.uhn.hl7v2.model.v25.datatype.XPN>
-
getSecondAndFurtherGivenNames
- Specified by:
getSecondAndFurtherGivenNamesin className<ca.uhn.hl7v2.model.v25.datatype.XPN>
-
setSecondAndFurtherGivenNames
- Specified by:
setSecondAndFurtherGivenNamesin className<ca.uhn.hl7v2.model.v25.datatype.XPN>
-
getSuffix
-
setSuffix
-
getPrefix
-
setPrefix
-
getDegree
-
setDegree
-
toString
-