render clinical manifestations, connecting channel and treatment in EovDetailRenderer
This commit is contained in:
parent
ff9be31f3b
commit
7d17bdb3de
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue