type: isString()

in src/router/routes/exportRouteHelper.ts [41:60]


            type: isString(req.query._type) ? req.query._type : undefined,
            groupId: isString(req.params.id) ? req.params.id : undefined,
            tenantId: res.locals.tenantId,
            serverUrl: res.locals.serverUrl,
            fhirVersion,
            allowedResourceTypes,
        };
        return initiateExportRequest;
    }

    static getExportUrl(
        baseUrl: string,
        exportType: ExportType,
        queryParams: { outputFormat?: string; since?: string; type?: string },
        groupId?: string,
    ) {
        const { outputFormat, since, type } = queryParams;
        const url = new URL(baseUrl);
        url.pathname += url.pathname.endsWith('/') ? '' : '/';
        if (exportType === 'system') {