Skip to content

Commit

Permalink
Remove pages and components used under /teleicu/... (#4142)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Nov 30, 2022
1 parent c77054d commit f83cb5f
Show file tree
Hide file tree
Showing 17 changed files with 32 additions and 694 deletions.
13 changes: 5 additions & 8 deletions src/Components/Facility/ConsultationDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ import { NutritionPlots } from "./Consultations/NutritionPlots";
import { PressureSoreDiagrams } from "./Consultations/PressureSoreDiagrams";
import { DialysisPlots } from "./Consultations/DialysisPlots";
import ViewInvestigations from "./Investigations/ViewInvestigations";
import TeleICUPatientInfoCard from "../TeleIcu/Patient/InfoCard";
import TeleICUPatientVitalsCard from "../TeleIcu/Patient/VitalsCard";
import DoctorVideoSlideover from "../TeleIcu/DoctorVideoSlideover";
import DoctorVideoSlideover from "./DoctorVideoSlideover";
import { Feed } from "./Consultations/Feed";
import { validateEmailAddress } from "../../Common/validation";
import Dialog from "@material-ui/core/Dialog";
Expand All @@ -50,6 +48,8 @@ import ReadMore from "../Common/components/Readmore";
import ViewInvestigationSuggestions from "./Investigations/InvestigationSuggestions";
import { formatDate } from "../../Utils/utils";
import ResponsiveMedicineTable from "../Common/components/ResponsiveMedicineTables";
import PatientInfoCard from "../Patient/PatientInfoCard";
import PatientVitalsCard from "../Patient/PatientVitalsCard";
interface PreDischargeFormInterface {
discharge_reason: string;
discharge_notes: string;
Expand Down Expand Up @@ -500,7 +500,7 @@ export const ConsultationDetails = (props: any) => {
</nav>
<div className="flex md:flex-row flex-col w-full mt-2">
<div className="border rounded-lg bg-white shadow h-full text-black w-full">
<TeleICUPatientInfoCard
<PatientInfoCard
patient={patientData}
ip_no={consultationData.ip_no}
fetchPatientData={fetchData}
Expand Down Expand Up @@ -665,10 +665,7 @@ export const ConsultationDetails = (props: any) => {
<PageTitle title="Info" hideBack={true} breadcrumbs={false} />
{!consultationData.discharge_date && (
<section className="bg-white shadow-sm rounded-md flex items-stretch w-full flex-col lg:flex-row overflow-hidden">
<TeleICUPatientVitalsCard patient={patientData} />
{/*<TeleICUPatientVitalsGraphCard
consultationId={patientData.last_consultation?.id}
/>*/}
<PatientVitalsCard patient={patientData} />
</section>
)}
<div className="grid lg:grid-cols-2 gap-4 mt-4">
Expand Down
3 changes: 0 additions & 3 deletions src/Components/Patient/DailyRounds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,6 @@ export const DailyRounds = (props: any) => {
admitted_to: res.data.admitted_to ? res.data.admitted_to : "Select",
};
dispatch({ type: "set_form", form: data });
// if (res.data.bed) {
// setIsTeleicu("true");
// }
}
setIsLoading(false);
}
Expand Down
4 changes: 1 addition & 3 deletions src/Components/Patient/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ import { TextInputField } from "../Common/HelperInputFields";
import LinearProgress from "@material-ui/core/LinearProgress";
import Typography from "@material-ui/core/Typography";
import Box from "@material-ui/core/Box";
import { GetApp, Visibility } from "@material-ui/icons";
import { Visibility } from "@material-ui/icons";
import * as Notification from "../../Utils/Notifications.js";
import { VoiceRecorder } from "../../Utils/VoiceRecorder";
import Modal from "@material-ui/core/Modal";
import { Close, ZoomIn, ZoomOut } from "@material-ui/icons";

import Pagination from "../Common/Pagination";
import { RESULTS_PER_PAGE_LIMIT } from "../../Common/constants";
Expand Down Expand Up @@ -565,7 +564,6 @@ export const FileUpload = (props: FileUploadProps) => {
};

const validateAudioUpload = () => {
const filenameLength = audioName.trim().length;
const f = audioBlob;
if (f === undefined) {
return false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { Link } from "raviger";
import { getDimensionOrDash } from "../../../Common/utils";
import { PatientModel } from "../../Patient/models";
import { getDimensionOrDash } from "../../Common/utils";
import { PatientModel } from "./models";
import { Modal } from "@material-ui/core";
import Beds from "../../Facility/Consultations/Beds";
import Beds from "../Facility/Consultations/Beds";
import { useState } from "react";
// import moment from "moment";
import { PatientCategoryTailwindClass } from "../../../Common/constants";
import { PatientCategory } from "../../Facility/models";
import { PatientCategoryTailwindClass } from "../../Common/constants";
import { PatientCategory } from "../Facility/models";

const PatientCategoryDisplayText: Record<PatientCategory, string> = {
"Comfort Care": "COMFORT CARE",
Expand All @@ -16,7 +15,7 @@ const PatientCategoryDisplayText: Record<PatientCategory, string> = {
unknown: "UNKNOWN",
};

export default function TeleICUPatientInfoCard(props: {
export default function PatientInfoCard(props: {
patient: PatientModel;
ip_no?: string | undefined;
fetchPatientData?: (state: { aborted: boolean }) => void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { ReactNode, useEffect, useRef, useState } from "react";
import { useDispatch } from "react-redux";
import { listAssetBeds } from "../../../Redux/actions";
import { AssetData } from "../../Assets/AssetTypes";
import ToolTip from "../../Common/utils/Tooltip";
import { PatientModel } from "../../Patient/models";
import { listAssetBeds } from "../../Redux/actions";
import { AssetData } from "../Assets/AssetTypes";
import ToolTip from "../Common/utils/Tooltip";
import { PatientModel } from "./models";
import Waveform, { WaveformType } from "./Waveform";

export interface ITeleICUPatientVitalsCardProps {
export interface IPatientVitalsCardProps {
patient: PatientModel;
}

Expand All @@ -31,9 +31,9 @@ const getVital = (
return "";
};

export default function TeleICUPatientVitalsCard({
export default function PatientVitalsCard({
patient,
}: ITeleICUPatientVitalsCardProps) {
}: IPatientVitalsCardProps) {
const wsClient = useRef<WebSocket>();

const [waveforms, setWaveForms] = useState<WaveformType[] | null>(null);
Expand Down Expand Up @@ -217,20 +217,23 @@ export default function TeleICUPatientVitalsCard({
<h2 className="font-bold text-xl md:text-3xl">
{liveReading ||
(vital.vitalKey === "bp"
? `${patient.last_consultation?.last_daily_round?.bp
.systolic || "--"
}/${patient.last_consultation?.last_daily_round?.bp
.diastolic || "--"
}`
? `${
patient.last_consultation?.last_daily_round?.bp
.systolic || "--"
}/${
patient.last_consultation?.last_daily_round?.bp
.diastolic || "--"
}`
: patient.last_consultation?.last_daily_round?.[
vital.vitalKey || ""
]) ||
vital.vitalKey || ""
]) ||
"--"}
</h2>
<div className="text-xs md:text-base">
<i
className={`fas fa-circle text-xs mr-2 ${liveReading ? "text-green-600" : "text-gray-400"
}`}
className={`fas fa-circle text-xs mr-2 ${
liveReading ? "text-green-600" : "text-gray-400"
}`}
/>
{vital.label}
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useRef, useState } from "react";
import { LinePlot } from "../../Facility/Consultations/components/LinePlot";
import { LinePlot } from "../Facility/Consultations/components/LinePlot";

export type WaveformType = {
data: string;
Expand Down
155 changes: 0 additions & 155 deletions src/Components/TeleIcu/Facility.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions src/Components/TeleIcu/Icons/AdminIcon.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/Components/TeleIcu/Icons/ArrowIcon.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions src/Components/TeleIcu/Icons/BedIcon.tsx

This file was deleted.

Loading

0 comments on commit f83cb5f

Please sign in to comment.