UNPKG

cql-execution

Version:

An execution framework for the Clinical Quality Language (CQL)

18 lines (17 loc) 1.13 kB
import { CQLValueSet, ValueSet } from '../datatypes/clinical'; import { Context } from '../runtime/context'; export declare type Direction = 'asc' | 'ascending' | 'desc' | 'descending'; export declare function removeNulls(things: any[]): any[]; export declare function numerical_sort(things: any[], direction: Direction | null): any[]; export declare function isNull(value: any): boolean; export declare const typeIsArray: (arg: any) => arg is any[]; export declare function allTrue(things: any): any; export declare function anyTrue(things: any): any; export declare const jsDate: DateConstructor; export declare function normalizeMillisecondsFieldInString(string: string, msString: string): string; export declare function normalizeMillisecondsField(msString: string): string; export declare function getTimezoneSeparatorFromString(string: string): "" | "-" | "+"; declare type SortCompareFn<T> = (a: T, b: T) => Promise<number>; export declare function asyncMergeSort<T>(arr: T[], compareFn: SortCompareFn<T>): Promise<T[]>; export declare function resolveValueSet(vs: CQLValueSet, ctx: Context): Promise<ValueSet>; export {};