HumanName

open class HumanName: Element

Name of a human - parts and usage.

A human’s name with the ability to identify parts and usage.

  • Name of a human - parts and usage.

    A human’s name with the ability to identify parts and usage.

    Declaration

    Swift

    override open class var resourceType: String
  • Family name (often called ‘Surname’).

    Declaration

    Swift

    public var family: FHIRString?
  • Given names (not always ‘first’). Includes middle names.

    Declaration

    Swift

    public var given: [FHIRString]?
  • Time period when name was/is in use.

    Declaration

    Swift

    public var period: Period?
  • Parts that come before the name.

    Declaration

    Swift

    public var prefix: [FHIRString]?
  • Parts that come after the name.

    Declaration

    Swift

    public var suffix: [FHIRString]?
  • Text representation of the full name.

    Declaration

    Swift

    public var text: FHIRString?
  • use

    Identifies the purpose for this name.

    Declaration

    Swift

    public var use: NameUse?
  • Identifies the purpose for this name.

    Declaration

    Swift

    override open func populate(from json: FHIRJSON, context instCtx: inout FHIRInstantiationContext)

    Parameters

    json

    The JSON element to use to populate the receiver

    context

    The instantiation context to use

  • Undocumented

    Declaration

    Swift

    open class HumanName: Element
  • Join the non-empty name parts into a human-normal string in the order prefix > given > family > suffix, joined by a space, unless the receiver’s text is set, in which case the text is returned.

    Declaration

    Swift

    public var human: String?