Logo GenPRES

OrderCategoryDto Module

Writes an order category as text: medication for a medication order, or for a nutrition order the word nutrition, a colon and the name of the nutrition category in lower case with hyphens, as nutrition:enteral-feeding. Reads the text back, ignoring case and the white space around it; an unknown text gives the error UnknownCategory.

Functions and values

Function or value Description

fromString s

Full Usage: fromString s

Parameters:
    s : string

Returns: Result<OrderCategory, DtoError>
s : string
Returns: Result<OrderCategory, DtoError>

toString _arg1

Full Usage: toString _arg1

Parameters:
Returns: string

Writes the string of an order category. The match has no wildcard, so a new category gives an incomplete match warning.

_arg1 : OrderCategory
Returns: string

Type something to start searching.