Logo GenPRES

Extraction Module

Functions and values

Function or value Description

createDoseUnits jsonSubstUnit jsonAdjustUnit jsonTimeUnit model text

Full Usage: createDoseUnits jsonSubstUnit jsonAdjustUnit jsonTimeUnit model text

Parameters:
    jsonSubstUnit : 'a -> (type) -> Message -> 'b -> 'b * (type)
    jsonAdjustUnit : 'a -> (type) -> Message -> 'b -> 'b * (type)
    jsonTimeUnit : 'a -> (type) -> Message -> 'b -> 'b * (type)
    model : 'a
    text : string

Returns: State<'b, (type)>
Type parameters: 'a, 'b
jsonSubstUnit : 'a -> (type) -> Message -> 'b -> 'b * (type)
jsonAdjustUnit : 'a -> (type) -> Message -> 'b -> 'b * (type)
jsonTimeUnit : 'a -> (type) -> Message -> 'b -> 'b * (type)
model : 'a
text : string
Returns: State<'b, (type)>

extract getJson model zero msg

Full Usage: extract getJson model zero msg

Parameters:
    getJson : 'a -> 'b -> Message -> 'c -> 'c * 'd
    model : 'a
    zero : 'b
    msg : Message

Returns: State<'c, 'd>
Modifiers: inline
Type parameters: 'a, 'b, 'c, 'd
getJson : 'a -> 'b -> Message -> 'c -> 'c * 'd
model : 'a
zero : 'b
msg : Message
Returns: State<'c, 'd>

extractAdjustUnit jsonAdjustUnit model text

Full Usage: extractAdjustUnit jsonAdjustUnit model text

Parameters:
    jsonAdjustUnit : 'a -> (type) -> Message -> 'b -> 'b * 'c
    model : 'a
    text : string

Returns: State<'b, 'c>
Type parameters: 'a, 'b, 'c
jsonAdjustUnit : 'a -> (type) -> Message -> 'b -> 'b * 'c
model : 'a
text : string
Returns: State<'b, 'c>

extractDoseQuantities json model substanceUnit adjustUnit timeUnit

Full Usage: extractDoseQuantities json model substanceUnit adjustUnit timeUnit

Parameters:
    json : 'a -> (type) -> Message -> 'c -> 'c * 'd
    model : 'a
    substanceUnit : string
    adjustUnit : string option
    timeUnit : string option

Returns: State<'c, 'd>
Type parameters: 'a, 'b, 'c, 'd
json : 'a -> (type) -> Message -> 'c -> 'c * 'd
model : 'a
substanceUnit : string
adjustUnit : string option
timeUnit : string option
Returns: State<'c, 'd>

extractFrequency jsonFreq model timeUnit

Full Usage: extractFrequency jsonFreq model timeUnit

Parameters:
    jsonFreq : 'a -> (type) -> Message -> 'b -> 'b * (type)
    model : 'a
    timeUnit : string

Returns: State<'b, (type)>
Type parameters: 'a, 'b
jsonFreq : 'a -> (type) -> Message -> 'b -> 'b * (type)
model : 'a
timeUnit : string
Returns: State<'b, (type)>

extractSubstanceUnit jsonSubstUnit model text

Full Usage: extractSubstanceUnit jsonSubstUnit model text

Parameters:
    jsonSubstUnit : 'a -> (type) -> Message -> 'b -> 'b * 'c
    model : 'a
    text : string

Returns: State<'b, 'c>
Type parameters: 'a, 'b, 'c
jsonSubstUnit : 'a -> (type) -> Message -> 'b -> 'b * 'c
model : 'a
text : string
Returns: State<'b, 'c>

extractTimeUnit jsonTimeUnit model text

Full Usage: extractTimeUnit jsonTimeUnit model text

Parameters:
    jsonTimeUnit : 'a -> (type) -> Message -> 'b -> 'b * 'c
    model : 'a
    text : string

Returns: State<'b, 'c>
Type parameters: 'a, 'b, 'c
jsonTimeUnit : 'a -> (type) -> Message -> 'b -> 'b * 'c
model : 'a
text : string
Returns: State<'b, 'c>

unitValidator text zero get validUnits s

Full Usage: unitValidator text zero get validUnits s

Parameters:
    text : string
    zero : objnull
    get : 'Unit -> string
    validUnits : string list
    s : string

Returns: Result<string, string>
Modifiers: inline
Type parameters: 'Unit
text : string
zero : objnull
get : 'Unit -> string
validUnits : string list
s : string
Returns: Result<string, string>

Type something to start searching.