Class HumanNameDt
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeDatatype
,ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IDatatype
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IIdentifiableElement
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseDatatype
,org.hl7.fhir.instance.model.api.ICompositeType
Definition: A human's name with the ability to identify parts and usage
Requirements: Need to be able to record names, along with notes about their use
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.model.primitive.StringDt
Adds and returns a new value for family ()addFamily
(ca.uhn.fhir.model.primitive.StringDt theValue) Adds a given new value for family ()Adds a new value for family ()ca.uhn.fhir.model.primitive.StringDt
addGiven()
Adds and returns a new value for given ()addGiven
(ca.uhn.fhir.model.primitive.StringDt theValue) Adds a given new value for given ()Adds a new value for given ()ca.uhn.fhir.model.primitive.StringDt
Adds and returns a new value for prefix ()addPrefix
(ca.uhn.fhir.model.primitive.StringDt theValue) Adds a given new value for prefix ()Adds a new value for prefix ()ca.uhn.fhir.model.primitive.StringDt
Adds and returns a new value for suffix ()addSuffix
(ca.uhn.fhir.model.primitive.StringDt theValue) Adds a given new value for suffix ()Adds a new value for suffix ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) List
<ca.uhn.fhir.model.primitive.StringDt> Gets the value(s) for family ().ca.uhn.fhir.model.primitive.StringDt
Gets the first repetition for family (), creating it if it does not already exist.List
<ca.uhn.fhir.model.primitive.StringDt> getGiven()
Gets the value(s) for given ().ca.uhn.fhir.model.primitive.StringDt
Gets the first repetition for given (), creating it if it does not already exist.Gets the value(s) for period ().List
<ca.uhn.fhir.model.primitive.StringDt> Gets the value(s) for prefix ().ca.uhn.fhir.model.primitive.StringDt
Gets the first repetition for prefix (), creating it if it does not already exist.List
<ca.uhn.fhir.model.primitive.StringDt> Gets the value(s) for suffix ().ca.uhn.fhir.model.primitive.StringDt
Gets the first repetition for suffix (), creating it if it does not already exist.getText()
Gets the value(s) for text ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for text ().getUse()
Gets the value(s) for use ().ca.uhn.fhir.model.primitive.BoundCodeDt
<NameUseEnum> Gets the value(s) for use ().boolean
isEmpty()
Sets the value(s) for family ()Sets the value(s) for given ()Sets the value(s) for period ()Sets the value(s) for prefix ()Sets the value(s) for suffix ()setText
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for text ()Sets the value for text ()setUse
(NameUseEnum theValue) Sets the value(s) for use ()setUse
(ca.uhn.fhir.model.primitive.BoundCodeDt<NameUseEnum> theValue) Sets the value(s) for use ()Methods inherited from class ca.uhn.fhir.model.base.composite.BaseHumanNameDt
getFamilyAsSingleString, getGivenAsSingleString, getNameAsSingleString, getPrefixAsSingleString, getSuffixAsSingleString, toString
Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
Constructor Details
-
HumanNameDt
public HumanNameDt()Constructor
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getUseElement
Gets the value(s) for use (). creating it if it does not exist. Will not returnnull
.Definition: Identifies the purpose for this name
-
getUse
Gets the value(s) for use (). creating it if it does not exist. This method may returnnull
.Definition: Identifies the purpose for this name
-
setUse
Sets the value(s) for use ()Definition: Identifies the purpose for this name
-
setUse
Sets the value(s) for use ()Definition: Identifies the purpose for this name
-
getTextElement
Gets the value(s) for text (). creating it if it does not exist. Will not returnnull
.Definition: A full text representation of the name
- Specified by:
getTextElement
in classca.uhn.fhir.model.base.composite.BaseHumanNameDt
-
getText
Gets the value(s) for text (). creating it if it does not exist. This method may returnnull
.Definition: A full text representation of the name
-
setText
Sets the value(s) for text ()Definition: A full text representation of the name
- Specified by:
setText
in classca.uhn.fhir.model.base.composite.BaseHumanNameDt
-
setText
Sets the value for text ()Definition: A full text representation of the name
-
getFamily
Gets the value(s) for family (). creating it if it does not exist. Will not returnnull
.Definition: 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.
- Specified by:
getFamily
in classca.uhn.fhir.model.base.composite.BaseHumanNameDt
-
setFamily
Sets the value(s) for family ()Definition: 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.
-
addFamily
Adds and returns a new value for family ()Definition: 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.
-
addFamily
Adds a given new value for family ()Definition: 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.
- Parameters:
theValue
- The family to add (must not benull
)
-
getFamilyFirstRep
Gets the first repetition for family (), creating it if it does not already exist.Definition: 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.
-
addFamily
Adds a new value for family ()Definition: 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.
- Returns:
- Returns a reference to this object, to allow for simple chaining.
-
getGiven
Gets the value(s) for given (). creating it if it does not exist. Will not returnnull
.Definition: Given name
- Specified by:
getGiven
in classca.uhn.fhir.model.base.composite.BaseHumanNameDt
-
setGiven
Sets the value(s) for given ()Definition: Given name
-
addGiven
Adds and returns a new value for given ()Definition: Given name
-
addGiven
Adds a given new value for given ()Definition: Given name
- Parameters:
theValue
- The given to add (must not benull
)
-
getGivenFirstRep
Gets the first repetition for given (), creating it if it does not already exist.Definition: Given name
-
addGiven
Adds a new value for given ()Definition: Given name
- Returns:
- Returns a reference to this object, to allow for simple chaining.
-
getPrefix
Gets the value(s) for prefix (). creating it if it does not exist. Will not returnnull
.Definition: 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
- Specified by:
getPrefix
in classca.uhn.fhir.model.base.composite.BaseHumanNameDt
-
setPrefix
Sets the value(s) for prefix ()Definition: 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
Adds and returns a new value for prefix ()Definition: 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
Adds a given new value for prefix ()Definition: 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
- Parameters:
theValue
- The prefix to add (must not benull
)
-
getPrefixFirstRep
Gets the first repetition for prefix (), creating it if it does not already exist.Definition: 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
Adds a new value for prefix ()Definition: 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
- Returns:
- Returns a reference to this object, to allow for simple chaining.
-
getSuffix
Gets the value(s) for suffix (). creating it if it does not exist. Will not returnnull
.Definition: 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
- Specified by:
getSuffix
in classca.uhn.fhir.model.base.composite.BaseHumanNameDt
-
setSuffix
Sets the value(s) for suffix ()Definition: 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
Adds and returns a new value for suffix ()Definition: 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
Adds a given new value for suffix ()Definition: 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
- Parameters:
theValue
- The suffix to add (must not benull
)
-
getSuffixFirstRep
Gets the first repetition for suffix (), creating it if it does not already exist.Definition: 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
Adds a new value for suffix ()Definition: 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
- Returns:
- Returns a reference to this object, to allow for simple chaining.
-
getPeriod
Gets the value(s) for period (). creating it if it does not exist. Will not returnnull
.Definition: Indicates the period of time when this name was valid for the named person.
-
setPeriod
Sets the value(s) for period ()Definition: Indicates the period of time when this name was valid for the named person.
-