phenopacket_mapper.data_standards.cardinality module

class phenopacket_mapper.data_standards.cardinality.Cardinality(min: int = 0, max: int | Literal['n'] = 'n')[source]

Bases: object

min: int
max: int | Literal['n']
class property ZERO_TO_ONE: Cardinality[source]

Union[int, Literal[‘n’]] = ‘n’)

Type:

Cardinality(min

Type:

int = 0, max

class property ZERO_TO_N: Cardinality[source]

Union[int, Literal[‘n’]] = ‘n’)

Type:

Cardinality(min

Type:

int = 0, max

class property ONE: Cardinality[source]

Union[int, Literal[‘n’]] = ‘n’)

Type:

Cardinality(min

Type:

int = 0, max

class property ONE_TO_N: Cardinality[source]

Union[int, Literal[‘n’]] = ‘n’)

Type:

Cardinality(min

Type:

int = 0, max