From 9d0477d0743e743b94adb00768f6cac5cb986dd0 Mon Sep 17 00:00:00 2001 From: peter-va Date: Fri, 22 Nov 2024 14:25:21 -0800 Subject: [PATCH] fixes to exports + more codelist names --- .../subset-details/subset-details.component.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/web/frontend/src/app/component/subset-details/subset-details.component.ts b/web/frontend/src/app/component/subset-details/subset-details.component.ts index 5422a107..dbab16a7 100644 --- a/web/frontend/src/app/component/subset-details/subset-details.component.ts +++ b/web/frontend/src/app/component/subset-details/subset-details.component.ts @@ -333,17 +333,13 @@ export class SubsetDetailsComponent implements OnInit { const extensible = concept.properties.filter((prop) => prop.type == 'Extensible_List')[0]?.value; rowText += (extensible ? extensible : '') + '\t'; // codelist name - if(this.subsetFormat === "CDISC") { - rowText += this.getCdiscSynonym() + '\t'; - } else { - rowText += this.titleDesc + '\t'; - } + rowText += this.getCdiscSynonym() + '\t'; // cdisc submission value - rowText += concept.synonyms.filter((sy) => sy.source == 'CDISC' && sy.termType == 'PT')[0]?.name + '\t'; + rowText += this.getCdiscSubmissionValue(concept) + '\t'; // cdisc synonyms rowText += '"' + this.getSynonymNames(concept, 'CDISC', 'SY').join('\n') + '"' + '\t'; // cdisc definition - rowText += concept.definitions.filter((def) => def.source == 'CDISC')[0]?.definition + '\t'; + rowText += concept.definitions.filter((def) => def.source.startsWith('CDISC') || def.source.startsWith("MRCT-Ctr"))[0]?.definition + '\t'; // NCIt pref term rowText += concept.name; } else { @@ -445,7 +441,7 @@ export class SubsetDetailsComponent implements OnInit { getCdiscSynonym() { if (this.selectedSubset?.synonyms && this.cdiscSubsetSource) { - const synonym = this.selectedSubset.synonyms.find(syn => syn.source === this.cdiscSubsetSource); + const synonym = this.selectedSubset.synonyms.find(syn => syn.source === this.cdiscSubsetSource && syn.termType === "SY"); return synonym?.name; } return undefined;