From 7d17bdb3defc80a874064e9a5ef38c97200f2d6b Mon Sep 17 00:00:00 2001 From: ShivaniKhaire Date: Wed, 21 Oct 2026 16:01:17 +0530 Subject: [PATCH] render clinical manifestations, connecting channel and treatment in EovDetailRenderer --- .../renderers/details/EovDetailRenderer.tsx | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/src/features/content/renderers/details/EovDetailRenderer.tsx b/src/features/content/renderers/details/EovDetailRenderer.tsx index aab1f6b..a8fbb1f 100644 --- a/src/features/content/renderers/details/EovDetailRenderer.tsx +++ b/src/features/content/renderers/details/EovDetailRenderer.tsx @@ -148,6 +148,43 @@ export function EovDetailRenderer({ }); } + const clinicalManifestations = data.clinical_manifestation ?? data.clinical_manifestations; + if (!isEmptyValue(clinicalManifestations)) { + items.push({ + key: "clinical_manifestation", + order: orderFor("clinical_manifestation", orderFor("clinical_manifestations", 125)), + render: () => ( + + + + ), + }); + } + + if (!isEmptyValue(data.connecting_channel)) { + items.push({ + key: "connecting_channel", + order: orderFor("connecting_channel", 130), + render: () => ( + + {asString(data.connecting_channel)} + + ), + }); + } + + if (!isEmptyValue(data.treatment)) { + items.push({ + key: "treatment", + order: orderFor("treatment", 140), + render: () => ( + + {asString(data.treatment)} + + ), + }); + } + return items.sort((a, b) => a.order - b.order || a.key.localeCompare(b.key)); }, [data, orderFor, relationshipRows]);