Logo GenPRES

Gender Module

Parses and prints the gender of a rule, maps the gender of a patient to a rule gender, and tests a gender against a filter.

Types

Type Description

CoreGender

Functions and values

Function or value Description

fromString s

Full Usage: fromString s

Parameters:
    s : string

Returns: Gender

Parses man or vrouw, in any case. Any other string gives AnyGender.

s : string
Returns: Gender

isMatch gender filterGender

Full Usage: isMatch gender filterGender

Parameters:
Returns: bool

Returns true when gender is AnyGender or equals filterGender.

gender : Gender
filterGender : Gender
Returns: bool

ofPatient _arg1

Full Usage: ofPatient _arg1

Parameters:
Returns: Gender

Maps the gender of a patient to the gender of the rules. An unknown gender matches only the rules for any gender.

_arg1 : Gender
Returns: Gender

toString _arg1

Full Usage: toString _arg1

Parameters:
Returns: string

Get the string representation of a Gender.

_arg1 : Gender
Returns: string

tryFromString s

Full Usage: tryFromString s

Parameters:
    s : string

Returns: Gender option

Parses the string form of a gender. An empty string gives AnyGender, and any other string that toString does not write gives None.

s : string
Returns: Gender option

Type something to start searching.