public class XcnName extends Name<ca.uhn.hl7v2.model.v25.datatype.XCN>
It is derived from the HL7v2 data type XCN. 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.
MESSAGE
Constructor and Description |
---|
XcnName() |
XcnName(String familyName,
String givenName,
String secondAndFurtherGivenNames,
String suffix,
String prefix,
String degree)
Constructs a name.
|
XcnName(ca.uhn.hl7v2.model.v25.datatype.XCN xcn) |
Modifier and Type | Method and Description |
---|---|
String |
getDegree() |
String |
getFamilyName() |
String |
getGivenName() |
String |
getPrefix() |
String |
getSecondAndFurtherGivenNames() |
String |
getSuffix() |
void |
setDegree(String value) |
void |
setFamilyName(String value) |
void |
setGivenName(String value) |
void |
setPrefix(String value) |
void |
setSecondAndFurtherGivenNames(String value) |
void |
setSuffix(String value) |
String |
toString() |
equals, hashCode
getHapiObject, getIntegerValue, getLongValue, isEmpty, parse, rawRender, render, render, setAssigningAuthority, setValue, setValue
public XcnName()
public XcnName(ca.uhn.hl7v2.model.v25.datatype.XCN xcn)
public XcnName(String familyName, String givenName, String secondAndFurtherGivenNames, String suffix, String prefix, String degree)
familyName
- the family name (XCN.2.1).givenName
- the given name (XCN.3).secondAndFurtherGivenNames
- the second and further names (XCN.4).suffix
- the suffix (XCN.5).prefix
- the prefix (XCN.6).degree
- academical degree (XCN.7).public String getFamilyName()
getFamilyName
in class Name<ca.uhn.hl7v2.model.v25.datatype.XCN>
public void setFamilyName(String value)
setFamilyName
in class Name<ca.uhn.hl7v2.model.v25.datatype.XCN>
public String getGivenName()
getGivenName
in class Name<ca.uhn.hl7v2.model.v25.datatype.XCN>
public void setGivenName(String value)
setGivenName
in class Name<ca.uhn.hl7v2.model.v25.datatype.XCN>
public String getSecondAndFurtherGivenNames()
getSecondAndFurtherGivenNames
in class Name<ca.uhn.hl7v2.model.v25.datatype.XCN>
public void setSecondAndFurtherGivenNames(String value)
setSecondAndFurtherGivenNames
in class Name<ca.uhn.hl7v2.model.v25.datatype.XCN>
public String getSuffix()
public void setSuffix(String value)
public String getPrefix()
public void setPrefix(String value)
public String getDegree()
public void setDegree(String value)
Copyright © 2018 Open eHealth Foundation. All rights reserved.