File tree 2 files changed +15
-3
lines changed
views/ReportView/components/KbMatches
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ type KbMatchType<T extends AnyVariantType = AnyVariantType> = {
127
127
iprEvidenceLevel : string ;
128
128
kbData : {
129
129
inferred : boolean ;
130
+ recruitment_status : string ;
130
131
} | null ;
131
132
kbStatementId : string ;
132
133
kbVariant : string ;
Original file line number Diff line number Diff line change @@ -86,12 +86,23 @@ const columnDefs: ColDef[] = [{
86
86
headerName : 'PMID' ,
87
87
colId : 'reference' ,
88
88
field : 'reference' ,
89
- wrapText : true ,
90
- autoHeight : true ,
91
- width : 600 ,
92
89
cellRendererFramework : ArrayCell ( 'reference' , true ) ,
93
90
hide : false ,
94
91
} ,
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
+ } ,
95
106
{
96
107
headerName : 'Category' ,
97
108
colId : 'category' ,
You can’t perform that action at this time.
0 commit comments