UNPKG

fume-fhir-converter

Version:

FHIR-Utilized Mapping Engine - Community

21 lines 1.34 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FumeConfigSchema = void 0; /** * © Copyright Outburn Ltd. 2022-2024 All Rights Reserved * Project name: FUME-COMMUNITY */ const zod_1 = require("zod"); exports.FumeConfigSchema = zod_1.z.object({ SERVER_PORT: zod_1.z.preprocess((a) => typeof a === 'string' ? parseInt(a) : a, zod_1.z.number().int('Must be an integer').positive('Must be positive').default(42420)), SERVER_STATELESS: zod_1.z.preprocess((a) => a === 'true', zod_1.z.boolean().default(false)), FHIR_SERVER_BASE: zod_1.z.string().min(1).url().default('http://hapi-fhir.outburn.co.il/fhir'), FHIR_SERVER_AUTH_TYPE: zod_1.z.string().default('NONE'), FHIR_SERVER_UN: zod_1.z.string().default(''), FHIR_SERVER_PW: zod_1.z.string().default(''), FHIR_SERVER_TIMEOUT: zod_1.z.preprocess((a) => typeof a === 'string' ? parseInt(a) : a, zod_1.z.number().int('Must be an integer').positive('Must be positive').default(30000)), FHIR_VERSION: zod_1.z.string().min(1).default('4.0.1'), SEARCH_BUNDLE_PAGE_SIZE: zod_1.z.preprocess((a) => typeof a === 'string' ? parseInt(a) : a, zod_1.z.number().int('Must be an integer').positive('Must be positive').default(20)), FHIR_PACKAGES: zod_1.z.string().default('') }); //# sourceMappingURL=serverConfigSchema.js.map