HumanName class

HumanName 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.

Annotations
  • @freezed

Constructors

HumanName({@JsonKey(name: 'id') String? fhirId, @JsonKey(name: 'extension') List<FhirExtension>? extension_, HumanNameUse? use, @JsonKey(name: '_use') Element? useElement, String? text, @JsonKey(name: '_text') Element? textElement, String? family, @JsonKey(name: '_family') Element? familyElement, List<String>? given, @JsonKey(name: '_given') List<Element>? givenElement, List<String>? prefix, @JsonKey(name: '_prefix') List<Element>? prefixElement, List<String>? suffix, @JsonKey(name: '_suffix') List<Element>? suffixElement, Period? period})
HumanName 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.
const
factory
HumanName.fromJson(Map<String, dynamic> json)
Factory constructor, accepts Map<String, dynamic> as an argument
factory
HumanName.fromJsonString(String source)
Acts like a constructor, returns a HumanName, accepts a String as an argument, mostly because I got tired of typing it out
factory
HumanName.fromYaml(dynamic yaml)
Factory constructor that accepts a String in YAML format as an argument
factory

Properties

copyWith → $HumanNameCopyWith<HumanName>
no setterinherited
extension_ List<FhirExtension>?
extension_ ("extension") May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
no setterinherited
family String?
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.
no setterinherited
familyElement Element?
familyElement ("_family") Extensions for family
no setterinherited
fhirId String?
id Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
no setterinherited
given List<String>?
given Given name.
no setterinherited
givenElement List<Element>?
givenElement ("_given") Extensions for given
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
period Period?
period Indicates the period of time when this name was valid for the named person.
no setterinherited
prefix List<String>?
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.
no setterinherited
prefixElement List<Element>?
prefixElement ("_prefix") Extensions for prefix
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffix List<String>?
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.
no setterinherited
suffixElement List<Element>?
suffixElement ("_suffix") Extensions for suffix
no setterinherited
text String?
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.
no setterinherited
textElement Element?
textElement ("_text") Extensions for text
no setterinherited
use HumanNameUse?
use Identifies the purpose for this name.
no setterinherited
useElement Element?
useElement ("_use") Extensions for use
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toJsonString() String
Another convenience method because more and more I'm transmitting FHIR data as a String and not a Map
toString() String
A string representation of this object.
inherited
toYaml() String
Produces a Yaml formatted String version of the object
updateFamily(String family) HumanName
updateGiven(List<String> given) HumanName
updatePeriod(Period period) HumanName
updatePrefix(List<String> prefix) HumanName
updateSuffix(List<String> suffix) HumanName
updateText(String text) HumanName
updateUse(HumanNameUse use) HumanName

Operators

operator ==(Object other) bool
The equality operator.
inherited