GStand Module
Builds dose rules for a generic, a form and a route from the G-Standaard products and dose rules, for an optional age, weight, body surface area and generic product code.
Functions and values
| Function or value |
Description
|
||
|
|||
|
Get the min max bsa if there is one min bsa or max bsa i.e. if all min bsa are the same and all max bsa are the same.
|
||
|
Get the min max weight if there is one min weight or max weight i.e. if all min weights are the same and all max weights are the same.
|
||
|
An empty CreateConfig.
|
||
Full Usage:
createDoseRules cfg age wght bsa gpk gen frm rte
Parameters:
CreateConfig
-
The CreateConfig
age : AgeInMo
-
Age in Months
wght : WeightInKg
-
Weight in Kg
bsa : BSAInM2
-
Body Surface Area in mˆ2
gpk : int option
-
Optional GPK
gen : string
-
Generic Name
frm : string
-
Form
rte : string
-
Route
Returns: DoseRule seq
|
Create the DoseRules. The GPK is used to filter the GenPresProducts and use those GenericProducts to create the DoseRules. If the GPK is None then generic name, pharmaceutical form and route are used to filter the GenPresProducts.
|
||
Full Usage:
foldDosages ds
Parameters:
(type) seq
-
The sequence of Dosages
Returns: (type)
|
Folds a sequence of
|
||
Full Usage:
foldDoseRules rte age wght bsa gpk cfg dr gpps
Parameters:
string
-
The route
age : AgeInMo
-
Age in Months
wght : WeightInKg
-
Weight in Kg
bsa : BSAInM2
-
Body Surface Area in mˆ2
gpk : int option
-
Optional GPK
cfg : CreateConfig
-
The CreateConfig
dr : DoseRule
-
The DoseRule
gpps : GenPresProduct seq
-
The GenPresProducts
Returns: DoseRule
|
Fold the GenPresProducts to a single DoseRule.
|
||
|
|||
Full Usage:
getATCGroups gpk gpp
Parameters:
int option
gpp : GenPresProduct
Returns: ATCGroup array
|
Get the list of ATC groups for a GenPresProduct.
|
||
|
|||
Full Usage:
getDosage cfg n dsr
Parameters:
CreateConfig
-
The Config
n : string
-
The 'Name' of the Dosage
dsr : (type)
-
The DoseRules
Returns: (type)
|
Get the Dosage and Indications for a given DoseRange and list of DoseRules. Uses a config to create a Dosage with a start, rate or total dose.
|
||
Full Usage:
getDoseRange dsg
Parameters:
(type)
-
The DoseRange to map to
Returns: (type)
The mapped DoseRange
{| doseRange: DoseRange; doserules: list of Informedica.ZIndex.Lib.Types.DoseRule; frequencies: list of ValueUnit; inds: list of string; routes: list of string |}
|
Map MinMax DoseRanges to a DoseRange record.
|
||
Full Usage:
getPatients cfg drs
Parameters:
CreateConfig
-
The Config
drs : DoseRule seq
-
The ZIndex DoseRules
Returns: (type) seq
{| doseRules: DoseRule seq; patientCategory: PatientCategory; substanceDoses: {| Dosage: Dosage; indications: string list |} seq |} seq
|
Create the
|
||
|
|||
Full Usage:
getSubstanceDoses cfg drs
Parameters:
CreateConfig
-
The Config
drs : DoseRule seq
-
The DoseRules
Returns: (type) seq
|
Create the
|
||
|
|||
Full Usage:
groupByFst xs
Parameters:
('a * 'b) seq
Returns: ('a * 'b seq) seq
Type parameters: 'a, 'b (requires comparison) |
Utility function to get the grouped sequence of a seq of tuples. Grouping is by the first element of the tuple.
Example
val xs: (int * string) list
module Seq
from Microsoft.FSharp.Collections
val toList: source: 'T seq -> 'T list
|
||
Full Usage:
groupGenPresProducts rte age wght bsa gpk cfg gpps
Parameters:
string
-
The route
age : AgeInMo
-
Age in Months
wght : WeightInKg
-
Weight in Kg
bsa : BSAInM2
-
Body Surface Area in mˆ2
gpk : int option
-
Optional GPK
cfg : CreateConfig
-
The CreateConfig
gpps : GenPresProduct seq
-
The GenPresProducts
Returns: (type) seq
The grouped GenPresProducts.
|
Group the GenPresProducts by indications, routes, pharmaceutical form and products and add the patients and dosages.
|
||
Full Usage:
mapDoses n qty unit gstdsr
Parameters:
string
-
The name of the substance
qty : float
-
The quantity of the substance
unit : Unit
-
The unit of the substance
gstdsr : DoseRule
-
The GSTand DoseRule
Returns: (type)
The mapped doses
{| absDose: MinIncrMax; absM2: MinIncrMax; absPerKg: MinIncrMax; doserule: Informedica.ZIndex.Lib.Types.DoseRule; frequency: ValueUnit; groupBy: {| isOne: bool; name: string; time: string |}; indication: string; normDose: MinIncrMax; normM2: MinIncrMax; normPerKg: MinIncrMax; routes: list of string |}
|
Map G-Standard DoseRule doses to
|
||
Full Usage:
mapFreqToValueUnit freq
Parameters:
RuleFrequency
-
The frequency to map
Returns: ValueUnit
The mapped frequency
|
Map GStand frequency string to a valid
frequency
Example
val freq: 'a
|
||
Full Usage:
mapMinMax setMin setMax minmax minIncrMax
Parameters:
Option<float> -> 'a -> 'a
-
Set the min value
setMax : Option<float> -> 'a -> 'a
-
Set the max value
minmax : RuleMinMax
-
The min max values
minIncrMax : 'a
-
The minIncrMax to map to
Returns: 'a
Type parameters: 'a |
Map a ZIndex MinMax to a GenCore MinIncrMax
Example
val setMin: (obj option -> obj)
module Option
from Microsoft.FSharp.Core
val map: mapping: ('T -> 'U) -> option: 'T option -> 'U option
val setMax: (obj option -> obj)
|
||
|
|||
Full Usage:
parseTimeString s
Parameters:
string
Returns: string
|
Make sure that a GSTand time string is a valid unit time string.
|
GenPRES