DoseRule Module
Creates a G-Standaard dose rule for a generic, adds indications, routes, forms and patient dosages, converts units and turns the dose rule into Markdown text.
Types and nested modules
| Type/Module | Description |
|
Creates a dosage with start, single, rate and total dose ranges and a frequency, converts the units and turns the dosage into text. |
|
|
Creates a dose range with normal and absolute limits, each also per kg and per m2, and calculates and converts dose ranges and turns them into text. |
|
|
Holds the Dto of a G-Standaard dose rule and the conversions to and from the Dto. |
|
|
Creates the dosage of pharmaceutical forms with generic products and trade products. A form that is empty or only white space gives None. |
|
|
Creates the dosage of a list of indications, without route dosages. |
|
|
Holds two operators that apply a function to the second and then the first element of a pair. The second operator returns the result paired with the second element. |
|
|
Gets and adds the route dosages, gets, sets and adds the form and patient dosages, and gets and sets the substance dosages of a dose rule, found by indication, route, form and patient. The module also sets the generic name and the synonyms of a dose rule, and the generic and trade products of a form dosage. |
|
|
Creates a patient dosage for a patient category, with an empty form dosage and without substance dosages. |
|
|
Creates the dosage of a route, without form dosages. A route that is empty or only white space gives None. |
|
|
A type to configure the text output of a DoseRule. |
Functions and values
| Function or value |
Description
|
|
|
|
|
|
|
|
|
Full Usage:
create gen syn atc thg sub ggp gsg idl
Parameters:
string
-
The Generic
syn : string list
-
Synonyms for the Generic
atc : string
-
The ATC5 code for the Generic
thg : string
-
The TherapeuticGroup for the Generic
sub : string
-
The TherapeuticSubGroup for the Generic
ggp : string
-
The GenericGroup for the Generic
gsg : string
-
The GenericSubGroup for the Generic
idl : IndicationDosage list
-
The list of IndicationDosages
Returns: DoseRule
|
Create a DoseRule.
|
|
|
Full Usage:
createFormDosage
Returns: string list -> GenericProductLabel list -> TradeProductLabel list -> FormDosage option
|
Create a FormDosage.
|
|
Create an IndicationDosage.
|
|
Create a PatientDosage.
|
|
Create a RouteDosage.
|
|
|
Full Usage:
indxForm inds rt frm dr
Parameters:
string list
-
The list of Indications
rt : string
-
The Route
frm : string list
-
The Form
dr : DoseRule
-
The DoseRule
Returns: (int * int * int) option
|
Try find the indexs of a FormDosage in a DoseRule.
|
Full Usage:
indxIndications inds dr
Parameters:
string list
-
The list of Indications
dr : DoseRule
-
The DoseRule
Returns: int option
|
Try find the index of an IndicationDosage in a DoseRule.
|
Full Usage:
indxPatient inds rt frm pat dr
Parameters:
string list
-
The list of Indications
rt : string
-
The Route
frm : string list
-
The Form
pat : PatientCategory
-
The PatientCategory
dr : DoseRule
-
The DoseRule
Returns: (int * int * int * int) option
|
Try find the indexes of a PatientDosage in a DoseRule.
|
Full Usage:
indxRoute inds rt dr
Parameters:
string list
-
The list of Indications
rt : string
-
The Route
dr : DoseRule
-
The DoseRule
Returns: (int * int) option
|
Try find the indexs of a RouteDosage in a DoseRule.
|
|
A Markdown text configuration for a DoseRule.
|
Full Usage:
mdDosageText
Returns: string
|
|
Full Usage:
mdFormText
Returns: string
|
|
Full Usage:
mdIndicationText
Returns: string
|
|
Full Usage:
mdPatientText
Returns: string
|
|
Full Usage:
mdRouteText
Returns: string
|
|
Full Usage:
mdText
Returns: string
|
|
Get the Markdown text of a DoseRule.
|
|
Full Usage:
toStringWithConfig config printRules dr
Parameters:
TextConfig
-
The textConfig
printRules : bool
-
Whether to print the original DoseRules
dr : DoseRule
-
The DoseRule
Returns: string
|
Convert a DoseRule to a string using a TextConfig.
|
GenPRES