From 31a0c6ede461e6cea629b3a15af3eb6c6cb4cce6 Mon Sep 17 00:00:00 2001 From: Alfred-Mutai Date: Fri, 25 Oct 2024 15:51:38 +0300 Subject: [PATCH] POC-737: MOH registers --- etl-routes.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/etl-routes.js b/etl-routes.js index 0fce3ca75..907807096 100755 --- a/etl-routes.js +++ b/etl-routes.js @@ -82,7 +82,6 @@ import { Covid19MonthlyReport } from './service/covid-19/covid-19-monthly-report import { MlWeeklyPredictionsService } from './service/ml-weekly-predictions.service'; import { getPatientPredictedScore } from './service/predictions/ml-prediction-service'; import { CohortModuleService } from './app/otz/cohort-module.service'; -import { getDefaulterTracingData } from './service/moh-registers/defaulter-tracing.js'; module.exports = (function () { var routes = [ @@ -6361,31 +6360,6 @@ module.exports = (function () { notes: 'Api endpoint that returns AMRS ID in string format', tags: ['api'] } - }, - { - method: 'GET', - path: '/etl/registers/defaulter-tracing', - config: { - auth: 'simple', - plugins: {}, - handler: function (request, reply) { - if (request.query.locationUuid) { - const locationUuids = request.query.locationUuid; - getDefaulterTracingData(locationUuids) - .then((results) => { - reply(results); - }) - .catch((error) => { - reply(Boom.internal('An error occured', error)); - }); - } else { - reply(Boom.internal('Request misssing location uuid')); - } - }, - description: 'Get defaulter tracing data', - notes: 'Returns the defaulter tracing data', - tags: ['api'] - } } ];