Skip to content

Commit

Permalink
add check for pediatric subsets format
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-va committed Jan 17, 2025
1 parent b9c09c3 commit d533323
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ export class SubsetDetailsComponent implements OnInit {
this.titleDesc = this.selectedSubset.name;
this.submissionValueCode = this.selectedSubset.synonyms.find((sy) => sy.source === 'NCI' && sy.termType === 'AB')?.name;
const ContSource = this.selectedSubset.properties?.filter((item) => item.type === 'Contributing_Source');
if (ContSource.some((entry) => entry.value.startsWith('CTRP'))) {
if(this.selectedSubset.properties.find((prop) => prop.value === 'NCI' && prop.type === 'EVSRESTAPI_Subset_Format')) {
this.subsetFormat = 'NCIt';
}
else if (ContSource.some((entry) => entry.value.startsWith('CTRP'))) {
this.subsetFormat = 'CTRP';
}
// CHECK FOR CDISC
Expand Down

0 comments on commit d533323

Please sign in to comment.