Logo GenPRES

TradeProduct Module

Returns the trade products of a prescription product, each with brand, company, routes, substances and consumer products.

Functions and values

Function or value Description

_get id

Full Usage: _get id

Parameters:
    id : int

Returns: TradeProduct array
id : int
Returns: TradeProduct array

create id nm lb br cm dn uw rt ss ps

Full Usage: create id nm lb br cm dn uw rt ss ps

Parameters:
Returns: TradeProduct

Creates a new TradeProduct

id : int
nm : string
lb : string
br : string
cm : string
dn : int
uw : float
rt : string[]
ss : ProductSubstance[]
ps : ConsumerProduct[]
Returns: TradeProduct

createSubstance si so sn sq su gi gn gq gu un ia

Full Usage: createSubstance si so sn sq su gi gn gq gu un ia

Parameters:
    si : int
    so : int
    sn : string
    sq : float
    su : string
    gi : int
    gn : string
    gq : float
    gu : string
    un : string
    ia : bool

Returns: ProductSubstance

Creates a ProductSubstance

si : int
so : int
sn : string
sq : float
su : string
gi : int
gn : string
gq : float
gu : string
un : string
ia : bool
Returns: ProductSubstance

get

Full Usage: get

Returns: int -> TradeProduct[]

Gets the TradeProduct with the specified id

This function is memoized

Returns: int -> TradeProduct[]

getSubstances hpk

Full Usage: getSubstances hpk

Parameters:
Returns: ProductSubstance array

Get the Substances for a GenericProduct

hpk : BST031T
Returns: ProductSubstance array

Type something to start searching.