diff --git a/src/civic/therapy.js b/src/civic/therapy.js index 8dab93aa..f58d8280 100644 --- a/src/civic/therapy.js +++ b/src/civic/therapy.js @@ -1,7 +1,6 @@ const { logger } = require('../logging'); const { ncit: NCIT_SOURCE_DEFN } = require('../sources'); const { orderPreferredOntologyTerms, rid } = require('../graphkb'); -const { isString } = require('lodash'); /** @@ -60,7 +59,7 @@ const resolveTherapies = (evidenceItem) => { */ const getTherapy = async (conn, therapyRecord) => { const name = therapyRecord.name.toLowerCase().trim(); - const ncitId = therapyRecord.ncitId && isString(therapyRecord.ncitId) + const ncitId = therapyRecord.ncitId && typeof therapyRecord.ncitId === 'string' ? therapyRecord.ncitId.toLowerCase().trim() : therapyRecord.ncitId;