diff --git a/src/Components/Facility/ConsultationDetails/index.tsx b/src/Components/Facility/ConsultationDetails/index.tsx index 490c704f295..3d9fa0f6e75 100644 --- a/src/Components/Facility/ConsultationDetails/index.tsx +++ b/src/Components/Facility/ConsultationDetails/index.tsx @@ -8,7 +8,7 @@ import { ConsultationModel, ICD11DiagnosisModel } from "../models"; import { getConsultation, getPatient } from "../../../Redux/actions"; import { statusType, useAbortableEffect } from "../../../Common/utils"; import { lazy, useCallback, useState } from "react"; - +import ToolTip from "../../Common/utils/Tooltip"; import ButtonV2 from "../../Common/components/ButtonV2"; import CareIcon from "../../../CAREUI/icons/CareIcon"; import DischargeModal from "../DischargeModal"; @@ -191,10 +191,20 @@ export const ConsultationDetails = (props: any) => { return diagnoses.length ? (
{label}
- - {diagnoses.slice(0, !showMore ? nshow : undefined).map((diagnosis) => ( -{diagnosis.label}
- ))} + {diagnoses.slice(0, !showMore ? nshow : undefined).map((diagnosis) => + diagnosis.id === consultationData.icd11_principal_diagnosis ? ( +{diagnosis.label}
+{diagnosis.label}
+ ) + )} {diagnoses.length > nshow && ( <> {!showMore ? ( @@ -359,22 +369,6 @@ export const ConsultationDetails = (props: any) => {