IofPerson
Types
sex
The biological sex of a person.
rescript
type sex = @as("M") Male | @as("F") FemaleConstructors:
MaleFemale
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<string>— 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<string>— The person's birth date in ISO 8601 format (yyyy-mm-dd).sex:option<sex>— The biological sex of the person (M/Fin XSD).nationality:option<string>— The IOC three-letter country code for the person's nationality, e.g."GBR".
Values
parse
rescript
let parse: IofXml.XmlUtils.xmlElement => option<t>