@medplum/definitions
Version:
Medplum Data Definitions
24 lines (15 loc) • 784 B
TypeScript
import type { Resource } from '@medplum/fhirtypes';
export declare function getDataDir(): string;
export declare function getDefinitionResource<T extends Resource & {
url?: string;
}>(file: string, resourceType: T['resourceType'], url: string): T;
export declare function readJson(filename: string): any;
export declare function readJsonAsync(filename: string): Promise<any>;
/**
* The list of all known search parameter definition bundle file paths relative to the
* `@medplum/definitions` package. Typically used in conjunction with `readJson`.
*/
export declare const SEARCH_PARAMETER_BUNDLE_FILES: string[];
export declare const STRUCTURE_DEFINITION_BUNDLE_FILES: string[];
export declare const TERMINOLOGY_BUNDLE_FILES: string[];
export { }