public class HumanName extends Type implements ICompositeType
| Modifier and Type | Class and Description |
|---|---|
static class |
HumanName.NameUse |
static class |
HumanName.NameUseEnumFactory |
| Modifier and Type | Field and Description |
|---|---|
protected 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, addExtension, copyValues, getExtension, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentprotected Enumeration<HumanName.NameUse> use
protected StringType text
protected 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 StringType getFamilyElement()
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.). This is the underlying object with id, value and extensions. The accessor "getFamily" gives direct access to the valuepublic boolean hasFamilyElement()
public boolean hasFamily()
public HumanName setFamilyElement(StringType 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.). This is the underlying object with id, value and extensions. The accessor "getFamily" gives direct access to the valuepublic String getFamily()
public HumanName setFamily(String value)
value - 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 HumanName setGiven(List<StringType> theGiven)
this for easy method chainingpublic 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 HumanName setPrefix(List<StringType> thePrefix)
this for easy method chainingpublic 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 HumanName setSuffix(List<StringType> theSuffix)
this for easy method chainingpublic 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 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 FHIRException
getProperty in class ElementFHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws FHIRException
setProperty in class ElementFHIRExceptionpublic Base setProperty(String name, Base value) throws FHIRException
setProperty in class ElementFHIRExceptionpublic Base makeProperty(int hash, String name) throws FHIRException
makeProperty in class ElementFHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws FHIRException
getTypesForProperty in class ElementFHIRExceptionpublic Base addChild(String name) throws FHIRException
addChild in class ElementFHIRExceptionpublic boolean equalsDeep(Base other)
equalsDeep in class Elementpublic boolean equalsShallow(Base other)
equalsShallow in class ElementCopyright © 2014–2017 University Health Network. All rights reserved.