@@ -609,16 +609,12 @@ executeDiagnostics <- function(cohortDefinitionSet,
609
609
stop(" Cohort table is empty" )
610
610
}
611
611
612
- cohortCounts <- makeDataExportable(
613
- x = cohortCounts ,
614
- tableName = " cohort_count" ,
615
- minCellCount = minCellCount ,
616
- databaseId = databaseId
617
- )
618
-
619
- writeToCsv(
612
+ cohortCounts <- exportDataToCsv(
620
613
data = cohortCounts ,
614
+ tableName = " cohort_count" ,
621
615
fileName = file.path(exportFolder , " cohort_count.csv" ),
616
+ minCellCount = minCellCount ,
617
+ databaseId = databaseId ,
622
618
incremental = FALSE ,
623
619
cohortId = cohorts $ cohortId
624
620
)
@@ -713,11 +709,11 @@ executeDiagnostics <- function(cohortDefinitionSet,
713
709
if (runIncludedSourceConcepts || runOrphanConcepts || runBreakdownIndexEvents ) {
714
710
timeExecution(
715
711
exportFolder ,
716
- taskName = " runConceptSetDiagnostics " ,
712
+ taskName = " runIncludedSourceConcepts " ,
717
713
cohortIds ,
718
714
parent = " executeDiagnostics" ,
719
715
expr = {
720
- runConceptSetDiagnostics (
716
+ runIncludedSourceConcepts (
721
717
connection = connection ,
722
718
tempEmulationSchema = tempEmulationSchema ,
723
719
cdmDatabaseSchema = cdmDatabaseSchema ,
@@ -749,11 +745,11 @@ executeDiagnostics <- function(cohortDefinitionSet,
749
745
if (runTimeSeries ) {
750
746
timeExecution(
751
747
exportFolder ,
752
- " executeTimeSeriesDiagnostics " ,
748
+ " runTimeSeries " ,
753
749
cohortIds ,
754
750
parent = " executeDiagnostics" ,
755
751
expr = {
756
- executeTimeSeriesDiagnostics (
752
+ runTimeSeries (
757
753
connection = connection ,
758
754
tempEmulationSchema = tempEmulationSchema ,
759
755
cdmDatabaseSchema = cdmDatabaseSchema ,
@@ -804,11 +800,11 @@ executeDiagnostics <- function(cohortDefinitionSet,
804
800
if (runIncidenceRate ) {
805
801
timeExecution(
806
802
exportFolder ,
807
- " computeIncidenceRates " ,
803
+ " runIncidenceRate " ,
808
804
cohortIds ,
809
805
parent = " executeDiagnostics" ,
810
806
expr = {
811
- computeIncidenceRates (
807
+ runIncidenceRate (
812
808
connection = connection ,
813
809
tempEmulationSchema = tempEmulationSchema ,
814
810
cdmDatabaseSchema = cdmDatabaseSchema ,
@@ -831,11 +827,11 @@ executeDiagnostics <- function(cohortDefinitionSet,
831
827
if (runCohortRelationship ) {
832
828
timeExecution(
833
829
exportFolder ,
834
- " executeCohortRelationshipDiagnostics " ,
830
+ " runCohortRelationship " ,
835
831
cohortIds ,
836
832
parent = " executeDiagnostics" ,
837
833
expr = {
838
- executeCohortRelationshipDiagnostics (
834
+ runCohortRelationship (
839
835
connection = connection ,
840
836
databaseId = databaseId ,
841
837
exportFolder = exportFolder ,
0 commit comments