Logo GenPRES

Names Module

Looks up a product name by name number and a thesaurus name by item number, and lists the route, form, unit and container names. Returns an empty text for an unknown number.

Functions and values

Function or value Description

getConsumerContainers

Full Usage: getConsumerContainers

Returns: unit -> string array

All the consumer container names in the thesaurus.

Returns: unit -> string array

getFormUnits

Full Usage: getFormUnits

Returns: unit -> string array

All the pharmaceutical form unit names in the thesaurus.

Returns: unit -> string array

getForms

Full Usage: getForms

Returns: unit -> string array

All the pharmaceutical form names in the thesaurus.

Returns: unit -> string array

getGenericUnits

Full Usage: getGenericUnits

Returns: unit -> string array

All the generic unit names in the thesaurus.

Returns: unit -> string array

getItems itm ln

Full Usage: getItems itm ln

Parameters:
    itm : Item - The item type
    ln : Length - The name length

Returns: (int * string) array

Get all the name lengths for a record in BST020T

itm : Item

The item type

ln : Length

The name length

Returns: (int * string) array

getName id nm

Full Usage: getName id nm

Parameters:
    id : int - The id of the record
    nm : Name - The name type

Returns: string

Get the name of a record in BST020T

id : int

The id of the record

nm : Name

The name type

Returns: string

getPrescriptionContainers

Full Usage: getPrescriptionContainers

Returns: unit -> string array

All the prescription container names in the thesaurus.

Returns: unit -> string array

getRoutes

Full Usage: getRoutes

Returns: unit -> string array

All the route names in the thesaurus.

Returns: unit -> string array

getThes id it ln

Full Usage: getThes id it ln

Parameters:
    id : int - The id of the record
    it : Item - The item type
    ln : Length - The name length

Returns: string

Get the name of a record in BST902T

id : int

The id of the record

it : Item

The item type

ln : Length

The name length

Returns: string

mapItem _arg1

Full Usage: mapItem _arg1

Parameters:
Returns: int

Map item to TSNR, i.e. the item number in BST902T

_arg1 : Item
Returns: int

Type something to start searching.