7
7
} = require ( '../../src/helpers/diseaseStatusUtils.js' ) ;
8
8
9
9
// Code mapping is based on current values at http://standardhealthrecord.org/guides/icare/mapping_guidance.html
10
- const currentDiseaseStatusTextToCodeLookup = {
11
- 'Not detected (qualifier )' : '260415000 ' ,
10
+ const mcodeDiseaseStatusTextToCodeLookup = {
11
+ 'No abnormality detected (finding )' : '281900007 ' ,
12
12
'Patient condition improved (finding)' : '268910001' ,
13
13
'Patient\'s condition stable (finding)' : '359746009' ,
14
14
'Patient\'s condition worsened (finding)' : '271299001' ,
@@ -38,8 +38,8 @@ const evidenceTextToCodeLookup = {
38
38
39
39
describe ( 'diseaseStatusUtils' , ( ) => {
40
40
test ( 'getMcodeDiseaseStatusCode,' , ( ) => {
41
- Object . keys ( currentDiseaseStatusTextToCodeLookup ) . forEach ( ( dsText ) => {
42
- const dsCode = currentDiseaseStatusTextToCodeLookup [ dsText ] ;
41
+ Object . keys ( mcodeDiseaseStatusTextToCodeLookup ) . forEach ( ( dsText ) => {
42
+ const dsCode = mcodeDiseaseStatusTextToCodeLookup [ dsText ] ;
43
43
expect ( getDiseaseStatusCode ( dsText , 'mcode' ) ) . toEqual ( dsCode ) ;
44
44
expect ( getDiseaseStatusCode ( dsText ) ) . toEqual ( dsCode ) ;
45
45
} ) ;
@@ -51,8 +51,8 @@ describe('diseaseStatusUtils', () => {
51
51
} ) ;
52
52
} ) ;
53
53
test ( 'getMcodeDiseaseStatusDisplay,' , ( ) => {
54
- Object . keys ( currentDiseaseStatusTextToCodeLookup ) . forEach ( ( dsText ) => {
55
- const dsCode = currentDiseaseStatusTextToCodeLookup [ dsText ] ;
54
+ Object . keys ( mcodeDiseaseStatusTextToCodeLookup ) . forEach ( ( dsText ) => {
55
+ const dsCode = mcodeDiseaseStatusTextToCodeLookup [ dsText ] ;
56
56
expect ( getDiseaseStatusDisplay ( dsCode , 'mcode' ) ) . toEqual ( dsText ) ;
57
57
expect ( getDiseaseStatusDisplay ( dsCode ) ) . toEqual ( dsText ) ;
58
58
} ) ;
0 commit comments