Skip to content

IofPerson

Types

sex

The biological sex of a person.

rescript
type sex = @as("M") Male | @as("F") Female

Constructors:

  • Male
  • Female

t

Represents a person. This could either be a competitor or a contact person in an organisation.

See: Person in the IOF XML 3.0 XSD

rescript
type t = {
  id: option<string>,
  firstName: string,
  lastName: string,
  birthDate: option<string>,
  sex: option<sex>,
  nationality: option<string>,
}

Fields:

  • id: option&lt;string&gt; — The identifier of the person, e.g. a federation competitor database identifier.
  • firstName: string — The person's given (first) name.
  • lastName: string — The person's family (last) name.
  • birthDate: option&lt;string&gt; — The person's birth date in ISO 8601 format (yyyy-mm-dd).
  • sex: option&lt;sex&gt; — The biological sex of the person (M / F in XSD).
  • nationality: option&lt;string&gt; — The IOC three-letter country code for the person's nationality, e.g. "GBR".

Values

parse

rescript
let parse: IofXml.XmlUtils.xmlElement => option<t>