We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47cddbe commit 0871c03Copy full SHA for 0871c03
src/ncit/index.js
@@ -75,13 +75,13 @@ const pickEndpoint = (conceptName, parentConcepts = '') => {
75
}
76
if (diseaseConcepts.some(term => conceptName.includes(term))) {
77
if (endpoint) {
78
- throw NotSupportedError(`Concept must be in a discrete category (${conceptName})`);
+ throw new NotSupportedError(`Concept must be in a discrete category (${conceptName})`);
79
80
endpoint = 'Disease';
81
82
if (therapeuticConcepts.some(term => conceptName.includes(term))) {
83
84
85
86
endpoint = 'Therapy';
87
0 commit comments