Skip to content

Commit

Permalink
Merge pull request #349 from bcgsc/feature/DEVSU-2036-display-captiv8…
Browse files Browse the repository at this point in the history
…-on-rapid-reports

feature/DEVSU-2036-display-captiv8-on-rapid-reports
  • Loading branch information
Nithriel authored Sep 13, 2023
2 parents 808d206 + a4a4b1b commit 795a435
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/context/ReportContext/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type ReportType = {
oncotreeTumourType: string;
kbDiseaseMatch: string;
m1m2Score: number;
captiv8Score: number;
} & RecordDefaults;

type ReportContextType = {
Expand Down
8 changes: 7 additions & 1 deletion app/views/ReportView/components/RapidSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ const RapidSummary = ({
? `${report.m1m2Score}`
: null,
},
{
term: 'Captiv 8 Score',
value: report.captiv8Score !== null
? `${report.captiv8Score}`
: null,
},
{
term: 'Microbial Species',
value: microbial ? microbial.map(({ species, integrationSite }) => {
Expand Down Expand Up @@ -321,7 +327,7 @@ const RapidSummary = ({
value: msiStatus,
},
]);
}, [microbial, tmburMutBur, report.m1m2Score, report.sampleInfo, report.tumourContent, tCellCd8?.percentile, tCellCd8?.score]);
}, [microbial, tmburMutBur, report.m1m2Score, report.sampleInfo, report.tumourContent, tCellCd8?.percentile, tCellCd8?.score, report.captiv8Score]);

const handlePatientEditClose = useCallback(async (
isSaved: boolean,
Expand Down

0 comments on commit 795a435

Please sign in to comment.