Skip to content

Commit

Permalink
Remove blood group, weight and height badges on the top of patient in…
Browse files Browse the repository at this point in the history
…fo card (#6712)
  • Loading branch information
sriharsh05 authored Nov 29, 2023
1 parent 3aa6259 commit bf4920c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
10 changes: 0 additions & 10 deletions src/Common/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ export const parseOptionId: (
return textArray.join(", ");
};

export const getDimensionOrDash = (
value: number | string | null | undefined,
unit: string
) => {
if (value === undefined || value === null || value === 0 || value === "0") {
return "-";
}
return value + unit;
};

export const deepEqual = (x: any, y: any): boolean => {
if (x === y) return true;

Expand Down
12 changes: 0 additions & 12 deletions src/Components/Patient/PatientInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { Link, navigate } from "raviger";
import { useState } from "react";
import CareIcon from "../../CAREUI/icons/CareIcon";
import useConfig from "../../Common/hooks/useConfig";
import { getDimensionOrDash } from "../../Common/utils";
import dayjs from "../../Utils/dayjs";
import { classNames, formatDate, formatDateTime } from "../../Utils/utils.js";
import ABHAProfileModal from "../ABDM/ABHAProfileModal";
Expand Down Expand Up @@ -284,17 +283,6 @@ export default function PatientInfoCard(props: {
</div>
<div className="flex flex-col items-center gap-2 text-sm sm:flex-row lg:mt-4">
{[
["Blood Group", patient.blood_group, patient.blood_group],
[
"Weight",
getDimensionOrDash(consultation?.weight, " kg"),
true,
],
[
"Height",
getDimensionOrDash(consultation?.height, "cm"),
true,
],
[
"Respiratory Support",
RESPIRATORY_SUPPORT.find(
Expand Down

0 comments on commit bf4920c

Please sign in to comment.