Logo GenPRES

Print Module

Prints an order as prescription, preparation and administration, as rows of text blocks or as text, with the reconstitution and predilution of its product.

Functions and values

Function or value Description

predilutionText word products

Full Usage: predilutionText word products

Parameters:
Returns: string option

The product volume, the diluent volume and the diluent of the predilution joined by a word, such as "3 mL verdund met 7 mL gluc 5%", when exactly one product applies and that product is pre-diluted.

word : string
products : ComponentProduct list
Returns: string option

printOrderTo useAdj printMd sns ord

Full Usage: printOrderTo useAdj printMd sns ord

Parameters:
    useAdj : bool
    printMd : bool
    sns : string array
    ord : Order

Returns: string * string * string
useAdj : bool
printMd : bool
sns : string array
ord : Order
Returns: string * string * string

printOrderToMd printAdj

Full Usage: printOrderToMd printAdj

Parameters:
    printAdj : bool

Returns: string array -> Order -> string * string * string

Prints an order as three Markdown strings: the prescription, the preparation and the administration. The substance names in the array pick the items to print.

printAdj : bool
Returns: string array -> Order -> string * string * string

printOrderToString useAdj

Full Usage: printOrderToString useAdj

Parameters:
    useAdj : bool

Returns: string array -> Order -> string * string * string

Prints an order as three strings: the prescription, the preparation and the administration. The substance names in the array pick the items to print.

useAdj : bool
Returns: string array -> Order -> string * string * string

printOrderToTableFormat useAdj printMd sns ord

Full Usage: printOrderToTableFormat useAdj printMd sns ord

Parameters:
    useAdj : bool
    printMd : bool
    sns : string array
    ord : Order

Returns: TextBlock[][] * TextBlock[] array * TextBlock[][]
useAdj : bool
printMd : bool
sns : string array
ord : Order
Returns: TextBlock[][] * TextBlock[] array * TextBlock[][]

printPredilution products

Full Usage: printPredilution products

Parameters:
Returns: TextBlock[][]

The preparation row such as "3 mL verdunnen met 7 mL gluc 5%" in the first column, when exactly one product applies and that product is pre-diluted. Returns no row otherwise.

products : ComponentProduct list
Returns: TextBlock[][]

printPrep printMd sns ord

Full Usage: printPrep printMd sns ord

Parameters:
    printMd : bool
    sns : string array
    ord : Order

Returns: TextBlock[] array
printMd : bool
sns : string array
ord : Order
Returns: TextBlock[] array

printReconstitution products

Full Usage: printReconstitution products

Parameters:
Returns: TextBlock[][]

The preparation row with the text "oplossen in" and the solvent volume and the solvent in the first column, when exactly one product applies and that product is reconstituted. Returns no row otherwise.

products : ComponentProduct list
Returns: TextBlock[][]

reconstitutionText products

Full Usage: reconstitutionText products

Parameters:
Returns: string option

The solvent volume and the solvent of the reconstitution, such as "10 mL NaCl 0,9%", when exactly one product applies and that product is reconstituted.

products : ComponentProduct list
Returns: string option

textBlockIsEmpty tb

Full Usage: textBlockIsEmpty tb

Parameters:
Returns: bool
tb : TextBlock
Returns: bool

textBlockWithParens tb

Full Usage: textBlockWithParens tb

Parameters:
Returns: TextBlock
tb : TextBlock
Returns: TextBlock

unwrap tb

Full Usage: unwrap tb

Parameters:
Returns: string
tb : TextBlock
Returns: string

wrap tb ovars s

Full Usage: wrap tb ovars s

Parameters:
Returns: TextBlock
tb : string -> TextBlock
ovars : OrderVariable list
s : string
Returns: TextBlock

Type something to start searching.