@@ -28,7 +28,7 @@ test_that("test appendUsagiFileToSTCMTable appends the usagi file to the sourceT
2828 expect_equal(nrowUsagiFile )
2929
3030 stcmTable | >
31- dplyr :: filter(TARGET_CONCEPT_ID != 0L ) | >
31+ dplyr :: filter(target_concept_id != 0L ) | >
3232 dplyr :: count() | > dplyr :: pull(n ) | >
3333 expect_equal(nrowUsagiFileMapped )
3434
@@ -71,7 +71,7 @@ test_that("test appendUsagiFileToSTCMTable appends the usagi file to the sourceT
7171 expect_equal(nrowUsagiFile )
7272
7373 stcmTable | >
74- dplyr :: filter(TARGET_CONCEPT_ID != 0L ) | >
74+ dplyr :: filter(target_concept_id != 0L ) | >
7575 dplyr :: count() | > dplyr :: pull(n ) | >
7676 expect_equal(nrowUsagiFileMapped )
7777
@@ -84,7 +84,7 @@ test_that("test appendUsagiFileToSTCMTable appends the usagi file to the sourceT
8484 " source_domain" , " source_parents_concept_ids" ))
8585
8686 stcmTable | >
87- dplyr :: filter(is.na(SOURCE_PARENTS_CONCEPT_IDS )) | >
87+ dplyr :: filter(is.na(source_parents_concept_ids )) | >
8888 nrow() | >
8989 expect_equal(0 )
9090
@@ -119,14 +119,14 @@ test_that("test appendUsagiFileToSTCMTable appends the ICD10fi usagi file to the
119119
120120 # For source code C18.62 the parent concept IDs should be ICD10 code C18.6 with concept_id 45552246
121121 stcmTable | >
122- dplyr :: filter(SOURCE_CODE == " C18.62" ) | >
123- dplyr :: pull(SOURCE_PARENTS_CONCEPT_IDS ) | >
122+ dplyr :: filter(source_code == " C18.62" ) | >
123+ dplyr :: pull(source_parents_concept_ids ) | >
124124 expect_equal(" 45552246" )
125125
126126 # For source code Y94.1 the parent concept IDs should be ICD10fi code Y94 with concept_id 2000503727
127127 stcmTable | >
128- dplyr :: filter(SOURCE_CODE == " Y94.1" ) | >
129- dplyr :: pull(SOURCE_PARENTS_CONCEPT_IDS ) | >
128+ dplyr :: filter(source_code == " Y94.1" ) | >
129+ dplyr :: pull(source_parents_concept_ids ) | >
130130 expect_equal(" 2000503725" )
131131
132132})
0 commit comments