GenericProduct Module
Returns the generic products for a list of generic product codes, each with ATC code, form, routes, substances and prescription products. An empty list returns all generic products. Also finds the generic products of a brand and lists the barcodes of a generic product.
Functions and values
| Function or value |
Description
|
Full Usage:
create id nm lb ac an sh rt ss ps
Parameters:
int
nm : string
lb : string
ac : string
an : string
sh : string
rt : string[]
ss : ProductSubstance[]
ps : PrescriptionProduct[]
Returns: GenericProduct
|
Create a GenericProduct
|
Full Usage:
createSubstance si so sn sq su gi gn gq gu un ia
Parameters:
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
|
|
|
|
Get the GenericProducts for the given Ids This function is memoized
|
Full Usage:
getBarCodes gp
Parameters:
GenericProduct
-
The GenericProduct
Returns: (int * string array) array
The GPK, BarCodes array
|
Get the BarCodes for the given GenericProduct
|
|
|
Full Usage:
getSubstances un gp hpks
Parameters:
string
gp : BST711T
hpks : int array
Returns: ProductSubstance array
|
Get the Substances for a GenericProduct
|
GenPRES