Skip to content

Commit

Permalink
Merge pull request #53 from divyamadala30/master
Browse files Browse the repository at this point in the history
default sampleType to unknown tumor
  • Loading branch information
ao508 authored Mar 9, 2023
2 parents 67e2e61 + e55a19f commit e60ad0b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,10 @@ private String resolveSampleTypeAbbreviation(String specimenTypeValue, String sa

// if abbreviation is still not resolved then try to resolve from sample class
CmoSampleClass sampleClass = CmoSampleClass.fromValue(cmoSampleClassValue);
return SAMPLE_CLASS_ABBREV_MAP.get(sampleClass);
if (sampleClass != null) {
return SAMPLE_CLASS_ABBREV_MAP.get(sampleClass);
}
return SAMPLE_CLASS_ABBREV_MAP.get(CmoSampleClass.UNKNOWN_TUMOR);
}

/**
Expand Down

0 comments on commit e60ad0b

Please sign in to comment.