fume-fhir-converter
Version:
FHIR-Utilized Mapping Engine - Community
23 lines • 905 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.v2normalizeKey = void 0;
const tslib_1 = require("tslib");
/**
* © Copyright Outburn Ltd. 2022-2024 All Rights Reserved
* Project name: FUME-COMMUNITY
*/
const cache_1 = require("../../cache");
const jsonataExpression_1 = tslib_1.__importDefault(require("../../jsonataExpression"));
const stringFunctions_1 = require("../../stringFunctions");
const registerV2key_1 = require("./registerV2key");
const v2normalizeKey = async (key) => {
const bindings = {
initCap: stringFunctions_1.initCap,
keyMap: (0, cache_1.getCache)().v2keyMap.getDict(),
registerV2key: registerV2key_1.registerV2key
};
const res = await jsonataExpression_1.default.v2normalizeKey.evaluate(key, bindings);
return res;
};
exports.v2normalizeKey = v2normalizeKey;
//# sourceMappingURL=v2normalizeKey.js.map