Logo GenPRES

WebSiteParser Module

Functions and values

Function or value Description

_getFormulary ()

Full Usage: _getFormulary ()

Parameters:
    () : unit

Returns: Drug[]
() : unit
Returns: Drug[]

_medications ()

Full Usage: _medications ()

Parameters:
    () : unit

Returns: Drug list
() : unit
Returns: Drug list

_parseWebSite ns

Full Usage: _parseWebSite ns

Parameters:
    ns : string list

Returns: Drug[]
ns : string list
Returns: Drug[]

addDoses i m

Full Usage: addDoses i m

Parameters:
Returns: Async<Drug option>
Type parameters: 'a
i : 'a
m : Drug
Returns: Async<Drug option>

cacheFormulary ds

Full Usage: cacheFormulary ds

Parameters:
ds : Drug[]

doseSchedule n

Full Usage: doseSchedule n

Parameters:
Returns: HtmlNode seq
n : HtmlNode
Returns: HtmlNode seq

drugUrl

Full Usage: drugUrl

Returns: string -> string -> string
Returns: string -> string -> string

getDoc get id gen

Full Usage: getDoc get id gen

Parameters:
    get : string -> 'a
    id : string
    gen : string

Returns: 'a
Modifiers: inline
Type parameters: 'a
get : string -> 'a
id : string
gen : string
Returns: 'a

getDocAsync

Full Usage: getDocAsync

Returns: string -> string -> Async<HtmlDocument>
Returns: string -> string -> Async<HtmlDocument>

getDocSync id gen

Full Usage: getDocSync id gen

Parameters:
    id : string
    gen : string

Returns: HtmlDocument option
id : string
gen : string
Returns: HtmlDocument option

getEmptyRules ()

Full Usage: getEmptyRules ()

Parameters:
    () : unit

Returns: Drug array
() : unit
Returns: Drug array

getFormulary

Full Usage: getFormulary

Returns: unit -> Drug[]
Returns: unit -> Drug[]

getIndications d

Full Usage: getIndications d

Parameters:
Returns: HtmlNode seq
d : HtmlDocument
Returns: HtmlNode seq

getItemProp v n

Full Usage: getItemProp v n

Parameters:
Returns: HtmlNode seq
v : string
n : HtmlNode
Returns: HtmlNode seq

getItemPropString v n

Full Usage: getItemPropString v n

Parameters:
Returns: string
v : string
n : HtmlNode
Returns: string

getItemType desc v d

Full Usage: getItemType desc v d

Parameters:
    desc : bool -> (HtmlNode -> bool) -> 'a -> 'b
    v : string
    d : 'a

Returns: 'b
Type parameters: 'a, 'b
desc : bool -> (HtmlNode -> bool) -> 'a -> 'b
v : string
d : 'a
Returns: 'b

getItemTypeFromDoc

Full Usage: getItemTypeFromDoc

Returns: string -> HtmlDocument -> HtmlNode seq
Returns: string -> HtmlDocument -> HtmlNode seq

getItemTypeFromNode

Full Usage: getItemTypeFromNode

Returns: string -> HtmlNode -> HtmlNode seq
Returns: string -> HtmlNode -> HtmlNode seq

getParentFromDoc d n

Full Usage: getParentFromDoc d n

Parameters:
Returns: HtmlNode
d : HtmlDocument
n : HtmlNode
Returns: HtmlNode

getParentFromNode n1 n2

Full Usage: getParentFromNode n1 n2

Parameters:
Returns: HtmlNode
n1 : HtmlNode
n2 : HtmlNode
Returns: HtmlNode

getRoutes ()

Full Usage: getRoutes ()

Parameters:
    () : unit

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

getSchedules ()

Full Usage: getSchedules ()

Parameters:
    () : unit

Returns: Schedule array
() : unit
Returns: Schedule array

getUnits ()

Full Usage: getUnits ()

Parameters:
    () : unit

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

kinderFormUrl

Full Usage: kinderFormUrl

Returns: string
Returns: string

medications

Full Usage: medications

Returns: unit -> Drug list
Returns: unit -> Drug list

parseDocForDoses i drug doc

Full Usage: parseDocForDoses i drug doc

Parameters:
Returns: Drug
Type parameters: 'a
i : 'a
drug : Drug
doc : HtmlDocument
Returns: Drug

printFormulary pf

Full Usage: printFormulary pf

Parameters:
    pf : string -> unit

pf : string -> unit

Type something to start searching.