public class HumanName extends Type implements org.hl7.fhir.instance.model.api.ICompositeType
| Modifier and Type | Class and Description |
|---|---|
static class |
HumanName.NameUse |
static class |
HumanName.NameUseEnumFactory |
| Modifier and Type | Field and Description |
|---|---|
protected List<StringType> |
family
The part of a name that links to the genealogy.
|
protected List<StringType> |
given
Given name.
|
protected Period |
period
Indicates the period of time when this name was valid for the named person.
|
protected List<StringType> |
prefix
Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc.
|
protected List<StringType> |
suffix
Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc.
|
protected StringType |
text
A full text representation of the name.
|
protected Enumeration<HumanName.NameUse> |
use
Identifies the purpose for this name.
|
| Constructor and Description |
|---|
HumanName()
Constructor
|
addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElementcastToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNprotected Enumeration<HumanName.NameUse> use
protected StringType text
protected List<StringType> family
protected List<StringType> given
protected List<StringType> prefix
protected List<StringType> suffix
public HumanName()
public Enumeration<HumanName.NameUse> getUseElement()
use (Identifies the purpose for this name.). This is the underlying object with id, value and extensions. The accessor "getUse" gives direct access to the valuepublic boolean hasUseElement()
public boolean hasUse()
public HumanName setUseElement(Enumeration<HumanName.NameUse> value)
value - use (Identifies the purpose for this name.). This is the underlying object with id, value and extensions. The accessor "getUse" gives direct access to the valuepublic HumanName.NameUse getUse()
public HumanName setUse(HumanName.NameUse value)
value - Identifies the purpose for this name.public StringType getTextElement()
text (A full text representation of the name.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the valuepublic boolean hasTextElement()
public boolean hasText()
public HumanName setTextElement(StringType value)
value - text (A full text representation of the name.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the valuepublic HumanName setText(String value)
value - A full text representation of the name.public List<StringType> getFamily()
family (The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.)public boolean hasFamily()
public StringType addFamilyElement()
family (The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.)public HumanName addFamily(String value)
value - family (The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.)public boolean hasFamily(String value)
value - family (The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.)public List<StringType> getGiven()
given (Given name.)public boolean hasGiven()
public StringType addGivenElement()
given (Given name.)public List<StringType> getPrefix()
prefix (Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.)public boolean hasPrefix()
public StringType addPrefixElement()
prefix (Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.)public HumanName addPrefix(String value)
value - prefix (Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.)public boolean hasPrefix(String value)
value - prefix (Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.)public List<StringType> getSuffix()
suffix (Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.)public boolean hasSuffix()
public StringType addSuffixElement()
suffix (Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.)public HumanName addSuffix(String value)
value - suffix (Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.)public boolean hasSuffix(String value)
value - suffix (Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.)public Period getPeriod()
period (Indicates the period of time when this name was valid for the named person.)public boolean hasPeriod()
public HumanName setPeriod(Period value)
value - period (Indicates the period of time when this name was valid for the named person.)public String getFamilyAsSingleString()
family name as a space separated stringDatatypeUtil.joinStringsSpaceSeparated(List)public String getGivenAsSingleString()
given name as a space separated stringDatatypeUtil.joinStringsSpaceSeparated(List)public String getPrefixAsSingleString()
prefix name as a space separated stringDatatypeUtil.joinStringsSpaceSeparated(List)public String getSuffixAsSingleString()
suffix as a space separated stringDatatypeUtil.joinStringsSpaceSeparated(List)public String getNameAsSingleString()
If none of the parts are populated, returns the text element value instead.
protected void listChildren(List<Property> childrenList)
listChildren in class Elementpublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic void setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
makeProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic boolean equalsDeep(Base other)
equalsDeep in class Elementpublic boolean equalsShallow(Base other)
equalsShallow in class ElementCopyright © 2014–2018 University Health Network. All rights reserved.