File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change
1
+ const _ = require ( 'lodash' ) ;
1
2
const logger = require ( '../../helpers/logger' ) ;
2
3
const { ifSomeArgsObj } = require ( '../../helpers/templateUtils' ) ;
3
4
const { isCancerStagingSystem } = require ( '../../helpers/cancerStagingUtils' ) ;
@@ -27,7 +28,9 @@ function stagingMethodTemplate({ code }) {
27
28
// System based on http://hl7.org/fhir/us/mcode/Observation-mCODETNMClinicalPrimaryTumorCategoryExample01.json.html
28
29
return methodTemplate ( { code, system : 'http://ncimeta.nci.nih.gov' } ) ;
29
30
}
30
- logger . debug ( `stagingMethodTemplate received a code ${ code } that is not recognized; code will not be added to the resulting FHIR resource` ) ;
31
+ if ( ! _ . isNull ( code ) ) {
32
+ logger . debug ( `stagingMethodTemplate received a code ${ code } that is not recognized; code will be added without a codeSystem if possible` ) ;
33
+ }
31
34
return methodTemplate ( { code } ) ;
32
35
}
33
36
You can’t perform that action at this time.
0 commit comments