Class RefValues
java.lang.Object
care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
care.smith.top.top_phenotypic_query.c2reasoner.functions.set.RefValues
public class RefValues
extends care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
The function RefValues reduces the number of elements in a list (1st argument) based on a
date range restriction. The 2nd and the optional 3rd argument specify the date range in days with
respect to the temporally last element (index) in the given list (1st argument), e.g., 2-4 days
before the last element. The elements remaining in the list must be created/valid in the defined
date range.
Arguments | Arguments data types | Return data type | Example |
---|---|---|---|
<exp> <days-num> [<days-num>] |
<exp>: any <days-num>: number |
list of values of the same data type as <exp> |
RefValues(Creatinine, 2, 4) The function returns all Creatinine values collected 2-4 days before the last value. |
- Author:
- TOP group
-
Method Summary
Modifier and TypeMethodDescriptioncare.smith.top.model.Expression
calculate
(List<care.smith.top.model.Expression> args, care.smith.top.top_phenotypic_query.c2reasoner.C2R c2r) static RefValues
get()
static care.smith.top.model.Expression
of
(care.smith.top.model.Expression... args) static care.smith.top.model.Expression
Methods inherited from class care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
getFunction, getFunctionId, getType, maxArgumentNumber, minArgumentNumber, toString, toStringValues
-
Method Details
-
get
-
of
-
of
public static care.smith.top.model.Expression of(care.smith.top.model.Expression... args) -
calculate
public care.smith.top.model.Expression calculate(List<care.smith.top.model.Expression> args, care.smith.top.top_phenotypic_query.c2reasoner.C2R c2r) - Specified by:
calculate
in classcare.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
-