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 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
Specifies the entire name as it should be displayed e.g.
|
protected Enumeration<HumanName.NameUse> |
use
Identifies the purpose for this name.
|
| Constructor and Description |
|---|
HumanName()
Constructor
|
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected 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 (Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts.). 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 (Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the valuepublic String getText()
public HumanName setText(String value)
value - Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts.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> children)
listChildren in class Elementpublic Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
getNamedProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base 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 String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
getTypesForProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic void copyValues(HumanName dst)
public boolean equalsDeep(Base other_)
equalsDeep in class Elementpublic boolean equalsShallow(Base other_)
equalsShallow in class ElementCopyright © 2014–2021 Health Level 7. All rights reserved.