DoseType Module
Parses a dose type from a name and a dose text, compares dose types, returns the sort order number of a dose type, returns a dose type as text, and replaces the dose text of a dose type.
Functions and values
| Function or value |
Description
|
|
|
|
|
Full Usage:
fromString doseType doseText
Parameters:
string
doseText : string
Returns: DoseType
|
Parses a dose type like
|
|
Returns the dose text of a dose type, or an empty string for NoDoseType.
|
Full Usage:
parse doseType doseText
Parameters:
string
doseText : string
Returns: DoseType * string option
|
Parses a dose type name and a dose text into a dose type. Returns NoDoseType for an unknown name, with a warning when the name is not empty.
|
|
|
|
|
|
Returns the dose type name without the dose text, the name that parse reads.
|
|
Returns the dose text, or a Dutch default for the dose type when the text is empty.
|
|
|
GenPRES