HumanName

public struct HumanName : Codable, Equatable

A structure containing information about a patient’s name

  • Family name (often call surname or last name)

    Declaration

    Swift

    public var family: String
  • Given name (often called first name)

    Declaration

    Swift

    public var given: String
  • Middle name if any

    Declaration

    Swift

    public var middle: String?
  • Parts that come before the name

    Declaration

    Swift

    public var prefix: String?
  • Parts that come after the name

    Declaration

    Swift

    public var suffix: String?
  • use

    String defining FHIR NameUse - eg usual | official | temp | nickname | anonymous | old | maiden

    Declaration

    Swift

    public var use: String?
  • Undocumented

    Declaration

    Swift

    public init(
        family: String,
        given: String,
        middle: String?,
        prefix: String?,
        suffix: String?,
        use: String?
    )