Logo GenPRES

DoseRule Module

Creates the dose rules from the G-Standaard dose files, or reads the dose rules from the cache file when the cache file exists, formats a dose rule as text and lists the indications, routes and frequencies of all dose rules.

Nested modules

Modules Description

Constants

Holds the Dutch texts for the care group, the usage, the dose type and the gender of a dose rule.

Optics

Holds a getter and a setter for the weight, the body surface area and each dose range of a dose rule.

Functions and values

Function or value Description

_get gpks

Full Usage: _get gpks

Parameters:
    gpks : int list

Returns: DoseRule[]
gpks : int list
Returns: DoseRule[]

_getGenericProducts ()

Full Usage: _getGenericProducts ()

Parameters:
    () : unit

Returns: RuleGenericProduct array
() : unit
Returns: RuleGenericProduct array

_getPrescriptionProducts arg1

Full Usage: _getPrescriptionProducts arg1

Parameters:
    arg0 : 'a

Returns: RuleProduct array
Type parameters: 'a
arg0 : 'a
Returns: RuleProduct array

_getTradeProducts arg1

Full Usage: _getTradeProducts arg1

Parameters:
    arg0 : 'a

Returns: RuleProduct array
Type parameters: 'a
arg0 : 'a
Returns: RuleProduct array

create id gr us dt gp pr tr rt ci ic hr sx ag wt bs fr no ab nk ak nm am un

Full Usage: create id gr us dt gp pr tr rt ci ic hr sx ag wt bs fr no ab nk ak nm am un

Parameters:
Returns: DoseRule

Create a DoseRule.

id : int
gr : string
us : string
dt : string
gp : RuleGenericProduct[]
pr : RuleProduct[]
tr : RuleProduct[]
rt : string[]
ci : int
ic : string
hr : bool
sx : string
ag : RuleMinMax
wt : RuleMinMax
bs : RuleMinMax
fr : RuleFrequency
no : RuleMinMax
ab : RuleMinMax
nk : RuleMinMax
ak : RuleMinMax
nm : RuleMinMax
am : RuleMinMax
un : string
Returns: DoseRule

createFrequency fr tm

Full Usage: createFrequency fr tm

Parameters:
    fr : float
    tm : string

Returns: RuleFrequency

Create a RuleFrequency.

fr : float
tm : string
Returns: RuleFrequency

createGenericProduct id nm rt un sl

Full Usage: createGenericProduct id nm rt un sl

Parameters:
    id : int
    nm : string
    rt : string[]
    un : string
    sl : RuleSubstance[]

Returns: RuleGenericProduct

Create a RuleGenericProduct.

id : int
nm : string
rt : string[]
un : string
sl : RuleSubstance[]
Returns: RuleGenericProduct

createMinMax min max

Full Usage: createMinMax min max

Parameters:
    min : float
    max : float

Returns: RuleMinMax

Create a RuleMinMax.

min : float
max : float
Returns: RuleMinMax

createProduct id nm

Full Usage: createProduct id nm

Parameters:
    id : int
    nm : string

Returns: RuleProduct

Create a RuleProduct.

id : int
nm : string
Returns: RuleProduct

empty

Full Usage: empty

Returns: DoseRule

An empty DoseRule.

Returns: DoseRule

foldMinMax xs

Full Usage: foldMinMax xs

Parameters:
Returns: RuleMinMax The most extreme MinMax as a RuleMinMax

Get the most extreme min and max values from an array of MinMax.

xs : RuleMinMax array

The array of MinMax

Returns: RuleMinMax

The most extreme MinMax as a RuleMinMax

freqToString freq

Full Usage: freqToString freq

Parameters:
Returns: string

Get the string representation of a RuleFrequency.

freq : RuleFrequency
Returns: string

frequencies

Full Usage: frequencies

Returns: unit -> RuleFrequency array

Get all DoseRule frequencies.

This is a memoized function.

Returns: unit -> RuleFrequency array

frequencies_ ()

Full Usage: frequencies_ ()

Parameters:
    () : unit

Returns: RuleFrequency array
() : unit
Returns: RuleFrequency array

get

Full Usage: get

Returns: List<int> -> DoseRule[]

Get all DoseRules for a list of GPKS.

This is a memoized function.

Returns: List<int> -> DoseRule[]

getDoseType bas

Full Usage: getDoseType bas

Parameters:
Returns: string

Get the DoseType for a BST641T record.

bas : BST641T
Returns: string

getFrequency cat

Full Usage: getFrequency cat

Parameters:
Returns: RuleFrequency

Get the RuleFrequency for a BST643T record.

cat : BST643T
Returns: RuleFrequency

getGenericProducts

Full Usage: getGenericProducts

Returns: unit -> RuleGenericProduct[]

Map all GenericProducts from all GenPresProducts to RuleGenericProducts.

This is a memoized function.

Returns: unit -> RuleGenericProduct[]

getICPCRoute icp

Full Usage: getICPCRoute icp

Parameters:
Returns: string array

Get all specifid DoseRule routes for a BST642T record.

icp : BST642T
Returns: string array

getICPCText icp

Full Usage: getICPCText icp

Parameters:
Returns: string

Get the dose text for a BST642T record.

icp : BST642T
Returns: string

getPresciptionProducts

Full Usage: getPresciptionProducts

Returns: unit -> RuleProduct[]

Map all PrescriptionProducts RuleProducts.

This is a memoized function.

Returns: unit -> RuleProduct[]

getTradeProducts

Full Usage: getTradeProducts

Returns: unit -> RuleProduct[]

Map all TradeProducts to RuleProducts.

This is a memoized function.

Returns: unit -> RuleProduct[]

indications

Full Usage: indications

Returns: unit -> string array

Get all DoseRule indications.

This is a memoized function.

Returns: unit -> string array

indications_ ()

Full Usage: indications_ ()

Parameters:
    () : unit

Returns: string array
() : unit
Returns: string array

load

Full Usage: load

Returns: List<int> -> unit

Load all DoseRules in memory.

Returns: List<int> -> unit

minmax

Full Usage: minmax

Returns: RuleMinMax

An empty RuleMinMax.

Returns: RuleMinMax

parse gpks

Full Usage: parse gpks

Parameters:
    gpks : int array

Returns: DoseRule array
gpks : int array
Returns: DoseRule array

routes

Full Usage: routes

Returns: unit -> string array

Get all DoseRule routes.

This is a memoized function.

Returns: unit -> string array

routes_ ()

Full Usage: routes_ ()

Parameters:
    () : unit

Returns: string array
() : unit
Returns: string array

toString del dr

Full Usage: toString del dr

Parameters:
    del : string - A delimiter
    dr : DoseRule - The DoseRule

Returns: string

Get the string representation of a DoseRule.

del : string

A delimiter

dr : DoseRule

The DoseRule

Returns: string

toString2 dr

Full Usage: toString2 dr

Parameters:
Returns: string

Get the string representation of a DoseRule.

dr : DoseRule
Returns: string

Type something to start searching.