Logo GenPRES

PrescriptionProduct Module

Returns the prescription products of a generic product, each with quantity, unit, container and trade products.

Functions and values

Function or value Description

_get id

Full Usage: _get id

Parameters:
    id : int

Returns: PrescriptionProduct array
id : int
Returns: PrescriptionProduct array

create id nm lb qt un ct ps

Full Usage: create id nm lb qt un ct ps

Parameters:
    id : int
    nm : string
    lb : string
    qt : float
    un : string
    ct : string
    ps : TradeProduct[]

Returns: PrescriptionProduct

Create a PrescriptionProduct record

id : int
nm : string
lb : string
qt : float
un : string
ct : string
ps : TradeProduct[]
Returns: PrescriptionProduct

get

Full Usage: get

Returns: int -> PrescriptionProduct[]

Get all PrescriptionProducts for a given Z-Index id

This function is memoized.

Returns: int -> PrescriptionProduct[]

Type something to start searching.