Package org.hl7.fhir.r5.model
Class HumanName
java.lang.Object
org.hl7.fhir.r5.model.Base
org.hl7.fhir.r5.model.Element
org.hl7.fhir.r5.model.DataType
org.hl7.fhir.r5.model.HumanName
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseDatatype
,org.hl7.fhir.instance.model.api.IBaseElement
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.ICompositeType
HumanName Type: A name, normally of a human, that can be used for other living entities (e.g. animals but not organizations) that have been assigned names by a human and may need the use of name parts or the need for usage information.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
Nested classes/interfaces inherited from class org.hl7.fhir.r5.model.Base
Base.ProfileSource, Base.ValidationInfo, Base.ValidationMode, Base.ValidationReason
-
Field Summary
Modifier and TypeFieldDescriptionprotected StringType
The part of a name that links to the genealogy.protected List
<StringType> Given name.protected Period
Indicates the period of time when this name was valid for the named person.protected List
<StringType> Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc.protected List
<StringType> Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc.protected StringType
Specifies the entire name as it should be displayed e.g.protected Enumeration
<HumanName.NameUse> Identifies the purpose for this name. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
void
copyValues
(HumanName dst) boolean
equalsDeep
(Base other_) boolean
equalsShallow
(Base other_) fhirType()
getGiven()
/** Returns all repetitions ofgiven name
as a space separated stringReturns thetext
element value if it is not null.getNamedProperty
(int _hash, String _name, boolean _checkValid) Returns all repetitions ofprefix name
as a space separated stringBase[]
getProperty
(int hash, String name, boolean checkValid) Returns all repetitions ofsuffix
as a space separated stringgetText()
String[]
getTypesForProperty
(int hash, String name) getUse()
boolean
boolean
boolean
hasGiven()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
hasText()
boolean
boolean
hasUse()
boolean
boolean
isEmpty()
protected void
listChildren
(List<Property> children) makeProperty
(int hash, String name) void
removeChild
(String name, Base value) setFamilyElement
(StringType value) setGiven
(List<StringType> theGiven) setPrefix
(List<StringType> thePrefix) setProperty
(int hash, String name, Base value) setProperty
(String name, Base value) setSuffix
(List<StringType> theSuffix) setTextElement
(StringType value) setUse
(HumanName.NameUse value) protected HumanName
Methods inherited from class org.hl7.fhir.r5.model.DataType
copyValues, getTranslation, isTranslatable
Methods inherited from class org.hl7.fhir.r5.model.Element
addExtension, addExtension, addExtension, copyExtensions, copyNewExtensions, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionsByUrl, getExtensionString, getExtensionString, getFHIRPublicationVersion, getId, getIdBase, getIdElement, getStandardsStatus, hasExtension, hasExtension, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement, setStandardsStatus
Methods inherited from class org.hl7.fhir.r5.model.Base
addDefinition, addFormatCommentsPost, addFormatCommentsPre, addValidationMessage, canHavePrimitiveValue, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyFormatComments, copyUserData, copyValues, dateTimeValue, equals, getChildByName, getChildValueByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getValidationInfo, getValidationMessages, getXhtml, hasFormatComment, hasFormatCommentPost, hasFormatCommentPre, hasPrimitiveValue, hasType, hasUserData, hasValidated, hasValidationInfo, hasValidationMessages, isBooleanPrimitive, isCopyUserData, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setCopyUserData, setUserData, setUserDataINN
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
Field Details
-
use
Identifies the purpose for this name. -
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. -
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. -
given
Given name. -
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. -
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. -
period
Indicates the period of time when this name was valid for the named person.
-
-
Constructor Details
-
HumanName
public HumanName()Constructor
-
-
Method Details
-
getUseElement
- Returns:
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 value
-
hasUseElement
-
hasUse
-
setUseElement
- Parameters:
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 value
-
getUse
- Returns:
- Identifies the purpose for this name.
-
setUse
- Parameters:
value
- Identifies the purpose for this name.
-
getTextElement
- Returns:
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 value
-
hasTextElement
-
hasText
-
setTextElement
- Parameters:
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 value
-
getText
- Returns:
- 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.
-
setText
- Parameters:
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.
-
getFamilyElement
- Returns:
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 value
-
hasFamilyElement
-
hasFamily
-
setFamilyElement
- Parameters:
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 value
-
getFamily
- Returns:
- 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.
-
setFamily
- Parameters:
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.
-
getGiven
- Returns:
given
(Given name.)
-
setGiven
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasGiven
-
addGivenElement
- Returns:
given
(Given name.)
-
addGiven
- Parameters:
value
-given
(Given name.)
-
hasGiven
- Parameters:
value
-given
(Given name.)
-
getPrefix
- Returns:
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.)
-
setPrefix
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasPrefix
-
addPrefixElement
- Returns:
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.)
-
addPrefix
- Parameters:
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.)
-
hasPrefix
- Parameters:
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.)
-
getSuffix
- Returns:
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.)
-
setSuffix
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasSuffix
-
addSuffixElement
- Returns:
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.)
-
addSuffix
- Parameters:
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.)
-
hasSuffix
- Parameters:
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.)
-
getPeriod
- Returns:
period
(Indicates the period of time when this name was valid for the named person.)
-
hasPeriod
-
setPeriod
- Parameters:
value
-period
(Indicates the period of time when this name was valid for the named person.)
-
listChildren
- Overrides:
listChildren
in classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
removeChild
- Overrides:
removeChild
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makeProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
copyValues
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeep
in classElement
-
equalsShallow
- Overrides:
equalsShallow
in classElement
-
isEmpty
-
getGivenAsSingleString
/** Returns all repetitions ofgiven name
as a space separated string- See Also:
-
getPrefixAsSingleString
Returns all repetitions ofprefix name
as a space separated string- See Also:
-
getSuffixAsSingleString
Returns all repetitions ofsuffix
as a space separated string- See Also:
-
getNameAsSingleString
Returns the
text
element value if it is not null.If the
text
element value is null, returns all the components of the name (prefix, given, family, suffix) as a single string with a single spaced string separating each part.- Returns:
- the human name as a single string
-