Logo GenPRES

AdultMark Module

Returns the adult mark from the age and the mark the user set, and tells whether an adult mark means an adult.

Functions and values

Function or value Description

AdultMark.isAdult mark

Full Usage: AdultMark.isAdult mark

Parameters:
Returns: bool

True from 18 years, or when the user marked a patient of 16 to under 18 years or without an age.

mark : AdultMark
Returns: bool

AdultMark.ofAge age marked

Full Usage: AdultMark.ofAge age marked

Parameters:
Returns: AdultMark

Returns the adult mark for an age and the mark the user set. Under 16 years the patient is not an adult, from 18 years the patient is an adult. From 16 to under 18 years, or without an age, the mark the user set decides.

age : AgeValue option
marked : bool
Returns: AdultMark

Type something to start searching.