Logo GenPRES

DoseTypeDto Module

Writes a dose type as a string for the Dtos and reads the string back. An unknown category or a null string gives UnknownDoseType.

Functions and values

Function or value Description

fromString s

Full Usage: fromString s

Parameters:
    s : string

Returns: Result<DoseType, DtoError>

Reads a dose type from the category and the text, split at the first space. Returns UnknownDoseType for an unknown category or a null string; an empty string gives NoDoseType.

s : string
Returns: Result<DoseType, DtoError>

toString dt

Full Usage: toString dt

Parameters:
Returns: string
dt : DoseType
Returns: string

Type something to start searching.