From fbf19aa81df1d6b832fe6b092ac7d90b5ec62ecb Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 11 Mar 2024 17:18:26 +0530 Subject: [PATCH] remove unused redux actions --- src/Redux/actions.tsx | 13 ------------- src/Redux/api.tsx | 3 ++- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/Redux/actions.tsx b/src/Redux/actions.tsx index 73e1a839519..10f5bd76eab 100644 --- a/src/Redux/actions.tsx +++ b/src/Redux/actions.tsx @@ -1,5 +1,4 @@ import { HCXClaimModel, HCXPolicyModel } from "../Components/HCX/models"; -import { MedibaseMedicine } from "../Components/Medicine/models"; import { fireRequest } from "./fireRequest"; // Facility @@ -204,18 +203,6 @@ export const editInvestigation = ( }); }; -// ICD11 -export const listICD11Diagnosis = (params: object) => { - return fireRequest("listICD11Diagnosis", [], params, null); -}; -// Medibase -export const listMedibaseMedicines = ( - query: string, - type?: MedibaseMedicine["type"] -) => { - return fireRequest("listMedibaseMedicines", [], { query, type }); -}; - // Resource export const downloadResourceRequests = (params: object) => { return fireRequest("downloadResourceRequests", [], params); diff --git a/src/Redux/api.tsx b/src/Redux/api.tsx index 33b6a69e057..7e841114df4 100644 --- a/src/Redux/api.tsx +++ b/src/Redux/api.tsx @@ -68,7 +68,7 @@ import { StateModel, WardModel, } from "../Components/Facility/models"; -import { Prescription } from "../Components/Medicine/models"; +import { MedibaseMedicine, Prescription } from "../Components/Medicine/models"; import { NotificationData, PNconfigData, @@ -1119,6 +1119,7 @@ const routes = { // Medibase listMedibaseMedicines: { path: "/api/v1/medibase/", + TRes: Type(), }, // Resource