java.lang.Object
care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
care.smith.top.top_phenotypic_query.c2reasoner.functions.date_time.Overlap2

public class Overlap2 extends care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
The function Overlap2 returns 'true' if the two processes (e.g., encounter or medication administration) represented by the first and the second arguments temporally overlap (bidirectional), otherwise 'false'. The third and the fourth optional arguments specifies the maximum number of hours that may lie between the two processes (in both directions). If only the third argument is specified, it applies to both directions.
Arguments:
Arguments Arguments data types Return data type Example
<exp> <exp> [<hours-num>] [<hours-num>] <exp>: any
<hours-num>: number
boolean Overlap2(Drug1, Drug2, 3, 4)
The function returns 'true' if the medication administrations of Drug1 and Drug2
temporally overlap (maximum 3 hour may lie between if Drug1 before Drug2
and maximum 4 hour may lie between if Drug2 before Drug1).
Author:
TOP group
  • Method Summary

    Modifier and Type
    Method
    Description
    care.smith.top.model.Expression
    calculate(List<care.smith.top.model.Expression> args, care.smith.top.top_phenotypic_query.c2reasoner.C2R c2r)
     
    static Overlap2
    get()
     
    static care.smith.top.model.Expression
    of(care.smith.top.model.Expression... args)
     
    static care.smith.top.model.Expression
    of(care.smith.top.model.Phenotype... args)
     
    static care.smith.top.model.Expression
    of(List<care.smith.top.model.Expression> args)
     

    Methods inherited from class care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity

    getFunction, getFunctionId, getType, maxArgumentNumber, minArgumentNumber, toString, toStringValues

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • get

      public static Overlap2 get()
    • of

      public static care.smith.top.model.Expression of(List<care.smith.top.model.Expression> args)
    • of

      public static care.smith.top.model.Expression of(care.smith.top.model.Expression... args)
    • of

      public static care.smith.top.model.Expression of(care.smith.top.model.Phenotype... 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 class care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity