Logo GenPRES

ProductComponent Module

Holds an empty product component, creates a product component from its parts and tells whether a product can be made from given substances.

Functions and values

Function or value Description

cmp

Full Usage: cmp

Returns: ProductComponent

An empty Product Component record.

Returns: ProductComponent

create nme frm qts div dos dilutionLimit sbs

Full Usage: create nme frm qts div dos dilutionLimit sbs

Parameters:
Returns: ProductComponent
nme : string
frm : string
qts : ValueUnit option
div : BigRational option
dos : DoseLimit option
dilutionLimit : DilutionLimit option
sbs : SubstanceItem list
Returns: ProductComponent

madeOf sis p

Full Usage: madeOf sis p

Parameters:
Returns: bool

A product can be made from the substances when every strength names one of them and that substance has concentrations in the strength's unit group.

sis : SubstanceItem list
p : ComponentProduct
Returns: bool

Type something to start searching.