File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const { generateMcodeResources } = require('../templates');
3
3
const { getEmptyBundle } = require ( '../helpers/fhirUtils' ) ;
4
4
const { getPatientFromContext } = require ( '../helpers/contextUtils' ) ;
5
5
const { formatDateTime } = require ( '../helpers/dateUtils' ) ;
6
- const { ctcAECodeToTextLookup } = require ( '../helpers/lookups/ctcAdverseEventLookup' ) ;
6
+ const { ctcAEGradeCodeToTextLookup } = require ( '../helpers/lookups/ctcAdverseEventLookup' ) ;
7
7
const logger = require ( '../helpers/logger' ) ;
8
8
9
9
// Formats data to be passed into template-friendly format
@@ -66,7 +66,7 @@ function formatData(adverseEventData, patientId) {
66
66
studyId,
67
67
effectiveDateTime : formatDateTime ( effectiveDate ) ,
68
68
recordedDateTime : ! recordedDate ? null : formatDateTime ( recordedDate ) ,
69
- grade : { code : grade , display : ctcAECodeToTextLookup [ grade ] } ,
69
+ grade : { code : grade , display : ctcAEGradeCodeToTextLookup [ grade ] } ,
70
70
} ;
71
71
} ) ;
72
72
}
Original file line number Diff line number Diff line change 1
1
const { createInvertedLookup, createLowercaseLookup } = require ( '../lookupUtils' ) ;
2
2
3
- const ctcAETextToCodeLookup = {
3
+ const ctcAEGradeTextToCodeLookup = {
4
4
'Absent Adverse Event' : '0' ,
5
5
'Mild Adverse Event' : '1' ,
6
6
'Moderate Adverse Event' : '2' ,
@@ -9,9 +9,9 @@ const ctcAETextToCodeLookup = {
9
9
'Death Related to Adverse Event' : '5' ,
10
10
} ;
11
11
12
- const ctcAECodeToTextLookup = createInvertedLookup ( ctcAETextToCodeLookup ) ;
12
+ const ctcAEGradeCodeToTextLookup = createInvertedLookup ( ctcAEGradeTextToCodeLookup ) ;
13
13
14
14
module . exports = {
15
- ctcAECodeToTextLookup : createLowercaseLookup ( ctcAECodeToTextLookup ) ,
16
- ctcAETextToCodeLookup : createLowercaseLookup ( ctcAETextToCodeLookup ) ,
15
+ ctcAEGradeCodeToTextLookup : createLowercaseLookup ( ctcAEGradeCodeToTextLookup ) ,
16
+ ctcAEGradeTextToCodeLookup : createLowercaseLookup ( ctcAEGradeTextToCodeLookup ) ,
17
17
} ;
You can’t perform that action at this time.
0 commit comments