diff --git a/src/Components/Facility/TreatmentSummary.tsx b/src/Components/Facility/TreatmentSummary.tsx index 8f1589cdf6f..f41f540a12d 100644 --- a/src/Components/Facility/TreatmentSummary.tsx +++ b/src/Components/Facility/TreatmentSummary.tsx @@ -11,6 +11,8 @@ import { PatientModel } from "../Patient/models"; import { GENDER_TYPES } from "../../Common/constants"; import { formatAge, formatDate, formatDateTime } from "../../Utils/utils"; +import useSlug from "../../Common/hooks/useSlug"; +import useAppHistory from "../../Common/hooks/useAppHistory"; const Loading = lazy(() => import("../Common/Loading")); @@ -25,6 +27,9 @@ const TreatmentSummary = (props: any) => { const [isLoading, setIsLoading] = useState(false); const [investigations, setInvestigations] = useState>([]); const [dailyRounds, setDailyRounds] = useState({}); + const facilityId = useSlug("facility"); + const { goBack } = useAppHistory(); + const url = `/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}`; const fetchPatientData = useCallback( async (status: statusType) => { @@ -104,10 +109,7 @@ const TreatmentSummary = (props: any) => { > Print Treatment Summary -