render clinical manifestations, connecting channel and treatment in EovDetailRenderer

This commit is contained in:
ShivaniKhaire 2026-10-21 16:01:17 +05:30
parent ff9be31f3b
commit 7d17bdb3de
1 changed files with 37 additions and 0 deletions

View File

@ -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: () => (
<SectionCard title="Clinical Manifestations">
<BulletList items={asStringArray(clinicalManifestations)} />
</SectionCard>
),
});
}
if (!isEmptyValue(data.connecting_channel)) {
items.push({
key: "connecting_channel",
order: orderFor("connecting_channel", 130),
render: () => (
<SectionCard title="Connecting Channel">
<Text style={styles.pathway}>{asString(data.connecting_channel)}</Text>
</SectionCard>
),
});
}
if (!isEmptyValue(data.treatment)) {
items.push({
key: "treatment",
order: orderFor("treatment", 140),
render: () => (
<SectionCard title="Treatment">
<Text style={styles.pathway}>{asString(data.treatment)}</Text>
</SectionCard>
),
});
}
return items.sort((a, b) => a.order - b.order || a.key.localeCompare(b.key));
}, [data, orderFor, relationshipRows]);