Logo GenPRES

Print Module

Prints the schedule and the doses of a dose rule and writes the dose rules of a generic as Markdown.

Functions and values

Function or value Description

printDose wrap dr

Full Usage: printDose wrap dr

Parameters:
Returns: string array
wrap : string
dr : DoseRule
Returns: string array

printDuration dr

Full Usage: printDuration dr

Parameters:
Returns: string
dr : DoseRule
Returns: string

printFreqs r

Full Usage: printFreqs r

Parameters:
Returns: string
r : DoseRule
Returns: string

printGenerics getLink generics doseRules

Full Usage: printGenerics getLink generics doseRules

Parameters:
Returns: string array
getLink : LinkProvider
generics : DoseRule[] -> Generic array
doseRules : DoseRule[]
Returns: string array

printInterval dr

Full Usage: printInterval dr

Parameters:
Returns: string
dr : DoseRule
Returns: string

printTime dr

Full Usage: printTime dr

Parameters:
Returns: string
dr : DoseRule
Returns: string

toMarkdown getLink rules

Full Usage: toMarkdown getLink rules

Parameters:
    getLink : LinkProvider - Returns the formulary link of a dose rule source, route and generic; without a link the text is the name of the source in italics.
    rules : DoseRule array - The dose rules to write.

Returns: string

Writes the dose rules of one generic as markdown: per indication, route and patient category the products, synonyms, dose types, schedules and dose limits, and per dose type the formulary link with the patient text and the schedule text of the source.

With rules of several generics, only the last generic is written; use printGenerics for those. For the anonymous record in the fold, see https://github.com/dotnet/fsharp/issues/6699.

getLink : LinkProvider

Returns the formulary link of a dose rule source, route and generic; without a link the text is the name of the source in italics.

rules : DoseRule array

The dose rules to write.

Returns: string

Type something to start searching.