Skip to content

Commit c6a1e92

Browse files
Merge pull request #420 from bcgsc/feat/DEVSU-2188-add-recruitment-status
feat/DEVSU-2188-add-recruitment-status
2 parents 414995c + 337c291 commit c6a1e92

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

app/common.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ type KbMatchType<T extends AnyVariantType = AnyVariantType> = {
127127
iprEvidenceLevel: string;
128128
kbData: {
129129
inferred: boolean;
130+
recruitment_status: string;
130131
} | null;
131132
kbStatementId: string;
132133
kbVariant: string;

app/views/ReportView/components/KbMatches/columnDefs.ts

+14-3
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,23 @@ const columnDefs: ColDef[] = [{
8686
headerName: 'PMID',
8787
colId: 'reference',
8888
field: 'reference',
89-
wrapText: true,
90-
autoHeight: true,
91-
width: 600,
9289
cellRendererFramework: ArrayCell('reference', true),
9390
hide: false,
9491
},
92+
{
93+
headerName: 'Recruitment Status',
94+
hide: false,
95+
valueGetter: (params) => {
96+
const { data: { relevance, kbData } } = params;
97+
if (kbData?.recruitment_status) {
98+
if (relevance === 'eligibility') {
99+
return `${kbData.recruitment_status}`;
100+
}
101+
return 'N/A';
102+
}
103+
return '';
104+
},
105+
},
95106
{
96107
headerName: 'Category',
97108
colId: 'category',

0 commit comments

Comments
 (0)