Skip to content

Commit

Permalink
POC-737: MOH registers
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred-Mutai committed Oct 25, 2024
1 parent 0425264 commit 31a0c6e
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions etl-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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']
}
}
];

Expand Down

0 comments on commit 31a0c6e

Please sign in to comment.