Logo GenPRES

GenericLabel Module

Creates the label of a generic from a name, a form and a brand, and returns the label or the generic name as text.

Functions and values

Function or value Description

fromCanonical Item

Full Usage: fromCanonical Item

Parameters:
    Item : string list

Returns: GenericLabel
Item : string list
Returns: GenericLabel

fromGenericBrand g b

Full Usage: fromGenericBrand g b

Parameters:
    g : string
    b : string

Returns: GenericLabel
g : string
b : string
Returns: GenericLabel

fromGenericForm g f

Full Usage: fromGenericForm g f

Parameters:
    g : string
    f : string

Returns: GenericLabel
g : string
f : string
Returns: GenericLabel

fromShorthand Item

Full Usage: fromShorthand Item

Parameters:
    Item : string

Returns: GenericLabel
Item : string
Returns: GenericLabel

genericName _arg1

Full Usage: genericName _arg1

Parameters:
Returns: string

Returns the generic name without the form or brand, for lookups in sources such as the G-Standaard that use the substance name only. GenericBrand ("glycopyrronium", "Sialanar") gives "glycopyrronium".

_arg1 : GenericLabel
Returns: string

ofGenericData g

Full Usage: ofGenericData g

Parameters:
Returns: GenericLabel

Creates the label of the generic of a dose rule row from its name, form and brand.

g : GenericData
Returns: GenericLabel

toLabel g f b

Full Usage: toLabel g f b

Parameters:
    g : string
    f : string
    b : string

Returns: GenericLabel

Creates a label from the generic g, the form f and the brand b. A brand wins over a form when both are given; with neither, the label is the generic name alone.

g : string
f : string
b : string
Returns: GenericLabel

toString _arg1

Full Usage: toString _arg1

Parameters:
Returns: string
_arg1 : GenericLabel
Returns: string

Type something to start searching.