GenPresProduct Module
Groups generic products with the same substances and form into GenPres products, cached in a file, finds GenPres products by name, form, route, text, brand or generic product code, and lists the routes, forms and units of all GenPres products.
Functions and values
| Function or value |
Description
|
Full Usage:
create nm sh rt ph gps dpn unt sns
Parameters:
string
sh : string
rt : string[]
ph : string[]
gps : GenericProduct[]
dpn : string
unt : string
sns : string[]
Returns: GenPresProduct
|
Create a GenPresProduct.
|
Full Usage:
filter n f r
Parameters:
string
-
The name
f : string
-
The form
r : string
-
The route
Returns: GenPresProduct array
|
Filter GenPresProducts by name, pharmaceutical form and route.
|
|
|
|
|
|
Get all GenPresProducts for the given GenericProduct Ids. This function is memoized
|
Full Usage:
getFormRoutes ()
Parameters:
unit
Returns: (string * string array) array
An array of tuples of Forms and Routes.
|
Get all FormRoutes for all GenPresProducts.
|
Full Usage:
getFormUnits
Returns: unit -> (string * string) array
An array of tuples of Form and Units.
|
Get all FormUnits for all GenPresProducts.
|
Full Usage:
getForms
Returns: unit -> string array
|
Get all pharmaceutical forms for all GenPresProducts.
|
|
Get a Map of GenericProduct Ids to GenPresProducts.
|
Full Usage:
getGPKS all
Parameters:
int list
Returns: int array
|
Get a list of all GenericProduct Ids.
|
|
|
Full Usage:
getGenericUnits
Returns: unit -> string array
|
Get all Generic Units for all GenPresProducts.
|
Full Usage:
getRoutes
Returns: unit -> string array
|
Get all Routes for all GenPresProducts.
|
Full Usage:
getSubstQtyUnit gpk
Parameters:
int
-
The GenericProduct id
Returns: (string * float * string) array
An array of tuples of Substance name, quantity and unit.
|
Get all Substance names, quantities and units all GenPresProducts that contain the given GenericProduct Id.
|
Full Usage:
getSubstanceUnits
Returns: unit -> string array
|
Get all Substance Units for all GenPresProducts.
|
Full Usage:
getUnits
Returns: unit -> string array
|
Get all Units for all GenPresProducts.
|
Full Usage:
load
Returns: int list -> unit
|
Load all GenPresProducts in memory.
|
Full Usage:
routeForms gpps
Parameters:
GenPresProduct[]
-
The GenPresProducts
Returns: (string * string) array
An array of tuples of Route and Form.
|
Get all RouteForms for an array of GenPresProducts.
|
|
Find all GenPresProducts that contain the given string.
|
|
GenPRES