extra-ordinary-vessel #70

Merged
amit merged 3 commits from extra-ordinary-vessel into main 2026-10-22 05:57:45 +00:00
1 changed files with 16 additions and 0 deletions
Showing only changes of commit 7ead8b1cde - Show all commits

View File

@ -126,6 +126,22 @@ export function ExtraOrdinaryVesselsDetailRenderer({
}, [data, definitions, presentationAttributes]);
const renderAttributeValue = (key: string, value: unknown, emptyText: string | null) => {
if (key === "clinical_manifestation" || key === "clinical_manifestations") {
const items = Array.isArray(value)
? asStringArray(value)
: typeof value === "string"
? value
.split(/,\s*(?![^()]*\))/)
.map((s) => s.trim().replace(/\.$/, ""))
.filter(Boolean)
.map((s) => s.charAt(0).toUpperCase() + s.slice(1))
: [];
if (items.length > 0) {
return <BulletList items={items} />;
}
}
if (Array.isArray(value)) {
const strings = asStringArray(value);
if (strings.length > 0) {