Skip to content

Commit 2722110

Browse files
author
Dan Lee
committed
Changed ccp2 endpoint to use mcodev01 datasource again and updated null checks for tumor markers.
1 parent 45214d5 commit 2722110

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/apps/AppManager.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default class AppManager {
133133
display: 'Compass',
134134
app: CoreCancerPilotApp,
135135
isExact: true,
136-
dataSource: 'HardCodedMcodeV05DataSource',
136+
dataSource: 'HardCodedMcodeV01DataSource',
137137
patientId: '788dcbc3-ed18-470c-89ef-35ff91854c7f',
138138
logoObject: {
139139
path: './compass-logo.png',

src/mcode-pilot/utils/recordToProps.js

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default function getProps(patient, condition) {
7979

8080
if (tumorMarkers) {
8181
tumorMarkers.forEach((e) => {
82+
if (!e.receptorType) return;
8283
propDict.pathology[e.receptorType.split(' ').join('')] = {
8384
"display": e.receptorType,
8485
"valueType":"string",

src/summary/metadata/GeneralCancerSummarySection.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ export default class GeneralCancerSummarySection extends MetadataSection {
271271
}
272272

273273
getTumorMarkers = (patient, currentConditionEntry, section, subsection) => {
274-
const receptorStatuses = currentConditionEntry.getMostRecentTumorMarkers()
274+
const receptorStatuses = currentConditionEntry.getMostRecentTumorMarkers();
275+
if (!receptorStatuses) return [];
275276
// TODO: Since we're showing multiple values heree, we should probably support multiple signed and source values
276277
// we don't have that capability right now
277278
return receptorStatuses.map(receptor => {

0 commit comments

Comments
 (0)