UNPKG

fume-fhir-converter

Version:

FHIR-Utilized Mapping Engine - Community

30 lines (26 loc) 757 B
/** * © Copyright Outburn Ltd. 2022-2024 All Rights Reserved * Project name: FUME-COMMUNITY */ import { ICache } from '../../types'; export interface ICacheEntry { expression: string function: (input: any) => Promise<any> } export interface IAppCache { // TODO: define types for each cache! tables: ICache<any> // cache for generated StructureDefinition snapshots snapshots: ICache<any> aliases: ICache<string> v2keyMap: ICache<string> // previously parsed expressions expressions: ICache<any> compiledExpressions: ICache<any> // user defined functions mappings: ICache<any> compiledMappings: ICache<ICacheEntry> elementDefinition: ICache<any> definitions: ICache<any> } export type IAppCacheKeys = keyof IAppCache;