Skip to content

Commit

Permalink
remove irrelevant columns (#6878)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafMd-1 authored Dec 20, 2023
1 parent d5e342c commit 4c08326
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions src/Components/Facility/TreatmentSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { PatientModel } from "../Patient/models";

import { GENDER_TYPES } from "../../Common/constants";
import { formatAge, formatDate, formatDateTime } from "../../Utils/utils";

const Loading = lazy(() => import("../Common/Loading"));

const TreatmentSummary = (props: any) => {
Expand Down Expand Up @@ -135,20 +136,14 @@ const TreatmentSummary = (props: any) => {
<b>Age :</b>{" "}
{formatAge(patientData.age, patientData.date_of_birth, true)}
</div>
<div className="col-span-1 border-b-2 border-gray-800 px-3 py-2 print:border-b-0 print:border-r-2 md:border-b-0 md:border-r-2">
<div className="col-span-1 border-b-2 border-gray-800 px-3 py-2 print:border-b-0 md:border-b-0 ">
<b>Date of admission :</b>
<span>
{consultationData.admitted
? formatDateTime(consultationData.admission_date)
: " --/--/----"}
</span>
</div>
<div className="col-span-1 px-3 py-2">
<b>Date of positive :</b>
{patientData.date_of_result
? formatDate(patientData.date_of_result)
: " --/--/----"}
</div>
</div>

<div className="grid border-b-2 border-gray-800 print:grid-cols-3 sm:grid-cols-2 md:grid-cols-3">
Expand All @@ -157,7 +152,7 @@ const TreatmentSummary = (props: any) => {
{GENDER_TYPES.find((i) => i.id === patientData.gender)?.text}
</div>

<div className="col-span-1 border-b-2 border-gray-800 px-3 py-2 print:border-b-0 print:border-r-2 md:border-b-0 md:border-r-2">
<div className="col-span-1 border-b-2 border-gray-800 px-3 py-2 print:border-b-0 md:border-b-0 ">
<b>Contact person :</b>
<span>
{" "}
Expand All @@ -166,15 +161,6 @@ const TreatmentSummary = (props: any) => {
: " -"}
</span>
</div>

<div className="col-span-1 px-3 py-2">
<b>Date of negative :</b>
<span>
{patientData.disease_status == "NEGATIVE"
? formatDate(patientData.modified_date)
: " --/--/----"}
</span>
</div>
</div>

<div className="border-b-2 border-gray-800 px-5 py-2">
Expand Down

0 comments on commit 4c08326

Please sign in to comment.