UNPKG

@medplum/definitions

Version:

Medplum Data Definitions

19 lines (18 loc) 694 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SEARCH_PARAMETER_BUNDLE_FILES = void 0; exports.readJson = readJson; const fs_1 = require("fs"); const path_1 = require("path"); function readJson(filename) { return JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, filename), 'utf8')); } /** * The list of all known search parameter definition bundle file paths relative to the * `@medplum/definitions` package. Typically used in conjunction with `readJson`. */ exports.SEARCH_PARAMETER_BUNDLE_FILES = [ 'fhir/r4/search-parameters.json', 'fhir/r4/search-parameters-medplum.json', 'fhir/r4/search-parameters-uscore.json', ];